Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
The FireBoard forum component development is still going on. In order to get better, FireBoard will be moved from the Best of Joomla website.
During this transition period, the forum in Best of Joomla will be closed to new posts.
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard
Re:Badwords Hiccup (1 viewing) (1) Guest
TOPIC: Re:Badwords Hiccup
#13974
Re:Badwords Hiccup 1 Year, 6 Months ago  
Hi, I have performed the latest steps with success. I am still having one issue. Error message below.
Warning: preg_match(): Compilation failed: missing ) at offset 9 in /home2/eastwood/public_html/content/components/com_badwords2/class.badwords2.php on line 74

Any assistance appreciated
jnlclayton (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#15560
Re:Badwords Hiccup 1 Year, 5 Months ago  
Hi,

First i want to say thank you for the solution, its working fine when viewing posts in the forum.

I have found one small problem with it thou, if the user choose to use PDF option in the Forum Tools (upper right corner in the beginning of the toppic.), then the words are not censored.

I understand that this have nothing to do with the Badword component, thats why im askin here if anyone of you having an idea on how to solve this or the only solution to disable pdf in FB?

/Paul
paunilss (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Birthdate: 1972-02-14
Logged Logged
 
Joomla! 1.5.4
Database Version: MySQL 4.1.22
Database Collation: UTF-8 Unicode (utf8)
PHP Version: 4.4.2
 
 
#15995
Re:Badwords Hiccup 1 Year, 5 Months ago  
begarzus wrote:
Step 1: Modify code in /components/com_fireboard/template/default/view.php by

Delete or comment out

//add notification that the message was filtered for bad words
if ($badwords == "true" {
$msg_text = _COM_A_BADWORDS_NOTICE;
}


Modify

Old Code:

if ($fbConfig['badwords']) {
$badwords = Badword::filter($fb_message_txt, $my);
}


New Code:
if ($fbConfig['badwords']) {
$badwords = Badword::filter($fb_message_txt, $my);
if ($badwords) {
$fb_message_txt = Badword::flush($fb_message_txt, $my);
}
}


Step 2: Modify code in /components/com_fireboard/template/default/post.php by

Old Code:
if ($fbConfig['badwords']){
$badwords = Badword::filter($fb_message_txt, $my);
if ($badwords) {
$fb_message_txt = _COM_A_BADWORDS_NOTICE;
}
}


New Code:

if ($fbConfig['badwords']){
require_once ('components/com_badwords2/class.badwords2.php';
$badwords = Badword::filter($fb_message_txt, $my);
if ($badwords) {
$fb_message_txt = Badword::flush($fb_message_txt, $my);
}
}


I'm using the "default_red" template. Is there anything different I need to do versus what you wrote above which looks like was intended to be used with the "default" template?

Thanks.
Victor Cazares (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#17016
Re:Badwords Hiccup 1 Year, 5 Months ago  
Do not forget to change this!

in view.php
line 31

from:
[code:1] require_once ('components/com_badword/class.badword.php');[/code:1]

to:
[code:1] require_once ('components/com_badwords2/class.badwords2.php');[/code:1]

otherwise it won't work.
ysva (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/08/05 17:10 By ysva.
 
 
#20530
Re:Badwords Hiccup 1 Year, 4 Months ago  
Hello again,

just like to say that I've installed 1.0.3 and made the modifcations and all is still well with this fix. I am surprised that this is not added into the code for a new release but hey ho such is life.

One thing I have just noticed for the first time is that it does not filter out the bad words from a topic title, it only works on the content of the post...

Any thoughts on this ???

Thanks ...
wilson1973 (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#21907
Re:Badwords Hiccup 1 Year, 3 Months ago  
i have followed the above ideas/instructions and it works fine on the site. but if a user subscribes to a thread then it leaves the post unchanged/uncensored.

any ideas?

thanks for the work so far!
lenxe (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#22127
Re:Badwords Hiccup 1 Year, 3 Months ago  
Hi
This works great and the forum is now working great with Badword2. Only trouble is that it now Badword2 doesn't work with anything else in particular JA Submit. I know this is probably somebody else's issue but any ideas?

Many thanks

Danny

I'm using FB1.0.3
dannylonghurst@mac.com (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/09/12 10:15 By dannylonghurst@mac.com.
 
 
#22783
Re:Badwords Hiccup 1 Year, 3 Months ago  
Just so you know I was being a dummy and had not published the mambot.
Another little thing though and I've seen a forum issue about it somewhere but badword does not seem to filter the subject title. Any pointers?

Danny
dannylonghurst@mac.com (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#26849
Re:Badwords Hiccup 1 Year, 3 Months ago  
Yes any idea how to filter the subject/ topic line? This is very important
skyshing (User)
Junior Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#26850
Re:Badwords Hiccup 1 Year, 3 Months ago  
Yes any idea how to filter the subject/ topic line? This is very important
skyshing (User)
Junior Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
Go to top