Author Topic: Keep choosen language when entering?  (Read 7187 times)

0 Members and 1 Guest are viewing this topic.

Offline Korak

  • Newbie
  • *
  • Posts: 30
    • View Profile
Keep choosen language when entering?
« on: February 27, 2003, 02:36:31 AM »
Is it possible to make a link (from anoother page) in a way that it automaticly chooses the language the user has choosen before (if he/she has visited the gallery before)?

Like /gallery/index.php?s=something...

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Keep choosen language when entering?
« Reply #1 on: February 27, 2003, 02:49:28 AM »
You could use javascript to store the language selection in a cookie and then use it to set the language.

Example:
Code: [Select]
index.php?l=english
index.php?l=deutsch

Offline Korak

  • Newbie
  • *
  • Posts: 30
    • View Profile
Keep choosen language when entering?
« Reply #2 on: February 27, 2003, 02:55:57 AM »
I tried this before but some stuff got mixed up with other cookies on my site.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Keep choosen language when entering?
« Reply #3 on: February 27, 2003, 09:52:20 AM »
Quote from: Korak
I tried this before but some stuff got mixed up with other cookies on my site.

8O I dont think this should do anything with cookies...
all u need is use l=YOURLANGUAGE
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
Keep choosen language when entering?
« Reply #4 on: February 27, 2003, 10:13:11 AM »
Quote from: V@no
8O I dont think this should do anything with cookies...
all u need is use l=YOURLANGUAGE

As far as I understood, he wants to store language settings for user somehow

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Keep choosen language when entering?
« Reply #5 on: February 27, 2003, 10:28:20 AM »
Quote from: SLL

As far as I understood, he wants to store language settings for user somehow

ah, then the answer is: no, sry. not at the moment :?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Keep choosen language when entering?
« Reply #6 on: February 27, 2003, 02:35:36 PM »
Quote from: Korak
I tried this before but some stuff got mixed up with other cookies on my site.

Then I would politely point out that there must be something wrong with your javascript cookie code.  I use cookies in several places on my site without any problems or conflicts with 4images.

Best wishes.

Offline Korak

  • Newbie
  • *
  • Posts: 30
    • View Profile
Keep choosen language when entering?
« Reply #7 on: February 27, 2003, 08:13:28 PM »
Quote from: Chris
Quote from: Korak
I tried this before but some stuff got mixed up with other cookies on my site.

Then I would politely point out that there must be something wrong with your javascript cookie code.  I use cookies in several places on my site without any problems or conflicts with 4images.

Best wishes.

This is probably true.

Anyway it's not that important that I have this since it still wouldn't be a 100% sulotion for me.
I just thought maybe there was a good trick to get this to work in a link.

Thanx anyway!