Email Rating Alerts

MySong
MySong
@mysong
10 years ago
155 posts
Have 'Item rated:' checked off under 'notifications'

Do not get any alerts (to admin, did not test if profile that owns item gets alert) when audio, photo or profiles are rated, regardless if rater is a logged in user or is not logged in (rating is enabled for all visitors).

With video rating something strange happens. When a non logged in user rates a video then rating is registered but no email alert, same as above. However when a logged in user rates a video, admin gets an email saying...

A new Pending Item is awaiting approval!

A new item is waiting to be approved in the System Dashboard:
http://site.com/core/dashboard/pending

In dashboard > pending items it shows the video that has been rated but under the raters profile (not the owners profile) ex: ratersprofile/video/7

At the same time as soon as item has been rated it disappears from site
and url displays "NOT FOUND The page you requested was not found!" (through admin account page can still be accessed.

Once video is approved in pending items, things go back to normal.
updated by @mysong: 09/13/14 09:15:53AM
brian
@brian
10 years ago
10,148 posts
ratings should have nothing to do with pending items - something is bad there. I have not looked at the ratings email code, but will check it out.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
michael
@michael
10 years ago
7,746 posts
MySong:...Once video is approved in pending items, things go back to normal....

Nobody should be able to rate an item that is in pending status because it should not show on the site.
michael
@michael
10 years ago
7,746 posts
Im having trouble understanding your instructions. Here is what i've tested:
* a logged in user rates another users audio file.
* the owner of the audio file has notifications set to 'send email.'
* when the audio file is rated an email is sent to the owner of the audio file.
Quote: User 'jack daniels' has rated "grove of flowers" with a 4

http://site.com/admin/audio/13/grove-of-flowers

This is working as expected. No issue that I can see here.

--update--
same as above but this time with a non-logged in user. Result was the same, only there was no username in the email that arrived.
Quote: User '' has rated "song about trees" with a 3

http://site.com/admin/audio/6/song-about-trees

--update--
tried a non-logged in user rating a video. all worked as expected.
Quote: User '' has rated "backward compatibility" with a 5

http://site.com/admin/video/2/backward-compatibility

updated by @michael: 08/12/14 02:31:57AM
MySong
MySong
@mysong
10 years ago
155 posts
@michael sounds like it is working as should for you.

Not sure why it is not on my end.

Is there anything I can refresh to get it working?

Thanks
MySong
MySong
@mysong
10 years ago
155 posts
BTW issue with the videos and the 'Pending Item' was only with logged in users.
michael
@michael
10 years ago
7,746 posts
The normal thing to do when something isn't working is to run the integrity check and clear the caches.

Heres the docs for that procedure:

"Something's Wrong, What do I do?"
https://www.jamroom.net/the-jamroom-network/documentation/problems/114/somethings-wrong-what-do-i-do
MySong
MySong
@mysong
10 years ago
155 posts
Tested some more and here is what I have (ran integrity)

Logged Out User does Rating
Rate Song = admin no alert / profile owner gets alert
Rate Photo = admin no alert / profile owner gets alert
Rate Video = admin no alert / profile owner gets alert
Rate Profile = admin no alert / profile owner gets alert

Logged In User does Rating
Rate Song = admin no alert / profile owner gets alert
Rate Photo = admin no alert / profile owner gets alert
Rate Video = admin gets pending items alert (described previously) / profile owner gets regular rating alert
Rate Profile = admin no alert / profile owner gets alert

To summarize; profile owner always gets alert but admin does not (aside for video rating issue). It would be great if you guys when have a chance, if you can add admin rating alerts to the next update since it can help site owners monitor rating spam.

Then there is the issue with 'logged in user' video rating, that places the video on the 'pending item' list. Not sure why this happens.

Thanks
brian
@brian
10 years ago
10,148 posts
I'll check this out - all of the rating/email is handled the same regardless of module, so I'm not even sure how that would happen, but I will see if I can replicate it.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,148 posts
I believe I know why this is happening - you have the Item Approval quota setting for video set to "Approval on Create and Update" - that's what's causing this, and I'll get it fixed.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,148 posts
Also - when you say "rating spam" I assume you mean someone that is rating too may items too quickly? There is no "text" involved in ratings, so you can "spam" the traditional way (i.e. comment spam).


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
MySong
MySong
@mysong
10 years ago
155 posts
Yes, the user quota of those I was testing with was set to "Approval on Create and Update" by JRvideo.

Spam = A user can go to a proxy service (lets you flip ip's) and within minutes give himself dozens of 5 star ratings and boost all his items to the top of all rating based lists. Know you can limit rating to 'logged in users' only but that would greatly limit the amount of ratings site receives.

Therefore think it would be a useful feature to add, when you guys have time, to let the site admin get the alerts as well so he can keep on top of things.

Thanks,
brian
@brian
10 years ago
10,148 posts
MySong:
Yes, the user quota of those I was testing with was set to "Approval on Create and Update" by JRvideo.

Spam = A user can go to a proxy service (lets you flip ip's) and within minutes give himself dozens of 5 star ratings and boost all his items to the top of all rating based lists. Know you can limit rating to 'logged in users' only but that would greatly limit the amount of ratings site receives.

Therefore think it would be a useful feature to add, when you guys have time, to let the site admin get the alerts as well so he can keep on top of things.

Thanks,

Yeah - but I can see that being a bit of a pain on a busy system. What I'd like to do is to get some type of "browser fingerprint" setup that is a combination of browser details, IP and cookie to do a better job of "tracking" who has already rated. I'll be checking that out for a future release.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net