![]() |
|
Mod Options |
![]() |
|||||||||||
Allow URLs in posts only after a minimum number of posts (to reduce spam)
![]() Developer Last Online: May 2013 ![]() ![]() ![]() This modification is in the archives.
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
No members have liked this post.
|
![]() |
||||
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
|
||||
|
||||
If they use the vcode [url ] this hack will block it automatically. No members have liked this post.
|
#17
|
|||
|
|||
![]() Dark Shogun No members have liked this post.
|
#18
|
||||
|
||||
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. ![]() No members have liked this post.
|
#19
|
|||
|
|||
Is step one and two the same for a reason?
No members have liked this post.
|
#20
|
||||
|
||||
Step One is for newthread.php, Step Two is for newreply.php - different files, but same code to find and add.
No members have liked this post.
|
#21
|
|||
|
|||
works great, thanks a lot.
No members have liked this post.
|
#22
|
||||
|
||||
Awesome this should be quite easy to modify for a specific forum
![]() Thanks Erwin ![]() Regards - miSt
__________________
Dean Clatworthy - Web Developer/Designer No members have liked this post.
|
#23
|
|||
|
|||
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]"... No members have liked this post.
|
#24
|
|||
|
|||
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. No members have liked this post.
|
#25
|
||||
|
||||
Nice hack.
I would recommend you use the stristr function instead of the strstr function.
__________________
~Raz~ No members have liked this post.
|
#26
|
||||
|
||||
You might also want to "streamline" it into one condition:
with the added http:// check. (http://google.com)
__________________
~Raz~ No members have liked this post.
|
#27
|
|||
|
|||
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 No members have liked this post.
Last edited by sajjid; 17 May 2003 at 01:38. |
#28
|
||||
|
||||
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. No members have liked this post.
|
#29
|
||||
|
||||
Re: Nice Hack
No members have liked this post.
|
#30
|
|||
|
|||
Thanks for the quick reply but i am still lost i am new to php coding
any further help would be most welcome No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 14:56.