Okay!
|
Quote:
Code:
<vb:if condition="$vbulletin->userinfo['permissions']['classifieds'] & $vbulletin->bf_ugp['classifieds']['moderate']"> Thank you Chris |
Maybe something like this?
Code:
if (condition="$vbulletin->userinfo['permissions']['classifieds'] & $vbulletin->bf_ugp['classifieds']['moderate']") $show['classifieds'] = true; |
Quote:
Thanks again Chris |
Sure you can. As another example, here is one I use in the load_show_variables hook:
Code:
if ($vbulletin->products['adv_product_management4'] == 1) If APM is installed it will use that link. If not, it default to the vb product manager. I also use the show variables in the navigation_tab_complete, but you have to globalize it in that hook, as well as $vbphrase if you use that there, too. |
I found it to be much easier to use old system but at navtab_start and navtab_end.
then at navigation_tab_complete I empty $tabid for THIS_SCRIPT. This way I can keep all my dynamic navigations. |
A word about using the built in Navigation Manager...
If you use it as built in vB 4.2.0, add navtabs, menus or links and then delete them, the phrases used by those items are left behind in the phrase table. Evidently it was designed to leave unused data in the database... http://tracker.vbulletin.com/browse/VBIV-15177 Unfortunately, for some reason I don't have the option to petition to reopen that bug. |
Hello,
I try to add 3 links in the Quick Links menu, but that doesn't work : Sometimes nothing is shown, sometime only the last link is shown... i don't really why, maybe someone could help me ? Here is the code i'm using (tried to do it from Paul's blog) in build_navigation_array hook PHP Code:
|
You need to add this at the very top:
Code:
global $show; And try the navigation_tab_complete hook instead. |
Quote:
Thank you for your help, But this doesn't work better : I added the global show and change template hook, but nothing happen. I use VBOptimise(?), but i flushed the cache, cleared system cache etc... Nothing works like that :( Anyway, i'm just trying to add this to start, and it doesn't work : PHP Code:
|
All times are GMT. The time now is 05:38 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|