Previous Thread
Next Thread
Print Thread
Rate Thread
#174026 03/06/2002 8:10 PM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Learn to read Perl! laugh

No, really, I'm serious.

Let's take a look at this code.

if ($vars_display{author_post_total} eq 'yes') {
$post_total_line = qq( $vars_wordlets{author_posts} $vars_config{'jc'}->{'no-b'}$user_profile[7]$vars_config{'jc'}->{'no-b-close'} );
push (@author_extra, $post_total_line);
}

(This is as of 6.2.2 - your code will lack the $vars_config{jc} bits)

This code checks the value of the author_post_total entry in the %vars_config list (hash)... if it's "yes", then it creates a variable containing some text and pushes it into a list (@author_extra)...

There are a few more of those above and below.

Finally comes

if ($author_extra[0]) {
$AuthorExtra = join ("|", @author_extra);
} else {
$AuthorExtra = '';
}

So the @author_extra list is joined together using a pipe character to seperate each entry, then that is stuck in the variable $AuthorExtra.

What you want to do is:

- Change the sequence that joins the entries together from a pipe to something like "
"
- Move the location of $AuthorExtra in public_topic_page from the bottom of each post to wherever you desire it.


UBB.classic: Love it or hate it, it was mine.
Sponsored Links
Entire Thread
Subject Posted By Posted
How do I MenacE 03/06/2002 12:59 AM
Re: How do I Lord Dexter 03/06/2002 7:27 AM
Re: How do I MenacE 03/06/2002 4:57 PM
Re: How do I MenacE 03/06/2002 5:05 PM
Re: How do I Charles Capps 03/06/2002 9:57 PM
Re: How do I MenacE 03/06/2002 10:09 PM
Re: How do I Charles Capps 03/07/2002 3:10 AM
Re: How do I MenacE 03/07/2002 5:38 PM

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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,574
Posts293,926
Members13,850
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 20240506)