NenaDice Posted October 31, 2010 Share Posted October 31, 2010 File Name: Number of Posts to Post Links (Anti Spam Measurement)File Submitter: NenaDiceFile Submitted: 31 Oct 2010File Category: Hooks and Plugins This will give the admin the option to make it so only users with a certain post count set by him/her can post links in posts and threads. By default it is set to 5 posts. This is an anti spam measurement if you will. Install the hook.xml file through Manage Hooks in your Admin Panel and then to configure it go to System Settings. There you will see a new setting called NenaDice. Click on it and configure the hook to your needs. There you can enable/disable the hook, set the number of posts needed to post links, enter your custom error message and as last but not least you can choose which groups and forums can bypass the post restriction.Click here to download this file Link to comment
GoldDust Posted November 1, 2010 Share Posted November 1, 2010 nice work thank you! :thumbsup: Link to comment
NenaDice Posted November 1, 2010 Author Share Posted November 1, 2010 nice work thank you! :thumbsup: You are welcome :) Link to comment
.Nuno. Posted January 3, 2011 Share Posted January 3, 2011 Hello, Does thid hook block images too? I would like to have this but only to block links and not image links. I'm not a PHP developer ... just looking to the code and note this preg_match: if(preg_match("/http:\/\/|www\./i", $this->request['Post'])) Has I understand, it only blocks "http:www.example.com" and not "http://example.blogspot.com". Is that right? Thanks. Link to comment
NenaDice Posted January 3, 2011 Author Share Posted January 3, 2011 nice one too :) Thanks :) Genius. :thumbsup: Thanks :) [font="arial, verdana, tahoma, sans-serif"][size="2"]Hello, Does thid hook block images too? I would like to have this but only to block links and not image links.[/size][/font][font="arial, verdana, tahoma, sans-serif"] [/font][font="arial, verdana, tahoma, sans-serif"][size="2"]I'm not a PHP developer ... just looking to the code and note this preg_match:[/size][/font] [font="arial, verdana, tahoma, sans-serif"] [/font] [font="arial, verdana, tahoma, sans-serif"] [/font][font="arial, verdana, tahoma, sans-serif"][size="2"]if(preg_match("/http:\/\/|www\./i", $this->request['Post'])) Has I understand, it only blocks "http:www.example.com" and not "http://example.blogspot.com". Is that right? Thanks. Yes, it will block images and the tlinks in your example too. It will block any kind of clickable links. Link to comment
.Nuno. Posted January 3, 2011 Share Posted January 3, 2011 Yes, it will block images and the tlinks in your example too. It will block any kind of clickable links. Very nice :) Can this allow IMG but not URL links? In my forum I have lot's of images and need to allow these. Thanks Link to comment
BariatricPal Posted January 10, 2011 Share Posted January 10, 2011 I'm having a slight issue at the moment and we can't pin point the cause. Occasionally we get members who get the error message (that they can't post a url) and I'm absolutely positive that they aren't posting any url's. ANy ideas ? It's about 1 out of every 100 members that have this issue when the first sign up. Link to comment
NenaDice Posted January 11, 2011 Author Share Posted January 11, 2011 Very nice :) Can this allow IMG but not URL links? In my forum I have lot's of images and need to allow these. Thanks No, as I said it stops all kinds of links. I'm having a slight issue at the moment and we can't pin point the cause. Occasionally we get members who get the error message (that they can't post a url) and I'm absolutely positive that they aren't posting any url's. ANy ideas ? It's about 1 out of every 100 members that have this issue when the first sign up. I am using this in several forums of my clients and we have never encountered this. If the post will not contain any links in it then it will go through fine. Maybe the problem is on that user's end. Anyway, I can not fix something that I can not reproduce. Link to comment
**pushkar** Posted January 28, 2011 Share Posted January 28, 2011 its not working for me. new members are able to add links Link to comment
NenaDice Posted January 28, 2011 Author Share Posted January 28, 2011 its not working for me. new members are able to add links Are you sure that you have entered the settings right? As I mentioned above, I have this hook installed at several forums of my clients and it works fine. Link to comment
JahLion Posted July 25, 2011 Share Posted July 25, 2011 Is this going get updated for 3.2.0 Link to comment
NenaDice Posted July 25, 2011 Author Share Posted July 25, 2011 Is this going get updated for 3.2.0 Not for the time being. Link to comment
loetie Posted August 3, 2011 Share Posted August 3, 2011 Can you please update this for ipb 3.2 ? thank you in advanced ;) Link to comment
NenaDice Posted August 14, 2011 Author Share Posted August 14, 2011 Can you please update this for ipb 3.2 ? thank you in advanced ;) I just updated it for 3.2x. http://community.invisionpower.com/files/file/4581-number-of-posts-to-post-links-anti-spam-measurement/ Link to comment
IveLeft... Posted January 11, 2013 Share Posted January 11, 2013 Is this good for 3.4.x ? Link to comment
Pintac Posted January 11, 2013 Share Posted January 11, 2013 Is this good for 3.4.x ? Just tried it, links still post for me on replies but not for new topics. I hope it gets upgraded. Link to comment
IveLeft... Posted January 11, 2013 Share Posted January 11, 2013 Yes agree - Thats why i asked Link to comment
NenaDice Posted January 11, 2013 Author Share Posted January 11, 2013 Thank you for the clarification. Now I see what you meant. What version of Ipb are you using? Link to comment
Pintac Posted January 11, 2013 Share Posted January 11, 2013 Just tried it on 3.4.1. Board is a clean test install so nothing else could interfere. Link to comment
NenaDice Posted January 11, 2013 Author Share Posted January 11, 2013 Just tried it on 3.4.1. Board is a clean test install so nothing else could interfere. This hook is not compatible with the 3.4x series. I have released a new one that does the same thing: http://community.invisionpower.com/files/file/4581-number-of-posts-to-post-links-anti-spam-measurement/ Link to comment
roost78 Posted March 16, 2013 Share Posted March 16, 2013 It doesn't work if user using Quick Reply Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.