Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 9:40 pm (All times are UTC )

 




Post new topic Reply to topic  [ 8 posts ] 
Author Message
Posted: Fri Jul 31, 2009 8:24 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jul 31, 2009 8:18 am
Posts: 10
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


Top
  E-mail  
 
Posted: Fri Jul 31, 2009 12:34 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 6:15 am
Posts: 1551
Location: Munich, Germany
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

_________________
Joomla! Community Oversight Committee Member, follow me on twitter @akempkens
Joom!Fish 2.0 your free multilingual solution for Joomla! 1.5 i - http://www.joomfish.net - follow us on twitter @joomfish
Think Network, Munich - http://www.ThinkNetwork.com


Top
   
 
Posted: Fri Jul 31, 2009 1:00 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 6:15 am
Posts: 1551
Location: Munich, Germany
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

_________________
Joomla! Community Oversight Committee Member, follow me on twitter @akempkens
Joom!Fish 2.0 your free multilingual solution for Joomla! 1.5 i - http://www.joomfish.net - follow us on twitter @joomfish
Think Network, Munich - http://www.ThinkNetwork.com


Top
   
 
Posted: Fri Jul 31, 2009 1:21 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jul 31, 2009 8:18 am
Posts: 10
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


Top
  E-mail  
 
Posted: Fri Jul 31, 2009 1:37 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 6:15 am
Posts: 1551
Location: Munich, Germany
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

_________________
Joomla! Community Oversight Committee Member, follow me on twitter @akempkens
Joom!Fish 2.0 your free multilingual solution for Joomla! 1.5 i - http://www.joomfish.net - follow us on twitter @joomfish
Think Network, Munich - http://www.ThinkNetwork.com


Top
   
 
Posted: Fri Jul 31, 2009 1:55 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jul 31, 2009 8:18 am
Posts: 10
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


Top
  E-mail  
 
Posted: Fri Jul 31, 2009 2:14 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 6:15 am
Posts: 1551
Location: Munich, Germany
Its normally integrated in the standard package which you can download from our site:
http://www.joomfish.net/en/downloads

Alex

_________________
Joomla! Community Oversight Committee Member, follow me on twitter @akempkens
Joom!Fish 2.0 your free multilingual solution for Joomla! 1.5 i - http://www.joomfish.net - follow us on twitter @joomfish
Think Network, Munich - http://www.ThinkNetwork.com


Top
   
 
Posted: Mon Aug 03, 2009 4:02 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jul 31, 2009 8:18 am
Posts: 10
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


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group