Page 1 of 5 123 ... LastLast
Results 1 to 10 of 47

Thread: Submit Antispam Addon v 0.1

    1. Submit Antispam Addon v 0.1 Details »»

      Submit Antispam Addon v 0.1

      Version: , by (Pligg Donor/Coder) AnAlienHolakres3 is offline
      Developer Last Online: Apr 2009 Show Printable Version Email this Page
      Pligg Version: Unknown Rating:  Installs: 3
      Released: 07-06-2008 Last Update: Never Downloads: 54
      Not Supported

      Hello everyone, this is Submit Antispam Addon module.
      Most of you are bored of never ending spam. This module can solve your spam problems at 99%. Forever.

      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 autorization,enabling comment restriction policy and modifying comment multipler - all of these can be done after installing in Admin page in Pligg Configuration section, specificly Submit AntiSpam Addon category.

      How it works:
      It is pretty simple - when user reach submission limit then they will not be able to submit next story/comment in following 24 hours. See attached pictures.

      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:
      {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:
          check_actions('story_insert_comment',$vars);
      Now you can install this module in Modules option in admin panel.
      Compatibility note: This module was developed on 9.7 version but it was successfully tested on 9.9 version of Pligg.

      Module language can be changed in lang.conf file, styles in css file. Javascript file is not supposed to be changed until you are pretty sure what you do.

      Module configuration:
      This is Alfa and Omega of this module. There is no general option how configure this module to work on all sites. Only you know what are your users and how strict restrictions should be. Letīs see individual settings which can be customized in Submit Antispam Addon:

      • links history count
      • level 1-3 user authorization
      • level 1-3 allowed links count
      • enable comment restriction
      • comment submission multiplier


      Links history Count
      How many latest user links are evaluated when average user links votes value is calculated - in the other words this is "retrospective settings". It can be set for links and comments the same value only.
      [Tip - if you want to distinct value for comments, open submit_antispam_main.php and change:]
      Code:
      $average_u_c_v=$db->get_var("SELECT avg(comment_votes) FROM ". table_comments . 
      " WHERE comment_user_id=$current_user->user_id LIMIT $links_history_count");
      Level 1-3 user authorization
      Define average user links votes value required to become Level 1..2...3 user. Higher value = higher restriction. Each of levels can be set to desired value.

      Level 1-3 Allowed links count
      Define how many links are allowed to submit for user with Level 1-3 authorization in 24hrs.
      [Tip - If you want to customize Level 0 value open submit_antispam_main.php and change]
      Code:
          switch ($authorization_submit_level) {
                   case 0:
                   $submit_limit = 1;
      Enable comment restriction
      Define if comment submission restriction policy is enabled or not.There is really nothing special about this settings, just set true for enabling or false for disabling it.

      Comment submission multiplier
      Define how many comments are allowed at current authorization level x multiplier. To more understand that, you have to understand how comment votes limit value is calculated:
      comments_limit = submit link limit * submit_multiplier * average user comments value;
      submit link limit - depends on current user authorization level
      submit_multiplier - multiply the whole equation
      average user comments value - multiply the whole equation (it is calculated and cannot be edited)
      You can also watch attached comment image.

      What else to know: Countdown timer is done by javascript, it is not static value.

      Update 0.15:
      + fixed bug for administrators submissions
      + fixed average user votes count bug
      + everything in language file now
      + optimized sql code

      Download Now


      Screenshots


      Show Your Support

      • This download may not be copied, reproduced or published elsewhere without author's permission.
  1. #2
    Pligg Developer/Coder/Designer ChuckRoast's Avatar
    Joined
    Dec 2005
    Location
    Pliggville USA
    Posts
    9,118
    Great work dude.. I'd like to see this find it's way into the core.
    Help Keep ChuckRoast Home
    Today's Pligg Blog Post


  2. #3
    Pligg Donor catchpen's Avatar
    Joined
    Jan 2008
    Posts
    185
    Bravo AnAlienHolakres3 - you've contributed so much helpful stuff to the Pligg community. Thank u so much!

  3. #4
    Pligg Donor pliggit's Avatar
    Joined
    Dec 2006
    Posts
    6
    Great AnAlienHolakres3, many thanks!

  4. #5
    Casual Pligger valipe's Avatar
    Joined
    Dec 2007
    Posts
    37
    great work on the module .i would like to try it

  5. #6
    Casual Pligger gen3ric's Avatar
    Joined
    Jul 2007
    Posts
    91
    This is an amazing SPAM solution! I was just brainstorming about a solution to limit the number of submissions per 24 hours this weekend. Thank you so much!

  6. #7
    Constant Pligger onlinebisnes's Avatar
    Joined
    May 2007
    Posts
    143
    Great addon. thanks

    But I had little problem when apply this module.
    I saw the codes that it will skip restriction for god & admin level by default.
    But why my god account still be limited when I want to post a new buzz?
    Did I missed something?

  7. #8
    Pligg Developer/Coder/Designer ChuckRoast's Avatar
    Joined
    Dec 2005
    Location
    Pliggville USA
    Posts
    9,118
    I've added this into the core and it will be available in the next release.
    Help Keep ChuckRoast Home
    Today's Pligg Blog Post


  8. #9
    New Pligger snok's Avatar
    Joined
    May 2008
    Posts
    23
    Best anti spam, thanks AnAlienHolakres3

  9. #10
    Casual Pligger gen3ric's Avatar
    Joined
    Jul 2007
    Posts
    91
    Quote Originally Posted by onlinebisnes View Post
    Great addon. thanks

    But I had little problem when apply this module.
    I saw the codes that it will skip restriction for god & admin level by default.
    But why my god account still be limited when I want to post a new buzz?
    Did I missed something?
    I'm actually experiencing the same problem. As a god user, it's telling me I'm only allowed to submit 1 story per day...

Page 1 of 5 123 ... LastLast

Similar Threads

  1. Link Clicks-Count Addon
    By AnAlienHolakres3 in forum Questions & Comments
    Replies: 61
    Last Post: 02-17-2012, 10:54 AM
  2. Solve Module Submit AntiSpam Addon Submit a Comment
    By moma in forum Questions & Comments
    Replies: 2
    Last Post: 01-05-2012, 09:17 PM
  3. Sidebar Categories Enhancement AddOn
    By AnAlienHolakres3 in forum Questions & Comments
    Replies: 65
    Last Post: 08-30-2008, 08:48 PM
  4. Pligg Team ADDON Tutorial
    By AnAlienHolakres3 in forum Questions & Comments
    Replies: 6
    Last Post: 03-25-2008, 03:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •