• Home
  • Community
  • Submitted News
FAQ • Search • Login
Forum Home • Register

View unanswered posts | View active topics


Board index » Pligg » Pligg Modules » Released Modules

All times are UTC


Pligg Submit Antispam Addon v 0.1



Post new topic Reply to topic  Page 1 of 1
 [ 2 posts ] 
Print view Previous topic | Next topic 
 Pligg Submit Antispam Addon v 0.1 
Author Message
LincolnHawks
Site Admin
User avatar

Joined: Wed Dec 12, 2007 9:34 pm
Posts: 263
Post Pligg Submit Antispam Addon v 0.1
This great module will help reduce the spam submitted to your pligg site consoderbly, the module was coded by AnAlienHolakres3 and is one of the most useful that's been created for pligg.

Author: AnAlienHolakres3

Description: This module allows create user authorizations to submit certain number of new stories/comments based on quality of recent user submissions.

It means there is a restriction policy for submitting new stories:
  • Level 0 Authorization = (default) user authorization, user can submit 1 story per day
  • Level 1 Authorization = user authorization, user can submit x stories per day
  • Level 2 Authorization = user authorization, user can submit y stories per day
  • Level 3 Authorization = user authorization, user can submit z stories per day

How many links can be submitted, average user link votes count required to get certain level of authorization,enabling comment restriction policy and modifying comment multiplier - all of these can be done after installing in Admin page in Pligg Configuration section, specifically Submit AntiSpam Addon category.

Installation:
Download submit_antispam.zip archive, unpack and copy to your Pligg Modules folder.

1) open submit_step_3.tpl (located in templates/template folder) and at the end after "</fieldset>" tag add:
Code:

Code:
{checkActionsTpl location="tpl_submit_step_3_end"}


2) if you want to use comment restriction as well (default value is true) open story.php in root folder and into function insert_comment() before require_once(mnminclude.'comment.php') add:
Code:

Code:
   check_actions('story_insert_comment',$vars);


Screenshots
Attachment:
link_limit.png

Attachment:
comment_limit.png

Attachment:
info.png


Download Pligg Submit Antispam Addon v 0.1
Attachment:
submit_antispam.zip


You do not have the required permissions to view the files attached to this post.


Thu Aug 07, 2008 11:13 pm
Profile
juanmartinbravo

Joined: Tue Dec 25, 2007 10:47 pm
Posts: 6
Post Re: Pligg Submit Antispam Addon v 0.1
Thnaks Lincoln!

But I don't know where to place
Code:
check_actions('story_insert_comment',$vars);

I know I should place somewhere here, but I don't know exactly where...
Code:
// check for redirects
      include(mnminclude.'redirector.php');
      $x = new redirector($_SERVER['REQUEST_URI']);

      $main_smarty->assign('tpl_center', '404error');
      $main_smarty->display($the_template . '/pligg.tpl');      
      die();
   }
   if(isset($_POST['process'])){
      if ($_POST['process']=='newcomment') {
         insert_comment();
      }
   }

   // log the pageview
   $pageview = new Pageview;
   $pageview->type='story';
   $pageview->page_id=$link->id;
   $pageview->user_id=$current_user->user_id;
   require_once(mnminclude.'check_behind_proxy.php');
   $pageview->user_ip=check_ip_behind_proxy();

Could you please help?

Another problem I have is that I get a lot of spam user registerd every day, around 10 new spam stories every day and a lot of spam commments.
Could I disable submit stories and comments for everybody except god?


Fri Aug 29, 2008 7:41 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  Page 1 of 1
 [ 2 posts ] 

Board index » Pligg » Pligg Modules » Released Modules

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

©2007-2008 Social CMS Buzz

Feed XML Favourite Valid XHTML Valid CSS WordPress