The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
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)
Developer Last Online: May 2013
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: Show Your Support
|
Comments |
#22
|
|||
|
|||
works great, thanks a lot.
|
#23
|
||||
|
||||
Awesome this should be quite easy to modify for a specific forum
Thanks Erwin Regards - miSt |
#24
|
|||
|
|||
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]"... |
#25
|
|||
|
|||
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_nourlal lowed")."\");"); exit; } if($bbuserinfo[posts] < $allowurl and strstr($message,'[URL')) { eval("standarderror(\"".gettemplate("error_nourlal lowed")."\");"); exit; } $allowurl = 15; if($bbuserinfo[posts] < $allowurl and strstr($message,'www')) { eval("standarderror(\"".gettemplate("error_nourlal lowed")."\");"); exit; } if($bbuserinfo[posts] < $allowurl and strstr($message,'www')) { eval("standarderror(\"".gettemplate("error_nourlal lowed")."\");"); exit; } which blocks now also to edit the www or URL-BBcode to the url. |
#26
|
||||
|
||||
Nice hack.
I would recommend you use the stristr function instead of the strstr function. |
#27
|
||||
|
||||
You might also want to "streamline" it into one condition:
PHP Code:
|
#28
|
|||
|
|||
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 |
#29
|
||||
|
||||
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. |
#30
|
||||
|
||||
Quote:
|
#31
|
|||
|
|||
Thanks for the quick reply but i am still lost i am new to php coding
any further help would be most welcome |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|