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
Views: 24
the path is correct when i set it up..
the error is simple to correct. at the begining of your process, you set it that way:
[php]
ob_start();
chdir(‘../blog/’);
# here you put everything
chdir(DIR);
ob_end_clean();[/php]
what this will do is redirect all script activity to your blog level, and then you come back to your origin *(DIR is a defined variable)
@nexia 22821 wrote:
man having a hard time with this..I’m gonna take a break and start over..thanks nexia
ok i went back and tackled it. i used yours but i couldn’t get it to work right. so i reverted back to my previous
that’s for the header now i later found out that one of the wordpress plugin was causing a conflict so i removed every single plugin till i get this right.Now everything is working well using that code.But now i’m stumped because now i can’t make any post. The error i’m getting is
I’m willing to donate a few dollars if you can get this sorted. thanks
i will not be able to sort it out actually, your code is making vBulletin nervous, as WordPress is parsing any $_REQUEST and delete them afterward, making any page load without any information…
vBulletin is not made to be “integrated” for templates, even 4.0 will not be, even if they promised a bridge. You can not clearly integrate vBulletin inside a header/footer because the engine can only do the opposite, integrate a tool inside vBulletin. it’s done on purpose.
btw, your best shot would be to replicate your header/footer in html and insert them directly in the header/footer templates of vBulletin.
@nexia 22827 wrote:
thanks nexia i understand.I tried and did your method and i thought it will be complicated but it tuned out to be ok with a little tweaking ..I’m good now.
Oh by the way that was not my code i happen to find it here http://depressedprogrammer.wordpress.com/2009/07/06/integrating-vbulletin-with-a-wordpress-theme/
[/CODE] and decided to try it..
pb[CODE]http://depressedprogrammer.wordpress.com/2009/07/06/integrating-vbulletin-with-a-wordpress-theme/
[/CODE] and decided to try it..
pb
yeah, i was aware of the source, and as i work with WordPress for ages, i knew what was the problem… 🙂
it’s always a try/burn test… lol
@nexia 22833 wrote:
lol..yea after i found out that one of the wordpress plugin was causing a minor error using the above codes.I then deactivated it. So i used your code.Everything was nice the board was perfectly placed the way i wanted.But i couldn’t post..I hope someone can get it to work.Using that code, it kinda uniformed the forum perfect.