The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Rating shortcode do...
 
Share:
Notifications
Clear all

[Solved] Rating shortcode doesn't work on pages with disabled comments

9 Posts
2 Users
0 Reactions
877 Views
Posts: 26
Topic starter
(@arscrigicioniec)
Trusted Member
Joined: 5 years ago

If i use this shortcode:

[wpdrating metakey="all" show-lable=false show-count=false show-average=false itemprop=false post_id="15780"]

 

on page with disabled comments, I get a bug that you can see on the screenshot. Once I turn on the comments, the bug disappeared.

1

 

8 Replies
Posts: 26
Topic starter
(@arscrigicioniec)
Trusted Member
Joined: 5 years ago

1. If I have comments with rating field, I have that bugged 5 big stars if comments are disabled.

2. If I have only enabled rating without rating field in comments. I have empty space if comments are disabled.

4 Replies
Tom
 Tom
Support
(@tomson)
Joined: 9 years ago

Honorable Member
Posts: 506

@arscrigicioniec,

Please don't use the rating for non-singular (archive) pages. It's not finished yet. wpDiscuz 7 doesn't support it yet. We'll fix all CSS and add it in next Beta-9 version.

(@arscrigicioniec)
Joined: 5 years ago

Trusted Member
Posts: 26

@tomson, this screen is not from an archive page. It's the usual core page type "page".

Tom
 Tom
Support
(@tomson)
Joined: 9 years ago

Honorable Member
Posts: 506

@arscrigicioniec,

As far as i see you're trying to use the wpDiscuz rating shortcode on a page where wpDiscuz is not allowed. Am I right?

(@arscrigicioniec)
Joined: 5 years ago

Trusted Member
Posts: 26

@tomson, yes. In page settings, there is a setting "Enable comments". The bug happens, if comments are disabled.

Tom
Posts: 506
 Tom
Support
(@tomson)
Honorable Member
Joined: 9 years ago
Posted by: @arscrigicioniec

@tomson, yes. In page settings, there is a setting "Enable comments". The bug happens, if comments are disabled.

This is not a bug.

Do you know that the rating shortcode is only based on the Rating Custom field in comment forms? So if you disable the comments, how do you expect the rating should be made? What is the mean to show rating if there is no way to rate for that rating? This is a logical issue not a bug. You should not use the shortcode if you've disabled the comments, because that rating is based on the rating field of comment form.

wpDiscuz 7 Rating Comment Custom Field
2 Replies
(@arscrigicioniec)
Joined: 5 years ago

Trusted Member
Posts: 26

@tomson, sorry, you didn't understand me correctly.

 

I meant this:

1. Page id=1, comments are enabled.

2. The other page id=2, comments are disabled. I input there the following shortcode to display rating from page 1:

[wpdrating metakey="all" show-lable=false show-count=false show-average=false itemprop=false post_id="1"]

and I get this bug. These comments are from the other page so they should be shown.

Tom
 Tom
Support
(@tomson)
Joined: 9 years ago

Honorable Member
Posts: 506

Ok @arscrigicioniec,

Thank you for the information For this case the issue is fixed in upcoming version.

Share: