# |
Post Title |
Result Info |
Date |
User |
Forum |
|
Translation for labels "Post Comment" and "COMMENTS" on frontend
|
13 Relevance |
5 years ago |
osmanybg84 |
Bug Reports |
|
I translated wpdiscuz using PO files and loco translate plugin. The result can bee seen on the 1st attachment "before.png": I could translate almost everything except for the labels "Post Comment" and "COMMENTS".
I made two changes adding two call the __() function on the followind files:
1- /wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Field/DefaultField/Submit.php - ln:100
from: <input id="wpd-field-submit-<?php echo esc_attr($uniqueId); ?>" class="wc_comm_submit wpd_not_clicked wpd-prim-button" type="submit" name="<?php echo esc_attr($name); ?>" value="<?php echo esc_attr($args["name"]); ?>" />
to: <input id="wpd-field-submit-<?php echo esc_attr($uniqueId); ?>" class="wc_comm_submit wpd_not_clicked wpd-prim-button" type="submit" name="<?php echo esc_attr($name); ?>" value="<?php echo __(esc_attr($args["name"])); ?>" />
2- /home1/cronicas/public_html/wp-content/plugins/wpdiscuz/themes/default/comment-form.php - ln:333
from: echo "<span class='wpdtc'>" . esc_html($commentsCount) . "</span> " . esc_html(1 == $commentsCount ? $form->getHeaderTextSingle() : $form->getHeaderTextPlural());
to: echo "<span class='wpdtc'>" . esc_html($commentsCount) . "</span> " . __(esc_html(1 == $commentsCount ? $form->getHeaderTextSingle() : $form->getHeaderTextPlural()));
After these changes the labels were successfully transtaled as shown int he 2nd image "after.png".
Maybe these changes can be applied on the next update or somewhere else if the texts on those points were expected to be already translated. |
|
RE: reCaptcha 2 - Not appearing and just red "required" field. Shows.
|
13 Relevance |
3 years ago |
Asti |
How-to and Troubleshooting |
|
Could you please try to explain using some screenshots?
Hi I found out how to reproduce the bug with Captcha. Check here please:
We don't see the ReCAPTCHA field at all. Please watch this video: |
|
RE: how to disable website field?
|
13 Relevance |
3 years ago |
lulu |
How-to and Troubleshooting |
|
@asti I cannot find a Comments link on The Dashboard. There's Inline Feedback, Live Notification Bubble!, Comment Layouts, Social Login and Commenting, Article Rating v Rating field. none of these links take me to Forms admin page. Forms takes me to a list of forms. When I try to edit the Default Form, the Comment Text field does not allow me to trash the WEBSITE field - message reads You can not delete default field. please advise.
thank you |
|
Add field border when typing (active)?
|
13 Relevance |
4 years ago |
dabooks |
How-to and Troubleshooting |
|
In Wp Discuz > Settings > Styles and Colors > Comment fields Border
That color setting actually changes the comment field background instead. So if I set it to black, it sets the entire comment field background black, NOT just the border. So, I can't set a border color.
Moreover, I'd like to create an active field border color. So, when you type your comment, or type your name, or type your email address, I want that active field to have a 1px border of #ffd23f.
How to do this please? |
|
Add new field from wordpress functions.php
|
13 Relevance |
5 years ago |
laucha92 |
How-to and Troubleshooting |
|
Hi,
I was able to add a new field from wordpress scripts (editing the functions.php file).
If I disable wpdiscuz plugin I can see the 3 original fields from wordpress (name, email and website) plus the one I have created (City-Ciudad)
Attachment : Comment form.png
My problem is that wpdiscuz thas not detect this new field that I have created. When I enable the plugin it only shows the 3 original. Creating a new field from wpdiscuz settings does not work for me because I need to send that information outside wordpress.Is there a way to add this ne ... |
|
More Control of the Comment Text Field
|
13 Relevance |
5 years ago |
George L |
General Discussions |
|
When I edit the Default Form, I would like to have more control of the Comment Text field, similar to what I can do with the Rating, Name, and Email fields.
Move the Comment Text field above or below other fields, for example the Rating field.
Set the Comment Text field as optional or required.
Change the “Join the discussion” text.
Please consider these future enhancements.
Thanks! |
|
Show PODS User Fields in wpDiscuz Comment
|
13 Relevance |
4 months ago |
gooloode |
How-to and Troubleshooting |
|
Hello,
i am writing a beauty blog and i would like to show the user's skin, and hairtypes, etc. below their Name in wpDiscuz Comments.
I set up PODS and added the custom fields to the profile edit section:I want to show the selected entries from PODS below the author's name in Comments in wpDiscuz. I've set up the PODS Plugin and added a POD to user profile > advance with the following options that i want to show below the author's name: Type Select, Single - alter - hauttyp_gesicht - hauttyp_koerper - haartyp - haarstruktur - haardicke - augenfarbe Typ ... |
|
RE: Comment area About 3 requests / Subscription, Name, left swipe
|
13 Relevance |
6 months ago |
Asti |
Plugin Update Issues |
|
In this case, you can change the value of the 'Name' field to anything you prefer and make the name field optional.
For more information, refer to this guide:
If a user submits a comment without filling name, it will appear as 'Anonymous' in the comment list. You can then use WordPress native hooks to customize the 'Anonymous' phrase as needed. |
|
RE: Labels and placeholders
|
13 Relevance |
4 years ago |
Asti |
How-to and Troubleshooting |
|
Hi Albert,
Each field label can be changed by editing each field and changing the value of the name field. Just navigate to Dashboard > wpDiscuz > Forms admin page, edit the form, scroll down, and find the "COMMENT TEXT field" section.
Please attentively read this doc: |
|
RE: why i have this Some of field value is invalid
|
12 Relevance |
5 years ago |
highlander926 |
General Discussions |
|
@asti that work, tnx |
|
RE: why i have this Some of field value is invalid
|
12 Relevance |
5 years ago |
Asti |
General Discussions |
|
@highlander926,
Please try this code. Put the code in your current active WordPress theme functions.php file.
add_action("user_register", function ($user_id) { $user = get_userdata($user_id); if (empty($user->data->user_email)) { $args = array( "ID" => $user->id, "user_email" => uniqid() . "@example.com", ); wp_update_user( $args ); }});
How to Easily Add Custom Code in WordPress (without Breaking Your Site).
The code above will work only for the new users. For old users you should edit the users and add some random email address. |
|
RE: why i have this Some of field value is invalid
|
12 Relevance |
5 years ago |
highlander926 |
General Discussions |
|
@asti TnX for help, I am not a technical person to solve this by code
nowadays many sites are switching to SMS and OTP login/registration
so can you please help me with generating random email for all users?any script or code guide?
and fix the problem with OTP sites in your next releases if possible because we love to use your plugin
thank you |
|
RE: why i have this Some of field value is invalid
|
12 Relevance |
5 years ago |
Asti |
General Discussions |
|
@highlander926,
Please edit the "Email" filed and set not-required using the according option, then delete all caches and check again.
More info here: |
|
RE: Agreement checkbox default for replies
|
12 Relevance |
4 years ago |
Asti |
How-to and Troubleshooting |
|
@wp_user,
Please replace your code with the following one. It should work fine:
function my_wpdiscuz_autocheck_agreebox() {
?>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('#wpdcom .wpd-field-agreement .wpd-field').prop('checked', true);
});
jQuery(document).ready(function(){
jQuery(document).on('click', '.wpd-reply-button', function() {
jQuery('.wpd-form .wpd-field-agreement .wpd-field-group-title .wpd-field').prop('checked', true);
});
});
</script>
<?php
}
add_action('wpdiscuz_comment_form_after', 'my_wpdiscuz_autocheck_agreebox'); |
|
Product Reviews Ratings
|
12 Relevance |
5 years ago |
octavianus |
How-to and Troubleshooting |
|
Hello,
First of all thank you for this fantastic plugin!
I just installed it over a WooCommerce shop and I am using wpDiscuz for product reviews.
We already have around 200 reviews in WooCommerce which I was hoping to be able to display in the new format. I added the Rating field in the Forms and I can add ratings to new comments, but it does not display the old ratings.
Basically all of our old ratings are not displayed now, only new ones from after installation of your plugin.
In comments there is already a "Rating" field, but wpDiscuz creates a new C ... |