The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Accessing $vbulletin on a page called via AJAX
Hello,
I want to add some ajax functionality to the UI that calls a custom php script and accesses $vbulletin and data managers to do different things depending on which button a user pushes from the UI. The problem I'm having is that $vbulletin and other vBulletin related variables are not in scope on the php page the AJAX request hits, even when I include global.php on it. Can anyone tell me what I would have to do to give php pages accessed via AJAX requests access to $vbulletin, etc.? For starters, I would like the file, say myAjaxCalls.php, to do something as simple as this when the JavaScript hits it via AJAX and displays what the PHP page outputs: PHP Code:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|