1

(8 replies, posted in PunBB 1.3 troubleshooting)

The best way is to check it when creating config cache, I think.

2

(8 replies, posted in PunBB 1.3 troubleshooting)

Second part of the solution: Where exactly I should put this piece of code, when I want to have it as and extension? Not manually modifying files?

3

(8 replies, posted in PunBB 1.3 troubleshooting)

Just thinking, if this would not destroy the protection. But it would not, cause it will still check, if refer is the same as http_host, so it should work as protection, shouldn't it?

No problem with cookies, cause user usually use only one of the domains.

And if I set $lang, it will change default language? Or it destroys what had user chosen in his or her profile?

4

(1 replies, posted in PunBB 1.3 bug reports)

Hi, this should be underlined, shouldn't it?

Workaround by adminfl:

.bbuline {
    text-decoration: underline;
    font-style: normal; /* don't be italics */
}

5

(8 replies, posted in PunBB 1.3 troubleshooting)

You mean setting base URL not from the DB, but from the URL?
And the same with language?

I think I am able to write it this way to code of PunBB, but I'm not sure, if I can make a extension. If you can, I would be beholden to you wink

Lets put .cz as a config option and Czech as default language.

Then:

if ($_SERVER['HTTP_HOST'] == "neverhood.etomite.sk") {
  $base_url = 'http://neverhood.etomite.sk/online';
  $dont_know_what = 'Slovak';
}

Is that like that easy?

6

(8 replies, posted in PunBB 1.3 troubleshooting)

Hi. We have the same forum on two domains:
http://neverhood.etomite.cz/online/ and http://neverhood.etomite.sk/online/

One domain is mirroring the other one. Our users from Slovakia usually use the .sk address, users from Czech rep. the .cz address. Actually it is no problem using other variant, but the link to our website in the top (Web - linking ../) should go to right variant, cause the language of the content is set via .cz or .sk in URL.

In 1.2.x it is easy to use, users can use both variant and sometimes there are problems with administration using the domain that is not set in Config - it gives refer error (protection of sending form from other domain). That I can change in some files by disabling this protection or put one OR to the IF.
In 1.2.x easy workaround, no prob.

In 1.3 it redirects to "right" domain while loging in/out (as phpBB 2.0.x used to do).

The question is: How can I run one forum or two domains without problems?

BTW if there is a way to set guest language based on domain name, it'll be great.