The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
how can I do that?
thanks... |
|
#2
|
|||
|
|||
|
there's a hack for something similar... try searching the hacks database or just the hacks list themselves
![]() g-force2k2 |
|
#3
|
|||
|
|||
|
theres a hack that counts the posts in a thread, like what is installed at this site ; I guess I need a simple database query that will grab the latest post and thread id and output that on the index page
|
|
#4
|
|||
|
|||
|
open index.php
find: // get total posts under it add: PHP Code:
i think this'll work but not positive and not sure if this is what you were looking for? g-force2k2 |
|
#5
|
|||
|
|||
|
yeah u have the right idea but its generating a blank index page when I add your code
|
|
#6
|
|||
|
|||
|
well i'll take a look and repost it in a few... you want the id number though yes? not the name? i'll test it... didn't try i yet...
g-force2k2 Edit: just saw i forgot to block out coding ;\ and you didn't get a parse error? replace the coding i gave you with this instead: PHP Code:
|
|
#7
|
||||
|
||||
|
Try this:
PHP Code:
|
|
#8
|
|||
|
|||
|
Zzed you forgot to block the quote at the end
and i believe that Fazle wants the number not the name ![]() g-force2k2 |
|
#9
|
||||
|
||||
|
LOL @ g-kforce2k2
![]() ![]() ![]() And you spelled sessionhash as sessionhas.
|
|
#10
|
|||
|
|||
|
Zzed thanks for the help, but yeah I just want the number ; the latest threadid and postid.
g-force2k2, I added the new code but when I add the $lastthread in forumhome, no number comes up ; index page doesnt show up as blank anymore, but the threadid doesnt show up either
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|