Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jul 2000
Posts: 81
Member
Member
Offline
Joined: Jul 2000
Posts: 81
UBB 6.0 shows the last post by in the main page but in the forum page it doesn't ?

Sponsored Links
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Yes, this is missing as a standard feature but is very easy to hack in.

public_forum_page, line 300-330 - there's a $this_html block in which $total_replies is printed, then an if block deciding the next alternating color, then a $this_html block in which the date and time are printed.

Between the If block and the second $this_html block, insert the following:

my $doextra;
my $page_total = int (($total_replies + 1) / $vars_display{HTMLDisplayMax});
if (($total_posts + 1) % $vars_display{HTMLDisplayMax}) { $page_total++; }
if ($page_total > 1) { $doextra = "&p=$page_total"; }


Then inside the $this_html block, use this string to print out the user who made the last post with a link to it

$last_post[2]

Now you need to add the anchor to the posts -

public_topic_page - sub topicrow

my $row will be assigned, starting with a table.

Inside the second
will be a font statement - insert the following between the and the :



That should do the trick.

Note that this is based on B6, not 7, so the line numbers may be a bit off. Please use your brain and eyes to search for the proper areas to place the modified text, don't come back here for help. smile

UBB.classic: Love it or hate it, it was mine.
Joined: Jan 2001
Posts: 421
Member
Member
Offline
Joined: Jan 2001
Posts: 421
Slurpee Made One too
https://www.ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=20&t=000076
I like his, its nice and simple smile

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Mine is easier, Charles' is more to my liking cause it links to the post, I'll have to see if I can combine the two.

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
You can combine Charles hack and mine for a ONE very easy hack, I will document it later in the other thread by updating my text file. Basically all you have to do to mine is add the anchor to each post from Charles' and then a href that anchor, but I'll put I'll get it in that text file a bit later.

Sponsored Links
Joined: Aug 2000
Posts: 33
Member
Member
Offline
Joined: Aug 2000
Posts: 33
A potential problem I see with this hack is that it shows the member's login name, instead of their display name. Unfortunately, UBB stores the login name only with the thread data.

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Slurpee adapted my code and combined it with his own to fix that in another thread - use his version, not this one. smile


UBB.classic: Love it or hate it, it was mine.

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
hatter
hatter
USA
Posts: 69
Joined: January 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)