predi
10-20-2014, 03:36 PM
Hi I am trying to display a plugin only in some forums, but that applies more conditional achievement not only displayed in these forums. There anyone who can assist me with this?
The plugin is: https://vborg.vbsupport.ru/showthread.php?t=277323
and conditional that will apply is this:
Option 1
<vb:if condition="in_array($forum['forumid'], array(58,59,60,62,69))"><li class="popupmenu menubutton fonts nomouseover nohovermenu editormenu" id="{vb:raw editorid}_popup_posttemplate">
<div class="popupctrl"><div id="{vb:raw editorid}_postemplatefield">{vb:rawphrase post_templates}</div></div>
<ul class="editorpopupbody popupbody popuphover">
{vb:raw posttemplates}
</ul>
</li></vb:if>
Option 2
<vb:if condition="!in_array($forumid, array(58,59,60,62,69))"><li class="popupmenu menubutton fonts nomouseover nohovermenu editormenu" id="{vb:raw editorid}_popup_posttemplate">
<div class="popupctrl"><div id="{vb:raw editorid}_postemplatefield">{vb:rawphrase post_templates}</div></div>
<ul class="editorpopupbody popupbody popuphover">
{vb:raw posttemplates}
</ul>
</li>
</vb:if>
Thanks!!!
The plugin is: https://vborg.vbsupport.ru/showthread.php?t=277323
and conditional that will apply is this:
Option 1
<vb:if condition="in_array($forum['forumid'], array(58,59,60,62,69))"><li class="popupmenu menubutton fonts nomouseover nohovermenu editormenu" id="{vb:raw editorid}_popup_posttemplate">
<div class="popupctrl"><div id="{vb:raw editorid}_postemplatefield">{vb:rawphrase post_templates}</div></div>
<ul class="editorpopupbody popupbody popuphover">
{vb:raw posttemplates}
</ul>
</li></vb:if>
Option 2
<vb:if condition="!in_array($forumid, array(58,59,60,62,69))"><li class="popupmenu menubutton fonts nomouseover nohovermenu editormenu" id="{vb:raw editorid}_popup_posttemplate">
<div class="popupctrl"><div id="{vb:raw editorid}_postemplatefield">{vb:rawphrase post_templates}</div></div>
<ul class="editorpopupbody popupbody popuphover">
{vb:raw posttemplates}
</ul>
</li>
</vb:if>
Thanks!!!