![]() |
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']"> |
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?
|
It is in the postbit legacy template I am editing. Before the quick-reply icon.
|
OK, the problem is that $show['closethread'] hasn't been set yet when the postbit template is processed. Try using $thread['open'] instead.
|
Thank you, that worked like a charm. :D
|
All times are GMT. The time now is 11:45 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:
|