MyBB Community Forums

Full Version: Logged IP address
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Logged IP addres=0. on forum and MySQL.

MyBB v1.6.4.

ip address identification problem.
Did you make changes to your templates or core files?
Go to Theme's template >Postbit Templates>Postbit and make sure the following code is there.
{$post['iplogged']}
Do that for Postbit classic as well.
(2011-08-02, 10:18 PM)Peter Chao Wrote: [ -> ]Did you make changes to your templates or core files?
Go to Theme's template >Postbit Templates>Postbit and make sure the following code is there.
{$post['iplogged']}
Do that for Postbit classic as well.

I found this code.......


	id="post_meta_{$post['pid']}">
				{$post['iplogged']}
				

I didn't change anything on template.


http://dev.mybb.com/issues/1666

I found solution:

In function.php I canged this code:

function get_ip()
{
    global $mybb, $plugins;

    $ip = 0;


with this code:

function get_ip()
{
    global $mybb, $plugins;

    $ip = $_SERVER['REMOTE_ADDR'];