Add an IP Field to Feedback Module



Hire Us!Download Video(0)Comments
Need Jobs done? Use our brand new Jobs Board to get your projects done at affordable prices.


Getting user's ip address when they send feedback can be a great way to prevent spamming on your site. Members are less likely to post bad things if they know their IP is being logged. This tutorial will give you the steps needed to get the ip sent along with their feedback to your email.

Files to edit:
modules/Feedback/index.php

Steps :
Open modules/Feedback/index.php. The first thing we will do is get the user's IP address using your server's own codes. Find the following line of code.

It may be different in some versions of phpnuke but you should see something similar. Just above that place the following:

We next need to show the user that their IP is being logged. Find the following:

Above that paste the following line of codes:

The final part is to make sure the ip is sent to your email. Find the following line of codes:

Above that paste the following codes:

That's all! Save your file and upload. You can now send a feedback and see that the ip address is also sent to your email.



Hire Us!Download Video(0)Comments
Need Jobs done? Use our brand new Jobs Board to get your projects done at affordable prices.