The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#71
|
|||
|
|||
Ive just hit a major major snag with my code using
PHP Code:
It appears in global_start it occurs too late in the process and overwrites certain datastore objects (because it requeries all default datastore objects and fetches them as well) causing the time offset to be incorrect. How do you guys currently retrieve datastore objects? Just a query? File edits? |
#72
|
||||
|
||||
File Edits.
If you do it in config.php it will be a one-time edit |
#73
|
|||
|
|||
config.php - interesting.
What does the variable look like? At the moment im happy to introduce a query for this purpose until a proper solution is made. |
#74
|
||||
|
||||
PHP Code:
|
#75
|
||||
|
||||
Here's what I use the Kirby came up with and it works excellently by the way.
Also, you don't need an if THIS_SCRIPT with it doing it this way. It works globablly. I have one for forumdisplay and 2 for forumhome in there and they all work fine. PHP Code:
|
#76
|
|||
|
|||
If you put that into config.php, you will only be able to load datastore objects for every page.
THIS_SCRIPT checks allow you to load datastore objects for a per-page basis. |
#77
|
|||
|
|||
Although this is a nice and simple solution, it does load everything for every page as mentioned. Also i wouldn't be so happy if all hacks where coded this way, it would be a huge config.php loaded on every page.
|
#78
|
||||
|
||||
Honestly, class_core.php is way bigger then config.php would ever get even if every Hack added Items there
But as mentioned, it should be wrapped in if (THIS_SCRIPT == ... ) |
#79
|
||||
|
||||
Quote:
|
#80
|
|||
|
|||
I am using one extra query to load my datastore items.
Just use global_start hook to do a single query which will load the items you need. I am currently happy with one extra light weight query. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|