Comments on: Comment appreciation with points https://mycred.me/tutorials/comment-appreciation-with-points/?utm_source=rss&utm_medium=rss&utm_campaign=comment-appreciation-with-points Free WordPress Reward, Badge, Loyalty & Points Management Plugin Tue, 02 Aug 2022 13:33:19 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: alesandrx100 https://mycred.me/tutorials/comment-appreciation-with-points/#comment-62267 Mon, 20 Dec 2021 14:45:27 +0000 https://devstages.wpengine.com/?post_type=tutorial&p=659#comment-62267 Hi, and how to make that this button was seen only by the author of a post?

]]>
By: Gabriel Merovingi https://mycred.me/tutorials/comment-appreciation-with-points/#comment-62268 Mon, 20 Dec 2021 14:45:27 +0000 https://devstages.wpengine.com/?post_type=tutorial&p=659#comment-62268 Hey. You would need to adjust the code to check the post the comment belongs to and if the current user is not the post author, hide the button.
Here is an updated version of the code used in this tutorial: http://pastebin.com/aCbwwGL1

]]>
By: mark https://mycred.me/tutorials/comment-appreciation-with-points/#comment-62261 Mon, 20 Dec 2021 14:45:17 +0000 https://devstages.wpengine.com/?post_type=tutorial&p=659#comment-62261 OK, I did that, but it’s the same.

]]>
By: dave https://mycred.me/tutorials/comment-appreciation-with-points/#comment-62265 Mon, 20 Dec 2021 14:45:17 +0000 https://devstages.wpengine.com/?post_type=tutorial&p=659#comment-62265 Hey, Gabriel !
After clicking post comment button, i can see only these warnings:
Warning: Missing argument 2 for my_custom_comment_text() in /home/user6347/rc/wp/wp-content/themes/tonic/functions.php on line 815

Warning: Cannot modify header information – headers already sent by (output started at /home/user6347/rc/wp/wp-content/themes/tonic/functions.php:815) in /home/user6347/rc/wp/wp-includes/pluggable.php on line 1178

What is my fault ?
Thank you!

]]>
By: Gabriel Merovingi https://mycred.me/tutorials/comment-appreciation-with-points/#comment-62266 Mon, 20 Dec 2021 14:45:17 +0000 https://devstages.wpengine.com/?post_type=tutorial&p=659#comment-62266 I have updated the code to take into account the circumstances where this error occurs. Just replace your current code with the new one.

]]>
By: mark https://mycred.me/tutorials/comment-appreciation-with-points/#comment-62262 Mon, 20 Dec 2021 14:45:17 +0000 https://devstages.wpengine.com/?post_type=tutorial&p=659#comment-62262 still waiting for a solution. thank you

]]>
By: Gabriel Merovingi https://mycred.me/tutorials/comment-appreciation-with-points/#comment-62263 Mon, 20 Dec 2021 14:45:17 +0000 https://devstages.wpengine.com/?post_type=tutorial&p=659#comment-62263 Sorry for the delay, been trying to replicate the issue. You could enqueue the script via your theme by using something like this: http://pastebin.com/mEUpMJvy.

]]>
By: mark https://mycred.me/tutorials/comment-appreciation-with-points/#comment-62257 Mon, 20 Dec 2021 14:45:17 +0000 https://devstages.wpengine.com/?post_type=tutorial&p=659#comment-62257 disabled WTC completely, the button still doesn’t work.

]]>
By: Gabriel Merovingi https://mycred.me/tutorials/comment-appreciation-with-points/#comment-62258 Mon, 20 Dec 2021 14:45:17 +0000 https://devstages.wpengine.com/?post_type=tutorial&p=659#comment-62258 Is the mycred-send.js file loaded on the page?

]]>
By: mark https://mycred.me/tutorials/comment-appreciation-with-points/#comment-62259 Mon, 20 Dec 2021 14:45:17 +0000 https://devstages.wpengine.com/?post_type=tutorial&p=659#comment-62259 no, it seems it is not loaded, and I don’t have it in WTC minify either. I do have transfers add-on activated. what could cause it not to load?

]]>