The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Heder as Plugin problem
Hi there,
I'm trying to integrate my site header to my vBulletin 3.6.8 forum. My site header includes some php echoes + a site search form on the top. That's why i made a Plugin that includes the header_site.php (placed in the same folder as the forum files) and than I call this plugin in the header of my template using $myphpheader. This is my Plugin code with Hook - global_start: Code:
ob_start(); include('forum_menu.php'); $myphpheader = ob_get_contents(); ob_end_clean(); Code:
<div id="maincontainer"> $myphpheader </div> Fatal error: Call to undefined function: user_nr() in /home/xenyo/public_html/development/new/forum/forum_menu.php on line 52 Ok. I understand this is because the functions of my main site are not included but even if I include them at the top of the php page...: PHP Code:
Fatal error: Call to a member function on a non-object in /home/xenyo/public_html/development/new/forum/index.php on line 394 Do you have any idea why this is happening? And if this is the best way to make your site header appear at top of the forum... Thanks in advance for any help... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|