Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Understanding show_users.php

 
Reply to topic    Forum Index » Help View previous topic
View next topic
Understanding show_users.php
Author Message
scottdallas



Joined: 04 May 2006
Posts: 1943
Location: US

Post Understanding show_users.php Reply with quote
Okay so I'm looking at show_users.php wondering what I can do with it. The links generate this:

http://www.embedtube.com/view.php?users/scodal.html

Which takes me to my full story page where show_news.php is included and so it displays 'Content Not Found'.. how can I adjust these URL to display profiles properly?

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Mon Aug 20, 2007 9:16 pm View user's profile Send private message Visit poster's website AIM Address
Guest








Please login to hide the ads.

FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
All I can do is point you to the demo page:

This shows a list of all users:
http://english.cutenews.ru/cuteru/example/index.php/users

And this shows a user's profile page:
http://english.cutenews.ru/cuteru/example/index.php/users/fi-dd.html
Wed Aug 22, 2007 7:24 pm View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1943
Location: US

Post Reply with quote
Right well I understand that. I guess what I was looking for was 'users/fi-dd.html' but do you have any idea where the link is generated for this area? Cause some places in the template it will display {author} with a link to: mailto:something at something.com or something like that which isn't very useful.. and sometimes it links straight to an email address.. and sometimes it puts no link at all. Confusing me a bunchity bunch bunch.

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Thu Aug 23, 2007 4:12 am View user's profile Send private message Visit poster's website AIM Address
Torstein



Joined: 03 Aug 2006
Posts: 106

Post Reply with quote
I'm using "<a href="{link=home/user}" title="Look at {author}'s profile">{author}</a>" (in the template) to generate a link to a commenter's profile page.

You will also have to have the following in the page you are going to display user profiles from:
Quote:

<?php
if ($do == 'users'){
$bgcolor = '#f7f7f7';
include $cutepath.'/show_users.php';
}
?>



The information for this area is gathered from the profile area your commenters see when they log in to the cutenews.ru control panel.

I hope this helps you out!



BTW: good luck on implementing this properly for your new site, it's going to one of the top CNR sites when it's done Wink[/quote]
Fri Aug 24, 2007 3:48 pm View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1943
Location: US

Post Reply with quote
Thanks Torstein! I should have remembered {link=home/user} duh

That helped out very much and I appreciate the kind words Smile I'm going to have a play with it tonight and see what happens.. I'll report back what your code does for the site.

I've been thinking it might be cooler if when you click a users name it automatically takes you to a page with whatever content they've uploaded... just like videos would be $category = "2" or something.. but that page would be $author = $member['username'] instead.. got any idea how to do that? I'm still thinking...

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Sat Aug 25, 2007 6:36 am View user's profile Send private message Visit poster's website AIM Address
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
That's already done in show_users.php.

Try something like this:
Code:
$static['author']   = $_GET['user'];
$static['number']   = '5';
$static['template'] = "Headlines";
include $cutepath.'/show_news.php';

Sun Aug 26, 2007 1:46 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.