viger Posted September 1, 2018 Share Posted September 1, 2018 (edited) Hello, I would like to add the IP into the the stats page not found. At the moment it shows the 404 page, the referer and the counter. It should be possible to add the IP address, too? It's useful. At the moment I must check in phpmyadmin the date of the 404 page and find it in the ps_connections table, but it's very complicated. Is there any way to add it directly in the ps_pagenotfound table? Hope in some help and thanks in advance Edited September 1, 2018 by viger (see edit history) Link to comment Share on other sites More sharing options...
Knowband Plugins Posted September 1, 2018 Share Posted September 1, 2018 You can achieve the same by making changes in the code. Will you be able to make changes in the code OR DB? Kindly note that, this can be achieved only by making changes in the core file. Add the column ip_address VARCHAR(20) NULL in the ps_pagenotfound table & after that take the backup modules/pagesnotfound/pagesnotfound.php & replace the attached file. Hope it will work. pagesnotfound.php 1 Link to comment Share on other sites More sharing options...
viger Posted September 1, 2018 Author Share Posted September 1, 2018 Hello Knowband Plugins, thanks a lot! It works like a charm, it's exactly what I was searching for! Thanks again :-) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now