The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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:
??????????????? |
#2
|
||||
|
||||
Hello,
I am fairly new to this, so I may be wrong, but wouldn't that be: Code:
$specialtemplates = array( 'milad', ); Code:
$specialtemplates = array( 'milad', 'another', 'another1', ); |
#3
|
||||
|
||||
You can't load datastore items through Plugins, as the Plugin-System is initialized after datastore items are loaded.
|
#4
|
||||
|
||||
Why can't you just use $vbulletin->datastore->fetch() then ?
|
#5
|
||||
|
||||
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. |
#6
|
|||
|
|||
Quote:
http://www.vbulletin.com/forum/bugs3...iew&bugid=1390 |
#7
|
||||
|
||||
Yes I read it, so I avoid it and use a single query.
|
#8
|
||||
|
||||
Quote:
|
#9
|
|||
|
|||
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. |
#10
|
||||
|
||||
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? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|