Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Multilanguage: CB Login goes to wrong language

  • gvaneijk
  • gvaneijk
  • OFFLINE
  • Posts: 23
  • Thanks: 2
  • Karma: 1
11 years 3 months ago #231523 by gvaneijk
I am running a multilanguage site and I have an issue with the login.

You can login with the CB login module which works fine and I can set different urls there for the different languages aswel, that isn't the problem.

The problem is when a user is going directly to their profile page (or was on their page and left it open so the session has run out) this prompts them with a login form, however when you login here it seems you are always send to the profile page in the default language.

Is there any way to change this?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 3 months ago #231536 by krileon
CB uses whatever language Joomla is using. So for you site to be in Spanish and English you need both a Joomla Spanish and CB Spanish language plugin. Each user can also have a language select using the params field.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • gvaneijk
  • gvaneijk
  • OFFLINE
  • Posts: 23
  • Thanks: 2
  • Karma: 1
11 years 3 months ago #231567 by gvaneijk
Replied by gvaneijk on topic Multilanguage: CB Login goes to wrong language
That's odd. I already have all the languages for both Joomla and CB installed, when I login through the module and end go to the profile page I see it (and everything else) in the correct language.

It's just whenever I go directly to the profile page by manually filling in the URL (without being logged in) or by waiting for the session to expire and refreshing. Then I'm prompted with a login form, when I login there it always sends me to the default language.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 2 months ago #231584 by krileon
Is your entire site in the default language or just CB when this happens? Joomla is responsible for flipping the languages around. CB just loads the language that Joomla tells CB it should load.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • gvaneijk
  • gvaneijk
  • OFFLINE
  • Posts: 23
  • Thanks: 2
  • Karma: 1
11 years 2 months ago #231642 by gvaneijk
Replied by gvaneijk on topic Multilanguage: CB Login goes to wrong language
The entire site goes to the default language.

The strange thing is that it only happens when the user is prompted with a login after going manually to the profile page or when the session has ended.

Is there a difference between that login form and the one from the CB Login module?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 2 months ago #231662 by krileon

The strange thing is that it only happens when the user is prompted with a login after going manually to the profile page or when the session has ended.

I believe this is normal Joomla behavior then. It only uses the users selected language when they're logged in. If you're using a language selector module then I believe you need to have Joomlas language filter system plugin enabled, but it's been known to cause some issues as it rewrites URLs.

Is there a difference between that login form and the one from the CB Login module?

Nope, it actually loads in the first CB Login module it finds so they're exactly the same.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum