![]() |
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> |
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']"> |
Thanks. It works well.
|
All times are GMT. The time now is 12:55 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|