Yeah, clearing the browser cache should fix it...how to fix it for your users? Without having tried it, it might work to simply end all sessions by clearing the phpBB sessions table, but no warranty. In case you try it out, please give me some feedack about success!? ThanksSon of a Beach wrote:hmmm... OK, clearing the browser cookies seems to have fixed it. Is there anything I can do to avoid this happening to the hundreds of members at my site who would suddenly not be able to log in at all, if this happens when I install it on the production system?
Well, you guys are going to hate how I did this (all those hard coded values! yikes!), but this works fine for me for now, to achieve a different logo depending on the URL.Son of a Beach wrote:OK, one more question (for now ;-) )...
My site logo includes the site URL in it, so I need two logos (one for each URL). What is the best way to display a different logo depending on the domain? I don't want a completely different style, just the logo. Is this possible?
Code: Select all
// Set site logo by URL host
if ( strpos($_SERVER['HTTP_HOST'], "site1") )
{
$site_logo_img = '<img src="/images/logo_site1.png" width="5
54" height="100" alt="" title="" />';
}
else if ( strpos($_SERVER['HTTP_HOST'], "site2") )
{
$site_logo_img = '<img src="/images/logo_site2.png" width="5
54" height="100" alt="" title="" />';
}
...
...
...
// 'SITE_LOGO_IMG' => $user->img('site_logo'),
'SITE_LOGO_IMG' => $site_logo_img,
Code: Select all
"S_SITE_LOGO" => "logo_site1.png",
Code: Select all
<img src="/images/{S_SITE_LOGO}" alt="" title="" />;
Code: Select all
myaccount directory
/mysite.com
index.htm
/includes
script.php
/forum.mysite.com
index.htm
/path
/to
/styles
overall_header.htm
Sorry, but I can't tell...this sounds like a *very* customized setup. You might need to try it out, but right upfront...support won't be able as the setup seems to be unique to your very own server.network23 wrote:Please let me know if your mod might solve my problem.
...
Would this mod make all this possible?
Yes, right next to the settings you do per domain...simply an additional field for template vars. If it's not there, then it's yet only on my development server. You might need to wait a little bit though for the next release - and validation over here at phpbb.comSon of a Beach wrote:Will this be in the ACP GUI (where you set the cookie domain, etc)?
No, this is not a default feature.repman wrote:...every domain can have his own style. for that this mod seems to be the right.
No, this neither is an implemented feature - why to have combined forums? You wanna separate everything - you should use separate datebases / forum installations.repman wrote:...every domain have his own standard usergroup for new users?
...
or is there an other way that every domain has its own forums so that the users from domain 1 didnt see the forums from domain 2?
think it is a good way to have one core installation. so i must install all (eg. forum updates, mods) only one time. and phpbb3 comes up with a very complex rights management so it seems easy to handle this with groups.th23 wrote:why to have combined forums? You wanna separate everything - you should use separate datebases / forum installations.