Version: 1.00, by Michael Morris
Developer Last Online: Jun 2009
Version: 3.0.3
Rating:
Released: 07-25-2004
Last Update: Never
Installs: 8
No support by the author.
Let's face it - some users are jerks when it comes to posting. They'll use 30 point fonts for the whole darn post or colors that are hard to read and when you ask them to please stop it, you get a cornball response equivalenting to a two-year-old's "I don't wanna, you can't make me!!"
Actually, with this hack you can.
As hacks go, this is one of the simplest that you may ever install but it has a lot of potential flexiability. Instead of holding hands and telling you to replace X with Y at each step, I'm going to tell you how to modify this hack to suit your needs depending on what you want. I promise to do my best at keeping the instructions clear even to those with no coding experience.
This hack can also be used in combination with vbulletin's inbuilt promotions feature to stop new users from using certain bbcodes - most prominently the URL code that spammers are prone to abuse.
Let's face it - some users are jerks when it comes to posting. They'll use 30 point fonts for the whole darn post or colors that are hard to read and when you ask them to please stop it, you get a cornball response equivalenting to a two-year-old's "I don't wanna, you can't make me!!"
Actually, with this hack you can.
As hacks go, this is one of the simplest that you may ever install but it has a lot of potential flexiability. Instead of holding hands and telling you to replace X with Y at each step, I'm going to tell you how to modify this hack to suit your needs depending on what you want. I promise to do my best at keeping the instructions clear even to those with no coding experience.
This hack can also be used in combination with vbulletin's inbuilt promotions feature to stop new users from using certain bbcodes - most prominently the URL code that spammers are prone to abuse.
This hack was tested on RC4 and gold (3.0.0)
hmm turning it off by usergroup is nothing for me. Because creating a new group for some jerks?
Only one problem I have. Could you please tell me where the img code is located? It doesn't seem to have it listed by itself. I tried disabling each code one-by-one to test (via admin panel) and I have just had no luck.
Thank you
Image Code can't be turned off this simply... But I think there's a way. Try this (Note I haven't tested this)...
Create a usergroup to ban from images and note the #
In /includes/functions_bbcodeparse.php search for this code:
PHP Code:
// ###################### Start bbcodeparse #######################
function parse_bbcode($bbcode, $forumid = 0, $allowsmilie = 1, $isimgcheck = 0, $parsedtext = '', $parsedhasimages = 0, $iswysiwyg = 0)
{
// $parsedtext contains text that has already been turned into HTML and just needs images checking
// $parsedhasimages specifies if the text has images in that need parsing
global $vboptions, $parsed_postcache;
Replace the last line (global $vboptions, $parsed_postcache with
PHP Code:
global $vboptions, $parsed_postchace, $bbuserinfo;
Directly underneath add this code:
PHP Code:
$bannedfromimg = X
X is the usergroup id you want banned from img code.
Backup your /includes/functions_bbcodeparse.php file before applying these changes as they are untested. They don't involve any queries so they can't cause any long term harm to your boards. Let me know if they work (they should unless I've missed something causing a parse error.
i installed this but unless im misunderstanding something it only stops them from viewing bbcode
i ran a test account posted some bbcode. it didnt display for me under the test account
logged in normally and the bb code was parsed
This would be brilliant of it would allow me to prevent a certain group from using certain BB codes. Most specifically, I would like to prevent new forum members from using the [url] and [img] tags.