The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi..
I created a plugin called "foto_post". this plugin is for return de ID of attachment inserted in a post. The code: $foto_post = $db->query_read(" SELECT attachmentid FROM vb_attachment AS vb_attachment LEFT JOIN vb_post AS vb_post ON vb_post.threadid = vb_attachment.contentid AND vb_post.threadid = intval(". $vbulletin->threadinfo(''threadid) .") WHERE vb_attachment.contentid IN(". $vbulletin->postinfo(''postid) .") LIMIT 1 "); In the template: {vb:raw foto_post } When I run this SQL in my database, the return is ok, but in the template dont work. Please, help me.. Best regards.. ![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|