Plugin Author
Franky
(@liedekef)
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
Thread Starter
mathi
(@mathi)
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.
Plugin Author
Franky
(@liedekef)
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
Thread Starter
mathi
(@mathi)
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.
Plugin Author
Franky
(@liedekef)
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
Thread Starter
mathi
(@mathi)
yep. that’s it!
thank you very much!
mathi.