Remove Rating Function from Stars Display

3 views
Skip to first unread message

Phil -- wbtc.fr --

unread,
Mar 27, 2011, 1:45:00 PM3/27/11
to in-por...@googlegroups.com
Hello guys,

on one of my projects, we want visitors to rate an item only if they comment it.

What is the cleanest way to remove the "rating-on-hover" function? I mean something better than juste removing javascript.

Other thing, when we rate an item and comment it, we have "no rate" radio button, along with standard rates ones. How can we remove this option? I had a look in php virtual files, but didn't found a solution by myself.

Thanks,
Phil.

Dmitry A.

unread,
Mar 28, 2011, 9:04:01 PM3/28/11
to in-por...@googlegroups.com, Phil -- wbtc.fr --
Try taking away the permissions to RATE on the top category (for everyone).

This way JS will not be active and you can enable this at point later on.

Let me know how it goes.


DA

Phil -- wbtc.fr --

unread,
Mar 28, 2011, 9:16:08 PM3/28/11
to in-por...@googlegroups.com
Hi Dmitry,

thank you for your reply, but it seems you didn't read carefully my post:

"we want visitors to rate an item only if they comment it."

I just want to remove mouse-over-stars function, not the rate sytem itself.

p

2011/3/28 Dmitry A. <dand...@gmail.com>

Dmitry Andrejev

unread,
Mar 28, 2011, 9:19:05 PM3/28/11
to in-por...@googlegroups.com, Phil -- wbtc.fr --
Hi Phil,


There is a Rating option on Add Comment/Review which is part of the Comment. If you do what say - it'll disable RATING on it's own while Rating with Comment (on it's own form) still will work since it's part of the Commenting process.

Make sense?

DA
--


Best regards,

Dmitry A.

Alexander Obuhovich

unread,
Mar 29, 2011, 7:28:52 AM3/29/11
to in-por...@googlegroups.com
Dmitry Phil wants to separate rating and reviewing processes totally.

So "rating functionality" will be disabled until user will add his review first.


I really don't see why it is needed, since one user can't add more then 1 review to 1 link.

Phil -- wbtc.fr --

unread,
Mar 29, 2011, 8:24:33 AM3/29/11
to in-por...@googlegroups.com
guys, may I didn't well explained my need:

we want users to be able to rate items, but we want them to rate only if they leave a review, like it's done on many major websites actually.

that's why I ask to remove rating-only ability. And Dmitry's solution is working fine :)


2011/3/29 Alexander Obuhovich <aik....@gmail.com>

Alexander Obuhovich

unread,
Mar 29, 2011, 10:17:15 AM3/29/11
to in-por...@googlegroups.com
I see now. So you didn't see rating control on review form.

Phil -- wbtc.fr --

unread,
Mar 29, 2011, 10:32:36 AM3/29/11
to in-por...@googlegroups.com
we needed to remove rating control on starts for 2 reasons:

- remove ability to rate without reviewing

- on review form, you can rate 2 times the same link: by clicking on stars displayed on top AND by selecting a choice on review form, and thus they can vote 2 times



2011/3/29 Alexander Obuhovich <aik....@gmail.com>

Alexander Obuhovich

unread,
Mar 29, 2011, 11:19:01 AM3/29/11
to in-por...@googlegroups.com
So you basically need somehow to check if user has voted before and if not show him a voting control on review form too.

Phil -- wbtc.fr --

unread,
Mar 29, 2011, 2:26:16 PM3/29/11
to in-por...@googlegroups.com
well, as I said before, Dmitry's proposal is working: when I disable rating, user cannot rate anymore by clicking on stars, BUT can still rate the link using review form, which include in all cases a rating element.

2011/3/29 Alexander Obuhovich <aik....@gmail.com>

Dmitry A.

unread,
Mar 31, 2011, 3:03:49 PM3/31/11
to in-por...@googlegroups.com
I believe we can considered this issue cleared out and discussion closed.

DA

Phil -- wbtc.fr --

unread,
Mar 31, 2011, 3:28:21 PM3/31/11
to in-por...@googlegroups.com
yup

2011/3/31 Dmitry A. <dand...@gmail.com>
Reply all
Reply to author
Forward
0 new messages