• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Add-on Post links in thread permission - In the name of combatting spam!

Adam K M

Active member
#1
Hello,
I would love to see a add-on that adds a permission that users must have to post links in threads/replies (and a maximum number of links, if possible). I believe this should be similar to the already existing signature permissions, but under Forum Permissions.
upload_2015-6-25_11-16-26.png
 

Chris D

XenForo developer
Staff member
#3
Just use Spam Phrases and detect links in posts that way.

This would allow the first X posts to be checked for links and then moderated or rejected. It doesn't impose a limit on the number of links, though.
 

Adam K M

Active member
#4
@Chris D Oh, how nifty! I didn't even really acknowledge that as an option!

I'm still looking forward to that forum permission, as it could be useful in other cases, but I'm definitely going to be using spam phrases for new registrations.

Is the regular expression that I'm using (from tutsplus) if anyone is interested.
Code:
/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/