Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Allow URLs in posts only after a minimum number of posts (to reduce spam) Details »
Allow URLs in posts only after a minimum number of posts (to reduce spam)
Mod Version: 1.00, by Erwin (Member) Erwin is offline
Developer Last Online: May 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.3.x Rating: (0 vote - 0 average) Installs: 21
Released: 17 Oct 2002 Last Update: Never Downloads: 85
Not Supported  

Allow URLs in posts only after a minimum number of posts (to reduce spam)

I did this mini-hack to reduce the amount of spammers and newbie mistakes at my forums. Most of the newbies at my site do not read the rules, and in their enthusiasm post links back to their own sites or forums.

I have made it so that members need to have a minimum number of posts before they can post URLs to website. On my site I've set it to 15, but you can set it to whatever you like. If a member has less than the required amount of posts, when they try to post they get redirected to an error page, telling them that they need to have a minimum amount of posts before they can post links in their post. In my error message, I also tell them to post links to their own site only in our forum designated for website links.

Update: Version 1.1 - fixed up a loophole. Just replace the old code with the new.
Version 2.0 - tidied up the code, added code to editpost.php, made it easier to change the variable


Anyway, installation is a breeze. The installation text file is below:

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Miscellaneous Hacks Add rel="nofollow" Attribute To URLs - Reduce Spam - Increase Pagerank 1Unreal vBulletin 3.8 Add-ons 88 24 Sep 2015 11:25
New Posting Features Allow URLs in posts only after a minimum number of posts (to reduce spam) Xoligy vBulletin 3.6 Add-ons 97 14 Apr 2012 13:26

Comments
  #2  
Old 17 Oct 2002, 13:17
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Screenshot

This is a screenshot of the error message that the member will be redirected to if he or she has less that the minimum number of posts required and tries to post a message that has a website address or URL in it.

Remember, you can customize this error message to suit your site.
Attached Images
File Type: jpg allowurlerror.jpg (21.5 KB, 996 views)
Reply With Quote
  #3  
Old 17 Oct 2002, 13:21
TECK's Avatar
TECK TECK is offline
 
Join Date: Dec 2001
Real name: Floren Munteanu
looks good erwin...
a little tip, when variable values are involved like that? try always to add them into global.php.

so your $allowurl should be identified to something like that:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

will be alot easier to be changed onto one file, then to look through several ones, in case the user tries to change the value after... that will make it easier on newcommers to find something in php files.

let me know what you think.
__________________
Floren Munteanu
Axivo Inc.
Axivo Community - Visit the forums to find out more about us
Why Queued - My personal blog
Reply With Quote
  #4  
Old 17 Oct 2002, 13:25
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
True, but in the case of this mini-hack, editing 2 files is easier than 3 files for newbies. Not worth making the $allowurl variable global if it's only going to be used in those 2 files, plus I don't want newbies mucking around in global.php just in case. But yeah, people can do that if they wish.
Reply With Quote
  #5  
Old 17 Oct 2002, 13:26
NTLDR's Avatar
NTLDR NTLDR is offline
 
Join Date: Apr 2002
Real name: Lee Botley, BSc (Hons)
Simple yet usefull Hack Erwin, thanks for sharing, I'll probably install this one
__________________
Lee Botley, BSc (Hons) - vBulletin.org Moderator
http://www.thesistersthree.com/lee/sigs/signature.ts3
The Sisters Three Charmed Discussion Forums

WinterDir .:. vBindex v2.1 for vB2 .:. vBindex v3.0.0 RC5 for vB3
Reply With Quote
  #6  
Old 17 Oct 2002, 13:35
freeshares1 freeshares1 is offline
 
Join Date: Mar 2002
Erwin,

This is a fantasic but simple idea, I get a lot of spam and this would help to reduce that.

Thanks
Reply With Quote
  #7  
Old 17 Oct 2002, 13:41
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Thanks guys. If you like it and use it, please click install, so that I can keep track of how many installers there are, and also in case I update the hack and need to inform the installers.
Reply With Quote
  #8  
Old 17 Oct 2002, 13:54
John's Avatar
John John is offline
 
Join Date: Mar 2002
Real name: John Warwick
Great hack Erwin!

It's a shame that after seeing the error message, a spammer would probably just type in the URL with a space after the "www." or something similar.
Reply With Quote
  #9  
Old 17 Oct 2002, 16:21
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Real name: Dan
As a addon to what TECK said you could also place a unset(); just above it.
Reply With Quote
  #10  
Old 17 Oct 2002, 21:41
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Originally posted by john.eovie
Great hack Erwin!

It's a shame that after seeing the error message, a spammer would probably just type in the URL with a space after the "www." or something similar.
Hi john! Long time no see!

Yeah, at least if they bypass this hack by adding spaces and such the URL won't be clickable. And we will know then that they are a "true spammer" rather than an unknowing newbie.
Reply With Quote
  #11  
Old 17 Oct 2002, 21:54
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Originally posted by Neo
As a addon to what TECK said you could also place a unset(); just above it.
There's no real need to do that, but I've decided to restrict the file edits to only newthread.php and newreply.php to keep things simple.
Reply With Quote
  #12  
Old 18 Oct 2002, 22:44
Dark Shogun Dark Shogun is offline
 
Join Date: Aug 2002
Real name: Nate
Can you make it so it only works with the registered user group because my admins, mods, and super mods can post any.

Dark Shogun
Reply With Quote
  #13  
Old 18 Oct 2002, 23:26
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Real name: Chris Murphy, BSc
Wow...

Nice little hack Erwin

Satan
Reply With Quote
  #14  
Old 19 Oct 2002, 01:18
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Originally posted by Dark Shogun
Can you make it so it only works with the registered user group because my admins, mods, and super mods can post any.

Dark Shogun
Your staff have less than the minimum post count required???

Easy fix...

In BOTH newthread.php AND newreply.php, find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Change it to:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Make sure you change the $allowurl amount to suit your site.

Again, I am very surprised that you have staff members who do not reach the minimum post count for your site.

Last edited by Erwin; 19 Oct 2002 at 01:24.
Reply With Quote
  #15  
Old 19 Oct 2002, 19:22
Graphics's Avatar
Graphics Graphics is offline
 
Join Date: Mar 2002
hey erwin cna u make it for ".com" also. and if u can a lot of ppl use the vbcode [url ] is there a way to make it into that also.

i am just asking if u can. if not its still a great hack.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 07:54.

Layout Options | Width: Wide Color: