 |
 |
 |
 |
 |
| Author |
Message |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
Understanding show_users.php |
|
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
last update: 07-22-08: 8:30 pm |
|
| Mon Aug 20, 2007 9:16 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
| Wed Aug 22, 2007 7:24 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
|
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
last update: 07-22-08: 8:30 pm |
|
| Thu Aug 23, 2007 4:12 am |
|
 |
Torstein
Joined: 03 Aug 2006 Posts: 106
|
|
|
|
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:
 |  |
<?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 [/quote]
|
|
| Fri Aug 24, 2007 3:48 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
|
Thanks Torstein! I should have remembered {link=home/user} duh
That helped out very much and I appreciate the kind words 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
last update: 07-22-08: 8:30 pm |
|
| Sat Aug 25, 2007 6:36 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
That's already done in show_users.php.
Try something like this:
 |  | $static['author'] = $_GET['user'];
$static['number'] = '5';
$static['template'] = "Headlines";
include $cutepath.'/show_news.php';
|
|
|
| Sun Aug 26, 2007 1:46 pm |
|
 |
|
|
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
|
|
 |
 |
 |
|