Jump to content

PHP help needed(kinda long)


carnold

Recommended Posts

OK, i am trying to integrate a vanilla forum into my existing website theme (i use wordpress). So, i open the vanilla head.php file and try to insert < ? php require('../wp-blog-header.php'); ? > inbetween the < head > tags. When i do, i get this error:
Parse error: parse error in /srv/www/htdocs/forum/themes/head.php on line 12
When i change < ? php require('../wp-blog-header.php'); ? > to require('../wp-blog-header.php'); i get this error:
Fatal error: Call to a member function on a non-object in /srv/www/htdocs/wp-includes/cache.php on line 206

Example of what i am trying to achieve: www.mytimewithgod.net/xdforum. This has the forum in the "content" area with a right and left sidebar and header and footer. This is exactly how i want the new vanilla forum to look (in the "content" area with sidebars and header and footer). Example of the vanilla forum now, www.mytimewithgod.net/forum. By putting in require('../wp-blog-header.php'); in the vanilla head.php file, you tell vanilla about wordpress functions and what-not. Can any PHP guru help? Thanks in advance
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.