php forum
php mysql forum
php mysql smarty
 
Topic Options
#116297 - 02/02/01 02:30 AM Last Post By ... in the forum Page
Wanted Offline
Member

Registered: 07/18/00
Posts: 127
Loc: Jeddah - Saudi Arabia
UBB 6.0 shows the last post by in the main page but in the forum page it doesn't ?

Top
#116298 - 02/02/01 03:39 PM Re: Last Post By ... in the forum Page
Charles Capps Offline
Admin Emeritus

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
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

<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=get_topic&f=$in{f}&t=$one$doextra#$last_post[1]">$last_post[2]</a>

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 <td> will be a font statement - insert the following between the <td> and the <font>:

<a name="$thisline[0]"></a>

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.

Top
#116299 - 02/02/01 04:44 PM Re: Last Post By ... in the forum Page
Blaze Offline
Member

Registered: 01/29/01
Posts: 430
Loc: Somewhere | Sanity: None | Sex...
Slurpee Made One too
http://www.ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=20&t=000076
I like his, its nice and simple smile
_________________________
All Day I Dream About Sheep
A.D.I.D.A.S

Top
#116300 - 02/02/01 06:54 PM Re: Last Post By ... in the forum Page
Slurpee Offline
Member

Registered: 01/11/00
Posts: 322
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.
_________________________
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Support Moderator
http://community.infopop.net/

Top
#116301 - 02/02/01 07:24 PM Re: Last Post By ... in the forum Page
Slurpee Offline
Member

Registered: 01/11/00
Posts: 322
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.
_________________________
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Support Moderator
http://community.infopop.net/

Top
#116302 - 02/07/01 03:43 PM Re: Last Post By ... in the forum Page
mmnatas Offline
Member

Registered: 08/11/00
Posts: 51
Loc: University of Minnesota, Morri...
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.
_________________________
Mike

Lead technical admin: TiberiumSun.com Forums .

Top
#116303 - 02/07/01 06:50 PM Re: Last Post By ... in the forum Page
Charles Capps Offline
Admin Emeritus

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
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.

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks