Pixelbart
Forum Replies Created
-
Forum: Plugins
In reply to: [Helpful] database error Table ‘…’ doesn’t existThank you for your feedback!
I’ll take a look at it. It seems that the helpful_instances table was not created for you.
Forum: Plugins
In reply to: [Helpful] Feedback tabSorry, I was not informed by WordPress.org about your answer. I write to each changelogs, there is actually always everything. So before the update always read the changelogs. Other channels to inform about changes, there are unfortunately not.
Please excuse this! If you think of a better and more privacy-safe solution, feel free to contribute or give feedback. I do this all by myself and am always happy about feedback.
Please stay healthy and have a nice holiday!
Greetings Kevin
Forum: Plugins
In reply to: [Helpful] Email and Name Only When Logged OutHello!
Thank you for your feedback. When users are logged in, they do not have to provide a name and email. Helpful then automatically uses the user’s data.
Helpful uses the WordPress is_user_logged_in function to check if the user is logged in. If this does not work for you, another plugin accesses it. It is a normal function of WordPress core.
See: https://developer.wordpress.org/reference/functions/is_user_logged_in/
Stay healthy π
Forum: Plugins
In reply to: [Helpful] Feedback tabHello!
Thank you for your feedback. You need to activate the tab first. To do this, go back to the settings and check if you have everything active.
Helpful > Settings > Details > General > Disable feedback completely
This option must not be active. It could be that the option is not active and the tab is still not visible. Then just save all options again.
Stay healthy!
Forum: Plugins
In reply to: [Helpful] helpful widget not showing on HomepageHello @sfauzz
thank you for your feedback. Helpful always requires a post ID to which a reference can be established. Without a reference, Helpful can’t tell if this post or content is useful.
You can store this in the shortcode:
[helpful post_id="1234"]Forum: Plugins
In reply to: [Helpful] Custom Post Type IntegrationUnfortunately not at the moment. Now before Christmas it doesn’t look good, there are many other things. Currently, the feature is also not much in demand, which is why my prioritization is still in the bug fix. Unfortunately, this is not only a small feature, I have to adjust a lot in the backend.
I have it on my list though, which I recently worked through. So it shouldn’t take that long. I can’t tell you a time because I don’t do contract work here. It’s just a hobby and I treat it as such.
I’ll tag you here though, so you’ll know.
Forum: Plugins
In reply to: [Helpful] Custom Post Type IntegrationRight. So everything is already saved correctly, but you yourself can’t see it yet. I have to make it visible first. You can continue to use this so, with an update, when I have built this, everything is then shown correctly.
So it’s already saved correctly, just not shown yet.
Forum: Plugins
In reply to: [Helpful] Custom Post Type IntegrationThe Helpful heading is actually only overwritten when a new heading is inserted in the metabox, directly in the Q&A page. Otherwise the heading is taken from the arguments you defined with heading=””.
Here you can see that the heading is changed if in the metabox directly in the page, an own heading was set:
https://github.com/pixelbart/helpful/blob/master/core/modules/class-frontend.php#L337
And here you can see how Helpful uses the arguments of the shortcode after taking the default values:
https://github.com/pixelbart/helpful/blob/master/core/modules/class-frontend.php#L298
This should work so far. The only important thing is that Helpful does not yet process the instances themselves and you will then always see the heading in the backend. Helpful itself saves the instances anyway, but you don’t see them yet, because I haven’t implemented that yet. I have only in advance already “created” in the background. The output I still have to build and also still think out.
Originally this was not possible at all, with the shortcodes. That came in only later. More about the instances and the current state, you can learn here:
https://github.com/pixelbart/helpful/releases/tag/4.4.51
Since I do everything alone, it always takes quite a long time and I do Helpful only as a hobby, which is why Helpful is open-source and anyone can join if they want and can. Unfortunately I’m usually the only one doing anything here βΊοΈ
Forum: Plugins
In reply to: [Helpful] Remove h3 heading tagThank you for your feedback!
There are numerous filters. With this one, you can influence the HTML of the headline. Here in the example h3 is replaced with div. This is certainly more accurate, but should already be useful to you.
functions.php:
add_filter('helpful_headline_html', function ($html) { return str_replace('h3', 'div', $html); }, PHP_INT_MAX );Stay healthy and greetings
Kevin- This reply was modified 4 years, 5 months ago by Pixelbart.
Forum: Plugins
In reply to: [Helpful] Start and Log Page/** * @param array $args * @return array */ add_filter('helpful/ajax_get_posts_data/args', function(array $args) { $args['post_type'] = 'helpie_faq'; // <-- here return $args; });I have checked this on 4 pages for me. It works fine, directly in the functions.php. Here in the example I have selected only the post.
In the settings I have selected a completely different. Then only the post are shown to me. With a custom post type I have also tested this. It always works fine.
You may have to check in another place why this is not working. You can use the Query Monitor, but also set WP_DEBUG and WP_DEBUG_LOG to true, in your wp-config.php file. After that, in the debug.log directly in your wp-content/ folder, should put all the info, if there is an error.
Otherwise your post type will be registered differently, or incorrectly. You can still try to put an init in front of it if necessary:
add_action('init', function() { /** * @param array $args * @return array */ add_filter('helpful/ajax_get_posts_data/args', function(array $args) { $args['post_type'] = 'helpie_faq'; // <-- here return $args; }); });Also with this, it works for me right away, without any problems.
Debugging in WordPress: https://helpful-plugin.info/docs/getting-started/debugging-in-wordpress/
- This reply was modified 4 years, 5 months ago by Pixelbart.
Forum: Plugins
In reply to: [Helpful] Start and Log PageThe mentioned filter is intended for exactly this problem. You can set your post types there without setting them in the settings.
This filter only works on the start page in Helpful’s settings.
functions.php:
/** * @param array $args * @return array */ add_filter('helpful/ajax_get_posts_data/args', function(array $args) { $args['post_type'][] = 'my-custom-post-type'; // <-- here return $args; });`See: https://github.com/pixelbart/helpful/blob/master/core/tabs/class-start.php#L191
Forum: Plugins
In reply to: [Helpful] Start and Log PageForum: Plugins
In reply to: [Helpful] Start and Log Page@meir321 I published you an update. That should help you so far, I hope. You can read more about it here:
https://helpful-plugin.info/docs/filters/helpful-ajax_get_posts_data-args/
Forum: Plugins
In reply to: [Helpful] Start and Log PageIt is important that only those entries are visible on the start page that are also set under “Post Types” in the settings. For example, if you want to see pages, but you have only selected “post”, it will not be shown.
The logs show all saves, even those saved by content that is no longer active.
Forum: Plugins
In reply to: [Helpful] dashboard widget slows down the admin home pageYou can perform maintenance in the settings under System. This should clear the cache. A “bookmark” or a faster option does not currently exist.