By Curci Francesco on Monday, 28 September 2020
Posted in General Issues
Likes 0
Views 1.3K
Votes 0
Hi, is it possible to avoid saving the ip address of guests who comment? On my site only the name is a required field for comments and only guest can comment. I didn't enable privacy checkbox, but I suppose I don't have to save ip address of guests. Now I can see them in the backend.
Thank you, my best regards.
Francesco
Currently we do not have a setting to disable this, but you can modify on this file

JoomlaFolder/administrator/components/com_komento/includes/comment/comment.php


if (is_null($this->table->ip) || !$this->table->ip) {
$ip = @$_SERVER['REMOTE_ADDR'];

// Some people might be behind a proxy
if (array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER)) {
$ip = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);
$ip = array_pop($ip);
}

$this->table->ip = $ip;
}

·
Monday, 28 September 2020 18:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you, and please what will happen to the customization of the file at the next extension updates?
On frontend I also wish to hide the number of comments, for example Comments (0). I would like to hide (0) or (1) and so on. It seems it is not possible using css display:none. I think I have to modify a specifc file, but I'm afraid that updating the extension everything will be lost. Is there a way to create overrides?
Best regards
Francesco
·
Tuesday, 29 September 2020 16:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Unfortunately it is not possible to override this file JoomlaFolder/administrator/components/com_komento/includes/comment/comment.php .

Regarding this "comments (0)", you can modify in this file JoomlaFolder/components/com_komento/themes/wireframe/structure/default.php then copy this file and put into your current template JoomlaFolder/templates/yourCurrentTemplate/html/com_komento/structure/default.php.
·
Tuesday, 29 September 2020 16:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, in last version did you add a new feature to hide or anonimyze IP o or should I do again it by myself editing the core of your extension?
Thank you
My best regards
Francesco
·
Friday, 04 March 2022 18:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, in last version did you add a new feature to hide or anonimyze IP o or should I do again it by myself editing the core of your extension?
Thank you
My best regards
Francesco

We don't have add this feature in the Komento 4, but you can request this feature on our Komento voice page https://stackideas.com/voices/komento .

For now, you have to manually edit the source code from the same file.
·
Friday, 04 March 2022 18:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, I added my request.
Thank you
Best regards
Francesco
·
Friday, 04 March 2022 19:08
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome.

Just for your information, I have locked and marked this thread as resolved to avoid confusion in the future. Please start a new thread if you have any other issues in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Monday, 07 March 2022 11:41
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post