Previous Thread
Next Thread
Print Thread
Rate Thread
#174020 03/05/2002 5:59 PM
Joined: Jan 2002
Posts: 77
Member
Member
Offline
Joined: Jan 2002
Posts: 77
Ok I have version 6.2.0

I was wondering how I hide the member number from appearing under the users name I dont want it to appear unless I go into their profile.

Also I would like all the details that appear underneath their post such as post count to actually appear under their username.

If anyone could help id be most grateful.

Sponsored Links
#174021 03/06/2002 12:27 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
1. Open public_topic_page.pl and remove $member_number

2. Move the $AuthorExtra variable in public_topic_page.pl to where you want it.

#174022 03/06/2002 9:57 AM
Joined: Jan 2002
Posts: 77
Member
Member
Offline
Joined: Jan 2002
Posts: 77
When you say wherever I want it where to?

Remember I am completely lame at this frown

#174023 03/06/2002 10:05 AM
Joined: Jan 2002
Posts: 77
Member
Member
Offline
Joined: Jan 2002
Posts: 77
OK I figured this out but when I moved it it worked and all but rather than just having the author extra I dont want them all under the name in a line I wan them as follows...

Posts:
From:
Registered:
Ip:logged

How would I do this

#174024 03/06/2002 2:57 PM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
ubb_lib_posting, sub create_topic... As of 6.2.2, line ~ 1200. That is where the bottom line is put together.


UBB.classic: Love it or hate it, it was mine.
Sponsored Links
#174025 03/06/2002 3:09 PM
Joined: Jan 2002
Posts: 77
Member
Member
Offline
Joined: Jan 2002
Posts: 77
I cant actually see what Im looking for! WHat am I looking for how do I restructure that part.

I take it I modify how it is laid out and in the other public topic just place it under the name?

But how do I do that in the first place.

#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.
#174027 03/07/2002 10:38 AM
Joined: Jan 2002
Posts: 77
Member
Member
Offline
Joined: Jan 2002
Posts: 77
Thanx buddy that helps alot, I think Ive got the hang of how to do it now smile


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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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)