...

View Full Version : drop down menu that will change a article to a different version



bubbbbbz
09-02-2011, 01:46 PM
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.

mlseim
09-02-2011, 07:47 PM
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.


.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum