codeline Posted August 19, 2010 Share Posted August 19, 2010 OK so I just finished off a basic site for client that has a custom CMS and includes news entries and submissions for a contest they are holding. They just threw a curveball at me and asked for a region/country selector as a splash page. Turns out, they need to filter their content by 2 separate countries (US and EUROPE). Luckily it's only those 2 countries. So the obvious is I'm going to have to add a country code type row in all the tables of my db so each news entry and submission can be filtered.. I just wanted to get some input on what you guys think might be the best route to go about adding these new sessions with a site that's pretty much already built and structured a certain way: do I add the country row to all tables in my DB and go through all the PHP and add a bunch of new if/else statements to echo out each country's data? Or do I jimmy-rig the whole setup and just duplicate my site and have US have it's own site version with all PHP pulling US data, and EUR have it's own site version and pulling only EUR data. Just want to see what others would do in this situation. Thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/211220-adding-country-selector-to-completed-site/ Share on other sites More sharing options...
Rifts Posted August 21, 2010 Share Posted August 21, 2010 Do they log in before being able to see the splash page? Quote Link to comment https://forums.phpfreaks.com/topic/211220-adding-country-selector-to-completed-site/#findComment-1101943 Share on other sites More sharing options...
codeline Posted August 21, 2010 Author Share Posted August 21, 2010 No login, all frontend. Users come and view blog entries and submissions filtered by what country they select on the splash. Quote Link to comment https://forums.phpfreaks.com/topic/211220-adding-country-selector-to-completed-site/#findComment-1102002 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.