Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2001
Posts: 29
S
Junior Member
OP Offline
Junior Member
S
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
Q
Member
Offline
Member
Q
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
B
Member
Offline
Member
B
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
Q
Member
Offline
Member
Q
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
Q
Member
Offline
Member
Q
Joined: Mar 2001
Posts: 117
Remember to clear cache afterwards

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

Joined: Apr 2001
Posts: 15
A
Junior Member
Offline
Junior Member
A
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
A
Junior Member
Offline
Junior Member
A
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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,558
Posts293,857
Members13,848
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,819
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 70
Gizmo 16
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2022 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20220120)
Responsive Width:

PHP: 7.3.29 Page Time: 0.015s Queries: 30 (0.008s) Memory: 0.8196 MB (Peak: 0.8683 MB) Data Comp: Zlib Server Time: 2022-01-27 06:20:40 UTC
Valid HTML 5 and Valid CSS