Welcome, Guest
Username: Password: Remember me

TOPIC: [CLOSED] username regex

[CLOSED] username regex 06 Oct 2012 20:41 #4290

  • aria
  • aria's Avatar
  • Offline
  • New Member
  • Posts: 16
  • Thank you received: 3
  • Karma: 2
When i use as validator on a field Username it does not work.
I think the problem is that 'invert match' is on and i cannot get it off
The administrator has disabled public write access.

Re: username 11 Oct 2012 14:07 #4413

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Please could you give some more details?
  1. What kind of field are you using?
  • String
  • OR
  • Text
  • OR
  • Rich Text
  • ?
  • Try deleting the field and re-adding it to the table & layout(s)
  • If deleting and re-adding doesn't work, please provide as many details as possible as requested in this how-to-post topic - it'll help to narrow things down for us.

    Also, just to note, the Regular Expressions board is to share custom, user regular expressions and their application(s) as opposed to bugs/errors you may experience with COOK in-built validators, therefore, please post similar issues in Interface - Online Generator OR New Tickets for this kind of issue in the future...

    @admin - please could you move to relevant board?

    Thanks,

    Gez
    Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
    Last Edit: 11 Oct 2012 14:08 by JoomGuy.
    The administrator has disabled public write access.

    Re: username 11 Oct 2012 14:49 #4414

    • BTB300
    • BTB300's Avatar
    • Online
    • Moderator
    • Posts: 415
    • Thank you received: 131
    • Karma: 47
    To remove the invert match... or to edit any predefined regex

    Select the predefined username validator
    (you will note some values are greyed out)
    then select custom validator
    change the values as you please
    ;)

    you will note that after you have selected the first validation type and then select custom
    - the values of the previously selected regex are now editable

    Hope it helps
    Last Edit: 11 Oct 2012 14:54 by BTB300.
    The administrator has disabled public write access.
    The following user(s) said Thank You: aria

    Re: username 11 Oct 2012 15:01 #4416

    • JoomGuy
    • JoomGuy's Avatar
    • Offline
    • Moderator
    • Joomla Enthusiast, Lover of Cooking
    • Posts: 1115
    • Thank you received: 195
    • Karma: 64
    Good point @BTB3000

    One note, if you use this approach you should specify a new handler as they have to be unique... Don't use spaces or underscores in the handler either

    Gez
    Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
    The administrator has disabled public write access.

    Re: username 11 Oct 2012 18:38 #4418

    • aria
    • aria's Avatar
    • Offline
    • New Member
    • Posts: 16
    • Thank you received: 3
    • Karma: 2
    Thanks all for the reactions.
    I think i post it in another forum, as i understand from audibleid. I am new with cook, sorry for posting on the wrong place.
    The solution of BTB300 works perfect.
    But it cannot be the proposed use for predifened expressions, i think.

    Thanx, item solved.
    The administrator has disabled public write access.

    [SOLVED] Re: username 11 Oct 2012 18:43 #4419

    • JoomGuy
    • JoomGuy's Avatar
    • Offline
    • Moderator
    • Joomla Enthusiast, Lover of Cooking
    • Posts: 1115
    • Thank you received: 195
    • Karma: 64
    Hi @aria

    Great, glad that you got it working!

    Don't worry about reposting it on a different board - admin will move it.

    It was more a note for future posts really... It's very easy to accidentally post in the wrong forum! ;)

    best wishes,

    Gez
    Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
    The administrator has disabled public write access.
    Time to create page: 0.330 seconds

    Get Started