Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted October 31, 201014 yr 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
January 3, 201114 yr 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.
January 3, 201114 yr Author 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.
January 3, 201114 yr 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
January 10, 201114 yr 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.
January 11, 201114 yr Author 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.
January 28, 201114 yr Author 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.
August 14, 201113 yr Author 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/
January 11, 201312 yr 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.
January 11, 201312 yr Author Thank you for the clarification. Now I see what you meant. What version of Ipb are you using?
January 11, 201312 yr Just tried it on 3.4.1. Board is a clean test install so nothing else could interfere.
January 11, 201312 yr Author 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/
Archived
This topic is now archived and is closed to further replies.