View Full Version : Code for "Recent Topics"
doraj
04-09-2008, 10:35 PM
Hello,
I create some blocks/columns on the right of my forum.
I would add in a block, recent 5 topics of forum...What code must I insert for show it?
Thanks ;-)
Dismounted
04-10-2008, 05:43 AM
SELECT threadid, title, lastposter
FROM " . TABLE_PREFIX . "thread
WHERE visible = 1
ORDER BY dateline DESC
LIMIT 5
doraj
04-10-2008, 12:23 PM
Hello,
I try that code but I receive an error 1064 in ACP vBulletin, Execute SQL Query
Lynne
04-10-2008, 01:39 PM
You can't put it in just like that. You need to write it using the vbulletin way. ie. $vbulletin->db>query_read etc.
Perhaps let us see the php code you have currently written for this.
Opserty
04-10-2008, 02:29 PM
<a href="http://www.vbulletin.com/forum/showthread.php?t=158887" target="_blank">http://www.vbulletin.com/forum/showthread.php?t=158887</a>
Might work on 3.6.x
Dismounted
04-14-2008, 06:51 AM
Hello,
I try that code but I receive an error 1064 in ACP vBulletin, Execute SQL Query
You need to have the table prefix in there.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.