www.pegasos.org :: View topic - Disallowed comments on polls from unregistered users
http://www.ggsdata.se
Home   News   Forum   Gallery   
Search 
Login




 


 Log in Problems?
 New User? Sign Up!

Navigation

Online
Currently no members online:)

You are an anonymous user. You can register for free by clicking here
There are 1 unlogged users online !

Latest Web Links

Latest Downloads

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Author Message
kozz
Post subject: Disallowed comments on polls from unregistered users  PostPosted: Feb 16, 2008 - 22:37
Butterfly
Butterfly


Joined: Aug 16, 2003
Posts: 883
Location: Göteborg
Finally disallowed this unwanted feature Smile

It is unfortunately impossible to disallow that from the PostNuke adminstation panel so I had to modify the code. Well, it was not hard to do but but is harder than it should be so it never happened before. But now it is done so there should be no more spam in the RSS feeds.

It is a simple one-liner, and here is the path for anyone enjoying reading them.

Code:

Index: modules/Polls/comments.php
===================================================================
--- modules/Polls/comments.php  (revision 63)
+++ modules/Polls/comments.php  (revision 64)
@@ -819,7 +819,7 @@

         list($troll) = $result->fields;
     }
-    if((!$tia) && ($fake == 1) && ($troll < 6)) {
+    if((!$tia) && ($fake == 1) && ($troll < 6) && pnUserLoggedIn()) {
         $column = &$pntable['pollcomments_column'];
         $nextid = $dbconn->GenId($pntable['pollcomments']);
         $result =& $dbconn->Execute("INSERT INTO $pntable[pollcomments] ($column[tid],

_________________
Programmers are tools for converting caffeine into code.
 
 View user's profile Send private message Send e-mail Visit poster's website MSN Messenger ICQ Number 
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2004-2012 by pegasos.org

backend|avantgo