Page Index Toggle Pages: 1
Topic Tools
Normal Topic Word censor in PMs (Read 2,106 times)
The Boy
Full Member
***
Offline



Posts: 358
Location: UK
Word censor in PMs
Jun 14th, 2011 at 9:11pm
Post Tools
YaBB 2.5, word censor doesn't seem to work in PMs on my site...   ...is this by design, a bug, or a Ding-up with my setup Grin
  
Back to top
WWW  
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Word censor in PMs
Reply #1 - Jun 16th, 2011 at 12:45pm
Post Tools
Hi Jaime,

They seem to be working fine for me in PM's, so if they're working in posts for you but just not PM's then I'm not too sure what could be causing it, sorry. Maybe someone else has an idea...
  
Back to top
 
IP Logged
 
The Boy
Full Member
***
Offline



Posts: 358
Location: UK
Re: Word censor in PMs
Reply #2 - Jun 20th, 2011 at 7:48am
Post Tools
My site is pretty standard 2.5AE, with only some very minor mods to YaBB provided code.

I'll re download, and run a diff against all files, just in case I got finger happy when doing some mods Grin

If I know its specific to my site, then I know its something I've done  Grin
  
Back to top
WWW  
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Word censor in PMs
Reply #3 - Jun 20th, 2011 at 2:22pm
Post Tools
Okay. I guess InstantMessage.pl would be the place to start, because the censor list is loaded from there for PMs...
  
Back to top
 
IP Logged
 
The Boy
Full Member
***
Offline



Posts: 358
Location: UK
Re: Word censor in PMs
Reply #4 - Jun 20th, 2011 at 6:21pm
Post Tools
Looks like I had the symptoms slightly wrong - its the email notification of the PM thats not censoring, the actual PM is.

Nothing obvious in the diff output on the files in Sources that jumps out as being the culprit...
  
Back to top
WWW  
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Word censor in PMs
Reply #5 - Jun 20th, 2011 at 6:51pm
Post Tools
Ah, right. Nope, they're not censored in the email - I don't know if it was purposely left out or was just forgotten about. If you do want to make them censored yourself though, this should do the trick:

In InstantMessage.pl find:

Code (Perl)
Select All
                    &LoadLanguage('Notify'); 


And add after:

Code (Perl)
Select All
                    &LoadCensorList; 


Then find:

Code (Perl)
Select All
                        &ToChars($msubject); 


And add after:

Code (Perl)
Select All
                        $msubject = &Censor($msubject); 


And then find:

Code (Perl)
Select All
                        &ToChars($chmessage); 


And add after:

Code (Perl)
Select All
                        $chmessage = &Censor($chmessage); 

  
Back to top
 
IP Logged
 
The Boy
Full Member
***
Offline



Posts: 358
Location: UK
Re: Word censor in PMs
Reply #6 - Jun 21st, 2011 at 6:49pm
Post Tools
That seems to have resolved it, thanks Cheesy
  
Back to top
WWW  
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Word censor in PMs
Reply #7 - Jun 21st, 2011 at 8:40pm
Post Tools
No worries.
  
Back to top
 
IP Logged
 
The Boy
Full Member
***
Offline



Posts: 358
Location: UK
Re: Word censor in PMs
Reply #8 - Jun 22nd, 2011 at 6:36pm
Post Tools
Worth recording it as a bug/oversight?

At least it gets fixed in next version, unless its decided it is by design...
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top