# |
Post Title |
Result Info |
Date |
User |
Forum |
|
Google Search Console Errors
|
12 Relevance |
5 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 |
2 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 |
2 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 |
5 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 |
2 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 |
4 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: Display number of votes
|
11 Relevance |
4 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.
. |
|
change size of stars CSS code
|
11 Relevance |
10 months ago |
kh86 |
How-to and Troubleshooting |
|
Hello,
I was trying to use a CSS code to change the size of the stars in the rating. However, as soon as i hover the section with the cursor, the size switches to normal again.
@media screen and (max-width: 600px){
#wpd-post-rating .wpd-rating-wrap { width: 80%;}
#wpd-post-rating .wpd-rating-wrap .wpd-rating-data {
flex-grow: 1;
}
#wpd-post-rating .wpd-rating-wrap .wpd-rating-right, #wpd-post-rating .wpd-rating-wrap .wpd-rating-left{
flex-grow: 0;
}
#wpd-post-rating .wpd-rating-wrap .wpd-rating-stars svg {
width: 65px;
height: 65px;
}
#wpd-post-rating .wpd-rating-wrap .wpd-rating-value {
height: 85px;
width: 85px;
display: flex;
align-items: center;
justify-content: center;
}
#wpd-post-rating .wpd-rating-wrap .wpd-rating-value .wpdrv, #wpd-post-rating .wpd-rating-wrap .wpd-rating-value .wpdrc, #wpd-post-rating .wpd-rating-wrap .wpd-rating-value .wpdrt{
font-size: 56px !important;
}
#wpd-post-rating .wpd-rating-wrap .wpd-rating-title{
font-size: 20px;
}
} |
|
RE: change size of star rating
|
11 Relevance |
11 months ago |
Asti |
How-to and Troubleshooting |
|
@kh86
Please use the CSS code below:
@media screen and (max-width: 600px){
#wpd-post-rating .wpd-rating-wrap { width: 80%;}
#wpd-post-rating .wpd-rating-wrap .wpd-rating-data {
flex-grow: 1;
}
#wpd-post-rating .wpd-rating-wrap .wpd-rating-right, #wpd-post-rating .wpd-rating-wrap .wpd-rating-left{
flex-grow: 0;
}
#wpd-post-rating .wpd-rating-wrap .wpd-rating-stars svg {
width: 65px;
height: 65px;
}
#wpd-post-rating .wpd-rating-wrap .wpd-rating-value {
height: 85px;
width: 85px;
display: flex;
align-items: center;
justify-content: center;
}
#wpd-post-rating .wpd-rating-wrap .wpd-rating-value .wpdrv, #wpd-post-rating .wpd-rating-wrap .wpd-rating-value .wpdrc, #wpd-post-rating .wpd-rating-wrap .wpd-rating-value .wpdrt{
font-size: 56px !important;
}
#wpd-post-rating .wpd-rating-wrap .wpd-rating-title{
font-size: 20px;
}
}
Put the code in the "Custom CSS code" textarea, located in the Dashboard > wpDiscuz > Settings > Styles & Colors admin page.
Don't forget to delete the caches before checking. |
|
WPenine Live site load plugin css url but in staging site instead of plugin url take root url
|
11 Relevance |
1 year ago |
jayeshcspl |
Bug Reports |
|
Facing strange issue.
I have copied live site to staging so in both site code is same. I am using wpengine.
In live site plugin style.css URL generated correctly so all style applied. But in staging plugin style.css wrong URL generated so style not applied.
Live site :
Plugin style URL generated.
<link rel='stylesheet' id='wpdiscuz-frontend-css-css' href='' media='all' />
Staging Site :
Wrong Plugin style URL Generated.
<link rel='stylesheet' id='wpdiscuz-frontend-css-css' href='https://skriftligstage.wpengine.com/style.css?ver=7.6.15' media='all' />
Attachment : Screenshot from 2024-02-09 11-41-45.png
Attachment : Screenshot from 2024-02-09 11-44-14.png
Attachment : staging.png
Attachment : live.png
Attachment : style.css_not_load.png
Attachment : correct_style.css_load&applied.png |
|
Inline Commenting breaks Paragraph and styling on Uncode theme
|
11 Relevance |
3 years ago |
arjan |
Inline Commenting |
|
Dear support,
First of all, thank you for creating an amazing plugin!
I am using wpDiscuz on Uncode theme. Uncode uses the WPBakery Page Builder. As I cannot use the Inline Comment button from within the WPBakery Backend Editor (this is only available in Classic Mode editing), I simply add the Nulla ut quam dui. Vestibulum at ullamcorper ex. Fusce tempor malesuada ligula, et pellentesque mauris facilisis eget. Pellentesque sodales vehicula purus quis bibendum. Integer a placerat lectus. Fusce ac dignissim sapien. Pellentesque ex tortor, dapibus eu risus eget, vehicula luctus justo. Ut varius ultrices libero, ornare venenatis massa volutpat nec.
Nulla ultrices ipsum erat, vitae cursus quam viverra nec. Phasellus ac turpis non magna molestie ullamcorper ac sed elit. Nam a mollis justo. Etiam euismod ut nunc vel tempor. Pellentesque eu elit elit. Aliquam erat volutpat. Curabitur ac rutrum purus.
Lorem ipsum dolor sit amet,
Resulting HTML:
<div class="uncode_text_column"><p>Lorem ipsum dolor <a href="#">sit amet</a>, consectetur adipiscing elit. </p><div class="wpd-inline-shortcode wpd-inline-closed" id="wpd-inline-11">Pellentesque venenatis est ut mauris hendrerit imperdiet.<div class="wpd-inline-icon-wrapper"><svg class="wpd-inline-icon wpd-ignored" xmlns="https://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path class="wpd-inline-icon-first" d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"></path><path class="wpd-inline-icon-second" d="M0 0h24v24H0z"></path></svg><div class="wpd-inline-icon-count">0</div><div class="wpd-inline-form-wrapper" style="display: none;"><div class="wpd-inline-form-question">Lorem ipsum<span class="wpd-inline-form-close"><a href="#">x</a></span></div><div class="wpd-inline-form"><form method="post" class="wpd_inline_comm_form" autocomplete="off"><textarea name="wpd_inline_comment" class="wpd-inline-comment-content" placeholder="Je reactie hier ..." required="required"></textarea><label class="wpd-inline-notification"><input name="wpd_inline_notify_me" class="wpd-inline-notify-me" type="checkbox" value="1"> Stuur mij een e-mail wanneer er een nieuw antwoord wordt geplaatst</label><div class="wpd-inline-form-second-row"><button class="wpd-inline-submit wpd_not_clicked" type="submit" name="wpd_inline_submit"><span>[REACTIE]</span><svg xmlns="https://www.w3.org/2000/svg" class="wpd-inline-submit-icon" width="24" height="24" viewBox="0 0 24 24"><path class="wpd-inline-submit-icon-first" d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"></path><path class="wpd-inline-submit-icon-second" d="M0 0h24v24H0z"></path></svg></button></div><input type="hidden" id="_wpd_inline_nonce-11" name="_wpd_inline_nonce" value="3ab6ab2b35"></form></div></div></div></div> Nulla ut <a href="#">quam dui</a>. Vestibulum at ullamcorper ex. Fusce tempor malesuada ligula, et pellentesque mauris facilisis eget. Pellentesque sodales vehicula purus quis bibendum. Integer a placerat lectus. Fusce ac dignissim sapien. Pellentesque ex tortor, dapibus eu risus eget, vehicula luctus justo. Ut varius ultrices libero, ornare venenatis massa <a href="#">volutpat nec</a>.<p></p>
<p>Nulla ultrices <a href="#">ipsum erat</a>, vitae cursus quam viverra nec. Phasellus ac turpis non magna molestie ullamcorper ac sed elit. Nam a mollis justo. Etiam euismod ut nunc vel tempor. Pellentesque eu elit elit. Aliquam erat volutpat. Curabitur ac rutrum purus.</p>
</div>
<div class="uncode_text_column text-lead"><p><strong>Lorem ipsum dolor sit amet, </strong></p><div class="wpd-inline-shortcode wpd-inline-closed" id="wpd-inline-10"><strong>consectetur adipiscing elit.<div class="wpd-inline-icon-wrapper"><svg class="wpd-inline-icon wpd-ignored" xmlns="https://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path class="wpd-inline-icon-first" d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"></path><path class="wpd-inline-icon-second" d="M0 0h24v24H0z"></path></svg><div class="wpd-inline-icon-count">0</div><div class="wpd-inline-form-wrapper" style="display: none;"><div class="wpd-inline-form-question">Lorem ipsum<span class="wpd-inline-form-close"><a href="#">x</a></span></div><div class="wpd-inline-form"><form method="post" class="wpd_inline_comm_form" autocomplete="off"><textarea name="wpd_inline_comment" class="wpd-inline-comment-content" placeholder="Je reactie hier ..." required="required"></textarea><label class="wpd-inline-notification"><input name="wpd_inline_notify_me" class="wpd-inline-notify-me" type="checkbox" value="1"> Stuur mij een e-mail wanneer er een nieuw antwoord wordt geplaatst</label><div class="wpd-inline-form-second-row"><button class="wpd-inline-submit wpd_not_clicked" type="submit" name="wpd_inline_submit"><span>[REACTIE]</span><svg xmlns="https://www.w3.org/2000/svg" class="wpd-inline-submit-icon" width="24" height="24" viewBox="0 0 24 24"><path class="wpd-inline-submit-icon-first" d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"></path><path class="wpd-inline-submit-icon-second" d="M0 0h24v24H0z"></path></svg></button></div><input type="hidden" id="_wpd_inline_nonce-10" name="_wpd_inline_nonce" value="3ab6ab2b35"></form></div></div></div></strong></div><p></p>
</div>
I have also included the complete example Uncode WPBakery Page Builder code below (can be seen when switching from Backend Editor to Classic Mode):
[vc_row][vc_column width="1/1"][vc_custom_heading separator="yes" separator_color="yes" uncode_shortcode_id="429559"]Lorem ipsum[/vc_custom_heading][vc_column_text uncode_shortcode_id="137695"]Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque venenatis est ut mauris hendrerit imperdiet. Nulla ut quam dui. Vestibulum at ullamcorper ex. Fusce tempor malesuada ligula, et pellentesque mauris facilisis eget. Pellentesque sodales vehicula purus quis bibendum. Integer a placerat lectus. Fusce ac dignissim sapien. Pellentesque ex tortor, dapibus eu risus eget, vehicula luctus justo. Ut varius ultrices libero, ornare venenatis massa volutpat nec.
Nulla ultrices ipsum erat, vitae cursus quam viverra nec. Phasellus ac turpis non magna molestie ullamcorper ac sed elit. Nam a mollis justo. Etiam euismod ut nunc vel tempor. Pellentesque eu elit elit. Aliquam erat volutpat. Curabitur ac rutrum purus.[/vc_column_text][vc_column_text text_lead="yes" uncode_shortcode_id="295809"]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width="1/1"][vc_separator sep_color="" uncode_shortcode_id="609536"][/vc_column][/vc_row][vc_row][vc_column width="1/1"][vc_custom_heading separator="yes" separator_color="yes" uncode_shortcode_id="429559"]Lorem ipsum[/vc_custom_heading][vc_column_text uncode_shortcode_id="540413"]Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ut quam dui. Vestibulum at ullamcorper ex. Fusce tempor malesuada ligula, et pellentesque mauris facilisis eget. Pellentesque sodales vehicula purus quis bibendum. Integer a placerat lectus. Fusce ac dignissim sapien. Pellentesque ex tortor, dapibus eu risus eget, vehicula luctus justo. Ut varius ultrices libero, ornare venenatis massa volutpat nec.
Nulla ultrices ipsum erat, vitae cursus quam viverra nec. Phasellus ac turpis non magna molestie ullamcorper ac sed elit. Nam a mollis justo. Etiam euismod ut nunc vel tempor. Pellentesque eu elit elit. Aliquam erat volutpat. Curabitur ac rutrum purus.[/vc_column_text][vc_column_text text_lead="yes" uncode_shortcode_id="254090"]Lorem ipsum dolor sit amet, [/vc_column_text][/vc_column][/vc_row]
Please let me know if you need any more information or access to a demo website.
Kind regards,
Arjan |
|
RE: Replacing the comment rating meta value
|
11 Relevance |
6 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 |
4 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 |
3 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 |