1
mf_iii
How can i set anonymous not rate in news
  • 2008/4/4 0:06

  • mf_iii

  • Just popping in

  • Posts: 47

  • Since: 2007/12/22


Hi,

In the module news when i enable the feature the users to rate, also anonymous can rate too.

How can disable this and only the registered users can rate?

Thanks

2
hervet
Re: How can i set anonymous not rate in news
  • 2008/4/4 17:41

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


in /xoops/modules/news/ratenews.php, after this line :

$myts =& MyTextSanitizer::getInstance();


insert :

if(!is_object($xoopsUser)) {
redirect_header(XOOPS_URL.'/modules/news/index.php'3_NOPERM);
}

3
mf_iii
Re: How can i set anonymous not rate in news
  • 2008/4/10 15:17

  • mf_iii

  • Just popping in

  • Posts: 47

  • Since: 2007/12/22


thanks! its worked!!

Login

Who's Online

294 user(s) are online (242 user(s) are browsing Support Forums)


Members: 0


Guests: 294


more...

Donat-O-Meter

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

Latest GitHub Commits