WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Turskis
    Member
    Posted 8 months 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

    http://wordpress.org/plugins/user-submitted-posts/

  2. free2khaja
    Member
    Posted 8 months 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
    Member
    Plugin Author

    Posted 8 months 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
    Member
    Posted 8 months ago #

    in Pro version :)

    Thank You

  5. Turskis
    Member
    Posted 8 months 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
    Member
    Posted 8 months 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
    Member
    Posted 8 months 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
    Member
    Posted 8 months ago #

    It works! Many thanks

  9. free2khaja
    Member
    Posted 8 months ago #

    You are Welcome Mr.Turskis :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.