フォーラム

ホーム » Liferay Portal » English » 2. Using Liferay » General

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Robert_82 Robert_82
Ratings for unauthenticated users
2012/04/02 7:38
答え

Robert_82 Robert_82

ランク: New Member

投稿: 9

参加年月日: 2006/07/16

最近の投稿

Hi all,
i'using LEP 6.1 CE, my question is quite simple.
It' possible to enable ratings (with five stars) for unauthenticated users??

Any suggestion are welcome!

Roberto.
David H Nebinger
RE: Ratings for unauthenticated users
2012/04/02 9:15
答え

David H Nebinger

ランク: Liferay Legend

投稿: 7238

参加年月日: 2006/09/01

最近の投稿

The issue here is how to determine if an anonymous guest has already rated or not.

When an authenticated user sets the rating, it is easy to determine if they have before or not and reflect the rating they've selected.

For an anonymous guest, you'd need some other sort of mechanism.

And it gets muddier depending on how to know if the rating being viewed is valid or not. If I'm a disgruntled user of your site and I figure out how to anonymously get 10,000 zero ratings in, you will undoubtedly show the item with a negative rating even if a valid 100 users say it's five-star. Likewise if I'm trying to artificially increase the rating and I can get 10,000 five stars in when actual users say it's a zero-star, the rating becomes invalid.

So, all things considered, I'm sure there's a way to do it (probably involving a hook of the jsp page and possibly some other changes), but it really begs the question is this something you want to do?
Robert_82 Robert_82
RE: Ratings for unauthenticated users
2012/04/03 0:28
答え

Robert_82 Robert_82

ランク: New Member

投稿: 9

参加年月日: 2006/07/16

最近の投稿

Hi David,
your suggestions are true.. But this is a particular portal. It's a intranet portal accessible only on LAN or with a VPN. It has only a public community.
The system to track the ratings for guest user probably is the ip address or not?!?
Sandeep Nair
RE: Ratings for unauthenticated users
2012/04/04 4:56
答え

Sandeep Nair

ランク: Liferay Legend

投稿: 1692

参加年月日: 2008/11/05

最近の投稿

The answer for your question is no, with what Liferay has in place right now for ratings. Only an authenticated user can rate right now. You can see the table ratingsEntry for the columns.

Regards,
Sandeep