| 02-23-2012, 04:25 PM | #1 |
|
Administrator
Join Date: Jul 2010
Posts: 401
Rep Power: 10
|
Including global.php in a function
It is not easy including vbulletins global.php file inside a function or method. I have tinkered around with it a bit and found some ways to do it:
PHP Code:
Now there are two ways around this. First, you could create a plugin at the init_startup hook with these contents: PHP Code:
Then your function can look like this: PHP Code:
Make this the first line in global.php copy (after the <?php): PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
|
|
Reply With Quote |
| Reply |
| Tags |
vbulletin code
,
vbulletin other
,
|
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Convert WP Authors function give me error | wacnstac | vBulletin Wordpress Bridge | 3 | 09-26-2011 10:08 AM |
| Warning: call_user_func_array() [function.call-user-func-array] | MrBoombastic | vBulletin Wordpress Bridge | 3 | 06-06-2011 07:11 AM |