The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Check if thread is open.
I have been making a template and need to move the "reply" button from above the thread controls to besides the "quick reply". I have produced the following code which I believe should be correct, but it does not work for some reason:
Code:
<if condition="$show['closethread']"> <a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$thread[threadid]" rel="nofollow"> <img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /></a> <else /> <img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /> </if> |
#2
|
|||
|
|||
Are you modifying the SHOWTHREAD templat eor making a new template? And if it's a new one, where in the php code is it being used?
|
#3
|
|||
|
|||
It is in the postbit legacy template I am editing. Before the quick-reply icon.
|
#4
|
|||
|
|||
OK, the problem is that $show['closethread'] hasn't been set yet when the postbit template is processed. Try using $thread['open'] instead.
|
#5
|
|||
|
|||
Thank you, that worked like a charm.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|