Quote:
Originally Posted by moonray
FINAL WORKING CODE:
Product: vBulletin
Title: Insert Simple PHP
Execution order: 5
Hook Location: global_start
PHP code:
Code:
ob_start();
include('simple.php');
$simple_php = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('navbar',array('simple_php' => $simple_php));
Plugin is active: Yes
Now, go to the NAVBAR template and insert
Code:
{vb:raw insert_simple_php}
just under the code
Code:
{vb:raw ad_location.global_below_navbar}
|
Im trying to use this code to include a php file in my custom page this is what im using
Code:
ob_start();
include('../www/gearstore/jdmgear.php');
$templatevalues['insert_simple_php'] = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('JDMGEAR', $templatevalues);
In my template i have
Code:
{vb:raw insert_simple_php}
It seems it wants to work but im just getting a gray box as such.
actual page
http://nycjdm.com/jdmgear.php any ideas?
--------------- Added [DATE]1313595423[/DATE] at [TIME]1313595423[/TIME] ---------------
Quote:
Originally Posted by demo7up@gmail.c
Im trying to use this code to include a php file in my custom page this is what im using
Code:
ob_start();
include('../www/gearstore/index.php');
$templatevalues['insert_simple_php'] = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('JDMGEAR', $templatevalues);
In my template i have
Code:
{vb:raw insert_simple_php}
It seems it wants to work but im just getting a gray box as such.
actual page http://nycjdm.com/jdmgear.php any ideas?
|
i figured it out, it was the action script in the swf.. i changed some paths and it is now working ..
I have everything working now i just need to figure out how to intergrate it's login with vb4 if anyone could point me in the right direction that would be great.