PDA

View Full Version : Last thread hack for 2.2.6


Barret
08-24-2002, 01:37 AM
I find that a most useful hack to have handy but the one for 2.2.4 won't work as the script has changed. :)
Any help?
Thanks in advance. :banana:

g-force2k2
08-24-2002, 02:07 AM
Barret :: open index.php

find:

$newuserid=$getnewestusers['userid'];

under it add:

$lthread= $DB_site->query_first("SELECT threadid, title FROM thread ORDER BY threadid DESC LIMIT 1");
$latestthread = "<a href=\"/forum/showthread.php?s=$threadid=$lthread[threadid]\">$lthread[title]</a>";

then in the forumhome template add this coding where you want the thread to show:

Lastest Thread: $latestthread

see if that works... regards...

g-force2k2

Barret
08-24-2002, 09:39 AM
Thanks a bunch man!
Your a walking wonder. :)

g-force2k2
08-24-2002, 09:41 AM
:D thanks Barret for the compliments :p like i said man if you need any assistance you just keep coming to the request forum :) regards...

g-force2k2