
Announcement
Collapse
No announcement yet.
Template conditional problem
Collapse
X
-
This is very useful.
However, the following outputs only the H1 tags and no thread title:
<if condition="THIS_SCRIPT == 'showthread'">
<h1 style="align: center; padding-top: 2px; border-top: 2px;">$thread[title]</h1>
</if>
This is in my "header" template. The title shows correctly in the browser window, and if I place the h1 in the showthread template, it works perfectly.
Am I using the wrong variable in this case?
Leave a comment:
-
This is the second time you give me a good advice,
thank you very much Floris
Leave a comment:
-
<if condition="THIS_SCRIPT == 'showthread'">
...your code...
</if>
This should limit it to only showthread.php and not usernote.php
Leave a comment:
-
Template conditional problem
I'm trying to display an image at the bottom of the first post of every thread (under the controls).
I'm using this template conditional in postbit_legacy:
<if condition="($post[postcount] == 1)">
IMAGE CODE
</if>
The side effect is an image shown also in the first post of usernotes.
How can avoid this?
ThanksTags: None

Leave a comment: