vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=292940

How to get thread's links?
by SupportAM
13 Dec 2012 01:47

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?

Lynne 13 Dec 2012 03:24

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.

NAZIA 07 Oct 2013 12:04

Connect your file with the database.
and use this query to get title and threadid from Thread table


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You can remove forumid='10' from the above query . because above query will get rows of the threads posted in forum ID 10..

After fetching rows. use them to display


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

forum/showthread.php/ Because Advanced Friendly URL Type is enabled
thats it.

It will work for vbulletin 4.xx


All times are GMT. The time now is 08:00.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.