Dennis Rasmussen
Forum Replies Created
-
@schwinn1977 Unsure, but I think so, because nobody really reported it to us before now. But it seems like they’ve made a fix which is fantastic.
@depicter1slider1support Thank you!
That is a very quick response and amazing. Will take a look after the update.I think it should be fixed now ??
Latest version.Same issue here for all of our sites using the plugin.
Hi again?@averta ??
Thank you for the reply.
I think you misunderstand what I’m trying to say in this topic.It’s great that you now have ACF support inside Depicter. Well done!
But my issue is that you can’t find Depicter sliders inside the ACF plugin.In ACF you can select posts, pages and other post types for field relationships, but you can’t select Depicter sliders, because Depicter does not use WordPress post types for its sliders.
If you take a look at the first picture of this topic, you can see a screenshot of the field option where you can select posts, pages, forms and other custom post types, but you can’t select Depicter. Other Slider/Slideshow plugins have this kind of support (like SmartSlider3).
I provided an example code above also, which makes this work inside ACF so you can select a Depicter slider in related field options.
I hope this clarifies it all ??
Hi there @averta,
Thanks for your follow-up.
I just updated and tested and I don’t see Depicter as a field type in the ACF editor.Maybe there was a misunderstanding?
Please take a look in my first post ??Hacky solution for now ??
add_action('init', function () { if (!function_exists('acf_register_field_type') || !function_exists('depicter')) { return; } class acf_field_depicter extends \acf_field { public function __construct() { $this->name = 'DEPICTER'; $this->label = 'Depicter'; $this->category = 'relational'; parent::__construct(); } public function render_field($field) { global $wpdb; $sliders = $wpdb->get_results("SELECT * FROM {$wpdb->prefix}depicter_documents WHERE parent = 0 ORDER BY name ASC"); $options = array('<option value=""></option>'); foreach ($sliders as $slider) { $options[] = sprintf('<option value="%s" %s>%s</option>', $slider->id, $field['value'] == $slider->id ? 'selected' : '', $slider->name); } echo sprintf( '<select name="%s" id="%s" class="components-select-control__input"> %s </select>', esc_attr($field['name']), esc_attr($field['id']), implode('', $options) ); } } acf_register_field_type('acf_field_depicter'); });
Well apparently it works now, however I had to confirm the DNS changes once again (they were already confirmed on mailpoet.com, so that’s a bug).
However the only way to confirm the DNS changes (again) was to create the first newsletter to open the table view which had the alert at the top. There was no alert/info regarding the DNS confirmation on the intial page with “Create newsletter” box. You should probably fix that ??
- This reply was modified 1 year, 9 months ago by Dennis Rasmussen.
I was curious about this too, so I created this code. You can add this to the theme functions.php (if you or your developer knows what to do) or in your own plugin, but that requires a developer to make ??
Note: This is experimental code that won’t be updated, so use at your own risk.
It looks like this (not perfect but it works on every page):
add_action('admin_bar_menu', function ($wp_admin_bar) { global $wpdb; if (!class_exists("burst_statistics")) { return; } $icon = '<img src="https://burst-statistics.com/wp-content/uploads/2021/02/cropped-burst-favicon-32x32.png" style="width: 16px; height: 16px; vertical-align: middle; margin: -2px 4px 0 0;" />'; $stats = array(); // Live stats $table_name = $wpdb->prefix . 'burst_statistics'; $time_start = strtotime('10 minutes ago'); $time_now = time(); $on_page_offset = apply_filters("burst_on_page_offset", 60); $live_value = $wpdb->get_var("SELECT count(*) FROM (SELECT DISTINCT(uid) AS uid FROM $table_name WHERE time > $time_start AND ( (time + time_on_page / 1000 + $on_page_offset) > $time_now)) AS active_visitors"); $stats[] = sprintf('Live: %d', (int) $live_value ?: 0); // Page stats if ($post = get_post()) { $burst_total_pageviews_count = get_post_meta($post->ID, 'burst_total_pageviews_count', true); $stats[] = sprintf('Pageviews: %d', (int) $burst_total_pageviews_count ?: 0); } $wp_admin_bar->add_node(array( 'id' => 'admin-bar-burst', 'title' => sprintf('%s %s', $icon, implode(' | ', $stats)), 'href' => (function_exists('burst_admin_url') ? burst_admin_url() : admin_url()) . '?page=burst#dashboard', )); }, 999);
Hope to see this being fixed some day ??
Thank you ??
Thanks for the response.
Feel free to add the feature request for me. I prefer not to create another account. I’ll watch the website for new changes/updates manually ??
Have a great day!
The SVG file used in above screenshots:
https://filetransfer.io/data-package/35v5mvJDThanks ??
I’ve been really busy, so haven’t had the time to reply before now.
Appreciate the follow-up.