View Full Version : Allow users to self-censor thread titles and post content
calorie
01-12-2006, 10:00 PM
Allow users to self-censor thread titles and post content.
This mod makes a custom profile field where users can enter words to censor, like admins do in the ACP, except the user's censoring only appears to that user.
No screenshot is necessary; it looks the same as 'regular' censoring. ;)
If you install this mod, click install. If you uninstall this mod, click uninstall.
Xplorer4x4
01-13-2006, 09:15 AM
I had a member ask me for this the other day. Thank you. :)
Darat
01-13-2006, 09:41 AM
Hi - this could be very useful for me but what sort of extra load would it put on a busy forum?
Could it also be adapted to censor all posts viewed by guests?
Zelda-King
01-13-2006, 02:56 PM
Right up my street, thanks!
Installed.
EasyTarget
01-13-2006, 03:09 PM
nice job, thanks calorie.
any chance you can release a hack that allows an admin to censor thread titles but not thread content?
Snake
01-13-2006, 04:25 PM
Thanks man!
whitetigergrowl
01-14-2006, 12:09 AM
Sweetness! Thank you!
Borgs8472
01-14-2006, 12:22 AM
I tried this out, but this is no good to me as it doesn't censor words in thread titles, only in posts.
BlackxRam
01-14-2006, 09:39 AM
Yeah if it supported thread titles I'd be using it right now... any possibility of adding it in?
calorie
01-14-2006, 10:18 PM
Updated: thread titles and post content
Upgrade: uninstall the old and import the new
woodysfj40
01-16-2006, 02:00 PM
awesome....installed and testing....been waiting for something like this!!
EasyTarget
01-16-2006, 05:06 PM
any chance you can release a hack that allows an admin to censor thread titles but not thread content?
with your new addition to this hack seems like the above request may be simple for you to do?
moonclamp
01-17-2006, 01:25 AM
What happens if a "censor user" quotes someone elses censored words? ... will the "non censor user" see ***** or with they see the original profanity
Zelda-King
01-27-2006, 06:09 PM
This increases index queries by as much as 48, just so people know.
calorie
01-27-2006, 10:09 PM
They are not heavy queries, but if you want to be rid of them...
In the Self Censor Init Startup plugin find:
$sc_ds_query = $db->query_first("SELECT data
FROM " . TABLE_PREFIX . "datastore
WHERE title = 'sc_profile_plus'
");
$sc_ds_profile_id = unserialize($sc_ds_query['data']);
$sc_field_name = "field".$sc_ds_profile_id;
And replace with the following after mod installation:
$sc_field_name = "fieldX"; // set fieldX to the actual field name
Zelda-King
01-27-2006, 10:34 PM
Thanks for posting this option! :)
What affect does this edit have overall?
calorie
01-29-2006, 01:39 PM
This mod automatically makes the profile field for you and writes X from fieldX to a table, and then it fetches X from the table to determine $vbulletin->userinfo['fieldX']; so if you do as in post15 after this mod is installed, you can be rid of the extra queries.
Cyricx
02-03-2006, 05:22 PM
Wow yeah, it increased mine by almost 80 queries til I hardcoded the field number in there hehe :)
antialiasis
02-03-2006, 09:02 PM
Can words be censored by default with this?
Cyricx
02-23-2006, 08:33 PM
Has anyone gotten this to work on thread titles on forumhome?
Xplorer4x4
03-06-2006, 09:04 AM
They are not heavy queries, but if you want to be rid of them...
In the Self Censor Init Startup plugin find:
$sc_ds_query = $db->query_first("SELECT data
FROM " . TABLE_PREFIX . "datastore
WHERE title = 'sc_profile_plus'
");
$sc_ds_profile_id = unserialize($sc_ds_query['data']);
$sc_field_name = "field".$sc_ds_profile_id;
And replace with the following after mod installation:
$sc_field_name = "fieldX"; // set fieldX to the actual field name
No such plugin. You mean the global start plugin. ;)
ronoxQ
03-06-2006, 02:27 PM
Would you be able to set a 'default' list of censored words? That way, they don't need to make the whole list themselves?
moonclamp
04-25-2006, 01:38 AM
This mod automatically makes the profile field for you and writes X from fieldX to a table, and then it fetches X from the table to determine $vbulletin->userinfo['fieldX']; so if you do as in post15 after this mod is installed, you can be rid of the extra queries.
I did this edit but it messed the filter up by censoring the wrong characters.
EG.
I filtered the word "mess" so "messing" reads as "****ing",
However, after doing the plugin edit, it was reading as "mess**g"
Neo_obs
06-18-2006, 07:13 AM
I am so lost in the edit you said calorie. can you give me some one on one help cause i need to get my queries down. Thanks abunch
Chazz Layne
07-30-2006, 10:28 PM
How difficult would it be to make the censored list admin-controlled, and have it apply to usergroups instead of users (or perhaps on/off toggle in profile)?
This is the closest I've seen to the solution I need to provide a default, optional "work safe" environment.
TwinsForMe
09-10-2006, 11:39 PM
I was running this on one board with 3.5.x and it worked well. I upgraded to 3.6.0 and it still works.
I tried installing this on two other boards that run 3.6.0 and it's not working. It's not creating a profile field. Even when I manually created the profile field it still didn't work.
Anyone else have this problem and find a workaround?
zeroality
10-03-2006, 08:09 AM
I would like to get this working as well. Anyone?
zeroality
10-09-2006, 05:03 PM
bump
StepOnFrog
10-25-2006, 09:54 PM
Has anyone got this working with 3.6.2 yet?
Thanks... :bandit:
Noonster
11-02-2006, 03:17 PM
Anyone??
StepOnFrog
11-26-2006, 09:56 PM
Is this working with 3.6.4 yet?
:confused:
Here here! I would like a vB 3.6 version as well.
StepOnFrog
01-12-2007, 07:08 AM
Hi Calorie,
There's been no response to this Mod for ages and ages, and there's been a good number of Vb Versions released since it's appearance.
Please can you reply with some indication as to whether this Mod will work with vB 3.6 or not, or what would need to be changed if it could be made to do such. Also, if possible, would this Mod work with vBAdvanced (current version).
I have a forum where swearing is a great norm, and I don't want to censor words that swearing users don't want censored. This Mod seems to be the thing I'm looking for, and certainly a fair number of other users seem in the same frame of mind.
Or, any other coder who can help would be great.
Thanks,
Step ;)
ubblite
02-01-2007, 02:59 PM
Is this working with 3.6.4 yet?
:confused:
Nope, it does not work with vb3.6.4... I have already tested it.
ThunderVamp9
02-16-2007, 03:06 AM
Agreed, I'd love to get this working with 3.6.4
StepOnFrog
02-16-2007, 03:57 PM
Agreed, I'd love to get this working with 3.6.4
No Chuffing chance! :eek:
The last technical post regarding this mod was about February last year. All posts since then have, basically, been requests.
:(
ssslippy
03-04-2007, 02:01 AM
They are not heavy queries, but if you want to be rid of them...
In the Self Censor Init Startup plugin find:
$sc_ds_query = $db->query_first("SELECT data
FROM " . TABLE_PREFIX . "datastore
WHERE title = 'sc_profile_plus'
");
$sc_ds_profile_id = unserialize($sc_ds_query['data']);
$sc_field_name = "field".$sc_ds_profile_id;
And replace with the following after mod installation:
$sc_field_name = "fieldX"; // set fieldX to the actual field name
Using this code and creating my own mutli line text box and manually put in the field#. This is in 3.6.5
StepOnFrog
03-04-2007, 11:05 PM
ssslippy,
Using this code and creating my own mutli line text box and manually put in the field#. This is in 3.6.5
Not sure how to carry out these instructions... or, how they make this MOD work with 3.6.x
Please can you be a bit clearer?
Thanx,
Step...
:-D
bplinson
04-05-2007, 05:35 AM
Yup, I would like to have this for 3.6.4 also. Will pay for someone to do it. PM ME.
4x4 Mecca
04-23-2007, 08:09 PM
To use on 3.6.4
First install the product. And follow the readme about making sure censoring is enabled.
Then Go to your admin CP, click on the option
User Profile Fields
Then click on
Add New User Profile Field
Choose from the drop down
Multiple-Line Text Box
Title: Self Censor Posts
Description: Enter words here you would like to censor out of posts. For example, if you don't want to see swear words, enter them here.
Max Length: 200
Field Length: 72 (May be different for your skin, this is the width of the input box)
Field Searchable on Members List: No
Then select
"options: other" as the display page
Now you can see your field in the list. Make a note of the field number, for example 'field26'
Then do the mod here, but replace FieldX with 'field26' Or what ever your field number is.
That should be it. I may have left out a step, let me know if I did.
KPalicz
05-31-2007, 03:36 PM
Darn, I just installed this for 3.6.7 before checking to see if it actually works. And it doesn't. :(
misuse
01-01-2008, 10:40 PM
Wierd. It works for me on 3.6.8
Austone
10-02-2008, 11:39 PM
For what it's worth, this worked fine on 3.7, though I had to manually create the field using 4x4 Mecca's instructions above.
I just wish there was a way to set some sort of default filter for guests.
jilly
10-09-2008, 11:46 PM
For what it's worth, this worked fine on 3.7, though I had to manually create the field using 4x4 Mecca's instructions above.
I just wish there was a way to set some sort of default filter for guests.
How did you make it work on 3.7? I tried installing it, and then adding in the custom profile field per Mecca's instructions, but I don't know where exactly to put my custom profile field number??
VikesRule
03-18-2009, 03:55 AM
Anyway this code can be updated for 3.8?
jilly
05-10-2009, 01:39 AM
i second it. this would be extremely useful for me.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.