Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

Trim Username Spaces
Last Post 10-10-2012 10:02 AM by Ryan Bakerink. 11 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Resolved
Lewis HillUser is Offline
skipping stones
skipping stones
Posts:8
Avatar

--
09-25-2012 08:00 AM

    Does Dynamic Registration Trim Username Spaces on Registration or Profile Update?

    We are using Dynamic Registration for registration and profile updates and some users are unable to login. When I look at the database these users have no spaces in their username in the aspnet_users table but they do have spaces in the SRC_User table?

    Any input on resolving this is appreciated.

     

    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    09-25-2012 08:19 AM
    Hello Lewis,

    I would recommend using a Regular Expression on your username field, the following regular expression ensures that spaces aren't acceptable:

    ^[a-zA-Z0-9_-]{6,12}$

    To enable a Regular Expression you can go Manage the UserName question -> Question validation and enable Regular Expression and provide the Regular Expression I placed above.

    Let me know if you have any questions.

    Thanks,

    Ryan
    Lewis HillUser is Offline
    skipping stones
    skipping stones
    Posts:8
    Avatar

    --
    09-25-2012 12:29 PM
    • Accepted Answer
    Posted By Lewis Hill on 09-25-2012 02:29 PM
    Hi Ryan,
    Thanks for you help.
    I did run into an issue testing this. When I try to register a user with a space at the beginning of the username, I get a validation error from the regular expression but when I remove the space, I still cannot submit the form -- the error message clears but returns on submit, I cannot register even with the space removed from the username or if I change the username completely?
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    09-26-2012 04:45 AM
    Hello Lewis,

    I believe the Regular Expression I gave you was correct.

    Anytime you find a regular expression that you'd like to use, I would recommend testing it at this site:
    http://www.regular-expressions.info...ample.html

    Let me know if you have any questions.

    Thanks,

    Ryan
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    09-26-2012 04:53 AM
    I would recommend placing the Form in Debug mode and walking through the submission of the form to see if you can get any hint as to why this isn't working.

    Also if you have FireFox and FireBug I would enable this to see if there are any JavaScript conflicts.

    Let me know if you have any questions.

    Thanks,

    Ryan
    Lewis HillUser is Offline
    skipping stones
    skipping stones
    Posts:8
    Avatar

    --
    09-26-2012 09:59 AM
    Ryan,
    Thanks for your suggestions. The regular expression approach should work to address this issue however. The regular expression looks like it prevents a user from inadvertently adding spaces at the beginning of their user name but when I remove the space from my test user, the validation message remains and I still cannot register.

    If I reload a clean registration and try to register a user without spaces in their username this regular expression blocks the registration. Adding this regular expression seems to block registration all together?

    I was looking at www.regular-expressions.info/examples.html (the Trimming Whitespace example) yesterday. I did not see any JavaScript errors in Firefox or Chrome but I will look into JavaScript conflicts.

    Thanks again for your suggestions.
    Lewis
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    09-27-2012 01:20 PM
    Hello Lewis,

    If the regular expression isn't working for you, perhaps trying a snippet of JavaScript that will fire in the ON Client side section of the UserName question??

    The JavaScript will fire upon losing focus on the UserName field, technically tabbing out of this field. So after the provided value you can use a simple replace and remove any spaces, maybe this JavaScript will point you in the right direction.

    Assuming your UserName field's shortfield name is "UserName".

    ------------------------------------------------------------------------
    var UserNameProvided = $(UserName);
    var UserNameNoSpaces =TheUserNameValue.replace(" ","");
    $(UserName) = UserNameNoSpaces;
    ------------------------------------------------------------------------

    This JavaScript would go under the Manage UserName Question -> Advanced Question options -> Client Side Event(Textarea box that accepts JavaScript).

    Let me know if this helps.

    Thanks,

    Ryan


    Lewis HillUser is Offline
    skipping stones
    skipping stones
    Posts:8
    Avatar

    --
    09-27-2012 03:20 PM
    Hi Ryan,
    Thanks for the information on the client JavaScript… I will try this.
    Also, I tested the regular expression on a clean registration page with a standard Dynamic Registration form and the regular expression worked fine.
    Our actual registration form does have other JavaScript and there must be a JavaScript conflict. Thanks for the help and I will look into this more.
    Lewis
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    09-28-2012 03:52 AM
    Hello Lewis,

    Yes it sounds like there is a JavaScript conflict on your Registration form against the Regex.

    Let me know how everything goes for you, my best interest is invested in knowing that you have resolved this issue.

    Thanks,

    Ryan
    Lewis HillUser is Offline
    skipping stones
    skipping stones
    Posts:8
    Avatar

    --
    10-08-2012 07:54 AM
    Hi Ryan,
    Thank you for your messages and support. I am back from a conference and taking another look at this.
    To eliminate any potential conflicts I have a clean page… only the Dynamic Registration module using the initial wizard with the DNN required fields. I have tried a number of approaches without success.
    Regular Expression
    ^[a-zA-Z0-9_-]{6,12}$
    Client Side Event
    var UserNameProvided = $(UserName);
    var UserNameNoSpaces =TheUserNameValue.replace(" ","");
    $(UserName) = UserNameNoSpaces;
    JavaScript
    onblur="this.value = this.value.replace(/(^\s*)|(\s*$)|(^\n*)|(\n*$)/g, '');"

    Do you have this working on a registration form you can export?
    Or can you look at my dev registration form?
    Thanks,
    Lew
    Lewis HillUser is Offline
    skipping stones
    skipping stones
    Posts:8
    Avatar

    --
    10-10-2012 06:42 AM
    Ryan,
    I was able to get the regular expression working on my test registration page; the regular expression you provided does prevent a user from entering spaces in their username. Don’t know why it did not work before… cashing or I did not have it set correctly?

    I could not get the profile update working with the regular expression so I will did not enable the “user can change their username.”

    I know you may be at the DNN World Conference which I could not make this year because of our International Conference this week.

    Thanks for all your help on this.
    Lew
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    10-10-2012 10:02 AM
    Hello Lewis,

    Great to hear that this now working for you.

    It could've been a Cache issue, however, it's now working and that's all that matters

    I decided not to attend the DNN World Conference this year regarding personal reasons. I'll most likely attend next year.

    Let me know if you have any questions.

    Thanks,

    Ryan
    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
     
     
       
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi