The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to make $vbulletin->wol_spiders available?
How do I make $vbulletin->wol_spiders available for a plug-in that uses the global_start hook?
|
#2
|
||||
|
||||
You have to add "wol_spiders" to the list of special templates. AFAIK, This requires a fie edit.
|
#3
|
|||
|
|||
I think you can do a plugin, I'm not sure what hook, maybe "cache_templates"?
PHP Code:
|
#4
|
||||
|
||||
I'm pretty sure they are built before any hooks exist, you have to add that line to the bottom of config.php.
|
#5
|
|||
|
|||
I found this in global.php
PHP Code:
|
#6
|
||||
|
||||
The problem is I have a plug-in that runs from global_start. I find that wol_spiders doesn't exist at that point... I found some code from online.php that builds wol_spiders if it's not there, but I don't think that running that on every page load would be a good idea.
Any ideas? |
#7
|
||||
|
||||
Anybody?
|
#8
|
||||
|
||||
Datastore Items can't be loaded via Plugins, as Plugins themselves are loaded from the datastore.
You'll have to edit the file, or, alternatively to save you from having to apply the change on every update: edit config.php. |
#9
|
||||
|
||||
Thanks for the quick response.
Quote:
If I were to put my script in a file and then include that in the plug-in code, would that get around this limitation? I suppose not... Quote:
Quote:
|
#10
|
||||
|
||||
Quote:
Quote:
For a hook in global.php it would be ... guess it ... global.php |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|