I just finished reading this whole thread but don't see a solution to my problem, so I'll describe it.
I am using this add-on to put a
login form on a Wordpress powered page. I can't get it to show properly when a person is logged in, it just shows the form and treats me as if I am still logged out.
I made a test page and it works, so it's not a subdomain issue.
http://blogfeeds.webtalkforums.com/test.php
I've tried placing the following code at the top of wp-blog-header.php but it causes the blog to not work, it simply displays a "not found" error:
Code:
$curdir = getcwd ();
chdir('/home/myname/public_html');
require_once('/home/myname/public_html/global.php');
chdir ($curdir);
It appears to clash with the code already in wp-blog-header.php, here's the code in it's entirety.
Code:
<?php
$curdir = getcwd ();
chdir('/home/myname/public_html');
require_once('/home/myname/public_html/global.php');
chdir ($curdir);
if (! isset($wp_did_header)):
if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {
if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) $path = '';
else $path = 'wp-admin/';
require_once( dirname(__FILE__) . '/wp-includes/classes.php');
require_once( dirname(__FILE__) . '/wp-includes/functions.php');
require_once( dirname(__FILE__) . '/wp-includes/plugin.php');
wp_die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can <a href='{$path}setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.", "WordPress › Error");
}
$wp_did_header = true;
require_once( dirname(__FILE__) . '/wp-config.php');
wp();
gzip_compression();
require_once(ABSPATH . WPINC . '/template-loader.php');
endif;
?>