rebelc0de
Forum Replies Created
-
Just tested, sadly I still have issues duplicating the reusable block…the page gets really slow and stuck.
This is the internal structure of my block:
Forum: Plugins
In reply to: [pCloud WP Backup] add this options:Yes, please add auto-delete for older backups when the drive is full: it’s a must feature! 🙏
Great, waiting for the next update! ✊
Awesome, thank you! It fixed several problems! 🪅
I still have a problem, though, when I try to duplicate a reusable block with Spectra blocks inside:
Error: Minified React error #185; visit https://reactjs.org/docs/error-decoder.html?invariant=185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at ll (http://site.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:82579)
at Ft (http://site.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:50487)
at Lt (http://site.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:50293)
at Ir (http://site.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:73407)
at xl (http://site.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:93227)
at http://site.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:91969
at Sl (http://site.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:92034)
at cl (http://site.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:85803)
at zn (http://site.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:32470)
at http://site.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:83221well, but it’s not resolved at all… 😅
I’m waiting for an update that fixes it.
It’s great when people appreciate 😸
Btw I cannot find
view="grid"in the docs:
https://wp-events-plugin.com/documentation/shortcodes/From my code searches, they have not yet implemented any shortcode for the grid view.
Awesome, happy to help! I hope devs will integrate it with more options, the grid is very very useful. 🧙♀️
ADVICE
If you are not familiar with code you should make tests like this in local, before risking to destroy your website. I use WP Local: in 1 click you can create a WP test site (or more). 🪅I also use WP Code, I started with its example of a shortcode and added my code instead. The location is “everywhere”.
Improved code:
add_shortcode('events_grid', 'em_get_events_gridmode_shortcode'); function em_get_events_gridmode_shortcode($args, $format='') { $args = (array) $args; $args['ajax'] = isset($args['ajax']) ? $args['ajax']:(!defined('EM_AJAX') || EM_AJAX ); $args['format'] = ($format != '' || empty($args['format'])) ? $format : $args['format']; $args['format'] = html_entity_decode($args['format']); //shortcode doesn't accept html $args['limit'] = isset($args['limit']) ? $args['limit'] : get_option('dbem_events_default_limit'); if( !empty($args['id']) ) $args['id'] = rand(); if( empty($args['format']) && empty($args['format_header']) && empty($args['format_footer']) ){ ob_start(); // add default grid formats if( empty($args['format']) ){ $args['format'] = get_option( 'dbem_event_grid_item_format' ); } if( empty($args['format_header']) ){ $args['format_header'] = get_option('dbem_event_grid_format_header'); } if( empty($args['format_footer']) ){ $args['format_footer'] = get_option('dbem_event_grid_format_footer'); } //if successful, this template overrides the settings and defaults, including search em_locate_template('templates/events-grid.php', true, array('args'=>$args)); $return = ob_get_clean(); }else{ $args['ajax'] = false; $pno = ( !empty($args['pagination']) && !empty($_GET['pno']) && is_numeric($_GET['pno']) )? $_GET['pno'] : 1; $args['page'] = ( !empty($args['pagination']) && !empty($args['page']) && is_numeric($args['page']) )? $args['page'] : $pno; $return = EM_Events::output( $args ); } return $return; }Great, thank you!
Do you have any ETA? Like days, weeks or months?
I found this way:
$event = new EM_Event();
$event->__set(‘event_start_date’, date( ‘Y-m-d’, $start_datetime ) );
$event->__set(‘event_end_date’, date( ‘Y-m-d’, $end_datetime ) );
$event->__set(‘event_start_time’, date( ‘H:i:s’, $start_datetime ) );
$event->__set(‘event_end_time’, date( ‘H:i:s’, $end_datetime ) );
$event->__set(‘event_name’, $event_name);
$event->__set(‘post_content’, $event_description);
$event->save();Great, thanks to you!
Awesome, thank you! 🙂 Happy to contribute!
Forum: Plugins
In reply to: [footnotes] Footnotes on mobile phonesYes, it affects the latest version: it’s the first time I use this plugin. I just wrote here instead opening a new topic because this one helped me fixing the problem. 🙂
I have also problems with the tooltips so I disabled them (I don’t need them anyway). Maybe there’s an incompatibility with other plugins (we use Elementor + Astra as base).
Here’s a page with the same problem (of course now it’s fixed with the CSS pasted above):
https://fridaysforfutureitalia.it/regaliamoci-un-2021-allinsegna-della-sostenibilita-digitale/Forum: Plugins
In reply to: [footnotes] Footnotes on mobile phonesI’m having the same problem with the latest version:
https://ibb.co/Mfg1XbrI used this CSS to fix it:
.footnote_url_wrap {
word-wrap: anywhere;
}Awesome, thanks!