| # |
Post Title |
Result Info |
Date |
User |
Forum |
|
Google Search Console Errors
|
12 Relevance |
6 years ago |
hikoli |
Bug Reports |
| |
... in the future. The following warnings were found on your site:
Missing field "brand"
Missing field "description"
Missing field "image"
Missing field "offers"
Missing field "review"
Is there anything I can do to resolve? Seems to be coming from the article rankings?
Cheers |
|
RE: How to set value on field dynamically with JS
|
12 Relevance |
3 years ago |
danihml |
General Discussions |
| |
thanks for the answer @Asti, but my console is getting an error on that part:
if ($wpdz -> options -> general['loadComboVersion'])
Uncaught SyntaxError: Unexpected token '>'. How that works exactly?
Here is my code modified for get the value from API:
const userInfo = getLastUserInfo();
add_filter('wpdiscuz_js_options', function ($jsOption) {
if (userInfo) {
$jsOption['username'] = userInfo.fullName;
$jsOption['uid'] = userInfo.uId;
for (let i = 0; i < userInfo.contactList.length; i++) {
const mail = userInfo.contactList[i];
if (documentCPF.type === 'email') {
$jsOption['usermail'] = mail;
}
}
}
return $jsOption;
});
add_action('wpdiscuz_front_scripts', function () {
$wpdz = wpDiscuz();
$handle = 'wpdiscuz-ajax-js';
if ($wpdz -> options -> general['loadComboVersion']) { //error part
$handle = 'wpdiscuz-combo-js';
}
wp_add_inline_script($handle,
`jQuery(document).ready(function ($) {
if (wpdiscuzAjaxObj.username) {
$("#wpdcom .wc_name").val(wpdiscuzAjaxObj.username);
$("#wpdcom .wc_email").val(wpdiscuzAjaxObj.usermail);
$("#wpdcom .wc_uid").val(wpdiscuzAjaxObj.uid);
Cookies.set("comment_author_" + wpdiscuzAjaxObj.cookiehash, wpdiscuzAjaxObj.username);
Cookies.set("comment_author_email_" + wpdiscuzAjaxObj.cookiehash, wpdiscuzAjaxObj.usermail);
Cookies.set("comment_author_uid_" + wpdiscuzAjaxObj.cookiehash, wpdiscuzAjaxObj.uid);
}
});`
);
}); |
|
RE: How to set value on field dynamically with JS
|
12 Relevance |
3 years ago |
Asti |
General Discussions |
| |
@danihml,
You can use the js code below. Just change the red-marked part in the code:
add_filter('wpdiscuz_js_options', function($jsOption) {
if (true) {//condition if user logged in other API and user exist
$jsOption['other_api_user_login'] = 'user_login';
$jsOption['other_api_user_email'] = 'user@email.com';
}
return $jsOption;
});
add_action('wpdiscuz_front_scripts', function() {
$wpdz = wpDiscuz();
$handle = 'wpdiscuz-ajax-js';
if ($wpdz->options->general['loadComboVersion']) {
$handle = 'wpdiscuz-combo-js';
}
wp_add_inline_script($handle, 'jQuery(document).ready(function ($) {
if(wpdiscuzAjaxObj.other_api_user_login){
$("#wpdcom .wc_name").val(wpdiscuzAjaxObj.other_api_user_login);
$("#wpdcom .wc_email").val(wpdiscuzAjaxObj.other_api_user_email);
Cookies.set("comment_author_email_" + wpdiscuzAjaxObj.cookiehash, wpdiscuzAjaxObj.other_api_user_email);
Cookies.set("comment_author_" + wpdiscuzAjaxObj.cookiehash, wpdiscuzAjaxObj.other_api_user_login);
}
});');
});
Pay attention to the commented part next to the red-marked value. |
|
reCaptcha validation fails. Error code: invalid-json
|
12 Relevance |
6 years ago |
Tom |
Frequently Asked Questions |
| |
Starting from wpDiscuz 7.0.0 you can use Google reCAPTCHA version 2 "I'm not a robot" antispam protection. In some cases, depended on your server PHP configuration it may not work and return "reCaptcha validation fails. Error code: invalid-json" error.
If you see this error, please navigate to Dashboard > wpDiscuz > Settings > Google reCAPTCHA admin page, find the "Request method" option and change the value of the option to "CurlPost", delete all caches and check again. If it doesn't help select the values one by one to find the request method that will work fine in your case.
Press CTRL+F5 (twice) on the frontend each time before checking. |
|
Why can't I add the href value of the tag to my "AgreementCheckbox"?
|
12 Relevance |
8 months ago |
WangJ |
Plugin Update Issues |
| |
Why can't I add the href value of the <a> tag to my "AgreementCheckbox"?
Attachment : image.png
Attachment : image.png
Whenever I add the href value and click save, it disappears when I check it again.
Please check it for me. Thank you. |
|
putting default value for comments not replies
|
12 Relevance |
5 years ago |
Roah |
Plugin Update Issues |
| |
Hello I want to put a default value to comments, just for comments not replies
and not placeholder
it's a value
can you help me please? |
|
RE: Replacing the comment rating meta value
|
11 Relevance |
11 months ago |
cheryld |
How-to and Troubleshooting |
| |
... as you show in the photo. That exact meta key in the meta key space under additional options with the "Replace old meta key" checked. I also tried it with an underscore before it, in case that's what you meant.
When I check the post meta for the post with ratings, I see:
wpdiscuz_post_rating_wp_review_user_reviews
which is saving a rating entered in the comment field and
wp_review_user_reviews, separately, saves the meta from the wp review plugin stars.
What I'm trying to achieve is that the stars in the WP Discuz comment field ALSO save to wp_review_ ... |
|
RE: A non-numeric value encountered in VS 7.1.4
|
11 Relevance |
5 years ago |
Asti |
Bug Reports |
| |
@wpdiscuzuser300,
Please follow the steps below:
1. Open the wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Form.php file
2. Find the 494-495 lines
3. Replace the code in the lines with the following one:
$avg = floatval(get_post_meta($post->ID, wpdFormConst::WPDISCUZ_RATING_SEPARATE_AVG . $field, true));$c = intval(get_post_meta($post->ID, wpdFormConst::WPDISCUZ_RATING_SEPARATE_COUNT . $field, true));
Save the changes, delete all kind of caches and check again.
Let usknow if you still see the issue. |
|
send comments without email
|
11 Relevance |
4 years ago |
navidghafarian |
Bug Reports |
| |
hello
My website users are all registered with a mobile number and none of them have an email.
The problem is that I get an invalid error when posting a comment.I think the problem is with the email because in another topic you suggested a random email solution.
But I do not want my users to have an email. It's also an invalid email.
Please find a solution for this issue in the new update. Because today there are many websites that register their users without email and only with their mobile number.
thank you |
|
RE: User Mentioning Addon Not Working
|
11 Relevance |
4 years ago |
Ronnie Tanner |
How-to and Troubleshooting |
| |
Thanks, I've opened a ticket there. However, with everything up to date now it's throwing the "Nonce is invalid" message, which appears has been addressed, but I haven't been able to solve it on my site. I use W3 Total Cache and have cleared all caches/cdn and warmed the cache but it's still giving me problems. Any help would be appreciated. |
|
RE: Captcha doesn't work
|
11 Relevance |
6 years ago |
Arscrigicioniec |
How-to and Troubleshooting |
| |
Unfortunatelly, I use virtual hosting and don't have access to cURL or PHP core. Other captcha (for example, login captcha from this plugin , works fine on my site.
Will this problem be solved in the next WpDiscuz update? I can wait, just reported the bug. |
|
RE: Captcha doesn't work
|
11 Relevance |
6 years ago |
Asti |
How-to and Troubleshooting |
| |
Hi @arscrigicioniec,
Please try the solution mentioned here: |
|
RE: Display number of votes
|
11 Relevance |
10 months ago |
Asti |
How-to and Troubleshooting |
| |
Hi,
You can use the CSS code below:
#wpd-post-rating .wpd-rating-wrap .wpd-rating-value .wpdrc{
display: block !important;
}
#wpd-post-rating .wpd-rating-wrap .wpd-rating-value{
display: flex;
justify-content: center;
padding-top: 0 !important;
align-items: center;
}
#wpd-post-rating .wpd-rating-wrap .wpd-rating-value .wpdrv, #wpd-post-rating .wpd-rating-wrap .wpd-rating-value .wpdrc{
font-size: 15px !important;
padding-top: 0px !important;
}
span.wpdrv:after {
content: '/';
}
Insert the code in the "Custom CSS code" textarea, located in the Dashboard > wpDiscuz > Settings > Styles & Colors admin page.
. |