UBB.Dev
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!
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)
Quote
quote:
YOu cant do that cuz then it will be

Rating:
Posts: Registered:

See what I mean?
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 ]
Remember to clear cache afterwards
thanks, i like now! laugh
I'm still having problems with this modification...i finally broke down and registered here tipsy

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 ]
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
© UBB.Developers