Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
09-02-2011, 12:46 PM #1
- Join Date
- Apr 2011
- Thanked 0 Times in 0 Posts
drop down menu that will change a article to a different version
i want a user to be able to switch the current page from english version to a welsh version.
i dont mean language translator
the article refering to english users may require different steps for a welsh user.
my articles are all set for uk at the moment and i am using sql databse for them.
i need something like - if welsh is selected. change current article to welsh version.
09-02-2011, 06:47 PM #2
- Join Date
- Jun 2003
- Cottage Grove, Minnesota
- Thanked 1,072 Times in 1,063 Posts
This is how I imagine it would work.
You have two little country flags (welsh/english) or links at the top of your main page.
At the beginning of each script (page), you look for a cookie to be set. If no cookie,
then you default to English. If the user clicks Welsh, you set a cookie. Each page
will discover a cookie set, so it changes to Welsh.
One MySQL table is English, the other Welsh ... so you query the tables based on
whether or not a cookie was set.