hazem_aliraqi
10-10-2012, 12:28 PM
hello guys
I wonder How to use THIS_SCRIPT
the template i need to use the condition is headinclude
this condition
<vb:if condition="THIS_SCRIPT == 'showthread' OR THIS_SCRIPT == 'threads'">
code
</vb:if>
its in all the page
i need the condition in the first post only
i tried this but not work
<vb:if condition="$post['isfirstshown'] && $thread['firstpostid']==$post['postid']">
code
</vb:if>
also this
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
code
</vb:if>
and this
<vb:if condition="THIS_SCRIPT == 'showthread' AND $thread['firstpostid']==$post['postid']">
code
</vb:if>
all this not work in headinclude template
so that i need help to make my code work in first post only
I wonder How to use THIS_SCRIPT
the template i need to use the condition is headinclude
this condition
<vb:if condition="THIS_SCRIPT == 'showthread' OR THIS_SCRIPT == 'threads'">
code
</vb:if>
its in all the page
i need the condition in the first post only
i tried this but not work
<vb:if condition="$post['isfirstshown'] && $thread['firstpostid']==$post['postid']">
code
</vb:if>
also this
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
code
</vb:if>
and this
<vb:if condition="THIS_SCRIPT == 'showthread' AND $thread['firstpostid']==$post['postid']">
code
</vb:if>
all this not work in headinclude template
so that i need help to make my code work in first post only