The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Howdy,
I'm having a really tough time executing some datamanager code from within the CakePHP framework. I won't bore you with the details and I know this isn't a CakePHP forum. However, I would like to understand why I'm getting the error: Quote:
ANY help would be very very appreciated. It seems that integrating vB with cake is something nobody has a great answer for and I would love to release a true solution for everyone. Thanks! I should note that if I execute the file outside of the framework it works just fine. It is certainly a problem between vB and cake. |
|
#2
|
|||
|
|||
|
No help here? I'm sure someone has run across this attempting to run Datamanager from outside vB.
|
|
#3
|
||||
|
||||
|
You didn't write out the query line, but perhaps $vbulletin wasn't defined as global?
PHP Code:
|
|
#4
|
|||
|
|||
|
It would be much easier to help you if you posted snippets of your code.
|
|
#5
|
|||
|
|||
|
I am also having similar problem while trying to integrate vb with CakePHp.
In cakephp app_controller.php in beforeFilter function, I have written the following to instantiate vbulletin: Code:
$dir = getcwd();
chdir('./forums');
require './global.php';
chdir($dir);
Quote:
Thanks. Sanjeev |
|
#6
|
||||
|
||||
|
I assume you are including global.php in a non-global context (eg. within a function or class method) - this won't work (that easily).
|
|
#7
|
|||
|
|||
|
Thanks Andreas.
Do you have experience in integrating vBulletin with Cakephp application? If so, can you give me hints on integration. Also, I am using ajax based login. Is it possible to authenticate users in vBulletin using AJAX form? Thanks |
|
#8
|
|||
|
|||
|
Quote:
Please help, it's rather urgent... I try to create a Magento-vBulletin-SingleSignOn-Plugin. |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|