Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

IP Addresses in Users Online for all users

 
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features
 
Thread Tools Search this Thread
  #81  
Old 02-12-2010, 05:35 PM
  hoosierglass's Avatar 
hoosierglass hoosierglass is offline
 

X-Adept
  
Join Date: Aug 2006
Location: Zionsville, IN
Posts: 970
 

Default Re: IP Addresses in Users Online for all users

Has anyone got this to work in 4.3 yet?
__________________
X-Cart Gold 4.6.6
Custom Work from www.luminointernet.com
www.indy-pen-dance.com
Reply With Quote
  #82  
Old 03-16-2010, 11:19 AM
  Yalokin's Avatar 
Yalokin Yalokin is offline
 

Advanced Member
  
Join Date: Sep 2009
Location: New York USA
Posts: 75
 

Default Re: IP Addresses in Users Online for all users

did anyone tried it with 4.2?

thank you for your help
__________________
Reply With Quote
  #83  
Old 03-16-2010, 11:45 AM
  hoosierglass's Avatar 
hoosierglass hoosierglass is offline
 

X-Adept
  
Join Date: Aug 2006
Location: Zionsville, IN
Posts: 970
 

Default Re: IP Addresses in Users Online for all users

I think post #61 works for 4.2
__________________
X-Cart Gold 4.6.6
Custom Work from www.luminointernet.com
www.indy-pen-dance.com
Reply With Quote
  #84  
Old 03-16-2010, 11:54 AM
  Yalokin's Avatar 
Yalokin Yalokin is offline
 

Advanced Member
  
Join Date: Sep 2009
Location: New York USA
Posts: 75
 

Default Re: IP Addresses in Users Online for all users

find it and will try tomorrow.

thank you
__________________
Reply With Quote
  #85  
Old 03-16-2010, 02:51 PM
 
A1Gifts A1Gifts is offline
 

Advanced Member
  
Join Date: Sep 2009
Location: Ridgecrest, CA
Posts: 64
 

Default 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.
__________________
4.2.2
Currently using Template:
Fashion Mosaic- Pink
Reply With Quote
  #86  
Old 03-17-2010, 04:59 AM
  Yalokin's Avatar 
Yalokin Yalokin is offline
 

Advanced Member
  
Join Date: Sep 2009
Location: New York USA
Posts: 75
 

Default Re: IP Addresses in Users Online for all users

Working in 4.22

Show IP.

After click on IP show dnsstuff page.


thank you.
__________________
Reply With Quote
  #87  
Old 03-17-2010, 05:06 AM
  Yalokin's Avatar 
Yalokin Yalokin is offline
 

Advanced Member
  
Join Date: Sep 2009
Location: New York USA
Posts: 75
 

Default 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
#
__________________
Reply With Quote

The following user thanks Yalokin for this useful post:
A1Gifts (03-17-2010)
  #88  
Old 03-29-2010, 03:58 PM
 
Bearsnum34 Bearsnum34 is offline
 

Senior Member
  
Join Date: Jan 2010
Posts: 134
 

Default 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
#
__________________
4.3.1
x-configurator
x-specialoffers
Reply With Quote
  #89  
Old 03-29-2010, 06:48 PM
  hoosierglass's Avatar 
hoosierglass hoosierglass is offline
 

X-Adept
  
Join Date: Aug 2006
Location: Zionsville, IN
Posts: 970
 

Default 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.
__________________
X-Cart Gold 4.6.6
Custom Work from www.luminointernet.com
www.indy-pen-dance.com
Reply With Quote
  #90  
Old 03-30-2010, 09:30 AM
 
Bearsnum34 Bearsnum34 is offline
 

Senior Member
  
Join Date: Jan 2010
Posts: 134
 

Default 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.
__________________
4.3.1
x-configurator
x-specialoffers
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:13 AM.

   

 
X-Cart forums © 2001-2020