Pixelbart
Forum Replies Created
-
Forum: Plugins
In reply to: [Helpful] Users can submit form without any inputAh now I understand… you can send feedback without content. That is correct. But Helpful does not save the feedback then.
The feedback thing came later, so it’s basically separate from Helpful itself. I’ll figure something out about that. Helpful does not check the field when sending. Either Helpful saves the feedback, or it doesn’t. It checks if the words are in the WordPress blacklist, and then trims the content. If then nothing is there, then the feedback is not saved. The vote is already saved before.
Forum: Plugins
In reply to: [Helpful] Users can submit form without any inputThank you for your feedback. Can you send a link so I can take a look?
I can’t reproduce the bug on any of my pages.
The deleting thing is a good idea. I’ll think of something to do about that. Currently I have so much to do that updates have to wait.
Stay healthy!
Forum: Plugins
In reply to: [Helpful] Helpful doesn’t appearI think your problem is that you are using
get_the_content()but have not applied a filter so that the shortcodes are not converted.You can replace get_the_content() with the following things, so that shortcodes are also converted:
<?php echo apply_filters( 'the_content', get_the_content() ); ?>
<?php echo do_shortcode( get_the_content() ); ?>These are two possibilities. This is also how all shortcodes should be converted.
This only as an example. If this already works for you, it is excellent. Just remember to use
[helpful post_id="ID of the post"], if several posts are displayed on one page, so that Helpful always evaluates the correct post.Forum: Plugins
In reply to: [Helpful] Helpful doesn’t appearIf this then works with the shortcode, you can use:
<?php echo do_shortcode( "[helpful]" ); ?>A shortcode with a specific post ID:
<?php echo do_shortcode( '[helpful post_id="POST_ID"]' ); ?>Just in case I can’t answer you anymore today, because I’m off work now.
Forum: Plugins
In reply to: [Helpful] Helpful doesn’t appearYou should create a new post and place the shortcode once. This way we (you and i) can check if it’s Helpful or your site.
If the shortcode doesn’t work in ONE post either, then we’ll look further.
Forum: Plugins
In reply to: [Helpful] Helpful doesn’t appearWidgets do not support shortcodes. Please place it in the content of a post that is also selected as a checkbox in the Helpful settings.
So post, page, media or similar.
Forum: Plugins
In reply to: [Helpful] Helpful doesn’t appearDo you use the_content() in your posts ?
Helpful is only placed automatically if the posts also use the_content().
I took a look at your main theme (allium) once. Without any changes to the theme it should work. You are using a child theme though. I don’t know what your files look like.
You can also place the shortcode in a post [helpful].
If the shortcode works, it’s not Helpful, but your site.
Let me hear how it goes.
Forum: Plugins
In reply to: [Helpful] Helpful doesn’t appearYou can also check the following things:
Does your .htaccess say something like that? If so, take it out:
<FilesMatch "(admin-ajax.php)"> Require all denied </FilesMatch>Also check if your wp-admin folder is on CHMOD 744 or 755.
Do you use other plugins? Try to disable them all and try again. So that you can rule out that it is due to other plugins.
Otherwise I can only advise you to enable https.
Forum: Plugins
In reply to: [Helpful] The plugin does not work on the custom themeI changed the status because this is not a bug of Helpful but of your theme. It is not configured correctly.
I wrote you an e-mail, but you did not reply. You can write me here again if you are stuck.
You have not activated SSL (https) and this may cause problems. You can try the following (.htaccess):
Access-Control-Allow-Origin: http://myclassadmin.comor
Access-Control-Allow-Origin: https://myclassadmin.comRead more: https://stackoverflow.com/a/12943371
Forum: Plugins
In reply to: [Helpful] The plugin does not work on the custom themeHello,
I don’t know which files you have. Basically a WordPress Theme can look like you want.
In your WordPress theme there should be the following files:
header.php
index.php
footer.phpIn the header.php you place <?php wp_head(); ?> before the </head>.
In the footer.php you place <?php wp_footer(); ?> before the </body>.
You should try this once, or you can create an admin account for me and I can have a look at it at your site.
me@pixelbart.de (When creating it, check the box at the bottom so that I receive an email).
- This reply was modified 5 years, 5 months ago by Pixelbart.
Forum: Plugins
In reply to: [Helpful] The plugin does not work on the custom themeHello,
your theme is not installed correctly. You need
<?php wp_footer(); ?>in your footer right before the</body>and<?php wp_head(); ?>in your<head>section. No jQuery is loaded and therefore none of this works.Example:
<!doctype html> <html dir="rtl" lang="ar"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>Hello, world!</title> <?php wp_head(); ?> </head> <body> <h1>Hello, world!</h1> <?php wp_footer(); ?> </body> </html>Stay healthy!
Forum: Plugins
In reply to: [Helpful] helpful_user cookies prior consentGreat. That’s exactly how I would do it.
So everything should be fine.
Have a nice day!
Forum: Plugins
In reply to: [Helpful] helpful_user cookies prior consentThis way the user is generated and identified. So purely random, but unique. But no personal information. Not even the browser is stored.
$length = apply_filters( 'helpful_user_bytes', 16 ); if ( function_exists( '') ) { $bytes = random_bytes( $length ); } else { $bytes = openssl_random_pseudo_bytes( $length ); } $string = bin2hex( $bytes ); return apply_filters( 'helpful_user_string', $string );- This reply was modified 5 years, 5 months ago by Pixelbart.