![]() |
How to get thread's links?
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? |
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.
|
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 |
All times are GMT. The time now is 06:53 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|