![]() |
Get $specialtemplates via plugins?
Hi I'm coding a hack that appears in everypage and using datastore table.
I cann't get the serialized data via plugins. it doesn't seem to be any chance to merge two $specialtemplates arrays what do you know about that? have you any idea? I have one that to modify global.php and add: PHP Code:
??????????????? |
Hello,
I am fairly new to this, so I may be wrong, but wouldn't that be: Code:
$specialtemplates = array( Code:
$specialtemplates = array( |
You can't load datastore items through Plugins, as the Plugin-System is initialized after datastore items are loaded.
|
Why can't you just use $vbulletin->datastore->fetch() then ?
|
I had been forced to use a single query, but really I'm not happy with this.
Thank you All Dear Andreas I'll ask in vb.com to get Plugin-System initialized before datastore items are loaded. |
Quote:
http://www.vbulletin.com/forum/bugs3...iew&bugid=1390 |
Yes I read it, so I avoid it and use a single query.
|
Quote:
|
I tried using it in global_start, it failed miserably.
Might work in init_start, but be aware the fetch() function will re-fetch certain items no matter what happens. |
I can merge the new item with the old ones and re-fetch, I think it won't do any harm.
what do you think? |
I had far too many problems when using fetch() - its easier to write your own function to get datastore items until Jelsoft come up with a solution.
|
All times are GMT. The time now is 12:15 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:
|