vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Style and Graphics Requests (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=226)
-   -   vBulletin 4 Request - (paid/unpaid) Wordpress Header and Footer (https://vborg.vbsupport.ru/showthread.php?t=323587)

edwinrcollins 10-06-2016 09:56 AM

vBulletin 4 Request - (paid/unpaid) Wordpress Header and Footer
 
I am looking for someone that can assist in getting my forum to look like my wordpress. I would like it to be dynamic but can live with static.

website is www.thedailynole.com


I found this on the interwebs and it kinda worked but it broke more than it fixed. Some how it broke the time on my forum and the font and alignment of the forum.

Quote:

Step 1:

Create a WP Header Plugin:

Hook Location: global_start Title: WP Header Execution Order: 5 (or default)

Code:

ob_start();
include('../wp-load.php');
include('../wp-content/themes/rt_iridium_wp/header2.php');
$globalWPHeader= ob_get_contents();
ob_end_clean();

$preRegister['globalWPHeader'] = $globalWPHeader;
vB_Template::preRegister('header', $preRegister);

explaination: include ‘../htdocs/wp-load.php’; This line is looking for your ‘wp-load.php’ file so change the location according to your setup. include(‘../htdocs/wp-content/themes/gazette/header.php’); Finds your ‘header.php’ file, change location accordingly. $wp_header = ob_get_contents();

Assigns the ‘header.php’ content to the variable $wp_header

Edit the header Template:

Style Manager-Edit Templates-header:

I’m sure you’re header template will look a little different from mine but this is were you include $wp_header plugin which will insert your wordpress header into your vBulletin forum.

Code:

{vb:raw $globalWPHeader}
Add this line in header of template of the vbulletin via admincp.


All times are GMT. The time now is 01:12 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00904 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete