Getting a function To Work For Vb
hello,
I’m trying to add this in plug both for header and footer.What I’m trying to do is incorporate the wordpress skin with vb.It worked on my local server but going live its not working
example for header
ob_start();
include(‘../path/to/wp-load.php’);
include(‘../blog/wp-content/themes/sandbox/header.php’);
$wp_header = ob_get_contents();
ob_end_clean();
then in header template at very top i would add
$wp_header
then example for footer plugin
ob_start();
include(‘../blog/wp-content/themes/sandbox/footer.php’);
$wp_footer = ob_get_contents();
ob_end_clean();
the in footer template i will add this to the very end
$wp_footer
going live i get this error
Warning: include(xxxxxxx/htdocs/xxxx/forums/wp/themes/OneTheme/header.php) [function.include]: failed to open stream: No such file or directory in [path]global.php(400) : eval()’d code on line 3
Warning: include(xxxxxx/htdocs/xxx/forums/wp/themes/OneTheme/header.php) [function.include]: failed to open stream: No such file or directory in [path]global.php(400) : eval()’d code on line 3
Warning: include() [function.include]: Failed opening ‘xxxx/htdocs/xxx/forums/wp/themes/OneTheme/header.php’ for inclusion (include_path=’.;D:wwwserverPHP5PEAR’) in [path]global.php(400) : eval()’d code on line 3
thank you
