I need help with my vb forum header and footer, im trying to call the header and footer of my wordpress site onto my forums so users can navigate to forum and main site easilly if the headers are consistent. So far after reading several threads ive got to the point where ive made a plugin with the hook global_bootstrap_init_start with the code:
but the error im gettin on the forum now is:
Any ideas how I can fix these errors?
Thanks
Code:
ob_start(); require_once('/home/alhussai/public_html/wp- content/themes/Karma/header.php'); $php_include = ob_get_contents(); ob_end_clean(); vB_Template::preRegister('Test',array('php_include' => $php_include));
Code:
[B]Warning[/B][COLOR=#000000][FONT=Times]: require_once(/home/alhussai/public_html/wp- content/themes/Karma/header.php) [[/FONT][/COLOR][URL="http://al-hussain.co.uk/forum/function.require-once"]function.require-once[/URL][COLOR=#000000][FONT=Times]]: failed to open stream: No such file or directory in [/FONT][/COLOR][B][path]/includes/class_bootstrap.php(106) : eval()'d code[/B][COLOR=#000000][FONT=Times] on line [/FONT][/COLOR][B]3[/B] [B]Fatal error: require_once() [[URL="http://al-hussain.co.uk/forum/function.require"]function.require[/URL]]: Failed opening required '/home/alhussai/public_html/wp- content/themes/Karma/header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in[B]/home/alhussai/public_html/forum/includes/class_bootstrap.php(106) : eval()'d code on line [B]3[/B][/B][/B]
Any ideas how I can fix these errors?
Thanks
Comment