The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
including class files inside of hooks for extra functionality
I have been trying to add a custom made php class file inside a hook but it keeps on messing up the entire page by resulting in a completely blank page with no content at all.
From trial and error the problem seems to be with the include of a class not the content, so I am curious to know if there is proper method of achieving the same result. example of include line added: class_exists('myclass') || require_once('custom_includes/myclass.php'); What I need to be able to do is include the class and create an instance of it to be able to access the functionality within the class. example: $mClass = new myclass(); But unfortunately I cannot get passed the including of the class into any hook through the admin tools or by including it directly into the vbulletin php files. Any and all attempts keep resulting in a completely blank white page with no content at all. I would appreciate anyone shedding some light on this matter so I can put it behind me and move forward with my additions. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|