The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to remove show similar thread section if the thread is closed.
I would like hide similar thread if the thread is closed.
I put the flowing code, but it remove similar thread in all thread. I think it is because the value $show['closethread'] is not registered. How to register that? <vb:if condition="$show['closethread']"> <vb:if condition="$similarthreadbits"> <div id="similar_threads"> <h4 class="threadinfohead blockhead">{vb:rawphrase similar_threads}</h4> <div id="similar_threads_list" class="thread_info_block blockbody formcontrols"> <ol class="similar_threads"> {vb:raw similarthreadbits} </ol> </div> </div> </vb:if> </vb:if> |
#2
|
|||
|
|||
You're editing the wrong template to use $show['closethread']...
Locate this in the SHOWTHREAD template. Code:
{vb:raw similarthreads} Code:
<vb:if condition="$show['closethread']"> {vb:raw similarthreads} </vb:if> |
Благодарность от: | ||
tbworld |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|