MyBB Community Forums

Full Version: How to Hide Lock - Sell content in hide tags for closed thread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All

I am using Lock - Sell content in hide tags for newpoints Plugin and i have set default price for hidden content. i try to modify lock_wrapper temples to hide prices for closed thread but it dint work for me . for this modification i am using  If condition in a template

Original code of lock_wrapper temples

<div class="hidden-content">
  <div class="hidden-content-title"><strong>{$params['title']}</strong></div>
  <div class="hidden-content-body">
	    {$return}
	     </div>
</div>

My modified code of lock_wrapper temples

<div class="hidden-content">
        <if $thread['closed'] != 1 then>
  <div class="hidden-content-title"><strong>{$params['title']}</strong></div>
  <div class="hidden-content-body">
	    {$return}
	     </div>
		 </if>
</div>

Can Some one help me to correct this code ?
thread status is not available to the template.
it needs to be provided through the plugin file.

hoping that a plugin coder checks & provides guidance
I am able to modify that plugin code and its working .. Thanks