Forum Replies Created
-
AuthorPosts
-
FrankyKeymaster
See this fix: https://github.com/liedekef/events-made-easy/commit/605e826453489d2e85416d10d2facbacb4dd4d1e
Also: if you want to post a new question, go to https://github.com/liedekef/events-made-easy/ and create an issue.
Thu 5 Jan 2023 at 23:01 in reply to: How do I turn off Payment Gateway and Member Paid notification emails? #64901FrankyKeymasterBtw, read the security release note:
https://www.e-dynamics.be/wordpress/forums/topic/security-release/FrankyKeymasterweel, via ssh I could check if the github connection is blocked on your server or actually only in wordpress. So if you really want, I can check at least that …
FrankyKeymasterI’m sorry then, but I can’t really assist in OVH issues here. Do you have ssh-access to that server?
FrankyKeymasterI guess it means you can configure/check it in your OVH hosting panel. I don’t know OVH myself though … I guess their support level is based on the price you pay 🙂
FrankyKeymasterAny feedback from your hosting provider?
FrankyKeymasterIt has nothing to do with EME (and certainly not a bad install of it). The error points to something blocking access to github and you need to figure out what. It is most probably not related to wordfence either (since that is more to check/block incoming requests).
As said: your hosting provider can probably assist you.FrankyKeymasterah, well yes, using github desktop will work too I guess (never used it before). I’m guessing that does a git clone of some kind … maybe even possible to create a pull request directly from there. Feel free to experiment 🙂
FrankyKeymasterwhen you click on raw and view the content, you can do ctrl-S in your browser (or via the browser menu) to save the file.
Meanwhile, I am looking around at making this easier to manage, but for now it is with the po-file 🙂FrankyKeymasterHow do you download these? When viewing a specific file, you can click on “raw” and then save the output.
FrankyKeymaster“View details” also connects to github btw. As said, it is most probably a limit/firewall set on your host.
FrankyKeymasterFrankyKeymasterLet me take a look 🙂
FrankyKeymasterWell, the message still shows the traffic to github is blocked on your server 🙂
FrankyKeymasterWell, admin access to the wp setup is not sufficient, since the block is not there. When you ask for an update check, it is in fact your webserver (via php) that connects to github.
The log you showed is just your request for update check, nothing more. But the block is from your webserver to the outside, so we need to check on your hosting part.Btw: there was a bug in the plugin update checker where it downloaded the “main” version, not the released one, this explained why you had the bug with the typo during a release (the typo was in main but not in the released version). I fixed this now in a new release (and created a bugreport+fix at the library doing the update checking).
FrankyKeymasterWell, the message is from the library checking for a new version. But since it works for your other sites, the error seems “ok” then. I’d look in the firewall logs or maybe ask your provider. If you want me to take a look, feel free to send me the login details.
FrankyKeymasterAny logfiles that might be useful?
Do you have a firewall on your server itself (outside of wordpress)?FrankyKeymasterBtw: I tried with wordfence on my local setup: no issue. Also on 8 sites I manage (several different hosting providers): all work as expected.
FrankyKeymasterI’ll install wordfence here too but I’m guessing wordfence has nothing to do with it (it is more to stop malicious incoming traffic in wp). Do you have a firewall on your server itself (outside of wordpress)?
FrankyKeymasterThen make sure to configure it to allow your site to connect to github too 🙂
FrankyKeymasterWell, that probably means your site is not allowed to connect to github. Some firewall on it?
FrankyKeymasterDon’t forget to use the “Release” version: https://github.com/liedekef/events-made-easy/releases
FrankyKeymasterOn your site vogue-et-reve.fr : is it allowed to connect to github?
On your local site: how do you do the update there? It should use the latest released version, not main.FrankyKeymasterWeird … I’m running 2.3.29 on all my sites and no issue. How are you doing the update? Because in fact in the “main” branch of EME there was a typo that I jst fixed (but not in the released version)
FrankyKeymasterIf you give me the updated po-file, I will get it always in the next release.
But the way WP is reacting, it won’t be temporary … I’ve even checked other plugins I have installed, none would get approved I’d say. So I’ve given up on trying. The security issue is long fixed, but WP won’t release it (not very nice), so this is the best I can do for now.FrankyKeymasterConfirmed, should be fixed (new release)
FrankyKeymasterFix released (update via your WP plugin page as usual)
FrankyKeymasterBtw: I found a bug in the new code when sending mail. I’ll correct and release a new version.
FrankyKeymasterI moved this question to the “Bug” section for now.
I don’t know “Local”, but what are your EME mail settings?FrankyKeymasterIf it was called “events-made-easy-main.zip”, then you didn’t download a release, but downloaded the “main” code as zip. This is not the intention of course (but it will work, don’t worry, you just have more “files” than others do).
Glad it works, feel free to give feedback or create bug reports on githubFrankyKeymasterOnce you have $person (in your filter), you can get the people-fields using something like:
$answers = eme_get_person_answers($person[‘person_id’]);
When you do a print_r on that, you’ll see the info 🙂
But just using the user input as username might not be ok. You can call the eme function eme_generate_unique_wp_username to assist in getting a good username. However, first apply https://github.com/liedekef/events-made-easy/commit/36309053be2f7e40335d89417b9fe763e46c78ce then 🙂Btw: do read this post: https://www.e-dynamics.be/wordpress/forums/topic/security-release/
FrankyKeymasterWhich zip-file did you download? When clicking on “add new” and using events-made-easy.zip from the release, it should propose to replace the old version. Did that not happen?
The directory of the plugin should be named “events-made-easy”, that should be sufficient for EMEFS to work … if that’s not the case (which seems to be in your case): remove the old plugin-dir (or more at least away from the plugin dir) and rename the new plugin-dir to “events-made-easy”FrankyKeymasterIt is in fact EME that creates a username based on firstname/lastname (also like wp does).
But in the thread you mention, you see an example:add_filter('eme_wp_userdata_filter','eme_my_wp_userdata_function'); function eme_my_wp_userdata_function($person){ $userdata=array(); $userdata['display_name']=$person['firstname'].' '.substr($person['lastname'],0,1); return $userdata; }
To change the username you’d need to set $userdata[‘user_login’], but in the current EME version that’s being ignored and overwritten by the EME generated username. This fixes it (only the change in eme-functions.php is needed):
https://github.com/liedekef/events-made-easy/commit/da2b7af0539ca676c821e6eeaf42fcf448b79a6a
Fri 16 Dec 2022 at 18:15 in reply to: time for another weird use case: Multiple locations – same event… #64823FrankyKeymasterOne option would be to create extra events (one for each location) but don’t activate RSVP for those. If you want to show the RSVP form for those at well, you can then use [eme_add_booking_form] with as option the id of the first event (see https://www.e-dynamics.be/wordpress/category/documentation/6-shortcodes/eme_add_booking_form/ )
FrankyKeymastertx, I’ll release a new version with the fix (probably the last of this year 🙂 )
FrankyKeymasterok, that’s indeed a bug in EME (when using “older” discounts in fact, where the discount groups were by name and not by id). And apparently php 8 is stricter when trying to join an not-defined array 🙂
This should fix it:
https://plugins.trac.wordpress.org/changeset/2833968/FrankyKeymasterJust tested with php 8.1: no issues here.
So I assume another plugin is triggering an issue. When you get the code 500 (which indeed refers to a php error probably), what is in the server php error logfile?FrankyKeymasterI indeed tested on a server with 7.4 today. I’ll test locally on php 8.1
FrankyKeymasterA red line? And what causes the red line? I’m assuming it means the request got blocked so what’s causing that?
FrankyKeymasterJust checked here: list works fine. So something is probably interfering here. Did you check your browser console for javascript errors? Or what is being returned by the server (in the browser console, tab “network” when showing the list discounts)?
Probably some plugin (or your theme) is adding extra text to the returned info, causing issues.FrankyKeymasterThe disadvantage is that your “dinner” reservations are not counted/limited.
Another option – if you want to achieve that – is to work with a multiprice event.FrankyKeymasterThe extra options are standalone options, not linked to the number of seats selected. So changing the number of seats won’t change the number of “dinner”. Best for that is to create a dropdown custom field, with as lables the visible text (dinner for 1, dinner for 2, …) and as values the new prices.
FrankyKeymasterEME uses a wordpress nonce as simple check for this, so unless you switched from not-logged in user to logged-in user in another window – or waited more than 24 hours in the same window – it is not possible to get this error on 1 event and not others if no caching plugin is installed.
If you can reproduce this, feel free to send me a link.FrankyKeymasterSince I now implemented something using pure mysql query functions, this is now considered implemented.
FrankyKeymasterSorry, but while I keep track of who signs up, I don’t keep track of who doesn’t 🙂
You’ll have to make the diff yourself, by getting the list of people who signed up (with their “linked wp user”) and then compare that list with your total list of users. But read on for a workaround …If you just want to send those people a mail, that you can do: go in the “email management” section of EME, tab “event related mails”. There select the event of choice, “send mail to all wp users” and “exclude people who already signed up”.
You could even block the mail sending temporary (or if you have mail queuing activated: plan that mail far enough in the future), then you can see the report for that mailing and you have your list. There’s no export to CSV button, but copy/paste in excel should work too (at least it works in Libreoffice Calc). Don’t forget to cancel that mailing, you’ll still have your list but people won’t receive your workaround email then 🙂
Tue 29 Nov 2022 at 21:43 in reply to: Extra field registration but what with existing members? #64787FrankyKeymasterWell, it’s either that or ask people for their info and then you need to enter that info per member, rather cumbersome 🙂 Changing member info for existing members by a person himself is not something I foresee to do.
Tue 29 Nov 2022 at 14:25 in reply to: Extra field registration but what with existing members? #64785FrankyKeymasterYou can’t have a dropdown in an email 🙂 Existing members can’t change their member info (logical), but: if it is a field of type “person” (which is also possible for membership forms, it just means that that info is stored by person and not by membership), you can ask them to review their personal information and make a choice (see the [eme_change_personal_info] shortcode for that).
Tue 29 Nov 2022 at 10:47 in reply to: Event related custom fields in approved bookings csv export #64781FrankyKeymasterEME doesn’t show all fields, but you can use the filter eme_csv_column_filter to add/change columns, see https://www.e-dynamics.be/wordpress/category/documentation/12-hooks-and-filters/ . Or use the filter eme_csv_header_filter to add extra info at the top.
FrankyKeymasterMultiple things here:
since #_EVENTPRICE will be a multiple, using that as a max is not logical. If you have 3 price categories, try:[eme_for min='1' max='3'] #_RESPSEATS{#_LOOPCOUNTER} á #_EVENTPRICE{#_LOOPCOUNTER} [/eme_for]
Also: I don’t think it will work, since I need to replace the placeholders at a certain point, and currently I replace these before executing the eme_for-loop (since typically the min/max is based on a list generated by the event in some way), the same way as I do it for eme_if btw. So, since an event is multiprice, it won’t replace “#_RESPSEATS” and leave that string as is, but only replace #_LOOPCOUNTER (since that’s only known in the eme_for shortcode). So currently the logic is:
replace event+rsvp placeholders, resulting in the text
[eme_for min='1' max='3'] #_RESPSEATS{#_LOOPCOUNTER} á #_EVENTPRICE{#_LOOPCOUNTER} [/eme_for]
Then do eme_for shortcode and replace eme_for placeholder #_LOOPCOUNTER), resulting in the displayed final text:
#_RESPSEATS{1} á #_EVENTPRICE{1} #_RESPSEATS{2} á #_EVENTPRICE{2} #_RESPSEATS{3} á #_EVENTPRICE{3}
FrankyKeymasterWhile not completely what you want, you can define a email blacklist (domain, subdomain or complete addresses) in the not-yet-released 2.3.10 version. A name is easily changed, and I think a real WAF is better suited to catch those. Or your webserver to block on geoip (country or whatever).
FrankyKeymasterJust this should work:
[eme_if tag='#ESC_MEMBERSHIPPRICE' eq='9'] R300.00 [/eme_if]
or #_MEMBERPRICE will work too (taking discounts into account etc …)Multiplying is currently not possible.
FrankyKeymasterThe latest version has that fix (and others in it).
If you like it: I’m open for donations and please don’t forget to leave a review on WP (all optional of course) 🙂FrankyKeymasterWell, I’m always open to suggestions on better rephrasing certain things. I can even hide that option for the main site and show another text, so I’m all ears 🙂
FrankyKeymasterIn fact, you have to activate that option in the subsites 🙂
Like the explanation for that option says: “If selected and WordPress multisite is active, this EME instance will use the database tables of the main multisite instance.”FrankyKeymasterIt is indeed a bug, I already fixed it in dev and will release a new version now.
FrankyKeymasterOk, found it. This was a hard one. I used to do this:
– create wp user based on login name, email and password
– then update that user with name
– then set the user meta field “phone” for eme (called “eme_phone” in fact)
– then link that user to the EME personNow the problem is, I also had a hook that fires when a profile is updated (so when someone changes their name in WP, it changes in EME too), and weirdly enough it fires when updating a user (logical) but only after the EME link was alread set, causing the phone to be emptied in the EME person.
Solution to all this: I now create the wp user with all fields in one go 🙂
See this changeset:
https://plugins.trac.wordpress.org/changeset/2820688/I applied the fix to eme_functions.php to your setup too, can you check?
FrankyKeymasterincognito mode? You mean private mode in your browser? Then you tried it from the frontend, correct? Because that means you’re not logged in then …
Let me tryFrankyKeymasterOk, fixed in your setup. The real bug is fixed in this changeset in trunk:
https://plugins.trac.wordpress.org/changeset/2820598/I released about 2,5 hours ago, so I won’t release again for now (I fixed it in the released version so new downloads will have the fix too).
FrankyKeymasterOk, it seems to be related when doing a backend booking (maybe together with the option to create a WP account).
Let me further test that locallyFrankyKeymasterI didn’t receive any email, so I assume it is solved.
FrankyKeymasterYou can send it to franky@e-dynamics.be
FrankyKeymasterWell, can you reproduce this in a test setup and give me access to that? So I can see what is going on?
FrankyKeymasterI don’t see anything wrong in the form or the generated output. Also, it works as expected locally. So my best guess is: do you have some filters/hooks in place (in your theme)?
FrankyKeymasterThe problem of the original question was that #_FIELD26 was a dropdown field 26 with values calls to the eme_people shortcode with template values again other fields. So it was never going to work 🙂
If you have a problem, it can’t be identical unless you also try to use shortcodes as dropdown values … so please describe your problem in a new post (per the forum rules).FrankyKeymasterFirst: you should play around and test it, before asking 🙂
Second: pending reminders are sent only when approval is required, but approved is sent upon booking (either when a booking gets approved or if approval is not needed) unless you set either the subject or content of the mail empty (trick to that: assign an empty template to it).FrankyKeymasterIt can contain negative numbers, but it is kind of abusing the reminders for 🙂
You can also go in the “mail” submenu and create an event-related email. There you can also plan whatever you want then (if mail queueing is activated).FrankyKeymasterAlthough this is waaaay overdue, this will be possible in the next version:
* Holidays now can be specified using a range too, and an optional link, so these are now possible:
2022-12-25,Christmas
2022-12-20–2023-01-02,Christmas holidays
2022-12-25,Christmas,my_extra_css_class
2022-12-25,Christmas,my_extra_css_class,link_to_the_holiday_infoFrankyKeymasterEME uses dompdf to render html into pdf, so I assume a css-style with this might help:
<style> body { background-image: url(wp-content/uploads/2016/04/myImage.jpg); } </style>
The problem is that EME currently doesn’t allow a seperate stylesheet (just eme.css) for pdf rendering, I could change that … currently try to include this in the body (but unsure if that will work)
Wed 9 Nov 2022 at 18:45 in reply to: Unavailable spaces are released again when processed in the admin area. #64741FrankyKeymasterOk, found it. It was not a bug and currently it has always been like that: a multiseat field missing lead to that value being 0. This is fixed now when editing a booking:
https://plugins.trac.wordpress.org/changeset/2815403/
F.
Wed 9 Nov 2022 at 15:34 in reply to: Unavailable spaces are released again when processed in the admin area. #64740FrankyKeymasterI would like to see a demo of this. Can you either mail screenshots of your relevant event rsvp settings and the booking form when editing such a booking?
Or give me some temp admin access?
My email: franky@e-dynamics.beWed 9 Nov 2022 at 12:03 in reply to: Unavailable spaces are released again when processed in the admin area. #64738FrankyKeymasterBtw: with “booked out” you just mean “booked”, correct? Or do you mean fully booked?
Wed 9 Nov 2022 at 10:24 in reply to: Unavailable spaces are released again when processed in the admin area. #64737FrankyKeymasterI just tested this, and this is the case if for an existing booking the person info is empty. Is that the case for you? The next version will correct that though.
Wed 9 Nov 2022 at 10:12 in reply to: Discount code usage is reduced by one on updatding bookins on admin side #64736FrankyKeymasterindeed, in the meantime I was able to reproduce the issue. This should fix it:
https://plugins.trac.wordpress.org/changeset/2814987/Wed 9 Nov 2022 at 09:42 in reply to: Discount code usage is reduced by one on updatding bookins on admin side #64733FrankyKeymasterHum … I checked the code and I only decrease the usage count if – upon editing in the backend – the discount is not identical to the original one. However, I do only take a floating point number with 2 digits after the comma into account, maybe that is the issue?
Wed 9 Nov 2022 at 09:36 in reply to: Unavailable spaces are released again when processed in the admin area. #64732FrankyKeymasterCan you explain what you mean with “unavailable seats”? Do you mean seats on the waiting list?
FrankyKeymasterindeed 🙂
You also have convenient functions in EME to retrieve the values:eme_get_member_answers($member_id)
eme_get_person_answers($person_id)
eme_get_event_cf_answers($event_id) ==> in the next version also eme_get_event_answers($event_id)
eme_get_location_cf_answers($location_id) ==> in the next version also eme_get_location_answers($location_id)
eme_get_membership_answers($membership_id)FrankyKeymasterThat’s correct (also see the option “Read tracking” in the EME options page, tab “Mail options”)
FrankyKeymasterI now only enqueue when needed, and apparently I forgot some shortcodes. I fixed them and am releasing 2.3.5 now.
FrankyKeymasterSee the EME settings page, tab Mail Templates. At the bottom you have the birthday template section.
FrankyKeymasterYou can use the eme_if shortcode together with #_IS_USER_MEMBER_OF{xx} so you can hide stuff in your pages. Also, class=”#ESC_MEMBERSHIPNAME” can be added to any html element of choice, so I’m not really sure what is missing here 🙂
FrankyKeymasterI can’t see the output, as I’m not logged in (so no attendees info visible at all).
Would it be possible to have a temp admin account so I can see how you configured everything and check out things? Also: there’s no FIELD with id 26 in the default registration form, at least not when I check the html code of the registration form.
FrankyKeymasterCan you explain a bit more what you mean with “everything works for the person signed up, but for everyone else, #_FIELD{26} is empty” ?
Is it because others didn’t fill out that field, or was the person logged in, or … ?
Or a screenshot and/or demo, with explanation of what you expect it to be?Sat 1 Oct 2022 at 22:59 in reply to: Custom field value not parsed for dynamic data in booking form #64698FrankyKeymasterThe way you describe it, it should work. But I found a bug, this should fix it:
https://plugins.trac.wordpress.org/changeset/2792930/FrankyKeymasterThere’s is one thing you can try: the filter eme_eval_multibooking_form_post_filter , see https://www.e-dynamics.be/wordpress/category/documentation/12-hooks-and-filters/
You’ll need to build your logic in the filter yourself, but it is possible to check for things there.FrankyKeymasterAnd what is the content of template id 19 and 14? Because if you create a html-list or a table (ul or ol or table html opening tags in the header template), your template 19 should have li or tr+td tags surrounding the content.
FrankyKeymasterIt’s an option for eme_get_events. See https://www.e-dynamics.be/wordpress/category/documentation/6-shortcodes/eme_events/
FrankyKeymasterI can’t tell for you, but check your list of events in the backend. If at any time you modified a single event (that is part of a recurrence), it becomes a standalone event. When then editing the recurrence, it recreates the missing event, creating what you would call a double.
Also, check the option “show_recurrent_events_once”FrankyKeymasterDoes template id 15 exist? And what is the content?
FrankyKeymasterNo reaction, considering solved.
FrankyKeymasteryou have to use both in fact:
template_id for the events that are not multiprice
multiprice_template_id for the events that are multipriceIn case all events are identical (be it regular or multiprice), then the use of template_id is sufficient. I updated the doc too.
FrankyKeymasterImprovement on this:
https://plugins.trac.wordpress.org/changeset/2789641/ (switch to multiprice_template_id, not multiseat_template_id since sometimes an event is not multiseat but only multiprice if different price categories exist).FrankyKeymasterI don’t think it worked before, because I think I only added group sending for events later on 🙂
But anyway, can you check if this change helps:
https://plugins.trac.wordpress.org/changeset/2789469/FrankyKeymasterBest is to create a simple shortcode yourself, where you translate “Monday” to the day you want (YYYY-MM-DD) and then use eme_get_events_list to only show events of that day. See https://www.e-dynamics.be/wordpress/category/documentation/5-template-api/ for that (and https://www.e-dynamics.be/wordpress/category/documentation/6-shortcodes/eme_events/ for all options you can use).
FrankyKeymasterYou can use the scope option to the eme_events shortcode, see https://www.e-dynamics.be/wordpress/category/documentation/6-shortcodes/eme_events/
scope=this_week or scope=+7d might be what you want.FrankyKeymasterIn fact it is more complicated than that: a familymembership is difficult to change: what to do with a person that was a member via a family relation and then no longer is? Also in EME you have familymembers as relation to a person, and familymembers that are part of a membership (in case an organization needs to pay insurance fees for each member, you want to limit the members in a membership so it can be different). It’s not something that will get “fixed” fast …
FrankyKeymasterAlthough not tested (but I see no reason why it shouldn’t work, but again …):
FrankyKeymasterSorry, but that’s not possible (yet).
FrankyKeymasterEME looks up the domain of the email address. If the server has some kind of dns issue, that might be the result (but a server should always have access to a functional dns server).
Tue 20 Sep 2022 at 11:29 in reply to: Translation of “Booking deleted” / “Please select one of these options” #64661FrankyKeymasterIt is not hardcoded in eme_rsvp.php:
$form_html = __(‘Booking deleted’, ‘events-made-easy’);
The “__” function means it takes the language into account.
I also don’t find “Please select one of these options” anywhere in the code, so is that the message you’re seeing?Tue 20 Sep 2022 at 00:03 in reply to: English messages showing instead of translated messages #64658FrankyKeymasterThe reason is that the special events page has a polylang language set, this overrides all url-language choices. A workaround (since polylang doesn’t provide a method to remove a language setting from a page):
– deactivate polylang and events made easy plugins
– remove the events pages (in all languages, also from draft and trash)
– reactivate EME (this will create a new events page without language assigned to it)
– reactivate polylangFrankyKeymasterWell … there is the shortcode eme_change_personal_info 🙂 See https://www.e-dynamics.be/wordpress/category/documentation/6-shortcodes/eme_change_personal_info/
FrankyKeymasteryes, sorry about the typo 🙂
FrankyKeymasterWhile the initial idea is for members, I’ll also allow #_FAMILYCOUNT and #_FAMILYMEMBERS for people placeholders. See this changeset (ignore the jquery change, it is unrelated):
http://plugins.trac.wordpress.org/changeset/2786989Mon 19 Sep 2022 at 11:20 in reply to: English messages showing instead of translated messages #64646FrankyKeymasterDo you have a demo i can see? Which plugin do you use for multilingual support?
FrankyKeymasterYeah, the ajax path of wp always needs to be accessible otherwise half of the plugins (and mine) won’t work as expected.
Fri 16 Sep 2022 at 10:40 in reply to: WordPress 6 include Events to Search with Gutenberg Blocks #64641FrankyKeymastergutenberg is very different in how it looks up data in the db. Since events aren’t regular posts, currently I can only offer the classic search (see the faq), but gutenberg search doesn’t offer any kind of hooks so for now it is what it is.
FrankyKeymasterThe countries are being fetched via wp ajax call, check if your plugin is not blocking that call (via your browser network traffic).
Thu 15 Sep 2022 at 23:13 in reply to: is there a way to import csv format for recurring event #64638FrankyKeymasterI’m sorry, but importing recurrent events (using the csv) is not possible right now … the db export/import can help in the recurrence definition and then – to add the events from the recurrences – go in the recurrence admin and edit the recurrence and just press save (or if all recurrences have the same end date: select all recurrences, extend the end date by a day or so via the mass action menu, press save and then change the end date back).
Thu 15 Sep 2022 at 22:22 in reply to: is there a way to import csv format for recurring event #64635FrankyKeymasterIf the live site contains no other EME events, you can export all EME-related mysql tables from the dev site and import those (the names have the wp table prefix followed by “eme_”). Next to that, go in the wordpress table for options and export all options which names start with “eme_”.
After you import all, you can install the EME plugin on the live site and all should be okFrankyKeymasterWell, I could add an option multiseat_template_id to the booking shortcode … need to test everything then first of course
FrankyKeymasterWhile I understand the usecase, currently it is not possible in EME in this manner. While you can use some javascript to hide the afternoon when someone selects a seat in the morning (and vice versa), that is per event. I’m struggling with how to represent events with single seats/multiseats in one form … I would need time to investigate and check the code for this.
FrankyKeymasterand you can create templates so you can have different layouts per shortcode usage as well 🙂
FrankyKeymasterHow are you showing past bookings on the profile?
FrankyKeymasterWell, that normally means javascript is not working ok … do you have an example event? Have you checked your browser console for javascript errors?
FrankyKeymasterMuch appreciated. Check your mail 🙂
FrankyKeymasterOk, found the problem: due to caching of people answers (and the custom field being a person field), the cached answer was used for mail.
This fixes it (I added some extra cache deletes and small other things, but the only file needing updating in your case is eme_rsvp.php): https://plugins.trac.wordpress.org/changeset/2782198/#file3But, while on topic: you should use a field of purpose “rsvp” for booking info, since people can be present with different dogs. Now always the info gets overwritten and per booking it would be more relevant to that booking. But of course doing a person-field allows to retain the old value the next time someone logs in and books (if login is required), so it all depends on what you want 🙂
FrankyKeymasterNo example, no further feedback and I can’t reproduce it: so moving this to “generic”.
FrankyKeymasterI’m a little bit unclear also about the “prefilled value”. How do you do change the data of that field? Because I’m thinking you’re doing things in the backend, not via a frontend rsvp form, is that possible?
FrankyKeymasterCan you create a test event and send that url to me? You can set the event status to “hidden” so it won’t show in your public event lists.
And also: a temporary admin account might be useful too, that speeds up possible debugging.FrankyKeymasterBtw: I tried to reproduce that here, and it all works as expected. Since the form data is submitted via ajax call, it would be weird that the original data is used.
Can you reproduce that reliably? Is it a browser problem? Any caching plugin on the site?FrankyKeymasterHum …. weird … where is the “TEST” value coming from? I use custo fields for a dog club too btw (and also in Belgium 😉 ), never encountered this.
FrankyKeymasterAnd more: the next version will build in a safety precaution to never surpass the schedule, so your 100 mails issue is solved then 🙂
https://plugins.trac.wordpress.org/changeset/2781207/FrankyKeymasterBtw: the next version will also have a minute schedule and add “(EME schedule)” to the schedules added by EME.
Also: for minute-wise scheduling, make sure to use the system cron, relying on site visits to launch WP cron is not recommended (by me, but also in general).FrankyKeymasterIt is impossible to know the schedules added by other plugins … WP is weird in many ways 😉
Also for your question: your cron job will run until finished, I think WP prevents another one from running. I think any new schedule needs to wait. So I’d say not to make sure your mails from 1 run can be sent in one minute (in your case). EME will not send double mails, so that’ll be ok 🙂FrankyKeymaster#_SEATS is replaced per event, so not possible to put it in the header or footer section. Maybe I should add it if missing though …
FrankyKeymasterThe CSV button show a popup with info generated via javascript, so:
– be sure not to block popups
– be sure not to have javascript errors (check your browser console for those)
Also: the CSV link per event is more complete (the button only returns the visual output from the table as csv)FrankyKeymasterThis change will help:
https://plugins.trac.wordpress.org/changeset/2780061/FrankyKeymasterThis fixes the confirmation thing (together with more strict permission checking, just to be safe):
https://plugins.trac.wordpress.org/changeset/2780042/FrankyKeymasterEME uses wordpress cron for scheduled actions. Many other plugins do as well, and wordpress allows to create custom schedules (instead of being able to have something queued like linux cron …). Since any plugin can create custom schedules, many get created double.
It is not possible to schedule something quicker than once per minute, reason being that even linux servers have a granularity of at least 1 minute. If you have a plugin that allows you to create extra schedules, you could use those (but less than 1 minute will not be possible).
Another possibility is the “sleep” option between mails (in microseconds). Currently that is 0, but I could create an option that allows to configure that (or maybe just a filter even).FrankyKeymasterthe cancel is per booking, so that’s considered normal to receive a mail per cancelled booking. However it is possible that I loose the multibooking “info” with the confirmation mail, I need to check that (on holiday, so bare with me).
FrankyKeymasterBased on your screenshots and info: do you have the option “Hide RSVP ended events?” set? Because that seems to be the only possibility here.
FrankyKeymasterWhile I would like to help, you’re way behind on keeping EME up to date. I do not support such old version, please update first.
FrankyKeymasterI’ve checked all over the code and for multibookings a mail is sent only for the first booking. Can you try without user confirmation and see if that helps? Are you using the simple=1 option or not?
I’m currently on holiday so debugging is not that easy …FrankyKeymasterFor the code, in generic 1 backtick should work (bbpress is not very user-friendly in that regard, I know). I corrected your posts 🙂
For your form: you don’t have any events to choose from, that’s why it won’t work. #_SEATS is missing probaly, see https://www.e-dynamics.be/wordpress/category/documentation/6-shortcodes/eme_add_multibooking_form/FrankyKeymasterNo, because I consider that overkill: just use the other person’s email and name to register then …
FrankyKeymasterThere are no member-only mails, either “generic emails” or “event emails”.
But indeed, in the event related emails section, there’s currently no selection possible for memberships or members or member groups.
This change (currently untested) should fix it:
https://plugins.trac.wordpress.org/changeset/2775029/FrankyKeymasterI overlooked that, but this change fixes it:
https://plugins.trac.wordpress.org/changeset/2773978/FrankyKeymasterLike I already said many times: it is not logical to try and cache wordpress pages. PHP is dynamic just for that reason: being dynamic. It is ok to cache static css, static js and images but nothing else. Caching of wordpress could be done via e.g. memcached or redis (object caching persistence), see https://wp-rocket.me/blog/object-caching-use-wordpress/ for a good read 🙂
FrankyKeymasterEME is not doing caching. I tried it here: no events with “7” as starting hour and no output, I then changed 1 event in a list (in another tab) and just reloaded the page and it was showing the entry as expected.
Is there maybe a caching happening on webserver level (reverse caching proxy)?FrankyKeymasterThe qr bill is in fact for offline payment, and while it is possible to do: the current lib is 2 times the complete size of EME. If only the qr-code is acceptable, then a lib exists with a much smaller footprint.
Now also you want to import camt.054 bank statements later on … again something totally new, even for EME.
For now and until some decent funding is done, this is going on the pile of feature requests 🙂
May I ask why not use an online payment gateway and send the EME qrcode (via pdf and paper mail if really wanted)?FrankyKeymasterI released 2.2.96 to fix that 10 minutes ago 🙂
FrankyKeymasterWhile creating a PDF for the Swiss QR Bill is possible (there is indeed a php-library for it, also used by the plugin you mentioned), it is an “offline” thing. Meaning it is just to show the qrcode (or pdf-bill). However, it is a big lib (50MB, bigger than EME in fact), due to the fact it takes in huge dependancies to create the qrcode itself (and then more for the pdf).
So in short: it is possible, but would need to be a separate extension of some sort.
Also, I’m not quite sure what you mean with “printing” here … EME runs on a webserver and can’t print for you. You can print a bill for a member by selecting the member and in the mass action dropdown menu select “PDF” and then select the PDF of choice.If you provide (an example of) the html-source for a qr-bill, I could try to regenerate that output as pdf then, next to the more strict qrcode requirements.
FrankyKeymasterIndeed, an oversight. I corrected the doc.
FrankyKeymaster#_GROUPS then ? That already exists (static groups, not dynamic).
FrankyKeymasterFrankyKeymasterI haven’t checked your code in detail, but your function definition should be:
function my_eme_discount_function($booking) {
and not
function my_eme_discount_function($Rabais_jeune_et_enfant) {
FrankyKeymasterTmplate copy is now possible (in the next version), but read my next remark 🙂
Concerning hybrid events: create a custom field and check the value using [eme_if] in your confirmation message and booking emails.
FrankyKeymasterWhile cleaning up old feature requests, I saw this one. Mercadopago is in EME for quite some time already, so I’m closing this.
FrankyKeymasterAnd I also added some limited caching to it:
https://plugins.trac.wordpress.org/changeset/2770156/FrankyKeymasterThanks for testing 🙂
Also, make sure you test the scenario with users not logged in and/or not in the group. -
AuthorPosts