1
JamesSAEP
I want to stop Anonymous from rating articles - How?
  • 2005/4/21 18:51

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


I'm using News 1.3 and it seems that the Anonymous users can rate the articles. How do I keep this from happening? I only want Registered users to be able to rate.

Thanks.

2
hervet
Re: I want to stop Anonymous from rating articles - How?
  • 2005/4/23 6:49

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Hi,

from the file called /xoops/modules/news/article.php, replace the line :
Quote:

if (getmoduleoption('ratenews')) {


with :
Quote:

if (getmoduleoption('ratenews') && is_object($xoopsUser)) {


Bye,
Hervé

Login

Who's Online

114 user(s) are online (96 user(s) are browsing Support Forums)


Members: 0


Guests: 114


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits