Divvy
03-22-2013, 08:38 AM
Hello guys,
Can someone please tell me how can I use a condition to hide a code in a specific forum id?
I have a custom code in postbit_legacy.
I already tried many codes but none is working:
<vb:if condition="$forum[forumid] != 6">
<vb:if condition="$thread[forumid] != 6">
etc...
Can someone please help me? Thanks! :)
If possible, I like to use this to work together with:
<vb:if condition="$post['isfirstshown']">
It is possible?
--------------- Added 1363946965 at 1363946965 ---------------
Ok, I found a code that works:
<vb:if condition="$post['isfirstshown'] AND in_array($thread[forumid], array(6))">
This will show the code ONLY in a specific forum.
Is almost what I want, but I need to HIDE in a specific forum... any ideas?
--------------- Added 1363947298 at 1363947298 ---------------
Fixed!
Just needed to place a ! before the in_array
Correct code:
<vb:if condition="$post['isfirstshown'] AND !in_array($thread[forumid], array(6))">
Thank you anyway guys :)
Can someone please tell me how can I use a condition to hide a code in a specific forum id?
I have a custom code in postbit_legacy.
I already tried many codes but none is working:
<vb:if condition="$forum[forumid] != 6">
<vb:if condition="$thread[forumid] != 6">
etc...
Can someone please help me? Thanks! :)
If possible, I like to use this to work together with:
<vb:if condition="$post['isfirstshown']">
It is possible?
--------------- Added 1363946965 at 1363946965 ---------------
Ok, I found a code that works:
<vb:if condition="$post['isfirstshown'] AND in_array($thread[forumid], array(6))">
This will show the code ONLY in a specific forum.
Is almost what I want, but I need to HIDE in a specific forum... any ideas?
--------------- Added 1363947298 at 1363947298 ---------------
Fixed!
Just needed to place a ! before the in_array
Correct code:
<vb:if condition="$post['isfirstshown'] AND !in_array($thread[forumid], array(6))">
Thank you anyway guys :)