Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
Bad Words filtering - Subject and Message included (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Bad Words filtering - Subject and Message included
#41260
Bad Words filtering - Subject and Message included 7 Months, 1 Week ago  
This is a modified post.php file we made to filter out the bad words in the subject as well as in the message field.

Because of the complexity of FireBoard, we changed the way the bad words filtering works. Instead of change the display of the bad words on the fly - we change the bad words during posting of the message. This means, the bad words are overwritten and written in the db.

This helps so none of the Joomla searches will find the bad words either.

Here is the downside to this method: If you add bad words to the bad words component after somebody used the bad word, these words will still show up. But for this instance, we left the regular "replacement-on-the-fly" method in the view.php part. But this replacement does only change the message field - not the subject line. The subject line change on-the-fly would require a bigger rewrite as this would affect modules, mambots, and the component.....

So if you have time to setup the badwords before you go live, this might help you.

This post.php file is a modified version from the default template in FireBoard 1.0.4.

It belongs here:
components/com_fireboard/template/default/post.php

We are using Bad Words 2 that can be found at www.schoolastech.com.

Remember that you also have to update the paths in the view.php file to:
components/com_badwords2/class.badwords2.php

I hope this helps somebody out there.

Peter
File Attachment:
File Name: post-326d8f969d021accc9b1d7cac2419aed.zip
File Size: 12613
ptogel (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/01/26 23:37 By ptogel.
 
The administrator has disabled public write access.  
#46319
Re:Bad Words filtering - Subject and Message inclu 6 Months ago  
fantastic, I realized that I have exactly the same problem, found your message, dowloaded the file and it works, thanks a lot! best wishes, Eric
Ericmuc (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Gender: Male jooma-websites.eu Location: Munich, Germany
Logged Logged
 
Automatic Filter Message : Please follow the forum rules for forum signatures...Thanks
 
The administrator has disabled public write access.  
#46423
Re:Bad Words filtering - Subject and Message inclu 6 Months ago  
I was having trouble with getting it to work. first it was filtering all my posts except the ones with words i had defined, then i had it not filtering the subject and history.

I found this page: www.pixelwonders.de/index.php?option=com...d=452&Itemid=522

I made the changes outlined in tha link to the view.php then replaced my post.php with the one posted in this thread, and now i have the words filtered as **** in message, subject and history. thank you!
CaptSkubba (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#46426
Re:Bad Words filtering - 6 Months ago  
hai i installed badwords2 sucessfully . but i got result this--->below

This message has been censored because it contained one or more words set by the administrator

plz help me
jaya (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#46435
Re:Bad Words filtering - 6 Months ago  
jaya, if you do as it says in my post above your own, then you should resolve this.
CaptSkubba (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#47247
Re:Bad Words filtering - Subject and Message inclu 5 Months, 3 Weeks ago  
Is this a 3rd party feature or does Fireboard also have its own word filtering.
RobbieB (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
ICQ#: 123456 skyphandle!!? yimid4me test@msnaccount.com testaim
Logged Logged
 
Testing the mcsignature
 
The administrator has disabled public write access.  
#47272
Re:Bad Words filtering - Subject and Message inclu 5 Months, 3 Weeks ago  
this is a third party component.
CaptSkubba (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
Go to top
Powered by FireBoard - Creditsget the latest posts directly to your desktop