Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Default Country CodeDefault Country Code
Previous
 
Next
New Post
12/29/2005 10:48 PM
 
How can I make "United States" the default country code for new user registration?

 
New Post
12/30/2005 4:29 AM
 
DNN tries to get default for Country from user's IP address.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/2/2006 12:31 PM
 

I've yet to see this work properly - based on my IP address (through my ISP:  CenturyTel.com). Is there a way to force this?

My users are all very local. So I would also be interested to find out a way to provide a default Country, City, State and zip code since these will be common among all but visitors.

Finally, when one chooses Country of United States, the cursor focus (tab stop) does not advance to the State field, forcing all users to switch from keyboard to mouse and back. Not critical, but ackward and this is something every new user gets to see...

 
New Post
2/19/2006 5:03 PM
 

This doesn't work. It appears there is a reference to TestIP in address.aspx.

There is also something about LocalhostCountryCode="US" in address.aspx.

So, even if the TestIP does not work the default should be US.

There are dozens of questions about this problem but I have not seen anyone actually address it.

Is this being worked on as a fix to the core modules?

 
New Post
6/13/2006 1:33 PM
 

This is deal with by the big boys at:

http://forums.asp.net/thread/1145304.aspx

Their hack is:

"open up Address.ascx.vb and comment out the following lines then rebuild DotNetNuke the problem is corrected.

Page Load Event

612 <--                           If _Country = "" Then
613 <--                               cboCountry.SelectedIndex = 0
614 <--                           Else
615                                   If Not cboCountry.Items.FindByText(_Country) Is Nothing Then
616                                       cboCountry.ClearSelection()
617                                       cboCountry.Items.FindByText(_Country).Selected = True
618                                   End If
619 <--                           End If

632 <--                               If _Region = "" Then
633 <--                                   cboRegion.SelectedIndex = 0
634 <--                               Else
635                                       If Not cboRegion.Items.FindByText(_Region) Is Nothing Then
636                                           cboRegion.Items.FindByText(_Region).Selected = True
637                                       End If
638 <--                               End If
"

Also:

"I believe that  If _Country = "" Then
is never returning an empty string."

Cathal says those lines are there for a reason, but until it is fixed this may work better...

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Default Country CodeDefault Country Code


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out