You are using a browser which is not compatible with CSS (for more information, see Tara's tutorial).
Because of this, it is possible that our website may not appear
correctly in your browser. We apologise for the inconvenience, and
recommend you upgrade your browser to one which is compatible with CSS.
For more information, please visit our Browser Upgrade page.
To save on database space, phpBB encodes IPs before inserting them into the database. This means that when you are viewing the "posts" table in your database, you will not be able to directly know which IP the user posted from. This script will convert a phpBB encoded IP to a standard IP, and provide a hostname where available.
http://www.advicenators.com/qview.php?q=598053
This does in fact work
Works
SELECT username, CONCAT(CONV(substring(session_ip, 1,2),16,10),'.',CONV(substring(session_ip, 3,2),16,10),'.',CONV(substring(session_ip, 5,2),16,10),'.',CONV(substring(session_ip, 7,2),16,10)) as IP FROM phpbb_sessions INNER JOIN phpbb_users on phpbb_sessions.session_user_id = phpbb_users.user_id ORDER BY phpbb_users.username, IP
Thanks
There's another pbpbb ip conversion tool here
http://www.w3clubs.com/phpBB2/phpbbip.php
It also has some other options like resolving the IP address and decoding multiple IPs at once.
The source is available.
Add a new comment