The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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:
|
#2
|
|||
|
|||
I'm not 100% certain, but try global_bootstrap_init_start.
|
#3
|
||||
|
||||
I've already tried all global hook
|
#4
|
|||
|
|||
It turns out global_bootstrap_init_start was too early, but it seems to work for me using global_bootstrap_init_complete.
|
#5
|
||||
|
||||
I will re-try but are sure that you try this?
PHP Code:
|
#6
|
|||
|
|||
Yes, I tried your code:
PHP Code:
and then in the html I got this: Code:
var RELPATH = ""; var PATHS = {forum : ""} // --> </script> <script type="text/javascript" src="http://10.0.0.4/forum4/clientscript/vbulletin-core.js?v=415"></script> test <link rel="alternate" type="application/rss+xml" title="Forums 4.1.5 RSS Feed" href="http://10.0.0.4/forum4/external.php?type=RSS2" /> 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. |
#7
|
||||
|
||||
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:
|
#8
|
|||
|
|||
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. |
#9
|
||||
|
||||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|