SMF Support > SMF 2.0.x Support
Auto change language and groups with script
(1/1)
jordumus:
Hello all,
It was hard to find a good title for the problem, so I'll try to explain it as good as I can:
We got a dutch smf forum and we're planning to expand it with a french part... The way we would like to do it is:
We got a dutch domain: "dutchdomain.be" and french domain "frenchdomain.fr", and we would like it to be that way that both domains redirect to the forum, but depending on from which domain you come, you see the forum in the according language.
If you're logged in as well when being redirected, we'd like the same script to join either the "dutch" or "french" user group and leave the other one, so that the right boards are shown upon entering the site.
First of all: is this possible/realistic and secondly can any of you help us with some example code?
The reason why we use 1 forum is because we want all the members to have access to both parts without having to register again. If it would be easier by sharing 1 database by 2 different forums, then that would be good as well, but we didn't figure out how to do that in a good, secure and easy way.
Thanks for any help!
Greetings
Jordumus
Arantor:
Long story short, trying to share the same forum across domains brings a lot of problems with it, not just technical ones about cookies and the way SMF handles URLs, but the fact that Google's going to penalise both sites for content duplication.
Unless it's done so that you have frenchdomain.fr and dutchdomain.be both point to genericdomain.com where the forum really lives.
Trying to mess with user groups like that is an even worse idea, because that's really not how SMF is designed and it's not going to work properly whatever you do, I think.
The bottom line is that while most of it would be possible, the amount of work required vastly outweighs the benefits you'll get out of doing it.
jordumus:
--- Quote from: Arantor on July 06, 2012, 04:29:18 PM ---Long story short, trying to share the same forum across domains brings a lot of problems with it, not just technical ones about cookies and the way SMF handles URLs, but the fact that Google's going to penalise both sites for content duplication.
Unless it's done so that you have frenchdomain.fr and dutchdomain.be both point to genericdomain.com where the forum really lives.
Trying to mess with user groups like that is an even worse idea, because that's really not how SMF is designed and it's not going to work properly whatever you do, I think.
The bottom line is that while most of it would be possible, the amount of work required vastly outweighs the benefits you'll get out of doing it.
--- End quote ---
Do you have any other suggestion about how we could do this?
Arantor:
Um, not doing it?
I've found that people can generally handle seeing forums for multiple languages in one place and just naturally going to the best place for them...
Navigation
[0] Message Index
Go to full version