MyBB Community Forums

Full Version: Bad Word - Quick add
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

This is my second plugin for MyBB.
It let's you add a new bad word in the word filter quickly without going to the adminCP. The only thing you need to do is select the word and click the Bad Word link.

You can choose the default replacement string, and choose if mods and super mods may have access to the function.

Screenshot
[Image: screenshot.png]

Download link: Bad Word - Quick Acces

*** This plugin is at own risk, it's in beta ***
I think this is a very good idea, specific for starting users of mybb. It saves a lot of time and is easy to learn. Should be standard in mybb!
(2010-02-18, 12:41 PM)knol Wrote: [ -> ]I think this is a very good idea, specific for starting users of mybb. It saves a lot of time and is easy to learn. Should be standard in mybb!

Thanks, it was my idea to make it easy!
Will add some extra functionality later!

************
Update
************

I just updated the script with some better Javascript...
The previous version broke down some of the JS functions of MyBB...
Hi,
in the current version Mods are able to use SQL injections. You should use this:

			if($mybb->input['badword']){
				$db->insert_query('badwords', array(
					'badword' => $db->escape_string($mybb->input['badword']),
					'replacement' => $options['rep']
				));

				$cache->update_badwords();
				redirect(get_thread_link($mybb->input['tid']));
			}
Owh, didn't know that! Thank you very much!

Going to update it directly!

edit: Updated!
Dutch Language added!
Version 1.0.1 online, with confirmation and some bug fixes...

http://robinkuiper.eu/index.php?rt=blog&id=37
I found a little snag in your plugin, inside bwea.js there is the following:
alert('Geen Selectie.');
	else{
		var bweaConfirm = confirm('Weet je zeker dat je "' + userSelection + '" in het woordfilter wilt plaatsen?');
This is for the alert, and very usefull if you are Dutch, in English however... Wink
alert('No selection.');
	else{
		var bweaConfirm = confirm('Are you sure you want to put "' + userSelection + '" inside the bad word filter?');
Hope this helps Smile
Fixed, but only english now...
Will look for a solution tomorrow...
Release forum topic: http://community.mybboard.net/thread-65455.html
Hi

Looked on the website from the link, sorry I don't seem to be able to find the download.

I know it must be me, but could yo point me in the right direction please.

Thanks