#1  
Old 04-18-2008, 01:54 PM
Raymond Benc's Avatar
Raymond Benc Raymond Benc is offline
phpFoX Developer
 
Join Date: Aug 2005
Posts: 3,860
Thanks: 77
Thanked 1,160 Times in 309 Posts
Feedback Score: (3)
Raymond Benc has disabled reputation
Default [1.6+] Enable U.S. State/ZIP elements

If you have the U.S. State/ZIP feature enabled you may notice that the HTML elements are disabled by default if the user does not select "United States" from the location drop down. The logic behind this is so users don't select the country Sweden and then allow them to select a U.S. state.

I have had requests to disable this feature to allow your users to make the choice and not disable them from selecting a certain element.

If you would like to disable this functionality open the file: design/js/main.js

Then look for:
Code:
Content visible to registered users only.
Under that add:
Code:
Content visible to registered users only.
If you have the GZIP compression feature enabled you need to login into your Admin CP and run the "CLEAR CACHE" routine to make sure the new JavaScript file is cached.

I haven't fully tested this on every section, however from the sections I tested it worked just fine. If you run into any problems let me know.
__________________
Regards,
Raymond Benc (phpFoX Developer)
/**
*
@ Blog | Twitter | My Mods
*/
  #2  
Old 05-20-2008, 09:30 PM
conkien conkien is offline
phpFox Fanatic
 
Join Date: Aug 2006
Posts: 333
Thanks: 13
Thanked 8 Times in 8 Posts
Feedback Score: (0)
conkien is on a distinguished road
Default

hehehe, you create a good logic and now you show people how to breake it!

If I saw a site that has a user live in Sweden, New York and has a zip code under their profile, I know this is Natio fault :)
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 07:00 PM.