How to setup default country in event

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

Quote · 17 Apr 2010

The answer to your questions is here:

http://www.boonex.com/unity/forums/#topic/Default-country-at-new-events.htm

Quote · 17 Apr 2010

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?

Quote · 17 Apr 2010

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']);
$aProfileCountry = $aProfileInfo['Country'];

in the country section: 'value' => $aProfileCountry,


And you have a dynamic one

Quote · 17 Apr 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.