Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-01-2010, 07:48 PM
jdaw jdaw is offline
 
Join Date: Mar 2010
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How To Integrate Website Header with vBulletin!!!

This issue had me running in circles. I am not a coder, so everything was a pain in the wazoo. I thought to lay out the various methods you can use to integrate vBulletin into your website so that it has the same header and/or body. Hopefully this will save someone a little trouble.

If you have Wordpress as your website (CMS), you can call the header and footer with a simple plugin in vBulletin. This isn't as complicated as it sounds.

First you will need to create your plugins. To start, log in to your vBulletin admin and navigate to “Plugins and Products” toward the bottom of the main list. Next, click on “Add New Plugin”.
Now you need to fill in the various fields.
For Product, select “vBulletin”.
For the Hook Location select “global_start”.
For Title simply type something that describes you plugin like Header, or Footer, etc.
Leave the “Execution Order” at 5 or whatever the default value is.
The “Plugin PHP Code” is a little more complicated.
These are two separate plugins.
Code:
// Header
ob_start();
include '../blog/wp-conent/themes/your-theme/includes/header.php';
$wp_header = ob_get_clean();

// Footer
ob_start();
include '../blog/wp-content/themes/your-theme/includes/footer.php';
$wp_footer = ob_get_clean();
The $wp_header and $wp_footer are the commands you will enter in the vBulletin header and footer templates to call the plugin. On the main menu navigate to “Styles and Templates” and click on “Style Manager”. Next, select “Edit Templates” from the drop down menu. Enter $wp_header at the beginning of the header template and $wp_footer at the beginning of the footer template.

You can also try an iframe, however the url in the address bar won't update and probably wouldn't word for bookmarking.
Code:
<iframe src ="path to forum" width="your width" height="your height">
  <p>Your browser does not support iframes.</p>
</iframe>
Things can get pretty complicated. If the iframe isn't sizing properly there are various scripts you can try.
http://www.kaali.co.uk/index.pl?art=94
http://geekswithblogs.net/rashid/arc...13/103518.aspx

There is more to come.
Reply With Quote
  #2  
Old 04-17-2010, 01:16 AM
DJA DJA is offline
 
Join Date: Apr 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is awesome! just what i was looking for. thanks!

keep it coming.

right now i have a different integration plug-in for an earlier version of vbulletin, but since i've upgraded to 3.8.5, things aren't quite right. like you, i'm not a coder - at all. so i'm looking for something that i can just plug in and, voila! it works.

thanks again.
Reply With Quote
  #3  
Old 07-06-2010, 10:38 AM
SusanN SusanN is offline
 
Join Date: Jul 2010
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jdaw View Post
Enter $wp_header at the beginning of the header template and $wp_footer at the beginning of the footer template.
Hello!

I was happy to find this thread. Do you know if this technique will work with version 4? I've tried it, but it's not working for me. I think it may be because I don't understand the above. Certainly I don't just put $wp_header just like that, do I? Should it be wrapped in something?

Here's what I have so far - not quite there. http://tinyurl.com/24noqrz
Reply With Quote
  #4  
Old 07-10-2010, 11:54 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This would be better served if submitted as an article then a thread.
Reply With Quote
  #5  
Old 07-26-2010, 10:30 AM
fpattberg fpattberg is offline
 
Join Date: Jan 2007
Location: UK
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has there been any update on the questions jdaw?

I am also keen to hear how this works for version 4.

Thanks.
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 02:17 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.05232 seconds
  • Memory Usage 2,203KB
  • Queries Executed 13 (?)
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
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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_postinfo_query
  • fetch_postinfo
  • 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