Log in

View Full Version : Hook for require_once in global.php


Macindy
08-26-2007, 10:02 PM
Hi forum!

I want to integrate realchat in vbulletin.

In the howto the following is mentioned:

4. Edit the vBulletin file global.php, as described below:

Find the following line:
require_once(CWD . '/includes/init.php');

Add the following line right below:
require_once(CWD . '/realchat.php');

Can I realize this with a plugin/hook?
How can I do this?

Kirk Y
08-26-2007, 11:03 PM
Try the global_start hook.

Paul M
08-27-2007, 10:13 AM
Personally I would use the init_startup hook.

Andreas
08-27-2007, 10:57 AM
init_startup is always being called - not only for frontend scripts.
one should keep that in mind.

El_Muerte
08-29-2007, 07:15 AM
then add a check for the VB_AREA == 'Forum'