The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
[SOLVED] Need condition to hide a code from forumid
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: Code:
<vb:if condition="$forum[forumid] != 6"> Code:
<vb:if condition="$thread[forumid] != 6"> Can someone please help me? Thanks! If possible, I like to use this to work together with: Code:
<vb:if condition="$post['isfirstshown']"> --------------- Added [DATE]1363946965[/DATE] at [TIME]1363946965[/TIME] --------------- Ok, I found a code that works: Code:
<vb:if condition="$post['isfirstshown'] AND in_array($thread[forumid], array(6))"> Is almost what I want, but I need to HIDE in a specific forum... any ideas? --------------- Added [DATE]1363947298[/DATE] at [TIME]1363947298[/TIME] --------------- Fixed! Just needed to place a ! before the in_array Correct code: Code:
<vb:if condition="$post['isfirstshown'] AND !in_array($thread[forumid], array(6))"> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|