The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I want to display last 10 threads on my website main page in a way that hyperlink takes user to actual forum thread.
I can see and pick threads titles from thread table. How to get link which I could use in hyperlink? |
|
#2
|
||||
|
||||
|
What is your current code you are using that is only displaying the thread titles? In the same thread table is a threadid which you should be able to use for the link.
|
|
#3
|
||||
|
||||
|
Connect your file with the database.
and use this query to get title and threadid from Thread table Code:
$data = mysql_query("SELECT threadid, title FROM XX_thread WHERE forumid='10' order by threadid desc LIMIT 10")
After fetching rows. use them to display PHP Code:
thats it. It will work for vbulletin 4.xx |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|