|
|
Joined: Mar 2001
Posts: 29
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 29 |
How do I make the $AuthorExtra info in posts show up under the author's name like in v5?
Currently, it shows up on the bottom of the post:
Posts: 51 | From: Texas, USA | Registered: Mar 2000
I want it to look like this:
Posts: 51 From: Texas, USA Registered: Mar 2000
Thanks!
|
|
|
|
Joined: Mar 2001
Posts: 117
Member
|
Member
Joined: Mar 2001
Posts: 117 |
find the line $rating_line in public_topic.pl (template)
add
$AuthorExtra
on top of it.
scroll down a few lines, delete $AuthorExtra (next to $ip_wording)
|
|
|
|
Joined: Jan 2001
Posts: 421
Member
|
Member
Joined: Jan 2001
Posts: 421 |
YOu cant do that cuz then it will be Rating: Posts: Registered: See what I mean?
|
|
|
|
Joined: Mar 2001
Posts: 117
Member
|
Member
Joined: Mar 2001
Posts: 117 |
simply break it with codes in ubb_lib_posting.cgi
# author info options undef($post_total_line); undef($location_line); undef($regdate_line); @author_extra = @blank;
if ($vars_display{author_post_total} eq 'yes') { $post_total_line = qq( $vars_wordlets{author_posts} $user_profile[7] ); push(@author_extra, $post_total_line); }
if ($vars_display{author_location} eq 'yes') { $location_line = qq( $vars_wordlets{author_from} $user_profile[6] ); push(@author_extra, $location_line); }
if ($vars_display{author_reg_date} eq 'yes') { $regdate_line = qq( $vars_wordlets{author_registered} $RegDate ); push(@author_extra, $regdate_line); }
add before those
so the overall results will be:
Posts: xxx Location: xxx Reg Date: xxx Members Rating xxxxx
[ March 19, 2001: Message edited by: q_ware ]
|
|
|
|
Joined: Mar 2001
Posts: 117
Member
|
Member
Joined: Mar 2001
Posts: 117 |
Remember to clear cache afterwards
|
|
|
|
Joined: Mar 2001
Posts: 29
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 29 |
thanks, i like now! 
|
|
|
|
Joined: Apr 2001
Posts: 15
Junior Member
|
Junior Member
Joined: Apr 2001
Posts: 15 |
I'm still having problems with this modification...i finally broke down and registered here  i've tried using tags before the tag but they are note doing the trick i think it has to do with this bit of code underneath the part listed above..
if ($author_extra[0]) { $AuthorExtra = join("|", @author_extra); } else { $AuthorExtra = ''; }
I can't get both post count and date registered to show with out the "|" and space between them..
i'm using version 6.03 adn would greatly appreciate the help. Thanks!
[ April 07, 2001: Message edited by: anticonscience ]
|
|
|
|
Joined: Apr 2001
Posts: 15
Junior Member
|
Junior Member
Joined: Apr 2001
Posts: 15 |
ok nevermind i worked it out...instead of using the methond you can just use individual code..
$post_total_line $location_line
$regdate_line
It seems to work fine in place of $AuthorExtra
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|