The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
![]()
Hi Xia,
(Hope is not too late.. well, it will serve someone else if it's too late for you ![]() Here's the code to get an instance of vbulletins' registry object (a.k.a $vbulletin). I've placed toghether a couple pieces from various threads here in vb.org (including some of them from this same one, and from https://vborg.vbsupport.ru/showthread.php?t=112388) You can place the function as a method in your class and call it statically like: PHP Code:
![]() I've successfully tested this and used a datamanager, and it worked perfectly (created thread and post correctly :-D) This follows a singleton pattern, so you'll never overwrite the instance, even if the instance was created by vB itself. PHP Code:
Markus |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|