The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have the top.5.threads on my index page but the problem is, when i click on any of the top 5 newest threads it takes me to the first message posted. I need it to take me to the latest thead (the last thread) posted on the topic, does anyone know how this can be done. The code for the last 10 threads is below. If posswible could someone alter it for me and then post it in a reply to this topic. Thanks. Mine is called the Top 10 Thread Replys as i have set it to show 10 threads instead of 5.
Code:
// Top 10 Thread Replys // Top 1 Most Popular Thread $pop1 = $DB_site->query('SELECT title,threadid,views FROM thread ORDER BY views DESC LIMIT 1'); while ($pop1top = mysql_fetch_array($pop1)): ++$pop1topnbsp; $pop1title .= "<a href=showthread.php?s=$session[sessionhash]&threadid=$pop1top[threadid]>$pop1top[title]</a>"; $pop1views .= "$pop1top[views]"; |
#2
|
||||
|
||||
![]() PHP Code:
|
#3
|
|||
|
|||
![]()
nope that didn't work, just didn't show anything. Thanks for the try though. Is there anuthing else that may work.
|
#4
|
||||
|
||||
![]()
Try
PHP Code:
|
#5
|
|||
|
|||
![]()
nope that didn't work either. But thanks again. Anyone else know?
|
#6
|
||||
|
||||
![]()
It should work. Also, why are you LIMITing to 1?
Use this, its templated as well so it's much better: PHP Code:
Code:
<a href="showthread.php?s=$session[sessionhash]&threadid=$latestthreads[threadid]">$latestthreads[title]</a> That SHOULD work. |
#7
|
|||
|
|||
![]()
that creates a parse error
|
#8
|
||||
|
||||
![]()
that's relatively easy, suprised you didn't get that assassin, oh well, heres teh fix
PHP Code:
|
#9
|
||||
|
||||
![]()
awwww vb3 messed up the line breakes, but it's easy enough to read, i only changed one line, that's the one with the html in it
|
#10
|
|||
|
|||
![]()
thanks, i'll give it a try in 15 minutes
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|