The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vbulletin object initialization
Ok here's the delima. I'm not that experienced with vbulletin but have been able to do some decent modifications. But what i'm trying to do now is initialize the vbulletin object outside of vbulletin. I've added vbulletin to my drupal installation. But now i'd like to initialize the vbulletin object actually in drupal so that i can utilize some functionality in vbulletin in drupal. Such as the signature editor and functions like that. Also this would help push the integration of the two even deeper.
I've tried including the global.php file with no success. I was getting errors since the path was incorrect. I've added a snipit of code to handle that, PHP Code:
PHP Code:
Thanks --------------- Added [DATE]1252009950[/DATE] at [TIME]1252009950[/TIME] --------------- I've went through and it seems like the db object is the culprit. but i'm not sure why it's not initializing. Any help on this would be great. |
#2
|
||||
|
||||
That error is most likely caused by initialising the core inside a function. You cannot do that (with the current incarnation of vBulletin).
|
#3
|
|||
|
|||
Thanks, i believe you where correct. the file i was adding it to was indeed being included via a function. So changing that to a different file corrected the issue. You rock!
|
#4
|
||||
|
||||
Also great thanks from me I just had same issue - solved
|
#5
|
||||
|
||||
Note - you can init vBulletin inside a function, but you need to set quite a few variables global in order for this to work. Not recommended... lol
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|