Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    General discussion    Topic: Censoring comment title/ Quoting issues
Pages: [1]   Go Down
  Print  
Author Topic: Censoring comment title/ Quoting issues  (Read 1717 times)
0 Members and 2 Guests are viewing this topic.
ncblazin247
Newbie
*

Karma: 0
Offline Offline

Posts: 14


« on: June 28, 2010, 16:00:23 »

First off id like to thank Smart and the joomlatune forums for getting my problems solved quickly as they arise. This is a great component. Ok so i have two questions.
1. The word filter for censoring bad words works great for the body of the comment. However when forbidden words are typed in the title, the filter does not catch them. Is there a way to fix this?
2. Posters usernames are currently replaced with "Guest" when they make comments. However when user's comments are quoted their actual username shows up in the quote instead of "guest". I need this fixed so that the username in the quote is hidden or says guest. Any ideas?
Logged
ncblazin247
Newbie
*

Karma: 0
Offline Offline

Posts: 14


« Reply #1 on: July 01, 2010, 09:03:45 »

Can anybody help me out with this one?!?!?
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #2 on: July 01, 2010, 13:10:52 »

1. I've no problems with filtering bad words in title (such issue was in JComments 2.1 but it has been fixed in JComments 2.2.0.0)
2. Open /components/com_jcomments/jcomments.ajax.php and replace;
Code: (php)
$comment_name = JComments::getCommentAuthorName($comment);
with
Code: (php)
$comment_name = JText::_('Guest');
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
ncblazin247
Newbie
*

Karma: 0
Offline Offline

Posts: 14


« Reply #3 on: July 02, 2010, 16:55:26 »

Hey smart thanks for the help with the quoting issues i was having. As far as the filter goes, do you have any suggestions for things i can do to fix this problem (checking settings, editing code, etc) ?
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #4 on: July 02, 2010, 17:10:31 »

Are you sure that you're using JComments 2.2.0.0?
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
ncblazin247
Newbie
*

Karma: 0
Offline Offline

Posts: 14


« Reply #5 on: July 03, 2010, 15:56:28 »

Hmm well when i click the "About JComments" tab it says its JComments 2.2.0.0   It censors the body of the comment just not the title.
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #6 on: July 03, 2010, 17:53:24 »

Ok, I have been mistaken (this is already fixed in current development version).
In JComments 2.2 you could fix it so:

1. Open file /components/com_jcomments/jcomments.php
2. Replace code:

Code: (php)
// run autocensor
if ($acl->check('enable_autocensor')) {
$comment->comment = JCommentsText::censor($comment->comment);
}
with
Code: (php)
// run autocensor
if ($acl->check('enable_autocensor')) {
$comment->comment = JCommentsText::censor($comment->comment);

if ($comment->title != '') {
$comment->title = JCommentsText::censor($comment->title);
}
}
« Last Edit: July 03, 2010, 17:55:17 by smart » Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
ncblazin247
Newbie
*

Karma: 0
Offline Offline

Posts: 14


« Reply #7 on: July 04, 2010, 04:39:36 »

You saved the day again! Thanks smart  Grin
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    General discussion    Topic: Censoring comment title/ Quoting issues
 
Jump to: