Pixelbart
Forum Replies Created
-
Thank you for your feedback! If Helpful’s cache is not activated, this can lead to long loading times in the admin area, because Helpful goes through all entries and totals the votes.
That’s why I had a cache built in so that this is not a problem with larger installations. My wife has several thousand votes in her blog and there is no problem with that.
Helpful should never cause problems in the frontend.
Helpful > Settings > System > CacheForum: Plugins
In reply to: [Helpful] Multiple Questions on same postUnfortunately this is not possible. Helpful is for unique and quick feedback below posts.
What you need are surveys within posts, each with its own context. That would not quite fit into the concept of Helpful. Helpful also does not store the question. It is more about finding out whether the post was helpful or not.
Forum: Reviews
In reply to: [Helpful] 5-STARS is Not EnoughThanks a lot for your positive review and also the feedback! 😎
Forum: Plugins
In reply to: [Helpful] Cache compatibilityHelpful works with the WordPress Ajax requests. You may be able to enter the URL and solve the problem:
/wp-admin/admin-ajax.phpUnfortunately I can not guarantee that. I don’t use cache on my pages (I never have problems with page speed) and others seem to have not the same problems.
Thank you for your cooperation! If you find something, I would take care of it and see if I can do something. Unfortunately I couldn’t think of anything at that time.
- This reply was modified 5 years, 7 months ago by Pixelbart.
Forum: Plugins
In reply to: [Helpful] Control Helpful with ACFWith update 4.4.13 you can now define some texts in the metabox. So you can change the text of single posts.
Forum: Plugins
In reply to: [Helpful] Control Helpful with ACFThe problem with the shortcode is that it does not pass the variables via Ajax Request. If you would use HTML, this could cause problems, because I would pass it into data-attributes of the elements.
With me this worked fine with my filters. I’m not sure why this doesn’t work for you with the new filters.
https://gist.github.com/pixelbart/555d9aa1dbe996ef7285d2041b42a074
Shortcode options: https://helpful-plugin.info/documentation/shortcodes/
- This reply was modified 5 years, 7 months ago by Pixelbart.
Forum: Plugins
In reply to: [Helpful] Cache compatibilityHello! I think there is a problem with the cache and miniaturization of Javascript. Helpful uses Ajax after sending a voice to display the content. When the cache stores Ajax requests in the cache, the same text is always shown.
This is a problem I cannot fix. Also WP Rocket and WordPress installations at Cloudflare have this problem, unfortunately.
If somebody has an idea how I can solve this problem, please contact me. At the moment I can’t think of anything.
Related: https://wordpress.org/support/topic/not-working-with-wp-rocket-and-cloudflare-business/
Forum: Plugins
In reply to: [Helpful] Control Helpful with ACFYou must use get_field. I have also added a new filter. This should solve your problem with the Post-ID.
See: https://wordpress.org/support/topic/control-helpful-with-acf/#post-13469800
Forum: Plugins
In reply to: [Helpful] Control Helpful with ACFget_field( 'helpful_after_pro', $post_id );is just an example. Of course you have to enter theget_fieldyou have set for the post using ACF.Forum: Plugins
In reply to: [Helpful] Control Helpful with ACFThat you can not access the post when you are in
functions.phpis unfortunately not correct. Thefunctions.phpis always called. Therefore there should be no echo there.But with the update 4.4.10 there are new filters for you. I tested the filters and they worked for me. Also in the
functions.php.add_filter( 'helpful_pre_after_pro', function( $content, $post_id ) { if ( get_field( 'helpful_after_pro', $post_id ) ) { return get_field( 'helpful_after_pro', $post_id ); } return $content; }, 10, 2 );More filters: https://helpful-plugin.info/documentation/helpful_pre_name/
Forum: Plugins
In reply to: [Helpful] Control Helpful with ACFWithout having tested it, you could try this with the global
$postvariable. Then you can use ACF to place fields inside the posts and control them.But I don’t know if the global variable is also available in the
pre_option_{option_name}filter. If it is, this should work.But I will put it on the todo and build filters for it. So that this is easier. Also on post base.
add_filter( 'pre_option_helpful_after_pro', function( $option, $default ) { global $post; if ( isset( $post->ID ) ) { /** * Return acf field on post base */ return get_field( 'helpful_after_pro', $post->ID ); } return $option; }, 10, 2 );Thank you! But you really don’t have to do this. I only put this in because I was asked if and how you can leave a tip somewhere 😀
This should not be an incentive to donate anything.
Stay healthy and many thanks!
Forum: Plugins
In reply to: [Helpful] Control Helpful with ACFHelpful uses helpful_feedback_message_voted only if the vote was not recognized. So if sessions and cookies do not work.
Then the vote is set to none and Helpful uses helpful_feedback_message_voted to show something anyway. This is a fallback for such cases.
Maybe your server does not support sessions or you have disabled cookies in your browser.
Just in case there is a plugin that can help you, because it makes the sessions available even on servers that don’t support them. It also helps with bugs with the WordPress API, because faulty sessions don’t send headers in advance anymore.
Plugin: https://wordpress.org/plugins/wp-native-php-sessions/
Forum: Plugins
In reply to: [Helpful] Control Helpful with ACFAlso works for me:
add_filter( 'pre_option_helpful_after_pro', function( $option, $default ) { return 'pixelbart: Yes'; }, 10, 2 );Forum: Plugins
In reply to: [Helpful] Control Helpful with ACFI had already tested this. But I do not use ACF. If ACF does not work, you might have to put the functions in the acf/init hook to make the fields of ACF available.
Related: https://www.advancedcustomfields.com/resources/acf-init/
My test without ACF works fine:
add_filter( 'pre_option_helpful_heading', function( $option, $default ) { return 'test'; }, 10, 2);I don’t include things in the documentation that have to do with third parties. Simply because there are so many things that people use. Helpful works with the WordPress utilities, so you can manipulate things with the WordPress utilities, for example with the
pre_option_{option_name}Hook.In the future I will add filters for the texts so that you can change things with them.
Forum: Plugins
In reply to: [Helpful] Control Helpful with ACFRight, I did not pay attention to that. I support here during my working hours and try to answer as good and fast as possible.
Did you exchange the
get_field( 'helpful_after_pro', 'options' );with yourget_fieldfrom ACF?