WordPress.org

Forums

Events Made Easy
[resolved] edit post till 3 days before event (7 posts)

  1. mathi
    Member
    Posted 2 years ago #

    hi, thanx for this great plugin.
    my question is: how is it possible, that an user - who booked events and edit them, also cancel them - can book events till 0 days before event, but can cancel events only till 3 days before event. so he get a deadline to cancel for 3 days before event. hope you understand. thanx for help.
    mathi.

    http://wordpress.org/extend/plugins/events-made-easy/

  2. Franky
    Member
    Plugin Author

    Posted 2 years ago #

    I would use contional tags to hide the cancel booking form, if the days to the event is less than X.
    For conditional tags, see: http://www.e-dynamics.be/wordpress/?cat=24
    For the number of days till start: I added 2 placeholders you can use (will be in the next version), see: http://plugins.trac.wordpress.org/changeset/660398

  3. mathi
    Member
    Posted 2 years ago #

    hi franky,
    thanx for the fast answer. i'm sure it will work! but, unfortunetly my skills are too less.

    this f.i. doesnt work:
    [events_if tag='#ESC_REMOVEBOOKINGFORM_IF_REGISTERED' eme_daydifference=3][/events_if] but was a beginning, and i want to learn.
    maybe something with: #_DAYS_TILL_START?

    i put the first change-elseif (till_start) to my events-manager.php.

    please help me again to fix this conditional tag. mathi.

  4. Franky
    Member
    Plugin Author

    Posted 2 years ago #

    Try this:

    [events_if tag='#_DAYS_TILL_START' gt=3]#_REMOVEBOOKINGFORM_IF_REGISTERED[/events_if]

    logic: only show the removebookingform (if registered) if the days_till_start is greater than 3

  5. mathi
    Member
    Posted 2 years ago #

    hi franky,
    thank you again, it works a bit.:

    it displays " #_REMOVEBOOKINGFORM_IF_REGISTERED " on screen - but not the form, if the event is e.g. next week.
    it displays nothing (not the form/and not #_REMOVEBOOKINGFORM_IF_REGISTERED) in the next 3 days.

    and: if i set
    <p>#l, #j. #F #Y - #H:#i - #@H:#@i</p>
    <p>#_ADDBOOKINGFORM #_REMOVEBOOKINGFORM_IF_REGISTERED</p>
    [events_if tag='#_DAYS_TILL_START' gt=3]#_REMOVEBOOKINGFORM_IF_REGISTERED[/events_if]
    ...it displays a removeform for the next 3 days and two forms for next week.

    do you have an idea again what is wrong? mathi.

  6. Franky
    Member
    Plugin Author

    Posted 2 years ago #

    Hmmm ... wordpress is kinda picky with shortcodes: it needs a space before the "[", like this:

    [events_if tag='#_DAYS_TILL_START' gt=3] #_REMOVEBOOKINGFORM_IF_REGISTERED [/events_if]

    That should work

  7. mathi
    Member
    Posted 2 years ago #

    yep. that's it!
    thank you very much!
    mathi.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Made Easy
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic