User Submitted Posts
[resolved] URL not mandatory (9 posts)

  1. Turskis
    Posted 2 years ago #

    Hi. Is it possible to add URL-field so that it not mandatory to be filled.

    I tried editing submission-form.php:

    <input name="user-submitted-url" type="text" value="" data-required="true" data-type="url" placeholder="<?php _e('Your URL', 'usp'); ?>" class="usp-input">
    <input name="user-submitted-url" type="text" value="" data-required="false" data-type="url" placeholder="<?php _e('Your URL', 'usp'); ?>" class="usp-input">

    But it still seems to be mandatory


  2. free2khaja
    Posted 2 years ago #

    Hello Turskis,

    it's just simple. Please select the "Hide" option for "Post Url" field In your User Submitted posts settings page. :)

  3. Jeff Starr
    Plugin Author

    Posted 2 years ago #

    free2khaja, yes :)

    Also, there will soon be a Pro version of the plugin that will include options to make any displayed field either optional or mandatory.

  4. free2khaja
    Posted 2 years ago #

    in Pro version :)

    Thank You

  5. Turskis
    Posted 2 years ago #

    Thanks for the replies. I wanted to make URL visible but not mandatory. But ok, let's wait for Pro version then

  6. free2khaja
    Posted 2 years ago #

    Okay Turskis, :)

    You change the data-required="false" from data-required="true" .

    Now Please remove the data-required="false" from your code.

    I'm not tested, but I hope It's work.

    Thank You

  7. free2khaja
    Posted 2 years ago #

    I mean just use the code

    <input name="user-submitted-url" type="text" value="" data-type="url" placeholder="<?php _e('Your URL', 'usp'); ?>" class="usp-input">

    I'm sure it will work.

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

  8. Turskis
    Posted 2 years ago #

    It works! Many thanks

  9. free2khaja
    Posted 2 years ago #

    You are Welcome Mr.Turskis :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Submitted Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.