php forum
php mysql forum
php mysql smarty
 
Topic Options
#224983 - 09/23/02 02:39 AM Last Post By v1.0
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
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...


Attachments
57146-LastPostBy_1.0.txt (87 downloads)



Edited by Aglavalin (10/28/02 01:21 PM)

Top
#224984 - 09/23/02 10:44 AM Re: Last Post By v1.0 [Re: neuron]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
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="" />
_________________________
- Allen wavey
- What Drives You?

Top
#224985 - 09/23/02 12:18 PM Re: Last Post By v1.0 [Re: SurfMinister]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Now ya tell me!

Top
#224986 - 09/23/02 11:23 PM Re: Last Post By v1.0 [Re: neuron]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
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="" />

Top
#224987 - 09/23/02 11:57 PM Re: Last Post By v1.0 [Re: palmen]
Aglavalin Offline
Enthusiast

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...

Top
#224988 - 09/24/02 07:47 AM Re: Last Post By v1.0 [Re: neuron]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Thanks, I had assumed that was the cause, but I was too tired to try and add that in myself <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#224989 - 10/04/02 09:46 PM Re: Last Post By v1.0 [Re: neuron]
JoshPet Offline
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="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#224990 - 10/28/02 02:14 AM Re: Last Post By v1.0 [Re: Daine]
Elkom Offline
Junior Member

Registered: 04/21/01
Posts: 26
Loc: Anröchte
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

Top
#224991 - 10/28/02 01:22 PM Re: Last Post By v1.0 [Re: AAA_dup1]
Aglavalin Offline
Enthusiast

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...

Top
#224992 - 11/02/02 05:57 AM Re: Last Post By v1.0 [Re: Daine]
Lerosia Offline
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
_________________________
[:"red}Ifyouwanttomakeyourcomputergoreally,reallyfast,thowitoutthewindow[/color"]

Top
#224993 - 11/02/02 09:21 AM Re: Last Post By v1.0 [Re: Calis]
JoshPet Offline
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="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#224994 - 11/02/02 07:18 PM Re: Last Post By v1.0 [Re: Daine]
Lerosia Offline
User

Registered: 08/20/02
Posts: 37
Loc: Vancouver
Ahhh...<br /><br />Again, gracias <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br /><br />Lerosia
_________________________
[:"red}Ifyouwanttomakeyourcomputergoreally,reallyfast,thowitoutthewindow[/color"]

Top
#224995 - 11/03/02 12:15 AM Re: Last Post By v1.0 [Re: neuron]
caspe7_dup1 Offline
Power User

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 />&nbsp;<a href="{$config['phpurl']}/showflat.php?Cat=$Cat&amp;Board={$forum[$c][$f]['Keyword']}&amp;Number=$lastnumber&amp;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 />&nbsp;In: <a href="{$config['phpurl']}/showflat.php?Cat=$Cat&amp;Board={$forum[$c][$f]['Keyword']}&amp;Number=$lastnumber&amp;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"

Top
#224996 - 11/03/02 12:36 AM Re: Last Post By v1.0 [Re: AgentDrek]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Excellent Idea. Thanks. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#224997 - 11/04/02 02:19 PM Re: Last Post By v1.0 [Re: Daine]
Elkom Offline
Junior Member

Registered: 04/21/01
Posts: 26
Loc: Anröchte
Realy Cool<br /><br />Thanks a lot

Top
#224998 - 11/05/02 03:33 PM Re: Last Post By v1.0 [Re: AAA_dup1]
Hal9000 Offline
Journeyman

Registered: 11/04/02
Posts: 120
Try this in order to work both (moderator column and be aligned)<br /><br />echo <<<UBBTPRINT<br /><tr class="darktable"><br /><td valign="top" width="1%"><br /><img src="{$config['images']}/{$forum[$c][$f]['boardfolder']}" alt="" /><br /></td><br /><td width="60%"><br /><font class="forumtitle"><br /><a href="{$config['phpurl']}/postlist.php?Cat=$Cat&amp;Board={$forum[$c][$f]['Keyword']}"><br />{$forumimage}{$forum[$c][$f]['Title']}<br /></a><br /></font><br /><br /><br /><table cellpadding="0" cellspacing="0"><br /><tr><br /><td><br /> <br /></td><br /><td width="17%" class="forumdescript"><br />{$forum[$c][$f]['Description']}<br /></td><br /></tr><br /></table><br /></td><br /><td width="6%" align="center" class="threadtotal" nowrap="nowrap"><br />{$forum[$c][$f]['Threads']}<br />{$forum[$c][$f]['showthreads']}<br /></td><br /><td width="6%" align="center" class="posttotal" nowrap="nowrap"><br />{$forum[$c][$f]['Total']}<br />{$forum[$c][$f]['showposts']}<br />{$forum[$c][$f]['showna']}<br /></td><br /><td width="25%" nowrap="nowrap" class="posttime"><br /><table border="0" cellspacing="0" cellpadding="0"><br /><tr><br /><td width="18" valign="bottom"> <img src="{$config['images']}/icons/$licon" align="middle" border="0" alt="" />&nbsp; </td><br /><td valign="bottom"><br /><font class="small"><br />&nbsp;<a href="{$config['phpurl']}/showflat.php?Cat=$Cat&amp;Board={$forum[$c][$f]['Keyword']}&amp;Number=$lastnumber&amp;Main=$lastmain#Post$lastnumber" title="$lsubject">$lsubject</a><br />($luser)<br /></font><br /></td></tr><br /><br /><tr><td width="18" valign="bottom">&nbsp;</td><br /><td valign="bottom"><br /><font class="small">$date<br /><font class="posttime">$datetime[1] $datetime[2]</font></font><br /></td></tr></table><br /></td><br /><br /><td width="10%" class="modcolumn" align="center"><br /> {$forum[$c][$f]['modlist']}<br /></td> <br /></tr><br /><br />UBBTPRINT;<br />} //UBBTREMARK<br />echo <<<UBBTPRINT<br /><!-- END OF FORUM LOOP --><br /></table><br /></td><br /></tr><br /></table><br />UBBTPRINT;<br />} //UBBTREMARK<br />echo <<<UBBTPRINT<br /><!-- END CATEGORY LOOP --><br /><br /><br />Just replace it in the ubbthreads.tmpl <br />

Top
#224999 - 11/05/02 05:26 PM Re: Last Post By v1.0 [Re: dlhanso]
Jacob Offline
Newbie

Registered: 10/20/02
Posts: 23
Sometimes I get a broken image (the icon) when I don't incude one (when I use a quick reply box, or don't include on in my post)

Top


Who's Online
2 registered (GEN, Gizmo), 23 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Spell Check [beta]
by Gizmo
12/01/08 06:21 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks