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

   Last Post By ... in the forum Page to Del.icio.us Add to del.icio.us
  Digg Last Post By ... in the forum Page Digg it
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
Resident Code Hacker

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
Resident Code Hacker

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


Top Posters Last 30 Days
AllenAyres 20
Gizmo 10
blaaskaak 2
S7ARBVCK 2
Iann128 1
Claus1 1
M4D 1
Who's Online
0 Registered (), 33 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Security Patch released for all 7.x versions
by AllenAyres
Yesterday at 08:00 PM
What do you use to edit the files
by AllenAyres
Yesterday at 07:54 PM
Team UBBDev Rides Again!
by AllenAyres
Yesterday at 07:32 PM
Here I am! Rock me like a Hurricane!
by AllenAyres
Yesterday at 07:20 PM
BeyondCompare v3.00
by AllenAyres
Yesterday at 07:16 PM
[7.3.1] add search to showmembers page
by AllenAyres
Yesterday at 07:13 PM
Noob - need help, or a reality check!
by Gizmo
09/04/08 03:21 AM
New Mods
[7.3.1] add search to showmembers page
by blaaskaak
Yesterday at 04:50 AM
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks