The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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:
|