![]() |
problem using db class in a hook
i have this in the postbit_display_complete hook:
PHP Code:
Quote:
|
Quote:
PHP Code:
PHP Code:
|
thanks, that worked.....could u explain why though?
|
Quote:
Since postbit_display_complete exists in a class, the $vbulletin object must be aggregated to that class. vBulletin programming standards aggregates the vBulletin object to $registry. PHP Code:
PHP Code:
So you access the $vbulletin object inside the class as: PHP Code:
More information: http://us2.php.net/oop |
All times are GMT. The time now is 07:29 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|