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

  #16  
Old 19 Oct 2002, 22:58
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Originally posted by Graphics
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.
If they only put in a ".com" then the domain will show but it won't be linkable. People will have to type it out.

If they use the vcode [url ] this hack will block it automatically.
Reply With Quote
  #17  
Old 21 Oct 2002, 20:05
Dark Shogun Dark Shogun is offline
 
Join Date: Aug 2002
Real name: Nate
Originally posted by Erwin


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

Again, I am very surprised that you have staff members who do not reach the minimum post count for your site.
It is because my forum is new.

Dark Shogun
Reply With Quote
  #18  
Old 21 Oct 2002, 21:24
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Update: Version 1.1 - fixed up a loophole. Just replace the old code with the new.

I've discovered a couple of loopholes that new users can use to post URLs. I've replaced the old code with a new piece of code that closes up these loopholes. Please download the 1.1 version of the text file, and replace the old code with the new.
Reply With Quote
  #19  
Old 27 Oct 2002, 03:56
HHTKAO HHTKAO is offline
 
Join Date: Sep 2002
Is step one and two the same for a reason?
Reply With Quote
  #20  
Old 27 Oct 2002, 04:03
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Step One is for newthread.php, Step Two is for newreply.php - different files, but same code to find and add.
Reply With Quote
  #21  
Old 27 Oct 2002, 06:34
smess smess is offline
 
Join Date: Oct 2002
works great, thanks a lot.
Reply With Quote
  #22  
Old 27 Oct 2002, 17:18
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Real name: Dean Clatworthy
Awesome this should be quite easy to modify for a specific forum

Thanks Erwin

Regards

- miSt
__________________
Dean Clatworthy - Web Developer/Designer
Reply With Quote
  #23  
Old 18 Feb 2003, 00:38
Brain Crusher Brain Crusher is offline
 
Join Date: Feb 2003
The Hack is bugy, if a guy want promotion his homepage
he can make a post like

subject my page
text: rotten.com

and post it after it, he can edit his own post and make rotten.com to www.rotten.com, after submit it

the link will be active with "[URL]"...
Reply With Quote
  #24  
Old 18 Feb 2003, 01:00
Brain Crusher Brain Crusher is offline
 
Join Date: Feb 2003
Helped myself .

I think you should add this to editpost.php under the same "find string" how newreply.php

$allowurl = 15;
if($bbuserinfo[posts] < $allowurl and strstr($message,'[url')) {
eval("standarderror(\"".gettemplate("error_nourlallowed")."\");");
exit;
}
if($bbuserinfo[posts] < $allowurl and strstr($message,'[URL')) {
eval("standarderror(\"".gettemplate("error_nourlallowed")."\");");
exit;
}

$allowurl = 15;
if($bbuserinfo[posts] < $allowurl and strstr($message,'www')) {
eval("standarderror(\"".gettemplate("error_nourlallowed")."\");");
exit;
}
if($bbuserinfo[posts] < $allowurl and strstr($message,'www')) {
eval("standarderror(\"".gettemplate("error_nourlallowed")."\");");
exit;
}

which blocks now also to edit the www or URL-BBcode to the url.
Reply With Quote
  #25  
Old 18 Feb 2003, 14:31
Raz's Avatar
Raz Raz is offline
 
Join Date: Oct 2001
Nice hack.

I would recommend you use the stristr function instead of the strstr function.
__________________
~Raz~
Reply With Quote
  #26  
Old 18 Feb 2003, 14:42
Raz's Avatar
Raz Raz is offline
 
Join Date: Oct 2001
You might also want to "streamline" it into one condition:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

with the added http:// check. (http://google.com)
__________________
~Raz~
Reply With Quote
  #27  
Old 17 May 2003, 01:34
sajjid sajjid is offline
 
Join Date: Jul 2002
Nice Hack

i was wondering if it is possiable to disable live linking i mean users be able to post a link but it should not be clickable.
i dont mind people posting links as long as they not clickable other should be able to see it then if they wanna visit that site then they have to type it in thier browser. Just like my signature below

Last edited by sajjid; 17 May 2003 at 01:38.
Reply With Quote
  #28  
Old 17 May 2003, 02:22
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Update Version 2.0 - Tidied up the code, added to editpost.php, made it easier to change the variable

Just download the text file and replace the old code. I've made it so you can change the minimum post easily in the phpinclude template.
Reply With Quote
  #29  
Old 17 May 2003, 02:24
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Re: Nice Hack

Today at 10:34 AM sajjid said this in Post #27
i was wondering if it is possiable to disable live linking i mean users be able to post a link but it should not be clickable.
i dont mind people posting links as long as they not clickable other should be able to see it then if they wanna visit that site then they have to type it in thier browser. Just like my signature below
That would require an edit of functions.php, and not the purpose of this hack. It's a matter of making the "automatically parse URL" radio button switched to off automatically.
Reply With Quote
  #30  
Old 17 May 2003, 03:24
sajjid sajjid is offline
 
Join Date: Jul 2002
Thanks for the quick reply but i am still lost i am new to php coding
any further help would be most welcome
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 14:56.

Layout Options | Width: Wide Color: