Auto check for Registered user ?

How to support more than one language on your site.

Moderator: General Support Moderators

Locked
wildgeeza
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Fri Jul 31, 2009 8:18 am

Auto check for Registered user ?

Post by wildgeeza » Fri Jul 31, 2009 8:24 am

Hi,

I've read many threads that try to fix the auto language recognition of JoomFish in relation to the URL, but I'm wanting to link the language based on a registered user. Has anyone done this?

I.e. Say you have 2 REGISERED USERS, one with the EN front-end language, another with say the DE front-end language. (As set in the back-end User Manager - Front-end Languge tab)

Everything I've tried seems to default to English for the German registered user.

Any ideas?

Thanks for any help in advance!
-Stu

User avatar
akede
Joomla! Ace
Joomla! Ace
Posts: 1636
Joined: Fri Aug 12, 2005 6:15 am
Location: Munich, Germany
Contact:

Re: Auto check for Registered user ?

Post by akede » Fri Jul 31, 2009 12:34 pm

Hi,

I see what you mean. I found a bug in the module which is adding a cookie anytime you switch languages even this is deactivated in the router. I will see that I can remove this bug soon.

Some additional questions:
What should happen if the German user decides he wants to see the website in English?

Especially what do you expect if he close the browser and returns to your site?

Alex
Joom!Fish 2.0 your free multilingual solution for Joomla! 1.5 i - http://www.joomfish.net - follow us on twitter @joomfish
Meet us at J and Beyond, 30.05 - 1.06.10, Wiesbaden, Germany - http://jandbeyond.org

User avatar
akede
Joomla! Ace
Joomla! Ace
Posts: 1636
Joined: Fri Aug 12, 2005 6:15 am
Location: Munich, Germany
Contact:

Re: Auto check for Registered user ?

Post by akede » Fri Jul 31, 2009 1:00 pm

Little correction.

If you switch out the cookies in the JFRouter as well, then the you get the behavior you like to get - I assume.

a) If you enter your site fresh (new opened browser) you will see the default language of the site
b) when you switch between the languages, you will stay in the new selected language
c) when you logon with a user you inherit the language of this user (which is switched)
d) you stay in this language for the user until he changes the language or logs out

Am I right, that this is what you want?

If so:
JFRouter configuration
- switch off: language determination & cookies

don't forget to remove your cookies from the browser for testing

Alex
Joom!Fish 2.0 your free multilingual solution for Joomla! 1.5 i - http://www.joomfish.net - follow us on twitter @joomfish
Meet us at J and Beyond, 30.05 - 1.06.10, Wiesbaden, Germany - http://jandbeyond.org

wildgeeza
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Fri Jul 31, 2009 8:18 am

Re: Auto check for Registered user ?

Post by wildgeeza » Fri Jul 31, 2009 1:21 pm

Hi Alex,

Yup, your last post was exactly how I'd like the site to react. I'm not too worried about the initial entrance to a fresh site, as it is simply a generic looking login form. (Hence I would have given URLs for demo/decode - but can't due to the secure nature of the content.)

My main concern was just ensuring when a registered user logged in, the site defaults to their set language. (As you say in point c.)

At the moment it doesn't.

Where does the JFRouter configuration live? I can't seem to find this.

Many thanks
-Stu

User avatar
akede
Joomla! Ace
Joomla! Ace
Posts: 1636
Joined: Fri Aug 12, 2005 6:15 am
Location: Munich, Germany
Contact:

Re: Auto check for Registered user ?

Post by akede » Fri Jul 31, 2009 1:37 pm

In Administrator -> Extensions -> Plugin Manager

Best select Plugin type system. The Plugin is called: System - JFRouter

You see these configurations on the right hand side of the dialog if you edit the JFRouter.

Alex
Joom!Fish 2.0 your free multilingual solution for Joomla! 1.5 i - http://www.joomfish.net - follow us on twitter @joomfish
Meet us at J and Beyond, 30.05 - 1.06.10, Wiesbaden, Germany - http://jandbeyond.org

wildgeeza
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Fri Jul 31, 2009 8:18 am

Re: Auto check for Registered user ?

Post by wildgeeza » Fri Jul 31, 2009 1:55 pm

Hey Alex....

Hmmm,. that may explain something... I don't have it!

Seems that I have a corrupted version running. I'm going to clear out the DB, and reinstall JoomFish. I'll get back to you once I've done this (and your comments above)

Thanks
Stu

User avatar
akede
Joomla! Ace
Joomla! Ace
Posts: 1636
Joined: Fri Aug 12, 2005 6:15 am
Location: Munich, Germany
Contact:

Re: Auto check for Registered user ?

Post by akede » Fri Jul 31, 2009 2:14 pm

Its normally integrated in the standard package which you can download from our site:
http://www.joomfish.net/en/downloads

Alex
Joom!Fish 2.0 your free multilingual solution for Joomla! 1.5 i - http://www.joomfish.net - follow us on twitter @joomfish
Meet us at J and Beyond, 30.05 - 1.06.10, Wiesbaden, Germany - http://jandbeyond.org

wildgeeza
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Fri Jul 31, 2009 8:18 am

Re: Auto check for Registered user ?

Post by wildgeeza » Mon Aug 03, 2009 4:02 pm

Hi Alex,

Thanks for your suggestions. I've finally got the backup of the site running, re-imported the JoomFish module and modified the settings as per the JFRouter suggestions you mentioned.

PERFECT ! Thanks very much ! - it now reacts as I would have liked it to - ie. changes to the User's default language after they log in.

Somewhere along the initial migration, we must have had data corruption on the upload.

All good now though!
Thanks!
Stu


Locked

Return to “Joom!Fish and Multilingual Sites”