Forum Replies Created
-
AuthorPosts
-
FrankyKeymaster
The “Booking deleted” message (shown when someone cancels his own booking) is translated using WP. If that is not in your language, you can contribute to the translation project 🙂
eme_mybookings has no option called category_id, but shows a logged-in user all his bookings for all events. You can use the template_id option to show a specific template (that is repeated for each booking), together with a template_id_header/footer.
It does interpret all booking placeholders (and as such also all event placeholders), so, use in your template an eme_if, with something like:[eme_if tag=#_EVENTCATEGORIES incsv=1]show my booking cancel url for category 1: #_CANCEL_URL[/eme_if] [eme_if tag=#_EVENTCATEGORIES incsv=3]show my booking cancel url for category 3: #_CANCEL_URL[/eme_if] etc ...
It is possible that the dev-version is needed (it expands incsv to split on both “,” and “, “)
FrankyKeymasterI added the option to filter events for validation. From the changelog:
Added filter eme_validate_event_filter with 2 options (event and string with existing validation issues), to allow adding own validation rules for the created event. If the output of the filter is not empty, the event will not be inserted in the db and the returned text will be shown as a validation error instead.
FrankyKeymasterThis is again in the doc: https://www.e-dynamics.be/wordpress/category/documentation/7-placeholders/7-4-rsvp-mails/ , search for DISCOUNT
Please also read this post before asking questions unrelated to the initial question:
https://www.e-dynamics.be/wordpress/forums/topic/forum-post-guidelines/FrankyKeymasterEME menu section “Email management”, tab “Test email”
Edit: in the next version, I’ll add a link to this as well.FrankyKeymasterI moved it to the correct thread, sorry (it is your other thread about memberships).
FrankyKeymasterThis is now implemented in the development version and will be in the next release.
FrankyKeymasterBtw: the way I do it: I work with people in EME and just add them to a group if they are “approved”. Using the extra “Field condition” when creating a custom field of type “People”, I can then show extra custom fields per person if e.g. a member of the group “volunteers”.
I use this to keep track of the date they started as a volunteer, if they signed the volunteer agreement etc …FrankyKeymasterIt’s not there yet, that takes a huge amount of coding 🙂
But for now: are free memberships sufficient then?FrankyKeymasterWell, it took me some hours but I think I got the recaptcha working (only v2 with the checkbox, otherwise too much playing needed with javascript).
FrankyKeymasterrecaptcha has other limitations: first of all, it is a google product with usage limits (the same reason why I switched to openstreetmap in the first place). Second: it has issues with multiple forms on one page (which is requested to be possible). Basic code is in place, but I’m reluctant to spend time on that if the second issue can’t get resolved …
FrankyKeymasterIf for volunteers: then I imagine they don’t need to pay at all, no? EME can cope with free memberships without problems (just set the price at 0 and no payment options will be shown). Is that not sufficient then?
Someone else did it using #_SEATS{1} for regular users and #_SEATS{2} for logged in users (and that second one is for volunteers to subscribe in the event to help).
I know that currently volunteer management is not yet incorporated in EME. I’m thinking about the best options here, since for volunteers you need per event: different functions and timeslots per day, and per that function/timeslot an indication of how many people are needed (think in terms of “people behind the bar: from 9-10 2 people, from 10-12 4 people” and “helpers on the field: 9-12: 6 people” etc …).
So I need to code this, and think about how people can subscribe to it then …FrankyKeymasterMemberships have no notion of “approval”. While you can mark a member as “active”, I see no real-life use-case for memberships where you would mark a member as active without them paying for it first …
Of course you can send them via the members-page a mail with the payment link, but why go through that manual process? Are you doing member-evaluations of some kind?FrankyKeymasterDue to the fact that some themes/plugins add an empty line at the top of the html output rendered, this renders programmatically rendered images unusable. I’m now moving that action higher up the chain (before the theme is even being called), so this should work better. I’m still evaluating the possible issues with this, but it is looking ok so far.
FrankyKeymasterWell, the option is in it, but when editing an event there’s a small issue causing the option to not be correctly loaded and thus reset. I’ll update your version to work around it (fix is already in dev too).
FrankyKeymasterWell, in the html output the empty line is still present. I’m not sure who’s generating that line …
I edited the EME plugin to hook into wordpress even earlier (there’s a hook called “init”, but apparently setup_theme comes before that and also before the theme gets loaded). This seems to resolve the empty-line issue causing the image not to show.FrankyKeymasterThe captcha is not google-related, so it is not invalid.
I checked your theme: it inserts an empty line at the top. I edited the header.php file and removed the empty line, but I assume some caching is still going on as the empty line remains. If you can clear the cache (or remove the empty line in the theme if not in header.php) then the image will appear just fine.Mon 1 Mar 2021 at 16:46 in reply to: only show the first or second or third (etc.) event in list? #62160FrankyKeymasterOr more easy: don’t use inline styling, but add a css-class of your own making to it, and in your theme then define the styling rules for that css class.
Mon 1 Mar 2021 at 16:44 in reply to: only show the first or second or third (etc.) event in list? #62159FrankyKeymasterSee also: https://developer.wordpress.org/reference/hooks/safecss_filter_attr_allow_css/
If you want to use “rgba()” notation, you can create your own filter and allow it (so you can use other colors).Mon 1 Mar 2021 at 16:37 in reply to: only show the first or second or third (etc.) event in list? #62157FrankyKeymasterThat’s because it contains ‘(‘ which wordpress (again) considers unsafe …
Try:
<table style="width: 100%; border-collapse: collapse; box-shadow: 3px 3px 9px 0px red;">
Mon 1 Mar 2021 at 16:23 in reply to: only show the first or second or third (etc.) event in list? #62155FrankyKeymasterIf you can post a minimal html (css included) that works and the result wordpress makes of it, then I can see too. I imagine some style tag is added and that might get filtered out too, so under extra html-tags you should probably add your html tag with the style attribute. An example for span:
span,styleFrankyKeymaster@G_Woman : any info on the captcha? If possible/wanted: give me temp access to some test site or so, so I can see if something easy needs fixing.
Mon 1 Mar 2021 at 16:08 in reply to: only show the first or second or third (etc.) event in list? #62152FrankyKeymasterThat’s probably wordpress removing unwanted html tags/values. Fortunately EME can help you keep those. See the EME Settings, tab “Other”, the section about “Extra html tags”.
Mon 1 Mar 2021 at 13:39 in reply to: Different reply e-mails for different events or memberships. #62148FrankyKeymasterI need to change the explanation for the generic “default email address” and name. Because it is best to leave those empty, in which case the contact info per event/membership will be taken as sender.
Mon 1 Mar 2021 at 12:33 in reply to: Visibility page only for non-pending registered users + admin #62147FrankyKeymasterIf you use the “waiting” list, it means you switch a booking between the waiting list and actual pending. So moving a booking from the waiting list just makes it a regular pending booking.
Mon 1 Mar 2021 at 08:51 in reply to: Visibility page only for non-pending registered users + admin #62144FrankyKeymasterOk, and which command then? Because if something is not working, I need to fix it 🙂
Mon 1 Mar 2021 at 00:46 in reply to: Visibility page only for non-pending registered users + admin #62142FrankyKeymaster“I was trying to remove people from the pending list, but that command didn’t work.” ==> which command are you talking about? There is such a thing as pending bookings, but not pending people.
FrankyKeymasterThe captcha should work just fine. EME detects if php-gd is installed and active for it to be used, but otherwise I don’t see a reason for it not working.
FrankyKeymasterThe next version will have a small improvement for this.
Sat 27 Feb 2021 at 11:28 in reply to: Visibility page only for non-pending registered users + admin #62135FrankyKeymasterThe next version will have a new conditional event placeholder #_IS_REGISTERED_PAID , to check if a logged-in person is already registered and has no unpaid bookings for the event.
See: https://plugins.trac.wordpress.org/changeset/2482622/Sat 27 Feb 2021 at 11:11 in reply to: Visibility page only for non-pending registered users + admin #62134FrankyKeymasterNext to that, in a single event template, you can use eme_if to show/hide certain content too. And the cancel form can be added outside eme_if:
[eme_if tag='#_IS_REGISTERED' value='1']#_NOTES blablabla[/eme_if] #_CANCELBOOKINGFORM_IF_REGISTERED
Of course the is_registered check is not enough if they haven’t paid yet. But checking a booking for paid is not possible on an event level (one person can make multiple bookings by default). What I could do is add some is_paid placeholder that then checks for all bookings for the logged-in person for that event and returns 1 if all bookings are paid for. But that’s not in the code yet.
Sat 27 Feb 2021 at 11:04 in reply to: Visibility page only for non-pending registered users + admin #62133FrankyKeymasterIf you just want to restrict access to content on a page, you do can use several EME placeholders together with eme_if to restrict access to logged-in users:
#_IS_USER_IN_GROUP{xxx}
#_IS_USER_MEMBER_OF{xxx}
#_IS_USER_MEMBER_PENDING{xxx}
#_IS_USER_MEMBER_EXPIRED{xxx}
#_USER_HAS_ROLE{xxx}
#_USER_HAS_CAP{xxx}See https://www.e-dynamics.be/wordpress/category/documentation/7-placeholders/7-1-conditional-tags/
So you don’t really need memberships, but you can use EME groups too to restrict access. Configuring the access via EME memberships is easier though, since that can be done on the page in WP via added EME access settings.Sat 27 Feb 2021 at 09:07 in reply to: Visibility page only for non-pending registered users + admin #62131FrankyKeymasterI think there’s misunderstanding here: when sending a booking-related mail (pending/approved/…) you can use placeholders inside that mail. #_PAYMENT_URL is such a placeholder and points people to a payment page. It’s the only valid way to have people pay afterwards for a booking. No need to create own pages for that.
Fri 26 Feb 2021 at 23:43 in reply to: Visibility page only for non-pending registered users + admin #62129FrankyKeymasterI don’t really understand what you’re asking here … if you have a page that you don’t want people to see, use EME memberships or wrap your content in eme_if statements with placeholders that can be used outside events (not those that you’re giving as an example). See https://www.e-dynamics.be/wordpress/category/documentation/7-placeholders/7-1-conditional-tags/ , search for “generic placeholders”. #_IS_REGISTERED does not take an argument, so your statement is not correct there (it is only to be used inside an event template). Also your statement reads to only show the booking form
Anyway, the latest EME version has the option to not show the payment form after registration (so you need to send them the payment url via email upon approving or so).FrankyKeymasterI forgot to add the else-statement:
function my_eme_csv_column_filter($line,$event,$line_nbr) { if ($line_nbr==1) { $out_line=$line; $out_line[1]="my custom header for last name"; $out_line[9]="my custom header for email"; return $out_line; } else { return $line; } } add_filter('eme_csv_column_filter','my_eme_csv_column_filter',10,3);
And the CSV is delimited by what you define in your settings (default is ‘,’ so when opening that in excel or so, make sure to split on that).
FrankyKeymasterAnd what exactly are you struggling with? The example at https://www.e-dynamics.be/wordpress/category/documentation/12-hooks-and-filters/ seems pretty clear to me for that filter. For the first line, just add an extra check on $line_nr==1.
Since per line, the column starts at index 0, by default the index for last name is 1 and for email it is 9. So:function my_eme_csv_column_filter($line,$event,$line_nbr) { if ($line_nbr==1) { $out_line=$line; $out_line[1]="my custom header for last name"; $out_line[9]="my custom header for email"; return $out_line; } } add_filter('eme_csv_column_filter','my_eme_csv_column_filter',10,3);
FrankyKeymasterThe same filter (eme_csv_column_filter) applies to the column headings line too.
Thu 25 Feb 2021 at 15:24 in reply to: Import locations – location_category_ids and location_map_icon not working #62118FrankyKeymasterYou did not use the correct syntax:
– your fields need to be all enclosed with a delimiter (default is double quotes: “), then the category id will already work
– For properties: https://www.e-dynamics.be/wordpress/category/documentation/19-csv-import/csv-import-events-and-locations/ : use “prop_map_icon” for your map_icon property.I’ve mailed you an example.
FrankyKeymasterThe only way the image doesn’t get generated is if the php extension gd is not loaded, or if you haven’t activated the EME option to use the captcha for forms (in the EME options, tab “General”).
Thu 25 Feb 2021 at 14:27 in reply to: Import locations – location_category_ids and location_map_icon not working #62115FrankyKeymasterWould you mind sending me a csv example file containing the headers and a line for the category_ids and for the balloon? I’ll try it here too.
For what I can see: location_category_ids is text (so make sure it is enclosed in double quotes), but import should work.FrankyKeymasterAre you talking about the Mollie payment interface (hosted at Mollie), or the submit button on the regular EME page that says something like “click here to pay with Mollie”?
In the first case there’s nothing I can do (Mollie), in the second case I think it is a html issue then (in which case: send me a payment url via mail, then I can evaluate the resulting html).FrankyKeymasterThe changelog is for the next version 🙂
FrankyKeymasterThat’s indeed one way of doing it.
And from the changelog: “Allow to skip payment directly after booking”
Feel free to make a donation 😉FrankyKeymasterIt is either refunding or a new option for EME to be developed … I can be persuaded you know 🙂
FrankyKeymasterWell, you indicate that the event can’t be paid for via Mollie (only offline), but then you want them to pay via Mollie later on. That’s a problem 🙂
A workaround: keep Mollie in the picture and configure in the EME options a huge “Redirect wait period” (so people won’t be inclined to wait before being redirected to Mollie, and you can put in your message whatever you want). Do note that this redirect wait period is used for everything that requires a payment (memberships too then).
Also: EME has the refund option that can be used for Mollie, so when refusing a booking the refund can happen by just selecting the option “Refund if possible” when declining a booking.FrankyKeymasterSend me an email on franky@e-dynamics.be (it is also mentioned on the homepage).
FrankyKeymasterThe paid status you can see (see the hint on showing/hiding columns), but I’m still interested in understanding the mail issue. Could I have a demo of that? And/or a temp admin account?
FrankyKeymasterHi,
if not using templates indeed the box is text-only but does allow html.
The reason is that there are javascript issues when trying to use hidden html-editors on a page. So I recommend to use templates in there too.FrankyKeymasterIt is already in the code, so feel free to download the dev-version from https://wordpress.org/plugins/events-made-easy/advanced/ if it is urgently needed.
FrankyKeymasterConcerning the first issue: I don’t immediately see any issue in the code. This is the part that marks a payment as paid:
// The payment is paid and isn't refunded or charged back if ($mollie_payment->isPaid() && !$mollie_payment->hasRefunds() && !$mollie_payment->hasChargebacks()) { eme_mark_payment_paid($payment_id,1,$gateway,$mollie_payment_id); }
I’ll try with an account from Mollie here too (but that takes time), but is it possible the payment got set to Paid afterwards? Because if you see the fail template, that means that at time it was not marked as Paid in the system. I don’t react to “not-paid” events from Mollie, so the only other possibility is that the member got marked Paid manually in the backend.
And indeed, EME doesn’t send out notifications about payment failures with a payment gateway, that’s the responsibility of the payment gateway (in EME this just leaves the member as-is, so he can come back later on to pay).FrankyKeymasterI’ll verify the first issue (later today), concerning the second question: you can show additional columns in the members overview (see the hint: “Hint: rightclick on the column headers to show/hide columns”).
Mon 22 Feb 2021 at 16:36 in reply to: only show the first or second or third (etc.) event in list? #62087FrankyKeymasterBased on your screenshot, using header/footer templates (and change the template per entry too then of course) should work just fine.
Mon 22 Feb 2021 at 14:10 in reply to: only show the first or second or third (etc.) event in list? #62085FrankyKeymasterI’m a bit unsure about your question: [eme_events] already shows events in a list, and using the optional header/footer templates you can change the “list” to your liking (default is html “ul” list style). If you need a specific event in a section on your page, I’d recommend to use EME categories for that (or [eme_event] with the event-id, but that’s not as flexible).
FrankyKeymasterReason was that event_id was not given for the new event (in your php logs this would show and also your print_r of the original event would show a lot of info missing). Try this small change:
https://plugins.trac.wordpress.org/changeset/2477870/FrankyKeymasterThe next version has this extra change implemented:
“Allow expired members to sign up again too: this will change nothing in the db but they will be pointed to the membership payment page”FrankyKeymasterIndeed, expired members that completely sign up again are considered new members. If you want people to be able to renew an expired membership, you should mail them the payment url link to pay online (see the doc). That way they can renew an expired membership.
You also have the grace period option, to allow people to pass the end date for a certain period.
I’ll review the code a bit too, maybe I can more easily take expired into account too …FrankyKeymasterThe form is resubmitted when you refresh the page, so it is logical the params stay selected. Just add a “clear” link pointing to the url of your page itself and you’re good to go.
Reset buttons are believed to clutter the interface: https://www.nngroup.com/articles/reset-and-cancel-buttons/FrankyKeymasterIf you have email queueing activated in EME (which is the default), check out the “Scheduled actions” section, where you can influence the email bulk settings (and also has a hint on how to improve WP cron settings for the advanced users).
FrankyKeymastersorry, but to avoid any security issues, this is not possible.
Tue 16 Feb 2021 at 17:40 in reply to: Suddenly events hours have bug, can’t change or create new events. #62066FrankyKeymasterHi,
yes, there’s a change in EME where it validates via jquery now and that will look at the maxlength of those 2 fields. This is indeed a small unwanted side-effect if your wordpress preference is so that the time is more than 8 chars. This should fix it (remove ‘maxlength=”8″‘ in 2 lines in eme_events.php):
https://plugins.trac.wordpress.org/changeset/2475763/FrankyKeymasterCheck your EME settings, tab “Mail”, see options “Enable pending RSVP e-mails” and/or “Enable approved RSVP e-mails”
FrankyKeymasterYou can use the filter eme_event_preupdate_filter if you’d want for that. Just return the same $event on the end (no modif needed), and get the original event using eme_get_event:
add_filter('eme_event_preupdate_filter','my_pre_filter'); function my_pre_filter($event) { $orig_event=eme_get_event($event['event_id']); ... return $event; }
Using that code you have the original event ($orig_event) and the new one ($event), so you can compare the status for the 2 and do what is needed if wanted.
FrankyKeymasterI’ll check that maybe there’s a wrap if the number of days difference exceed a year …
FrankyKeymasterIf the end date was not empty, then the expired check is done based on that date.
FrankyKeymasterI checked the code, and it takes the end date into account. Only if the end date is empty, it takes the start date. Was the end date empty for some reason?
Edit: in the meantime I changed the code a bit (since only the end date should be taken into account anyway).FrankyKeymasterIn the EME options, you have a tab on “data protection” (or gdpr, …) and there you have a setting “Automatically remove expired members”. If that’s not 0, then those will get deleted.
FrankyKeymasterIf you have no new members since, you can restore the table called wp_eme_members (the prefix “wp_” might be different).
Of course safer would be if you knew the member id’s, so you can restore specific lines.
Also, if your membership contains answers to custom fields, you need to restore the corresponding lines in wp_eme_answers too (based on member id).FrankyKeymasterThis is now possible, so moving to closed.
FrankyKeymasterThis is now possible, so moving to closed.
FrankyKeymaster– What is the complete definition of your custom field?
– Why do you think the data is not saved?FrankyKeymasterIt is clearly marked when you create an event.
Sorry, but you need to start testing things out. Create an event, config the rsvp settings and check out the resulting mails.FrankyKeymasterrespondent is the person doing the booking, contact person is the contact person you defined for the event
Templates are clearly explained in the EME settings, see “mail templates”FrankyKeymasterI’ve no idea what you mean with “Mailchimp Account mail notification”. Mailchimp can be used as an smtp server, just like any other mailserver. But you need to talk to mailchimp for more info I guess.
EME can queue mails internally, send them in batches and optionally keep track of reads. The “send” part is completely up to you to configure, see the EME settings, tab “Mail”, setting “Mail sending method” and the ones below that setting.FrankyKeymasterThe csv export is more a frontend export, not a db export. But the next version will make the error messages upon import a bit more clear too (code ready already) 🙂
FrankyKeymasterLike the doc states:
The columns “start_date”, “end_date” and “creation_date” should be in the format YYYY-MM-DDMaybe I should show some validation error beforehand, but that would mean to walk through every line … I’ll see how to handle that a bit better
FrankyKeymasterWell, you found your own problem: the columns are indeed “lastname”,”firstname”,”email”,”membership” and “start_date”. In both your examples you did not use those.
FrankyKeymasterPlease see the instructional video for that last question.
FrankyKeymasterDifferent steps:
– create your custom fields (type ‘rsvp’ is preferred)
– create your template with those custom fields to show as you’d like on the frontend
– in “dynamic data” a condition example would be:Field: “#_SEATS” (or if you have seats with different prices: “#_SEATS{1}” or “#_SEATS{2}” or …)
Condition example: “greater than”
Condition value: “1”
Template: your template
(template header/footer are optional and will be used to show up above/below your added template in the form, usefull if you want to repeat this template)
Repeat: “yes” (this will repeat your template for each value where #_SEATS>1 in this example)FrankyKeymasterno reply, moving to generic for now.
FrankyKeymasterEME has its own mail queuing mechanism, so I don’t support others here. You can use the SMTP integration to use the mailchimp smtp service or any other smtp provider if you want to.
Also EME can use “wordpress mail” as mail sending mechanism, so anything that hooks into that can also be used then.Sun 7 Feb 2021 at 17:39 in reply to: Change default checkbox values in RSVP tab when creating event #62018FrankyKeymasterSearch for “take_attendance” in eme_events.php. I will not provide any more info, as I do not support changing the code yourself, as it will be reverted during upgrades. So, people doing this need to understand php.
FrankyKeymasterAlso: a demo would be nice for me to check.
FrankyKeymasterSeems to me that you have javascript errors on your page. Check your browser console for those.
FrankyKeymasterThat means your site is not receiving enough traffic for the wordpress to kick in then.
See the hint on the “scheduled actions” page:Cron tip for more accurate scheduled actions:
Put something like this in the crontab of your server: */5 * * * * php -q /path/to/wordpress/wp-cron.php >/dev/null 2>&1
And add the following to your wp-config.php: define(‘DISABLE_WP_CRON’, true);FrankyKeymasterThe date planned comes from your database (meaning that is an hour behind compared to you, so probably that server is not using your timezone).
But it is not an issue as I use database-based time differences to decide when to send the mails.
Based on your explanation: is your wordpress cron configured correctly? Normally WP has its internal cron mechanism, but that’s based on when someone actually visits the site. So:
– check your cron (or use a WP plugin to check it for you, e.g. WP Crontrol)
– if doing cron manually (via your system cron, and not WP, which is also my recommendation): make sure it is configured correctly
– if you’re using EME mail queueing (which is recommended): make sure it is correctly configured. Check the settings in the submenu “Scheduled actions” for this.FrankyKeymasterYes and the answer is the same as my last post above. Read up on “dynamic data”.
FrankyKeymasterYes, there is: https://www.e-dynamics.be/wordpress/category/documentation/7-placeholders/7-6-registration-form-fields/ , search for “dynamic data”.
FrankyKeymasterSee the setting “Booking form format” in the EME RSVP settings, which you can change per event. Please read the initial doc :
https://www.e-dynamics.be/wordpress/category/documentation/3-installation-and-usage/For a new post in the forum: just select the forum of choice at the bottom of: https://www.e-dynamics.be/wordpress/forums/ , then you’ll see a form.
And if there are console errors: javascript errors need to be fixed (and are most likely not EME related, so you need to read those and fix the corresponding plugin/theme).FrankyKeymaster@developer1602: next time please create a new topic, see https://www.e-dynamics.be/wordpress/forums/topic/forum-post-guidelines/
Concerning your question: see https://www.e-dynamics.be/wordpress/category/documentation/7-placeholders/7-6-registration-form-fields/ . Just create a custom field and then add it to the booking form template using #_FIELD{xx} syntax.FrankyKeymasterDid you check your browser for javascript errors? This is what your site reports here:
Uncaught ReferenceError: jQuery is not defined
https://graphisoft-nord.de/wp-content/cache/autoptimize/js/autoptimize_single_d2dbd9c4e96fdc0640533c25c26a23e7.js?ver=2.1.105:2 Fix your javascript errors and all should be ok.
FrankyKeymasterWell, invalid client means exactly that … check to make sure all paypal options are correctly entered. Also, maybe you want to use the paypal legacy option (depending on your settings).
FrankyKeymasterDid you fill out the paypal details in the EME options?
FrankyKeymasterIf I currently have this:
div_arr_map[i] = L.map(divname, myOptions);
And I add this:
divs[i].eme_mapObj = div_arr_map[i];
does then divs[i].eme_mapObj also has the same events/objects that are added later on to div_arr_map[i] (using addTo etc ..)?Or is it then simpler to replace all “div_arr_map[i]” occurences by “divs[i].eme_mapObj” ?
FrankyKeymasterI’m still a bit reluctant on this … somehow it doesn’t feel right. Can you explain exactly what you want to solve? It seems you want to change the popup inner html, but each location already allows you to do so. Or is there something I’m missing?
FrankyKeymasterAre you sure that adding “divs[i].mapObj = div_arr_map[i];” has no other side-effects?
FrankyKeymasterThey only do that if you have a link to that somewhere on your page (maybe a calendar?).
FrankyKeymaster#_CATEGORYURL returns an url itself, not just a link. So you can’t use it as rightside for a href, but more:
<li>#_CATEGORYURL</li>
FrankyKeymasterThis post was marked as pending, but I think you got it resolved in the meantime, no?
Mon 18 Jan 2021 at 14:06 in reply to: Shortcode [eme_events] – wrong date (year) – config issue (solved) #61977FrankyKeymasterThe error is in your date format in wp-admin/admin.php?page=eme-options&tab=events :
you have “#_STARTDATE{d.m.yy} – #_ENDDATE{d.m.yy}” in “Format: Standard Veranstaltungsliste”, and “y” in PHP means the year in 2-digit format, meaning “yy” is 2 times the year in 2-digit format, resulting in 2121.
See https://www.php.net/manual/en/datetime.format.phpEither use “#_STARTDATE{d.m.y} – #_ENDDATE{d.m.y}”, or if you want 4 digits for the year: “#_STARTDATE{d.m.Y} – #_ENDDATE{d.m.Y}”
Mon 18 Jan 2021 at 13:32 in reply to: Shortcode [eme_events] – wrong date (year) – config issue (solved) #61976FrankyKeymasterMy email info is on the main page: “For commercial support and help, feel free to contact me” => franky@e-dynamics.be
Mon 18 Jan 2021 at 13:08 in reply to: Shortcode [eme_events] – wrong date (year) – config issue (solved) #61974FrankyKeymasterWhat is the display format for your list of events? Also: an extract (mysql) of 1 such event would be nice, so I can import it here and test it (or give me access to your site so I can verify this).
FrankyKeymasterIf you don’t want the payment page for an event, don’t indicate payment providers in the rsvp options for that event.
FrankyKeymasterThanks, I fixed that sql statement. I verified all other statements and they seem correct (a bug avoided, thanks again).
Btw: your linenumber didn’t correspond with the code anymore, so maybe you’re using an intermediate version (just so you know).FrankyKeymasterDid you try out the latest dev-version? I’ll be releasing in the next day or so, but extra testing is always nice to have.
FrankyKeymasterOk, since the wp_id is stored per person, I eliminated this info per booking.
This is the changeset for that (rather big):
https://plugins.trac.wordpress.org/changeset/2453947/
followed by a small correction and removal of commented-out lines:
https://plugins.trac.wordpress.org/changeset/2453951/Feel free to try it out 🙂
This should also solve the issue when you move a booking to another person (where the wp_id was not always taken into account).FrankyKeymasterBut you made another point: moving a booking to another user, should it take over the wp_id of that user? That’s something I need to think about. Let me check the code too.
FrankyKeymasterArgh … I generalized the code (see my post from Dec 26) but I think I made a typo in it …
This one-liner should fix it:FrankyKeymasterWhat do you mean with tracking? EME has mail queuing so you can use that, and using the dev-version of EME all mails are queued (if queueing is activated). In the “send mails” interface you can then see which mails have been sent (and read, if people allow the mail tracking image).
FrankyKeymasterSee the EME settings, tab “Access”. You need to assign “Author approve bookings” the capability of choice and then see if a user has that capability. Like indicated in that page, use “User Role Editor” to manage your own roles and capabilities.
FrankyKeymasterThat is the correct way of doing it 🙂
FrankyKeymasterWell, the replacement there is causing you trouble. So, to fix this, implement this small change
https://plugins.trac.wordpress.org/changeset/2451365/
And then use:
[eme_if tag='#ESC_TOTALSEATS' value='0']no limit[/eme_if]
FrankyKeymaster(it’s Franky 🙂 )
Doing that is not really dripping content, just letting people know about new pages of a certain category … maybe more to check on those “new pages” if they are EME-limited in some way, and only mail those. I need to think about this, it’s a lot of extra coding with not many people asking for this.FrankyKeymasterWell, it wasn’t correct in the past but I knew I changed that in 2.1.100 🙂
FrankyKeymasterCan you tell me which version you’re using?
FrankyKeymasterYou’re using a html table, but a div is more appropriate for mobile responsiveness.
Run your table-html part through a table-to-div converter (like: https://htmlstrip.com/html-table-to-div-converter ) and use the resulting html.FrankyKeymaster#_INCLUDE_TEMPLATE should work everywhere, did you try that?
FrankyKeymasterJust to point out: even after marking a member as paid the member will stay “pending” (if the membership status calculation is set to “automatic”) until the day the membership starts
FrankyKeymastersorry, I made a typo. I’m releasing 2.1.101 now
FrankyKeymasterDid you try the latest version? It incorporates the fix already …
FrankyKeymasterIn the frontend approval is not possible, you need the backend for that. People can be given the specific minimal rights to be able to just approve bookings for their events (e.g. if they are a contact person for that event + the EME right to approve bookings for their events).
FrankyKeymasterYes, the code took into account people that start during a membership period and then take that start date minus one period so people would already be a member for the current “period”. That’s why I also added the option “one free period”, so people would then e.g. register in November, get the membership of the current year *and* of the next year (very simplistic, I know).
But in all calculations, I didn’t account for the simple fact that the start date of the membership could actually be in the future. This should fix that:
https://plugins.trac.wordpress.org/changeset/2447088/FrankyKeymasterI updated the code to be able to reuse it for members too:
https://plugins.trac.wordpress.org/changeset/2446122/events-made-easy/trunk/eme_rsvp.php
https://plugins.trac.wordpress.org/changeset/2446122/events-made-easy/trunk/eme_people.php
https://plugins.trac.wordpress.org/changeset/2446122/events-made-easy/trunk/eme_members.phpFrankyKeymasterWhich paypal are you using? Or is this solved in the meantime (I overlooked this one)?
FrankyKeymasterSee if this change helps:
https://plugins.trac.wordpress.org/changeset/2445509/If it does, don’t forget to make a small donation to keep the plugin alive.
FrankyKeymasterOk, I thought about this further:
– if a user has his account created in WP he should log in first
– if he doesn’t and uses another name but an existing email, a WP user can’t be created. But: I can’t go ahead and use the existing WP account for that registration either, since anybody can use an existing email address.
– in EME “people management”, you can delete a person and when selecting the action “delete”, you can transfer existing bookings to another user. That should solve your problem with manually trying to fix things in the dbFrankyKeymasterConcerning your example: if a user is logged in, he’s not allowed to change his lastname/firstname/email in the rsvp form unless he’s an event editor or admin.
But I see the point if trying to create a second wp account (which will fail since the email address is already in use). Maybe I should catch that and refuse the registration here.FrankyKeymaster[eme_event] needs an event id as argument, I don’t see you using that.
But why use [eme_event] in the first place? You can use #_INCLUDE_TEMPLATE{40} to include the template with id 40 inside another template.FrankyKeymasterLooking at that syntax highlighting plugin, it says “This plugin hasn’t been tested with the latest three major releases of WordPress”, so I can’t start supporting it. So for now I have to say: please contact that plugin editor.
FrankyKeymasterHi,
if you can give me a small playbook on how to reproduce this, that would be very nice. I’ve several sites but most are without only payments …
Even maybe a small db-dump etc … whatever can help (or access to your site?).FrankyKeymasterEvery contribution is much appreciated!
Feel free to send the diff to me via tar.gz or zip (base your diff on the current version), or put the diff somewhere I can download it.FrankyKeymasterThanks for the heads-up about the redundant div. I’ve removed it for the next version too.
For the particular cancellation mail: check your event mail settings to make sure that everything in the part “Booking Cancelled Email” is empty, then the generic part will be chosen.
Thanks for the donation as well, much appreciated!FrankyKeymasterI’m sorry, but I’m not able to reproduce this. Using the captcha option in the event is the only thing that triggers that message if #_CAPTCHA is not present (and yes, I tested using the form directly and with a template).
Make sure that, when using a template, the form beneath the selection box for the template is empty (otherwise that overrides the selected template).
Btw: I’ll correct the message that begins with “Also” (it is not correct English).FrankyKeymasterIn your screenshot the begins/ends (your text in red) is reversed.
FrankyKeymasterHave 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/FrankyKeymasterIf the captcha doesn’t show, it is because some php modules are not installed then (or some theme thing that hides the resulting image, but that’s less likely). For the captcha to show: is the captcha option checked for the rsvp settings in your event definition too?
The google captcha might interfere, I didn’t test that.
Btw: the “booking confirmed” message can be totally adapted in the settings.FrankyKeymasterIs the captcha option enabled in the EME settings?
The error message you post means that the frontend nonce isn’t matching the expected value. Most of the times this is because people are logged in (or not), load the rsvp page and then log out while that rsvp page stays open (or in cache). So make sure that doesn’t happen and yoou should be good to go. Btw: the reason this “fails” is how wordpress handles nonces (they take the login uid into account).FrankyKeymasterThe next version will have a “view event” button on the event edit-screen too. It will only show the saved event, not preview non-saved changes though.
FrankyKeymasterPublishing towards facebook is a pita and I don’t support it anymore (facebook api is just too volatile and they change conditions all the time). You already found the code to send a mail to people, so if you find the code to integrate it with facebook/twitter/… then you can use that in the hook too.
FrankyKeymasterAdd this condition to your code:
if ($event ['event_status'] == EME_EVENT_STATUS_PUBLIC)
FrankyKeymasterIn the overview of events, there’s a link to view an existing event and also a link to show the bookings for that event. Since I give the choice to “stay on edit” I’m guessing you have that active and I could add buttons there too, but currently it seems redoing the same work twice.
FrankyKeymasterThis extra change is needed to allow a negative number for rsvp end on all setups:
https://plugins.trac.wordpress.org/changeset/2412693/FrankyKeymasterI 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/FrankyKeymasterI 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/FrankyKeymasterYou just need to create a template with your placeholders in it, and point to the id of that template in your shortcode.
FrankyKeymasterSee the doc on how to use templates for this shortcode, examples are provided:
https://www.e-dynamics.be/wordpress/category/documentation/6-shortcodes/eme_mybookings/FrankyKeymasterIn your case, use “incsv” and repeat for each wanted value:
[eme_if tag='#_EVENTCATEGORYIDS' incsv="3"] do stuff [/eme_if] [eme_if tag='#_EVENTCATEGORYIDS' incsv="6"] do stuff [/eme_if] [eme_if tag='#_EVENTCATEGORYIDS' incsv="9"] do stuff [/eme_if]
Tue 20 Oct 2020 at 08:32 in reply to: eme_calendar shortcode not defaulting to current month and year #61852FrankyKeymasterAre you sure the date on your server is ok? EME uses that to determine the current date and time.
FrankyKeymasterHi,
thanks for this (and sorry for the late reply, it seems this topic got stuck in “pending for approval”).
If I replace twitter:card with twitter:image, then I think that should be ok, no?
But based on the fact, shouldn’t I just use twitter:card “summary” then?FrankyKeymasterWell, in both cases ‘Require WP membership for booking’ and #_ADDBOOKINGFORM_IF_LOGGED_IN a WP account is needed of course …
FrankyKeymasterI simplified that logic some time ago, to be able to better keep the link between a logged in user and a EME person. But maybe I should revisit this again.
FrankyKeymasterIf you use a multiseat event, you need to change your RSVP form to show that: #_SEATS{1}, #_SEATS{2} etc … (and no longer just #_SEATS). See the doc on multiprice events and the doc on multiseat events.
-
AuthorPosts