PDA

View Full Version : wordpress theme header for vbulletin 4 header and footer template


jacksony
02-27-2010, 03:40 AM
Hi,

I have tried lots of ways to add header and footer which includes php code into the header and footer theme of vbulletin 4 but to no avail.

As I understand the style/template in vbulletin does not allow php codes, I have put these header php code into a seperate file as below:

"ob_start();
include('path/to/this/file/wordpress_header.php');
$wordpress_header = ob_get_contents();
ob_end_clean();"

And in the header template of vbulletins, I have added the following before all the code:
{vb:raw wordpress_header}

However, when i view the forum, it is not showing any header at all. Can someone advised me on the wordpress theme and vbulletin integration?

Thank you so much!!

kpmedia
03-05-2010, 04:36 AM
It can't be done. So many problems pop up trying to merge vb+WP
Follow what I did at https://vborg.vbsupport.ru/showthread.php?t=222261

jacksony
03-06-2010, 01:05 PM
hmmm.. such a important feature yet so hard to be done? :( Any advice from vBulletin?

Drake Splinter
03-09-2010, 12:15 PM
This site seemed to have integrated the header and footer beautifully without any visible flaws. Maybe you can contact their administrator and see if they will help you:

http://www.zeldauniverse.net/

aVirulence
03-19-2010, 11:36 AM
It can't be done. So many problems pop up trying to merge vb+WP
Follow what I did at https://vborg.vbsupport.ru/showthread.php?t=222261

This actually worked perfectly with older vBulletin version (after some changes). What changed so it's not longer possible to have a plug-in display data in this way?

I tried using a simpler plug-in that just contained: ob_start();
include('../wp-load.php');
include('../wp-content/themes/mytheme/header.php');
$wp_header = "Bla";
ob_end_clean();

But that didn't show anything either...

Any ideas on this?

aVirulence
03-22-2010, 09:32 AM
I found out that a part of the header.php (mainly includes) is actually included. That raises a couple of questions:

1) Is the output of ob_get_contents() limited to a certain number of characters?
2) Are we using the right hook?

I hope someone can help me out with this.

darsalles
11-17-2010, 05:15 PM
Im looking for this too, some one knows about it? I already see this modification on other sites so must be some way to have it done :(

doc fluty
04-19-2011, 08:13 PM
updates on this?

I could really use this on bootcamp4me.com

AddwireCom
04-27-2012, 10:22 PM
Still nothing eh? bullcrap...

AlpineZone
04-28-2012, 12:04 PM
I'm in the middle of a redesign on my site. THe content side is all going to wordpress. I am basically theming Vbulletin to match the new Wordpress site. The downside, I need to update menus / headers / footers in both areas when i make changes.