• 1) Can a date picker be used for the expiration date option, instead of the current dropdown for amount of days? I see the code for this in wpuf-add-post.php on line 272, but I don’t know what to replace it with.

    2) If a user chooses NOT to set an expiration date, can the post remain with out it? Currently it seems that activating that option in the admin panel sets expiration of all generated posts to at least 2 days (first option in the dropdown)

    3) If question 2 is possible, can generic text be used instead to indicate that there is no end date? (i.e. This post is ongoing)

    I’m trying to build a deadline/open call registry for artists and the expiration option is perfect for this, though some posts do not have a deadline, hence the need for an no-expiration option.

    Thanks for your help and awesome plugin!

    https://www.ads-software.com/extend/plugins/wp-user-frontend/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Sebastien Sanz de Santamaria

    (@sebastiensanzdesantamaria)

    I’ve figured out how to implement a jquery date picker via this thread: https://www.ads-software.com/support/topic/how-to-add-jquery-datepicker?replies=9

    and attempted replacing code in wpuf-add-post.php on line 272 with date picker code.

    I can see the date picker on frontend post, but it doesn’t get registered when post is submitted. I’m not a developer, so have no idea how to do this.

    Also noted: the expiration date option is not available in Edit mode, once a post is generated. How can a frontend user change expiration afterwards?

    Thanks in advance for any input.

    This is mostly fixed in the development version

    Thread Starter Sebastien Sanz de Santamaria

    (@sebastiensanzdesantamaria)

    Thanks professor! I see that the development version does mostly fix these issues.

    Is there anyway to place the Category selection and the Post Expiration fields to ABOVE the description? Like the custom fields? I tried editing the wpuf-add-post.php of your fork version, but got errors.

    thanks for your really really great work.

    Hi Sebastien. The only way to do this is to edit the wpuf-add-post.php and wpuf-edit-post.php files. Shouldn’t be too hard so try again. Tareq in the distant future is looking to add custom forms which would make this a breeze but don’t hold your breath as it involves a lot of work.

    Thread Starter Sebastien Sanz de Santamaria

    (@sebastiensanzdesantamaria)

    Hi professor!

    I’ve pretty much figured things out, all things are pretty much dandy for my needs.

    BUT I don’t know what happened recently with the date expiration. It now sets the day to ONE day before the set date.. forcing me to set it one day forward to get the right day.

    I edited heavily, but just to make sure it was not me.. I re-installed your fork from Github… like i did initially.. and it still sets it back one day.

    do you see this happening anywhere else?

    any help would be great.

    thanks

    Haven’t noticed this. Also I note in another post you mentioned that it now works. Could you be getting local time and server time mixed up?.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Expiration Date Options’ is closed to new replies.