Jump to content

Add IP address to pagentofound module in 1.6.14 [SOLVED]


viger

Recommended Posts

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 by viger (see edit history)
Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...