Recent Topics

1 Dec 02, 2008 19:03    

My b2evolution Version: 2.4.5

SETUP:
Placed a stub-file in subdomain (renamed it index.php) -- links works fine.

PROBLEM:
When the BLOG button is clicked (in dashboard area) the link works, but the EvoBar-toolbar disappears and I am logged out.

Permissions? URL? please advise

THANK YOU
:(

3 Dec 02, 2008 23:34

sam2kb,

SORRY to say, i am no programmer. Here is what i did, am i incorrect?:

//--if( strpos($basehost, '.') === false )
//{	// localhost or windows machine name:
//	$cookie_domain = '';
//}
//elseif( preg_match( '~^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$~i', $basehost ) )
//{	// Use the basehost as it is:
//	$cookie_domain = $basehost;
//}
//else
//{
//	$cookie_domain = preg_replace( '/^(www\. )? (.+)$/xi', '.$2', $basehost );
//
//	// When hosting multiple domains (not just subdomains) on a single instance of b2evo,
//	// you may want to try this:
//	// $cookie_domain = '.'.$_SERVER['HTTP_HOST'];
//	// or this: -- Have a cookie domain of 2 levels only, base on current basehost.
//	// $cookie_domain = preg_replace( '/^( .* \. )? (.+? \. .+? )$/xi', '.$2', $basehost );
//	// fp> pb with domains like .co.uk !?
//}

$cookie_domain = '.omclinic.com';

---------------END of code sample------------------------------

should i also be setting a "$baseurl " somewhere to something?

THX sam2kb!
8|

4 Dec 03, 2008 00:19

:?: Maybe my URL linking problem would be solved if b2 was installed in the root folder (/public_html/) instead of (/public_html/_b2/) as it is now?

PROBLEMO: i am using "SimpleScripts" to install, and it WARNS it will overwrite existing files and replace index.php. That would be baaaaaad.

GOAL: I want to allow b2 blogs in my subdomains.

:?:'s
1. Do you think a root install would make this easier?
2. Is it possible with overwriting existing files?

Danka!

;)


Form is loading...