Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2001
Posts: 29
Junior Member
Junior Member
Offline
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!

Sponsored Links
Joined: Mar 2001
Posts: 117
Member
Member
Offline
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
Offline
Joined: Jan 2001
Posts: 421
Quote
quote:
YOu cant do that cuz then it will be

Rating:
Posts: Registered:

See what I mean?

Joined: Mar 2001
Posts: 117
Member
Member
Offline
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
Offline
Joined: Mar 2001
Posts: 117
Remember to clear cache afterwards

Sponsored Links
Joined: Mar 2001
Posts: 29
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 29
thanks, i like now! laugh

Joined: Apr 2001
Posts: 15
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 15
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 ]

Joined: Apr 2001
Posts: 15
Junior Member
Junior Member
Offline
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


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)