Tue 3 Nov 2020 at 11:18 #61859
in this time of online events it would help me much if there was an option to allow RSVP (and RSVP cancel) for past events. I would like to sell recordings (of livestreams and live events) this way. A simple switch (allow RSVP after event ended) or something similar will be great.
For now I am using a dirty workaround (I edited eme_rsvp.php, added if clauses in the functions to skip date check if RSVP start date is set to “-99”) It works, but it obviously breaks each time I update the plugin.
ThanksTue 3 Nov 2020 at 15:12 #61861
I think the reason is that I use minusdays etc … and that causes some issues since it doesn’t correctly adjust for negative numbers.
Try this patch (it is a patch to ExpressiveDate.php, you can just download+replace your version with the new one):
https://plugins.trac.wordpress.org/changeset/2411858/Wed 4 Nov 2020 at 13:05 #61862
Hi, it looks like your fix works like intended.
However if the event was more than 99 days ago, I still cannot allow RSVP for recordings because the form accepts only three characters (-99). For spring pandemic wave it is already over. Can you please make it work somehow? A checkbox “Allow RSVP indefinitely” or any magic word in the input will do.Wed 4 Nov 2020 at 14:28 #61863
I wont allow indefinite rsvp days, that is pointless. I increased the form to allow one extra character, meaning you can go up to -999 days, which is a little bit less than 3 years:
https://plugins.trac.wordpress.org/changeset/2412439/Wed 4 Nov 2020 at 15:38 #61864
Thank you, it works fine. The probability that somebody will try to buy a three-year old recording is not very high in my case. However, I should make a note somewhere to have a look at those recordings in three years time.Wed 4 Nov 2020 at 15:52 #61865
Hi, I am sorry, but now I found out it actually doesn’t work at all. It was only working because of my edits in eme_rsvp.php. I have found out after change of -99 to -999 that it stopped from working. Please, have a look at it one more time.
With your edits to eme_events.php and ExpressiveDate.php negative numbers are still not working when setting RSVP and RSVP cancel date.Wed 4 Nov 2020 at 18:35 #61866
This extra change is needed to allow a negative number for rsvp end on all setups:
https://plugins.trac.wordpress.org/changeset/2412693/Wed 11 Nov 2020 at 13:08 #61880
I have updated to 2.1.95 and it’s still not working. I have set the time to -999 days and -99 hours. The form doesn’t show with the exclamation that RSVP has ended. Same of RSVP cancel.Wed 11 Nov 2020 at 15:32 #61881
Have you configured the “allow rsvp until” correctly?
This is a demo on the site where it works (the event ended yesterday):
https://www.e-dynamics.be/wordpress/events/test-2/Wed 11 Nov 2020 at 16:44 #61882
Hi, this is how it looks in my setup. Is it correct?Wed 11 Nov 2020 at 16:47 #61883
Ok, now I have found the mistake. The -999 value was in the wrong line.
ThanksWed 11 Nov 2020 at 18:17 #61884
In your screenshot the begins/ends (your text in red) is reversed.
- You must be logged in to reply to this topic.