[Solved] Custom Ratings meta key  

  RSS

AAPC
 AAPC
(@aapc)
New Member
Joined: 1 month ago
Posts: 2
12/12/2019 10:56 pm  

Hello!  I'm relatively new to wpDiscuz and so far I love it!  Unfortunately, I've run into an issue that I hope you can help with. 

I'm adding wpDiscuz to a food blogger site.  The site uses a plugin called WP Tasty to create recipe cards and it also does comment ratings.  They store ratings in a comment meta key "ERRating".  When I tried to add this in wpDiscuz using the form builder, it saves the value as "errating" (lowercase) which will not work with Tasty.  Is there any way to allow upper/lowercase for the meta_key value for the Ratings field?

If the above is not possible, do you have any developer documentation for adding custom fields to the comment form?  I could write something to integrate the Tasty functionality into the form given the appropriate actions/filters for wpDiscuz.  I tried hooking into do_action('comment_form_top') but the field needs to be inside the <form> tag.

Any assistance you can provide would be greatly appreciated!

This topic was modified 1 month ago by Elvina

Quote
Topic Tags
Elvina
(@elvina)
Reputable Member Moderator
Joined: 5 months ago
Posts: 425
13/12/2019 3:42 pm  

Hi @aapc,

The feature will be added in the next version update.

For now, please deactivate the wpDiscuz plugin, delete it, then download and activate the new wpDiscuz plugin (it's attached below). It is should work fine.

All changes will be included in the next update. 

This post was modified 1 month ago by Elvina

ReplyQuote
AAPC
 AAPC
(@aapc)
New Member
Joined: 1 month ago
Posts: 2
13/12/2019 8:33 pm  

Thank you for the quick reply!  I ended up using the "wpdiscuz_button" action to insert the Tasty ratings.  I would have preferred an action hook inside the form  and above and/or below the comment field but this worked out OK.  I will update the plugin when the next release is published.

Thanks again and love the plugin!


ReplyQuote
Share:
Green
Default
Pear
Black Emo
{green}:grinning:
{green}:wink:
{green}:face:
{green}:inlove:
{green}:sweaty:
{green}:surprised:
{green}:lovekiss:
{green}:laugh:
{green}:formalsmile:
{green}:displeased:
{green}:cool:
{green}:resent:
{green}:nerd:
{green}:screaming:
{green}:amazed:
{green}:sad:
{green}:deceitful:
{green}:starryeyes:
{green}:evil:
{green}:shocked:
{green}:tears:
{green}:sulky:
{green}:smile:
{green}:vomited:
{green}:hi:
{green}:afraid:
{green}:crazy:
{green}:rabid:
{green}:fighting:
{green}:nonoise:
{green}:blushed:
{green}:idontknow:
{green}:scared:
{green}:razz:
{green}:kiss:
{green}:eat:
{green}:shutmouth:
{green}:gape:
{green}:suspicious:
{green}:laughingoutloud:
{green}:bruise:
{green}:crying:
{green}:pray:
{green}:serious:
{green}:excitement:
:)
:d
:wink:
:mrgreen:
:neutral:
:twisted:
:arrow:
:shock:
:???:
:cool:
:evil:
:oops:
:razz:
:roll:
:cry:
:eek:
:lol:
:mad:
:sad:
:!:
:?:
:idea:
:hmm:
:beg:
:whew:
:chuckle:
:silly:
:envy:
:shutmouth:
{pear}:happy:
{pear}:smile:
{pear}:laugh:
{pear}:laughingoutloud:
{pear}:crying:
{pear}:exhausted:
{pear}:nerd:
{pear}:surprised:
{pear}:veryhungry:
{pear}:wink:
{blackemo}:laughtertotears:
{blackemo}:gift:
{blackemo}:love:
{blackemo}:inlove:
{blackemo}:shamefaced:
{blackemo}:heart:
{blackemo}:crazy:
{blackemo}:anguished:
{blackemo}:bruise:
{blackemo}:easymoney:
{blackemo}:exhausted:
{blackemo}:vampire:
{blackemo}:shutmouth:
{blackemo}:wink:
{blackemo}:carnival:
{blackemo}:flowers:
{blackemo}:hotdrink:
{blackemo}:party: