The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Show Product only several forums
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 Code:
<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> Code:
<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> |
#2
|
|||
|
|||
Maybe try:
Code:
in_array($GLOBALS['forumid'], |
#3
|
|||
|
|||
thanks for your support! but not work
Code:
<vb:if condition="in_array($GLOBALS['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> |
#4
|
||||
|
||||
Since that did not work, you need to ask in the mods thread for support.
Questions/Problems regarding modifications/styles need to be asked in the modification/style thread. That is where the support for modification/style is - not out here in the main forums. Please note that if a modification/style is unsupported (or even if it says it is supported), you may be on your own if you chose to install it. |
#5
|
|||
|
|||
Quote:
|
#6
|
||||
|
||||
The reason you should ask in the mod thread is because they can tell you what variables are registered for use in that template. We have no idea. And you may need to change some code in the plugins in order to be able to do what you want.
|
Благодарность от: | ||
ozzy47 |
#7
|
|||
|
|||
thanks for your useful answer
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|