sankari
Forum Replies Created
-
Hello @katzw
It could take a while until the developers look into this issue (as mentioned here). But I found a workaround that works for us and I would like to share it with you. It’s by adding and using a custom time span.
In our case, we use the EM Events widget and its filter was set to “future events”. The problem was that events of today disappeared before the end of the day.
I found this tutorial on custom time spans (“scope”):
https://wp-events-plugin.com/tutorials/create-your-own-event-scope/…and used the WPCode plugin:
https://wordpress.org/plugins/insert-headers-and-footers/…to add a custom time span that displays events of today plus 200 days.
Here is how to do it:
- Install and activate the WPCode plugin.
- In the WordPress main menu select Code Snippets.
- Add New
- Add Your Custom Code (New Snippet): Use Snippet
- Add a snippet title, e.g. My Events Manager Scope.
- Select PHP Snippet as code type.
- Enter the code below in the Code Preview field.
- In the Basic Info box enter the tags events manager and scope and set the priority to 3.
- At the beginning of the page change the switch from Inactive to Active and select Save Snippet.
- If you use the EM Event widget: In that widget (Appearance > Widgets) select the custom time span and save the changes.
- If you use a shortcode: add/change the attribute to the one you defined in the code of your code snippet, e.g. scope=”today-plus-200-days” and save the page or post.
Code Snippet:
add_filter( 'em_events_build_sql_conditions', 'my_em_scope_conditions',1,2); function my_em_scope_conditions($conditions, $args){ if( !empty($args['scope']) && $args['scope']=='today-plus-200-days' ){ $start_date = date('Y-m-d',current_time('timestamp')); $end_date = date('Y-m-d',strtotime("+200 days", current_time('timestamp'))); $conditions['scope'] = " (event_start_date BETWEEN CAST('$start_date' AS DATE) AND CAST('$end_date' AS DATE)) OR (event_end_date BETWEEN CAST('$end_date' AS DATE) AND CAST('$start_date' AS DATE))"; } return $conditions;}add_filter( 'em_get_scopes','my_em_scopes',1,1); function my_em_scopes($scopes){ $my_scopes = array( 'today-plus-200-days' => 'Today plus 200 days' ); return $scopes + $my_scopes; }You can modify the time span and the descriptions on these lines go with your needs:
if( !empty($args['scope']) && $args['scope']=='today-plus-200-days' ){$end_date = date('Y-m-d',strtotime("+200 days", current_time('timestamp')));'today-plus-200-days' => 'Today plus 200 days'It should work well for events that start and end today or within the specified number of days in the future. However, it doesn’t work with events that started before today and end today.
Please let me know if this works for you, too.
- This reply was modified 2 years, 9 months ago by sankari. Reason: Link to shortcodes page added
Same case here. The timezone in WordPress’ general settings and the plugin’s general options are correct. The site owner reports that events were archived before midnight.
Plugin version 5.12.1
WordPress version 6.3.2My pleasure and thank you for your exceptional effort!
Forum: Plugins
In reply to: [Page scroll to id] Warning: Array to string conversion in pluggable.php@malihu Thanks very much for reacting so soon and for your hint about the development version!
Thank you very much for your comments.
In my case, the solution that paid support recommended didn’t solve the issue.
However, I noticed that the missing
ULtags were added to the code after saving the settings of the event widget in the widget editor, leading to valid HTML.Deactivating all styles of the new
DIV(classes .em.pixelbones and .em.em-list-widget) reverted the widget’s styling to the one of version 5. Of course that only applies to that widget type, thus styles of other EM widgets and templates need to be checked and updated as well.Forum: Plugins
In reply to: [Salt Shaker] White screen after outage of wordpress.orgMy pleasure @nagdy and thank you as well.
Thank you for releasing the beta. I tested the installation and the wizard. When finishing the configuration settings this is the error I get:
Notice: Undefined index: fallback_smtp_password in /home/httpd/vhosts/client/domain.tld/wp-content/plugins/post-smtp/Postman/PostmanInputSanitizer.php on line 155 Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/client/domain.tld/wp-content/plugins/post-smtp/Postman/PostmanInputSanitizer.php:155) in /home/httpd/vhosts/client/domain.tld/wp-includes/pluggable.php on line 1355 Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/client/domain.tld/wp-content/plugins/post-smtp/Postman/PostmanInputSanitizer.php:155) in /home/httpd/vhosts/client/domain.tld/wp-includes/pluggable.php on line 1358Hi @arsalantariq,
Thanks for the info and for looking into it.Hi. I experienced something similar: On the day after the upgrade to WordPress 5.9 the plugin stopped sending. An email authentication failure appeared in the log of the plugin.
In this particular case, the email address used for authentication was a forwarding address only and without any mailbox. Before the upgrade sending worked fine using this address.
The solution was to create another email address with a mailbox and save its credentials in the settings of the plugin.
I didn’t try the wizard config.
Even better π
Okay, thanks Matthias.
That’s great and thanks for checking.
Do you still need the account?Forum: Plugins
In reply to: [Embed Privacy] Feature Request: Display content title on the overlayThank you!
Sent! π
There is a page called Embed Privacy where you’ll find two embeds.
Thank you.
Oh, that’s strange. Yes, I noticed it on three sites so far.
– WordPress: 5.8.2
– Themes: Twenty Twenty-One, Justread Child, Hueman
– Plugin: Embed Privacy 1.3.6On the first site I disabled all plugins except Embed Privacy and it didn’t help. Would you like to check it yourself? I still have your email address from our last contact and could provide you with an account.