![]() |
Vbcms global_start
Hi i need to load a plugin everywhere in the forum and in the CMS
Right now i used global_start as hook but don't work in the cms What's the right hook? This is the code that would be work PHP Code:
|
I'm not 100% certain, but try global_bootstrap_init_start.
|
I've already tried all global hook
|
It turns out global_bootstrap_init_start was too early, but it seems to work for me using global_bootstrap_init_complete.
|
I will re-try but are sure that you try this?
PHP Code:
|
Yes, I tried your code:
PHP Code:
and then in the html I got this: Code:
var RELPATH = ""; But it did seem like the first time I did it it didn't work, so maybe there's some caching going on or something. |
You're rigth man this code work very well
PHP Code:
--------------- Added [DATE]1316007000[/DATE] at [TIME]1316007000[/TIME] --------------- Yes confirm that the conditionals doesn't work here there is my code PHP Code:
|
Probably that's it. That hook if called from a function, so you need a global statement for any globals that you use (except the common ones like $vbulletin, $template_hook, $show, etc).
Edit: Sorry, I hadn't read your second post before I wrote that - it doesn't look like it needs any more global statements. |
FOUND! if ($show['guest']) doesn't work in cms i will try "is membe of"
--------------- Added [DATE]1316007455[/DATE] at [TIME]1316007455[/TIME] --------------- "is member of 1" is the only solution i hope that this can help other people with this problem THANKS FOR THE HELP :) |
All times are GMT. The time now is 09:40 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|