Announcement

Collapse
No announcement yet.

User Profile Fields

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • User Profile Fields

    I have a user profile field intended for Zip Code.
    BUT, apparently any new or old user can enter either text or numbers.
    How can I set this field so that ONLY accepts numbers?
    sigpic

  • #2
    You can find examples of amny different regular expressions on this site:

    http://regexlib.com/

    Note: UK and Canadian zip codes include letters.
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment


    • #3
      Interesting, but not real helpful.
      sigpic

      Comment


      • #4
        Really? Did you try searching for 'zip code'? I did and got this:

        Title: Five Integer US ZIP Code
        Expression: ^\d{5}$
        Description : Matches 5 numeric digits, such as a zip code.
        Matches : 33333 | 55555 | 23445
        Non-Matches: abcd | 1324 | as;lkjdf
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment


        • #5
          Yep.
          A little more research, and I got it.
          Thanks a lot
          sigpic

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          X