Post Ratings - taking likes to the next level [Deleted]

Heya Luke,

I'm rebuilding my style (now UI.Flex 1.5.0.1) after upgrading our XenForo installation from 1.4.4 to 1.5.1 to hopefully not bloat it with as many CSS hacks, however in the new style the Post Ratings div background now appears to be always visible even when there are no ratings present yet. The dark_postrating.css file in each style are identical, nor do I alter dark_postrating classes from any other css file.

Do you have any idea what could be causing the background to be attached to the .dark_postrating class in the new style? The only difference I can spot in the styles is that in the new one every message gets wrapped in a .uix_message div which only sets { display: flex; align-items: stretch; }.

Looking forward to hearing from you. I've attached some files below which I thought would be of use. @contentBackground as referenced by the .css file is rgba(255,255,255,1) in both styles.

In old style:
http://i.imgur.com/O6iIUf2.png

In new style:
http://i.imgur.com/wW0nuli.png

dark_postrating.css: (as it comes out of the box)
.message .dark_postrating.likesSummary, .dark_postrating { margin-top: 10px; padding-bottom: 2px; min-height: 19px; }
.messageSimple .dark_postrating { background: transparent; border-bottom: none; /*margin-left: 65px;*/ margin-top: 6px !important; /*border-top: 1px solid @primaryLightest;*/ }

.dark_postrating_table { border-spacing: 5px; border-collapse: separate; }
.dark_postrating_detail { background: @contentBackground; font-family: 'Trebuchet MS',Helvetica,Arial,sans-serif; color: @mutedTextColor; font-size: 11px; padding: 4px !important; }
.dark_postrating_column { vertical-align: top; padding: 0; margin: 3px; width: 155px; border: 1px solid @primaryLighterStill; }
.dark_postrating_column > div { display: block; max-height: 105px; overflow: auto; padding: 7px; }
.dark_postrating_delete { display: block; visibility: hidden; float: left; height: 13px; margin-right: 3px; width: 12px; color: #FF2D90; background: url(styles/dark/cross_small.png) center no-repeat; }
.dark_postrating_column:hover .dark_postrating_moderator { visibility: visible !important; }
.dark_postrating_header strong { font-weight: bold; color: @dimmedTextColor; }
.dark_postrating_header img { vertical-align: middle; position: relative; top: -2px; }
.dark_postrating_header { font-size: 14px; margin-bottom: 2px; padding-bottom: 3px; border-bottom: 1px dotted @primaryLighterStill; }
.dark_postrating_column a.username { display: block; /*float: left; clear: left;*/ }
/*.dark_postrating_delete + a.username { width: 125px; }*/

.dark_postrating_member { border-spacing: 0; border-collapse: separate; border-width: 0 1px 0px 1px; border-style: solid; border-color: @primaryLighterStill; color: @contentText; width: 100%; padding: 5px 25px; }
.dark_postrating_member td, .dark_postrating_member th { padding: 2px 4px 1px; text-align: center; }
.dark_postrating_member td { border-width: 1px 0px 0 0; border-style: solid; border-color: @primaryLighterStill; }
.dark_postrating_member tr:nth-child(2) td { border-width: 0; }
.dark_postrating_member th { color: @mutedTextColor; font-size: 11px; }
.dark_postrating_member img { vertical-align: text-top; }
.dark_postrating_positive { color: #62A201; }
.dark_postrating_negative { color: #D90B00; }
.dark_postrating_bar { width: 80px; height: 10px; background: transparent; border: 1px solid #ddd; border-radius: 2px; padding: 1px; font-size: 0; }
.dark_postrating_bar_positive { height: 10px; background: #62A201; display: inline-block; opacity: 0.4; font-size: 0; }
.dark_postrating_bar_neutral { height: 10px; background: #bbb; display: inline-block; opacity: 0.4; font-size: 0; }
.dark_postrating_bar_negative { height: 10px; background: #D90B00; display: inline-block; opacity: 0.4; font-size: 0; }
.dark_postrating_bar:hover > div { opacity: 1.0; }
.profilePage .infoBlock dd.dark_postrating_bar_dd:last-child { margin-bottom: 0; }

.dark_postrating_inputlist { display: block; cursor: default; float: right; opacity: 1.0; font-size: 11px; -ms-filter:'alpha(opacity=100)'; filter:alpha(opacity=100) }
.dark_postrating_inputlist.dark_postrating_inputlist_undo li { opacity: 1.0; -ms-filter:'alpha(opacity=100)'; filter:alpha(opacity=100) }
.dark_postrating_inputlist li { display: inline; opacity: 0.5; -ms-filter:'alpha(opacity=50)'; filter:alpha(opacity=50); zoom:1; }
.dark_postrating_ie8 .dark_postrating_inputlist li { display: inline-block }
.dark_postrating_inputlist li:hover { opacity: 1.0; -ms-filter:'alpha(opacity=100)'; filter:alpha(opacity=100) }
li.dark_postrating_textonly { vertical-align: top; display: inline-block; margin: 1px 4px 0 4px; }

.dark_postrating_outputlist { display: block; margin-left: 3px; float: left; font-family: 'Trebuchet MS',Helvetica,Arial,sans-serif; color: @mutedTextColor; font-size: 11px; }
.dark_postrating_outputlist li { display: inline; margin-right: 6px; }
.dark_postrating_outputlist li strong, .dark_postrating_thread_rating strong { font-weight: bold; color: @dimmedTextColor; }
.dark_postrating_outputlist li img, .dark_postrating_thread_rating img { vertical-align: text-top; }
.dark_postrating_thread_rating { float: right; font-family: 'Trebuchet MS',Helvetica,Arial,sans-serif; color: @mutedTextColor; font-size: 11px; margin-left: 10px; }
.discussionListItem .iconKey span ~ .dark_postrating_thread_rating { margin-right: 10px; }


.dark_postrating_hide_post { display: none }
.message > .dark_postrating_hide_post { display: block !important }

.pairsJustified .dark_postrating_bar_dd { width: 100%; }
.pairsJustified .dark_postrating_bar_dd div { margin: 1px auto 5px auto; }
.pairsJustified .dark_postrating_bar_dd + dd { float: left; width: 100%; text-align: left; }

/* fix above sig float bug */
.message .messageMeta { margin: 0 !important;}


@media (max-width: @maxResponsiveNarrowWidth)
{
.dark_postrating_column { display: block; float: left; }
}
 
Last edited:
Heya Luke,

I'm rebuilding my style (now UI.Flex 1.5.0.1) after upgrading our XenForo installation from 1.4.4 to 1.5.1 to hopefully not bloat it with as many CSS hacks, however in the new style the Post Ratings div background now appears to be always visible even when there are no ratings present yet. The dark_postrating.css file in each style are identical, nor do I alter dark_postrating classes from any other css file.

Do you have any idea what could be causing the background to be attached to the .dark_postrating class in the new style? The only difference I can spot in the styles is that in the new one every message gets wrapped in a .uix_message div which only sets { display: flex; align-items: stretch; }.

Looking forward to hearing from you. I've attached some files below which I thought would be of use. @contentBackground as referenced by the .css file is rgba(255,255,255,1) in both styles.

In old style:
http://i.imgur.com/O6iIUf2.png

In new style:
http://i.imgur.com/wW0nuli.png

dark_postrating.css: (as it comes out of the box)

This is an issue with your custom style overriding the post ratings CSS - you would need to contact your style author

@Luke F

How far are you from adding back an option (per usergroup) to allow rating your own post?

Cheers,

Regs.

No plans for this currently as for most users it would appear to be a bug
 
If I understand correctly the post rating like becomes the equivalent of the standard xenforo like (if that's how you have it configured in options), and so counts towards trophy points.

I also note that any post rating can be positive, negative or neutral.

So is it possible for all positive post ratings to be treated as "likes" for the purpose of trophies?
 
I've been waiting patiently for quite awhile after your previous responses to the question. How would it appear to be a 'bug'?

I was just checking to see if this were possible and am sad that it's not. Our use is that we want staff to be able to post a suggestion, and everyone can give it a thumbs up or thumbs down. But it would be nice if the OP could have a vote.
 
  • Like
Reactions: RDR
If I understand correctly the post rating like becomes the equivalent of the standard xenforo like (if that's how you have it configured in options), and so counts towards trophy points.

I also note that any post rating can be positive, negative or neutral.

So is it possible for all positive post ratings to be treated as "likes" for the purpose of trophies?
There are separate fields for positive/negative/neutral ratings for use in trophy points

If you use the existing like field instead, it will only count 'like ratings' and not all positive ratings

Heya Luke,

I'm rebuilding my style (now UI.Flex 1.5.0.1) after upgrading our XenForo installation from 1.4.4 to 1.5.1 to hopefully not bloat it with as many CSS hacks, however in the new style the Post Ratings div background now appears to be always visible even when there are no ratings present yet. The dark_postrating.css file in each style are identical, nor do I alter dark_postrating classes from any other css file.

Do you have any idea what could be causing the background to be attached to the .dark_postrating class in the new style? The only difference I can spot in the styles is that in the new one every message gets wrapped in a .uix_message div which only sets { display: flex; align-items: stretch; }.

Looking forward to hearing from you. I've attached some files below which I thought would be of use. @contentBackground as referenced by the .css file is rgba(255,255,255,1) in both styles.

In old style:
http://i.imgur.com/O6iIUf2.png

In new style:
http://i.imgur.com/wW0nuli.png

dark_postrating.css: (as it comes out of the box)

In your screenshot several properties are added to .dark_postrating that are not present in dark_postrating.css, so your custom style must be overriding it

:(

I've been waiting patiently for quite awhile after your previous responses to the question. How would it appear to be a 'bug'?

I was just checking to see if this were possible and am sad that it's not. Our use is that we want staff to be able to post a suggestion, and everyone can give it a thumbs up or thumbs down. But it would be nice if the OP could have a vote.

When it was originally like this (being able to rate your own post) several people reported it as a bug despite it being intentional, but I might add it back as a separate permission - it seems there are legitimate uses

@Luke F
Can i get it auto installed?

Not sure what you mean. I do not offer an installation service, but you should have no trouble installing the addon using one of the many auto installer addons.

yes, the users have permission.but no display ICON.

Can you PM me your site URL and admin CP details to take a look please?
 
  • Like
Reactions: RDR
When it was originally like this (being able to rate your own post) several people reported it as a bug despite it being intentional, but I might add it back as a separate permission - it seems there are legitimate uses
Yes, that is what I'm looking for is a usergroup permission for liking own posts. Have default to no permission on install - let those that have a legitimate use for it be able to and those that report it as a bug be damned :)
 
If I understand correctly the post rating like becomes the equivalent of the standard xenforo like (if that's how you have it configured in options), and so counts towards trophy points.

I also note that any post rating can be positive, negative or neutral.

So is it possible for all positive post ratings to be treated as "likes" for the purpose of trophies?
There are separate fields for positive/negative/neutral ratings for use in trophy points

If you use the existing like field instead, it will only count 'like ratings' and not all positive ratings

Thanks. I see you can have both likes and positive ratings in a trophy criteria.

So I'm still a bit confused.

Suppose in Post Rating options I have Post rating likes set as likes. Then in a trophy I have the criteria of 25 likes and 25 positive ratings.

(a) Does the trophy get awarded as soon as one of those is reached or both?

(b) if Post ratings likes are set as positive rating, what happens in that case regarding the trophy?
 
How do I set it so that positive ratings show under the member avatar next to a post, instead of Likes?

I have options set like this:

Screen Shot 2015-10-20 at 22.09.17.webp

And I assumed that this would show positive ratings there instead of likes, but all I see under the Avatar is Likes.

However the member profile works fine, it shows positive ratings.
 
Hi @Luke F,
Having a weird issue i cannot find the solution for. For some reason, post ratings list is not being displayed to guests browsing the forum (not logged in).

Got Post Ratings 1.7.5 installed.

Usergroup 1- Unregistered / Unconfirmed has the permission View Rating Lists set to ALLOW.

If i browse the site not logged on, i cannot see the ratings list.
If i browse the site logged in as a test account (with only usergroup unregistered / unconfirmed set), i can view the ratings list.

I have tested on my theme and in the default unmodified theme. Its really bugging me as i really want to show the guests the ratings list. Please help! If you need any test accounts or anything let me know via PM what you need and ill get them to you ASAP.
 
Hi @Luke F,
Having a weird issue i cannot find the solution for. For some reason, post ratings list is not being displayed to guests browsing the forum (not logged in).

Got Post Ratings 1.7.5 installed.

Usergroup 1- Unregistered / Unconfirmed has the permission View Rating Lists set to ALLOW.

If i browse the site not logged on, i cannot see the ratings list.
If i browse the site logged in as a test account (with only usergroup unregistered / unconfirmed set), i can view the ratings list.

I have tested on my theme and in the default unmodified theme. Its really bugging me as i really want to show the guests the ratings list. Please help! If you need any test accounts or anything let me know via PM what you need and ill get them to you ASAP.

I'm not able to reproduce this, but I'd be happy to take a look if you can PM me admin CP details
 
Top Bottom