• I just hit a bug with the User Submission form. If the user makes a typo in the http: part of the URL, then the submission is not rejected. The user gets told that the link has been accepted but it does not appear in the set of links to be moderated. Fortunately, I do get an email with details of the submission, which is how I identified the nature of the problem.

    Examples of mistypes that cause this problem:

    ttp://
    tp://
    p://
    :/

    Links with no https:// prefix and links with just a single or a double / do get put into the moderation queue.

    Would it be possible for you to add URL format verification to the jQuery form validation?

    https://www.ads-software.com/plugins/link-library/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Yannick Lefebvre

    (@jackdewey)

    I will look at adding specific validation for URLs.

    Thread Starter aenea

    (@aenea)

    That would be great. When doing that, could you also consider adding verification of the format of the user’s email? At the moment it will accept any old rubbish. (I’m not planning to insist on users logging in before making a link suggestion so some will be typing in their own name and email.)

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Yes. I meant to do that but forgot. That one is very easy.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Added URL and e-mail validation to user-submission form.

    Thread Starter aenea

    (@aenea)

    URL validation works a treat, thanks.

    But email validation doesn’t. It accepted the following two incorrectly formatted addresses:

    rubishemail
    rubbishemail.co.uk

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    I think I only put the e-mail validation on the submitted e-mail field, not the link e-mail field. Will fix that this evening.

    Thread Starter aenea

    (@aenea)

    It’s the ‘Link submitter Email’ field that I am using, not the ‘Link Email’.

    Thread Starter aenea

    (@aenea)

    Just updated to v5.9.11.2 and checked to see if you had fixed the email validation but, sadly, not. It still allows me to type an invalid address in the Link Submitter Email field. Any chance of a fix?

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Sorry about that. I was about to leave on a trip when you last got in touch and thought I had taken care of it but that was not the case. It will be done in the next update out today.

    Thread Starter aenea

    (@aenea)

    Great. Have implemented the update and submitter email validation now working. Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Problem with user submission form’ is closed to new replies.