![]() |
Code for "Recent Topics"
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 ;-) |
[sql]SELECT threadid, title, lastposter
FROM " . TABLE_PREFIX . "thread WHERE visible = 1 ORDER BY dateline DESC LIMIT 5[/sql] |
Hello,
I try that code but I receive an error 1064 in ACP vBulletin, Execute SQL Query |
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. |
<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 |
Quote:
|
All times are GMT. The time now is 04:04 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:
|