Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-27-2010, 03:40 AM
jacksony jacksony is offline
 
Join Date: Dec 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default wordpress theme header for vbulletin 4 header and footer template

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!!
Reply With Quote
  #2  
Old 03-05-2010, 04:36 AM
kpmedia's Avatar
kpmedia kpmedia is offline
 
Join Date: Jan 2008
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 03-06-2010, 01:05 PM
jacksony jacksony is offline
 
Join Date: Dec 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmmm.. such a important feature yet so hard to be done? Any advice from vBulletin?
Reply With Quote
  #4  
Old 03-09-2010, 12:15 PM
Drake Splinter Drake Splinter is offline
 
Join Date: Mar 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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/
Reply With Quote
  #5  
Old 03-19-2010, 11:36 AM
aVirulence aVirulence is offline
 
Join Date: Sep 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kpmedia View Post
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:
PHP Code:
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?
Reply With Quote
  #6  
Old 03-22-2010, 09:32 AM
aVirulence aVirulence is offline
 
Join Date: Sep 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 11-17-2010, 05:15 PM
darsalles darsalles is offline
 
Join Date: Oct 2009
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 04-19-2011, 08:13 PM
doc fluty doc fluty is offline
 
Join Date: Aug 2010
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

updates on this?

I could really use this on bootcamp4me.com
Reply With Quote
  #9  
Old 04-27-2012, 10:22 PM
AddwireCom AddwireCom is offline
 
Join Date: Mar 2011
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still nothing eh? bullcrap...
Reply With Quote
  #10  
Old 04-28-2012, 12:04 PM
AlpineZone AlpineZone is offline
 
Join Date: Feb 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:49 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04335 seconds
  • Memory Usage 2,245KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete