How can I setup the default country when creating an event to be US? I think they sorting it in the drop down list. I'm looking on order in the table and it's not sorted by order
How can I setup the default country when creating an event to be US? I think they sorting it in the drop down list. I'm looking on order in the table and it's not sorted by order |
The answer to your questions is here: http://www.boonex.com/unity/forums/#topic/Default-country-at-new-events.htm |
Thanks. I've added a new value to make it dynamic and not to change in the program like this: add to sys_opti alt=> Name='site_default_country', value='US', Kateg=7 and that will show up at basic setting in admin 'value' => getParam('site_default_country'), where But how I can get it from the user input in the profile directly like I did here? |
I found another way for those who want it to be based on the user Country's profile: Add these lines: Before the custom form: $aProfileInfo = db_arr("SELECT * FROM `Profiles` WHERE `ID` = " . $_COOKIE['memberID']); in the country section: 'value' => $aProfileCountry,
|