By Li Song on Monday, 12 November 2018
Posted in General Issues
Replies 8
Likes 0
Views 784
Votes 0
Hi team,

Is there a way that we can track the user's IP address when the user posts a discussion/reply/comment?


Thanks,
Song
Hi there,

Currently, all creations on Easydiscuss will stored users IP address. You can check them your Database as you can refer on '#_discuss_posts' and '#_discuss_comments'.

Please advice.
·
Monday, 12 November 2018 16:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Warith,

I found that the IP address stored in the '#_discuss_posts' are almost the same. See post.png.

And there is no IP address stored in the '#_discuss_comments'. See comment.png.

Please advise.


Thanks,
Song
·
Wednesday, 14 November 2018 14:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

I found that the IP address stored in the '#_discuss_posts' are almost the same. See post.png.

Can you provide us with your database and all relate informations so that we can further check this issues.

And there is no IP address stored in the '#_discuss_comments'. See comment.png.

Seems like there are issues on our end where those IP are not stored currently. Logged this issues internally and will included this on our next release version.
·
Wednesday, 14 November 2018 15:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,


I found that the IP address stored in the '#_discuss_posts' are almost the same. See post.png.

Can you provide us with your database and all relate informations so that we can further check this issues.


I can't provide you the database or the related information. Can you check it with your own db?
Or can you tell me where i can find the code which can obtain the IP?

Thanks,
Song
·
Wednesday, 14 November 2018 17:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

We will retrieve them based on codes below as you can refer here on bind() function ..../administrator/components/com_easydiscuss/includes/post/post.php

[gist type="php"]
if ($this->post->user_id == $this->my->id) {
$ip = $this->input->server->get('REMOTE_ADDR');
$this->post->ip = $ip;
}
[/gist]
·
Wednesday, 14 November 2018 18:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Warith,


I found that the IP address stored in the '#_discuss_posts' are almost the same. See post.png.

And there is no IP address stored in the '#_discuss_comments'. See comment.png.



Are both issues fixed in 4.1.4?

Thanks,
Song
·
Wednesday, 19 December 2018 10:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Yes it should be included on our latest version. Please give it a try and see how it goes.
·
Wednesday, 19 December 2018 11:04
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post