X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   IP Addresses in Users Online for all users (https://forum.x-cart.com/showthread.php?t=16571)

anandat 09-23-2005 06:47 AM

Dear Hamid,

Thanks a million for the code for old 4.0 ...it's working like a charm :D

hamid 09-23-2005 07:38 AM


Now just send me your address and I'll send you my invoice.

Just kidding of course :D

I'm glad I could help!

For the benefit of other users, what did you do to get it to work for 4.0.12?

Did you use the whole of the code for 4.0.14 that I provided or did you just change that little bit of code in your stats.php file?

anandat 09-23-2005 08:13 AM

Invoice :?: for what :?: ....... just kidding man :wink:

I did following

1) I made changes in auth.php as per your step 1

2) In my second step I did following as per your instruction for Users Online--> stats.php



$rec['session_create_date'] = $data['session_create_date']+$config["General"]["timezone_offset"];
$statistics[] = $rec;


And change it to:


$rec['session_create_date'] = $data['session_create_date']+$config["General"]["timezone_offset"];
$rec['session_ip'] = $data['session_ip'];
$statistics[] = $rec;


3) In my third step I made following changes in stats.tpl.



<TD bgcolor="#FFFFFF" nowrap valign="top">{if $v.userinfo ne ''}{$v.userinfo.firstname} {$v.userinfo.firstname}{if $v.userinfo.status eq 'A'}


And change it to:


<TD bgcolor="#FFFFFF" nowrap valign="top">{if $v.userinfo ne ''}{$v.userinfo.firstname} {$v.userinfo.firstname}{if $v.userinfo.status eq 'A'}({$lng.lbl_anonymous_customer}){/if}{else}{$lng.lbl_unregistered_customer}{/if}
IP: {$v.session_ip}</TD>


Hamid....thanks once again for your help :)

2019 09-24-2005 07:10 AM

Big Thanx!
Fixing Stats.php helped me working!

Bella Forma 10-21-2005 02:24 PM

Big thanks from me too!

I have a sneaking suspicion a competitor is racking up charges for me by clicking on Overture and Adwords.

This lovely little mod will help me to have at least some idea if the same person is on my site all the time :)

shipmerchant 10-23-2005 06:58 PM

Nice mod. I dont have the users online menu activated on the customers page, only on admin. My question is can this be added to the customer page down at the botton of the page? I have seen this on sone Zen Cart websites and it looks really great. But not sure where to start.

Can someone assist me with this please?


MythNReality 11-05-2005 11:43 PM

Thanks Hamid and anandat. Great works...now my cart is getting better and better (and more complicated) each day... :lol:

BoomBoomBap 12-04-2005 07:32 PM

Great mod. Works like a charm - thanks !

thundernugs 02-24-2006 02:10 PM

pardon me if i misread, but does anyone have this working for 4.0.17?

if so, did you follow the initial mod posted or one of the different iterations posted afterwards?

i tried the initial post, but my ip address came up blank

thanks in advance!


denlem 02-24-2006 03:28 PM

Original code works great for me in 4.0.17

All times are GMT -8. The time now is 05:46 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.