The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 ;-) |
#2
|
||||
|
||||
[sql]SELECT threadid, title, lastposter
FROM " . TABLE_PREFIX . "thread WHERE visible = 1 ORDER BY dateline DESC LIMIT 5[/sql] |
#3
|
|||
|
|||
Hello,
I try that code but I receive an error 1064 in ACP vBulletin, Execute SQL Query |
#4
|
||||
|
||||
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. |
#5
|
|||
|
|||
<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 |
#6
|
||||
|
||||
You need to have the table prefix in there.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|