The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/printthread.php(287) : eval()'d code 2 errorHandler->error
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



UserSpice
get IP address... - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: get IP address... (/showthread.php?tid=176)

Pages: 1 2


get IP address... - snifer999 - 06-29-2016

y i cant see the login user ip address ? is there any thing i need to enable ?


get IP address... - brian - 06-29-2016

Under Site Settings, enable Track Guests.


get IP address... - snifer999 - 06-30-2016

thanks.. i enable Track Guests but still does not show the ip of the login user it only show user


get IP address... - mudmin - 07-01-2016

Just to double check... are you testing this on a live site? If you are testing on localhost, some systems will not show your ip when testing. For instance on some WAMP/XAMPP type installs, your ip won't show up. Are you on a live server or localhost?


get IP address... - snifer999 - 07-03-2016

i am in a live server


get IP address... - brian - 07-05-2016

So you want the IP address of any person logged in? Or just if it is an admin user?


get IP address... - snifer999 - 07-05-2016

yes i want the ip of any person logged in


get IP address... - brian - 07-05-2016

Where are you wanting to see the IP address? The PHP variable $_SERVER['REMOTE_ADDR'] contains the address of the user, and you could assign it to a $_SESSION variable like so:

$_SESSION['USIP']=$_SERVER['REMOTE_ADDR'];

Then, you can use $_SESSION['USIP'] as needed. A good place to put the above assignment would be in usersc/scripts/custom_login_script.php.

Does that help?


get IP address... - wolfeman - 07-08-2016

I too am on a live site and the track is turned on with only showing 0.0.0.0 in the admin panel. This is a new Install of 4.1.2.



get IP address... - mudmin - 07-08-2016

That's an experimental feature and we must have broken something during the making of 4.1. It will be a few days, but I will take a look at it if Brian doesn't have time. We'll get it fixed. Sorry for the inconvenience.