Jump to content

Download: Number of Posts to Post Links (Anti Spam Measurement)


NenaDice

Recommended Posts

Posted

File Name: Number of Posts to Post Links (Anti Spam Measurement)
File Submitter: NenaDice
File Submitted: 31 Oct 2010
File 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

  • 1 month later...
Posted

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.

Posted

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.
Posted

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
Posted

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.

Posted

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.
  • 3 weeks later...
Posted

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.
  • 5 months later...
  • 2 weeks later...
  • 2 weeks later...
Posted

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/
  • 1 year later...
  • 2 months later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...