PDA

View Full Version : Including Wordpress Header


hbalagh1
03-21-2009, 04:18 AM
Ok so i have created a plugin using global_start as the hook location

this is the code in the plugin

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?