PDA

View Full Version : badwords list per user


FASherman
08-03-2005, 12:35 AM
To censor or not to censor, that is the question.

The answer, so far, has been not to because I see it as a restriction of freedom of speech.

However, if individual users had the ability to manage their own personal badwords list, then it is self-censorship based on an individuals own sense of what is acceptable or not.

Andreas
08-03-2005, 12:38 AM
Create a new custom Profile Field
Hookname: global_start

$vbulletin->options['censorwords'] = $vbulletin->userinfo['fieldx'];



Hack complete.

BamaStangGuy
08-03-2005, 12:44 AM
Create a new custom Profile Field
Hookname: global_start

$vbulletin->options['censorwords'] = $vbulletin->userinfo['fieldx'];



Hack complete.

Anyway to do this with replacement variables instead of the built in censorship for vb?

I had the User Optional Censorship hack installed and I am still using the replacement variables to censor just now users can not turn it on and off....

FASherman
08-03-2005, 12:49 AM
Create a new custom Profile Field
Hookname: global_start

$vbulletin->options['censorwords'] = $vbulletin->userinfo['fieldx'];



Hack complete.
You have got to be kidding me! Its that easy?

http://www.daily-web.info/forums/images/smilies/SS_faint.gif

Andreas
08-03-2005, 12:57 AM
Didn't really test it, but theoretically that should be it.

FASherman
08-03-2005, 01:14 AM
Didn't really test it, but theoretically that should be it.
Just gave it a try. No affect. I guess nothing is ever as easy as it seems.

vBintense
08-03-2005, 01:16 AM
I would think it would go in hooks global complete not start.

Andreas
08-03-2005, 01:23 AM
@FASherman
Tested and seems to work fine for me ...

FASherman
08-03-2005, 01:26 AM
Userfield is a single line text box with the words space delimited, right?

Andreas
08-03-2005, 01:33 AM
Yep. The postcache could be causing Problems though ...

FASherman
08-03-2005, 01:38 AM
Yep. The postcache could be causing Problems though ...
Thats not the only problem. Go back and take a look at the contents of the userfield. :surprised:

Andreas
08-03-2005, 01:45 AM
Well, that's an even more serious Problem, LOL ^.^
Then most likely profile fields can't be used for this.

Cyricx
08-03-2005, 02:03 AM
Yeah it won't work like that Kirby :(

The censor only checks as things go to the cache, after it's cached, it doesn't rerun on it, unless the post is editted.

I discovered this as I was workin on the censor per forums thing.

Turn the censor on for a forum, post a cuss word and it changes to %%%%.

Edit the message and it is %%%%

Turn the censor off, that post stays %%%%

Post a message with cuss words, and it doesn't change to %.

Turn the censor back on, and the cuss words in the pervious post still remain. However, if you edit the post with the cuss words, it reparses and changes to %%%%.



Damn... that's even more confusing typed out then it is in my head ;)

BamaStangGuy
08-03-2005, 03:48 AM
^ That is why I used the Replacement Variable Management and why I used the hack to make it optional for censorship for members.

Wish I could get it ported over :(