vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Show Product only several forums (https://vborg.vbsupport.ru/showthread.php?t=314991)

predi 10-20-2014 03:36 PM

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>

Option 2
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>

Thanks!!!

kh99 10-20-2014 03:44 PM

Maybe try:
Code:

in_array($GLOBALS['forumid'],

predi 10-20-2014 03:50 PM

Quote:

Originally Posted by kh99 (Post 2519526)
Maybe try:
Code:

in_array($GLOBALS['forumid'],

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>


ozzy47 10-20-2014 04:14 PM

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.

predi 10-20-2014 04:25 PM

Quote:

Originally Posted by ozzy47 (Post 2519534)
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.

Thanks for the advice but it is not a question about the mod itself is only about how to show something in these forums. I've tried different combinations and I have not managed to find it. That's why I asked for assistance to see if someone can assist me with this detail.

Lynne 10-20-2014 04:45 PM

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.

predi 10-20-2014 07:05 PM

thanks for your useful answer :)


All times are GMT. The time now is 01:10 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00984 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete