howtothings.co.uk
How to view IP address directly from posts - Printable Version

+- howtothings.co.uk (https://www.howtothings.co.uk)
+-- Forum: Computing (https://www.howtothings.co.uk/forumdisplay.php?fid=4)
+--- Forum: Website Development, Implementation and General Webmaster Support (https://www.howtothings.co.uk/forumdisplay.php?fid=9)
+--- Thread: How to view IP address directly from posts (/showthread.php?tid=447)



How to view IP address directly from posts - Mark - 19-10-2010

How to view IP address directly from posts

This is a simple tutorial on how to view IP addresses directly from threads / posts rather than having to trail through the moderator control panel.

Steps

Go to:
  • Admin CP
  • Templates & Style
  • Templates
  • *your theme*
  • Post Bit Templates
  • postbit_iplogged_hiden

Replace everything with this:

Code:
<p class="smalltext">{$lang->postbit_ipaddress} <a href="moderation.php?action=getip&amp;pid={$post['pid']}">{$post['ipaddress']}</a></p>

Where it'd normally say IP Address: Logged, it will now show the IP Address, IP Address: 123.45.67.89, (example).

This is just for Administrators / Moderators. Normal members and guests cannot see the IP.

Example

[spoiler]
[Image: mybbtut-show-ip.png]
[/spoiler]