Pixelbart
Forum Replies Created
-
Forum: Plugins
In reply to: [Helpful] Archive Page?Helpful is not really made for this. But you can try this:
https://gist.github.com/pixelbart/0f4283baca2a7dbd75a8d4aac4f10b70
I just wrote the code and tested it. It worked for me. I don’t know if I’m going to add an option for it, because most people don’t use Helpful on archive pages and often the global $post variable is not set by the WordPress themes.
I hope that helps you. Stay healthy!
Thank you for your feedback!
There is a hook that you can use to edit the fields that are sent via the feedback form:
https://helpful-plugin.info/documentation/helpful_feedback_submit_fields/
There is no hook for the user ID because the WP_User objects are used here.
You can use is_user_logged_in in the hook to check whether the user is logged in, provided the API does this correctly and logs the user in.
Forum: Plugins
In reply to: [Helpful] display helpful at the very end of the post contentForum: Plugins
In reply to: [Helpful] display helpful at the very end of the post contentYou need to put this in your functions.php. I did not manage to test this. So you should do it with FTP (Filezilla or similar) and not in the wp-admin! If the code doesn’t work, you can then act quickly and remove it again.
Example: https://gist.github.com/pixelbart/0aa2e13d0d83153b6759506bc6d4b29b
How to execute PHP code: https://helpful-plugin.info/documentation/execute-php-code/
- This reply was modified 5 years, 9 months ago by Pixelbart.
Forum: Plugins
In reply to: [Helpful] display helpful at the very end of the post contentHelpful is actually always displayed at the end. If this is not the case for you, the footnote might not be displayed using the_content and your WordPress theme author has to take care of this.
You can disable the automatic placement of Helpful in the Helpful settings and use the shortcode [helpful].
Forum: Plugins
In reply to: [Helpful] Query top rated postsI made you a shortcode quickly. You can place it in your widget and the last posts will be displayed.
The shortcode is built like this:
[helpful_pro post_type="post" limit="5"]Code: https://gist.github.com/pixelbart/ad4e0c6f4ae4d589818950d5d468db4c
- This reply was modified 5 years, 9 months ago by Pixelbart.
Forum: Plugins
In reply to: [Helpful] Notice: Trying to get property ‘ID’ of non-objectIt looks like Helpful can’t find the post. The only way to solve this is to disable the automatic insertion of Helpful and to work with [helpful] shortcode.
If I would solve the problem, Helpful would not be shown if the post is not found. Therefore you would have to disable Helpful and use the shortcode instead.
Helpful > Settings > Details > General > Hide Helpful in post content
- This reply was modified 5 years, 9 months ago by Pixelbart.
Forum: Plugins
In reply to: [Helpful] Helpful ‘s Nonces ValidityHere are two more links related to Nonce Caching. One for WP Rocket and one for Comet Cache. Surely there are more posts out there, but I found this on the fast one:
WP-Rocket:
https://docs.wp-rocket.me/article/975-nonces-and-cache-lifespanComet Cache:
https://cometcache.com/kb-article/what-are-wordpress-nonces-and-why-are-they-not-cache-compatible/Forum: Plugins
In reply to: [Helpful] Helpful ‘s Nonces ValidityThis is not a support question for Helpful, but here, I just wrote you this. It worked on my tests. I documented the code. You can write it into your functions.php like this and a dashboard widget will be shown.
Note that you must remove the
<?phpat the beginning, otherwise your page will break.https://gist.github.com/pixelbart/188d3b7ec76a036afd918d74b979da48
- This reply was modified 5 years, 9 months ago by Pixelbart.
Forum: Plugins
In reply to: [Helpful] Helpful ‘s Nonces ValidityI have not created custom nonces for Helpul and work with the default settings of WordPress.
So I do not touch the filter/hook nonce_life. It always takes what is in WordPress. I tried to use only things from WordPress, so there are as few conflicts as possible.
https://developer.wordpress.org/reference/hooks/nonce_life/
You could use wp_nonce_tick to check if something has changed and then find out what time you use best for your cache.
https://developer.wordpress.org/reference/functions/wp_nonce_tick/
You can also take a look at the Helpful code yourself: https://github.com/pixelbart/helpful
Nonce: https://github.com/pixelbart/helpful/blob/master/core/classes/class-helpful-frontend.php#L147
Forum: Reviews
In reply to: [Helpful] The most important plugin for blogGreat to hear! Thanks for your review!
Forum: Plugins
In reply to: [Helpful] How to implement your version of HelpfulHi @statcraze
the design does not exist, because I always test on the site. So if someone has a problem here in the forum, I test it there on the site. This is the result of a test.
You can use Font Awesome icons instead of yes and no when using Font Awesome on your site.
At Helpful-Plugin.info I use the Helpful Theme Clean and have made some adjustments.
Also, I did not add any text in the settings. Only the icons. This is the only CSS I use:
.helpful-pro { background: #88C057 !important; border-color: #88C057 !important; color: #fff !important; } .helpful-contra { background: #ED7161 !important; border-color: #ED7161 !important; color: #fff !important; } .helpful-button:hover { opacity: 0.85; }I hope that helps you a bit!
Forum: Plugins
In reply to: [Helpful] Unminified JavaScript / CSSNot at the moment. This is because when I do, most caching plugins break the CSS and JS. Therefore it is better that the caching plugins do that.
In general, a caching plugin like WP Fastest Cache is recommended for your website, especially if you use Elementor or other page builders.
Forum: Plugins
In reply to: [Helpful] Helpful position in postThe problem with changing date formats is that then certain things won’t work anymore. This is not an Excel format, but the format from the database.
It is structured as follows: Y-m-d H:i:s
Most JavaScript plugins are not designed to change the date. Therefore, the format of the database is used uniformly everywhere. If I would take the format from the settings, some things would not work anymore. For example the range for statistics.
Thank you for your help with the translation. Did you let the Polyglots team know? They don’t check the translations on their own, you have to let them know.
Forum: Plugins
In reply to: [Helpful] Disabling PHP sessionsHi @viktorix
Thanks for your feedback. I can’t reproduce the error on me. Maybe increasing your memory limit will help. There are many posts on Google about this. Here is a good summary: http://dailyblogging.org/wordpress/increase-wordpress-memory-limit/
To set the memory limit to 256 if your server allows it. Sites that protect themselves with WordFence, for example, always need a higher memory limit. Possibly this is also the case with your caching method.
Otherwise you can install the plugin for PHP sessions. Maybe it is not only Helpful with the sessions, but also another plugin: https://de.wordpress.org/plugins/wp-native-php-sessions/
The plugin handles most errors with sessions. For example, no more errors will be displayed under Site Health in WordPress regarding the timeout for the API.
- This reply was modified 5 years, 10 months ago by Pixelbart.