The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#5
|
|||
|
|||
![]() Quote:
in the example you referenced there is a variable $vbulletin which is passed as a parameter to the datamanager_init function. How is that variable created? Also wondering which php files I need to require for datamanager_init to work. PHP Code:
Quote:
--------------- Added [DATE]1213524531[/DATE] at [TIME]1213524531[/TIME] --------------- PHP Code:
Quote:
I am guessing that maybe I don't need it because in the sample code it is only used to fetch an id - but in my case I will be passing that as a separate param: PHP Code:
--------------- Added [DATE]1213525869[/DATE] at [TIME]1213525869[/TIME] --------------- OK, small question: where does the function datamanager_init live? This seems to be the key to it all. it would be nice if there was a working sample that showed what needs to be in the required path etc.. --------------- Added [DATE]1213526137[/DATE] at [TIME]1213526137[/TIME] --------------- OK I found it in functions.php so i guess I need to start with something like: PHP Code:
In the comments for datamanager_init we see: PHP Code:
--------------- Added [DATE]1213527347[/DATE] at [TIME]1213527347[/TIME] --------------- OK, looks like I need something like the following: PHP Code:
OK, I have no confirmed that the above DOES NOT WORK. Can anyone tell me what is wrong with the code or should I just give up? --------------- Added [DATE]1213531637[/DATE] at [TIME]1213531637[/TIME] --------------- The following is tested and WORKS: PHP Code:
NOTE: The file needs to be placed at the root level of your vbulletin installation. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|