Wordpress header in vbulletin forum

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hqlman
    Member
    • Aug 2008
    • 39

    [Forum] Wordpress header in vbulletin forum

    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:

    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));
    but the error im gettin on the forum now is:

    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
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24286
    • 6.0.X

    #2
    You would need to ask this at vbulletin.org, the modifications site. Modified code cannot be supported here.

    Sent from my iPhone using Forum Runner
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...