PDA

View Full Version : include external file


sysdevil
12-10-2012, 08:25 AM
Hello,

Any suggestion which hook location I need to use for execute custom php script after board completely loaded.
Need to use functions like $vbulletin->userinfo['usergroupid'];
Its ok global_start like described here https://www.vbulletin.com/docs/html/main/templates_externalfiles?

kh99
12-10-2012, 12:38 PM
Technically global_start is deprecated (you should avoid using it), and you should use global_bootstrap_init_start or global_bootstrap_complete. But seeing as development has shifted to vb5, it seems unlikely at this point that it would actually be removed, so I think it's safe to use global_start. (Or maybe another way to look at it is that the entire hook system was removed from vb5, so it doesn't matter).