Mod Name / Version - Last Post By v1.0<br /><br />Description - Adds the post title and user name for the last post in the forum to the ubbthreads.php 'Last Post' column.<br /><br />Example -http://www.newoutriders.org/ubbthreads/ubbthreads.php<br /><br />Pre-requisites - none<br /><br />Author - AllanAyers<br /><br />Files Altered - ubbthreads.php, ubbthreads.tmpl<br /><br />Database Altered - no <br /><br />New Files - None<br /><br />Credits: Aglavalin for typing it up, ask me for help, not Allan.<br /><br />Note: This is an easy hack. Can cause excessive SQL calls, be warned on a busy server or UBBT with a large database! Works fine on 6.1 with the moderator column removed already. Otherwise you will need to modify the code to work with the moderator column still in.<br /><br /><br />This will probably work with 6.0.x, but I have not tested it myself. Perhaps Allan knows, as he wrote this code...
#224984 - 09/23/0210:44 AMRe: Last Post By v1.0
[Re: neuron]
AllenAyres
I type Like navaho
Registered: 03/10/00
Posts: 25432
Loc: Texas
Thanks Aglavin <img src="/forum/images/icons/smile.gif" alt="" /> Actually philipp from ntcompatible.com wrote it <img src="/forum/images/icons/smile.gif" alt="" />
Hmm.. just tried it on mine (6.1) and the moderator column was just a bunch of black cells. Something didn't work right <img src="/forum/images/icons/frown.gif" alt="" />
Registered: 06/18/02
Posts: 394
Loc: Southern California
Oh I bet that is because I removed the moderator column from my site, and I copied that code from my tmpl file, the one with no mod column anymore. Guess I should fix this hack then...
#224989 - 10/04/0209:46 PMRe: Last Post By v1.0
[Re: neuron]
JoshPet
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Thanks!<br /><br />I've always wanted this..... but never found it.<br /><br />Thought I'd seen it recently. Added it tonight... my users think it's a feature of 6.1.1. They like. <img src="/forum/images/graemlins/wink.gif" alt="" />
sorry Please,<br /><br />can someone help me with the mitake of the mod collum? i´m not able to do that by myself. I have the same problen with the black mod collum. If it´s possible, i want a normal mod collum and the last post by!<br /><br />Thanks for helping<br /><br />y board is here
Registered: 06/18/02
Posts: 394
Loc: Southern California
This hack was written with the moderator column removed already, so either remove the mod column, or alter the code to make it work on one more column. I'm off working on a big site for the last serveral weeks, so I have not been doing anything ubb related...
#224992 - 11/02/0205:57 AMRe: Last Post By v1.0
[Re: Daine]
Lerosia
User
Registered: 08/20/02
Posts: 37
Loc: Vancouver
Hi<br /><br />I just added this hack and it seems you can see the last post by: in the Main Index..but all of the forums are still the same<br /><br />OR was this just made for the main index?<br /><br /><br />Lerosia
#224993 - 11/02/0209:21 AMRe: Last Post By v1.0
[Re: Calis]
JoshPet
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
There is a different "Last Post by" hack in the Finished Mods forum (posted by Just Dave) that will update the info on the postlist.php screen.<br /><br />This one just does the Main Index (the ubbthreads.php file). <img src="/forum/images/graemlins/smile.gif" alt="" />
Registered: 04/14/02
Posts: 75
Loc: Long Beach, CA, USA
Thanks. I really like this. there are some more things I wanted it to do. For example, have a link to the user profile. <br /><br />[]http://www.prowrestlingforum.com/lastreply.jpg[/]<br /><br />What I've done:<br />- Added "In:" and "by"<br />- Link to the users profile<br /><br />I don't know if anyones done this.. oh well. here goes.<br /><br />After you installed it, find in the ubbthreads.tmpl:<br /><pre><font class="small">code:</font><hr><br /><font class="small"><br /> <a href="{$config['phpurl']}/showflat.php?Cat=$Cat&Board={$forum[$c][$f]['Keyword']}&Number=$lastnumber&Main=$lastmain#Post$lastnumber" title="$lsubject">$lsubject</a><br />($luser)<br /></font><br /></pre><hr><br />Replace:<br /><pre><font class="small">code:</font><hr><br /><font class="small"><br /> In: <a href="{$config['phpurl']}/showflat.php?Cat=$Cat&Board={$forum[$c][$f]['Keyword']}&Number=$lastnumber&Main=$lastmain#Post$lastnumber" title="$lsubject">$lsubject</a><br /><br />By: <a href="{$config['phpurl']}/showprofile.php?Cat=&User=$luser" title="$luser's Profile">$luser</a><br /></font> [/]<br /> <br /><img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
"We're sorta like the 7-11. We're not always doin' business, but we're always open"