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)

hoosierglass 02-12-2010 05:35 PM

Re: IP Addresses in Users Online for all users
 
Has anyone got this to work in 4.3 yet?

Yalokin 03-16-2010 11:19 AM

Re: IP Addresses in Users Online for all users
 
did anyone tried it with 4.2?

thank you for your help

hoosierglass 03-16-2010 11:45 AM

Re: IP Addresses in Users Online for all users
 
I think post #61 works for 4.2

Yalokin 03-16-2010 11:54 AM

Re: IP Addresses in Users Online for all users
 
find it and will try tomorrow.

thank you

A1Gifts 03-16-2010 02:51 PM

Re: IP Addresses in Users Online for all users
 
Quote:

Originally Posted by hoosierglass
I think post #61 works for 4.2

Tried #61 post. Doesn't show addresses, just IP: and nothing else.
I did try all 3(?) different "Look-up" URL's. Didn't work.

Yalokin 03-17-2010 04:59 AM

Re: IP Addresses in Users Online for all users
 
Working in 4.22

Show IP.

After click on IP show dnsstuff page.


thank you.

Yalokin 03-17-2010 05:06 AM

Re: IP Addresses in Users Online for all users
 
I also did not find exact code in postauth.php but edit my with lines of code that are missing and added if statement.

And it work.
I do not see any errors so I assume it implement it right.

Thank you again.

So part for my postauth.php now look like this (lines 78 to 97):
if (!empty($active_modules['Users_online'])) {

x_session_register("session_ip");


x_session_register("current_url_page");
x_session_register("current_date");
x_session_register("session_create_date");
$current_url_page = $php_url['url'].($php_url['query_string']?"?".$php_url['query_string']:"");
if (empty($session_create_date))
$session_create_date = time();
$current_date = time();
$session_ip = getenv('REMOTE_ADDR');

}

#
# Display
#

Bearsnum34 03-29-2010 03:58 PM

Re: IP Addresses in Users Online for all users
 
I tried to apply the code and I can still see the User online from the customers end. I don't want people to be able to see who or how many are online, is there something I am missing?

Many Thanks,

Quote:

Originally Posted by Yalokin
I also did not find exact code in postauth.php but edit my with lines of code that are missing and added if statement.

And it work.
I do not see any errors so I assume it implement it right.

Thank you again.

So part for my postauth.php now look like this (lines 78 to 97):
if (!empty($active_modules['Users_online'])) {

x_session_register("session_ip");


x_session_register("current_url_page");
x_session_register("current_date");
x_session_register("session_create_date");
$current_url_page = $php_url['url'].($php_url['query_string']?"?".$php_url['query_string']:"");
if (empty($session_create_date))
$session_create_date = time();
$current_date = time();
$session_ip = getenv('REMOTE_ADDR');

}

#
# Display
#


hoosierglass 03-29-2010 06:48 PM

Re: IP Addresses in Users Online for all users
 
The portion of users online mentioned here is in regards to the admin side. If you want to remove it from the customer side you will need to comment it out from the home.tpl file in the footer div.

Bearsnum34 03-30-2010 09:30 AM

Re: IP Addresses in Users Online for all users
 
OH!!!!!!!!! Thank you so much!! I am sorry I am just working too many hours on this website, not knowing what I am doing and my eyes are going crossed with all the reading I am doing.

I might also be getting my posts crossed!

Many thanks my friend!!

Felicia

Quote:

Originally Posted by hoosierglass
The portion of users online mentioned here is in regards to the admin side. If you want to remove it from the customer side you will need to comment it out from the home.tpl file in the footer div.



All times are GMT -8. The time now is 10:40 PM.

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