vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Including Wordpress Header (https://vborg.vbsupport.ru/showthread.php?t=208981)

hbalagh1 03-21-2009 04:18 AM

Including Wordpress Header
 
Ok so i have created a plugin using global_start as the hook location

this is the code in the plugin

PHP Code:

ob_start();
  include(
'wphead.php');
  
$wphead ob_get_contents();
  
ob_end_clean(); 

the wphead.php then includes the wp-blog-header.php for some reason i can't seem to get it to work w/o doing it that way, anyhow....

it works great and all with the exception that extra characters get thrown into the post that are created such as "test" gets changed to \"test\" or anything with " or a ' also the shoutbox that is installed on the forum just simply stops working and says loading any idea...

using the most recent copies of wordpress and vbulletin

Blackhat 03-21-2009 08:56 PM

this sounds interesting. Do you have a website I can see how it looks ?

hbalagh1 03-22-2009 09:38 PM

well i dont have it enabled right now because of the issues it causes... but it does look good IMO

Gusher 05-08-2009 04:51 PM

Any progress/update on this?


All times are GMT. The time now is 01:00 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.00941 seconds
  • Memory Usage 1,710KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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