The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Picking up the threadid within the postbit template?
Hi all i am trying to show a button in every post within a thread that belongs to the OP, thats my first problem with the IF condition, anyone know how to correct the if condition to only show to the thread starter?
HTML Code:
<div><if condition="$threadinfo['postuserid'] == $bbuserinfo['userid']"> HTML Code:
<img class="inlineimg" src="$stylevar[imgdir_button]/marksolved.gif" alt="$vbphrase[solvedthread_marksolved]" /> <a href="solved.php?$session[sessionurl]do=marksolved&t=$threadinfo[threadid]">$vbphrase[solvedthread_marksolved]</a></if></div> Any help would be much appreciated Also posted yesterday at http://www.vbulletin.com/forum/showt...stbit-template but no response. --------------- Added [DATE]1266318923[/DATE] at [TIME]1266318923[/TIME] --------------- Quote:
HTML Code:
<if condition="$thread['postuserid'] == $post['userid']">
--------------- Added [DATE]1266320289[/DATE] at [TIME]1266320289[/TIME] --------------- Sorted the clickable image problem with this HTML Code:
<a href="solved.php?$session[sessionurl]do=marksolved&t=$threadinfo[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/marksolved.gif" alt="$vbphrase[solvedthread_marksolved]" /><strong> $vbphrase[solvedthread_marksolved]</strong></a> --------------- Added [DATE]1266320858[/DATE] at [TIME]1266320858[/TIME] --------------- Solved this, instead of using $threadinfo i just used $thread |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|