Quote:
Originally Posted by moonray
I am not much of a coder at all, and hence need your help big time.
I want to call a simple php file to be placed just under the navbar. So, I created a plugin:
Product: vBulletin
Title: Insert Simple PHP
Execution order: 5 (it was default)
Hook Location: global_start
PHP code:
Code:
ob_start();
include('simple.php');
$insert_simple_php = ob_get_contents();
ob_end_clean();
Plugin is active: Yes
Now, I went to the NAVBAR template and inserted
Code:
{vb:raw insert_simple_php}
just under the code
Code:
{vb:raw ad_location.global_below_navbar}
Questions:
* Where does the 'register/pre-register' come?
* What is the exact change I need to make here?
Thanks for your help!
|
Try this in the plugin:
PHP Code:
ob_start();
include('simple.php');
$templatevalues['insert_simple_php'] = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('navbar', $templatevalues);