| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
IP Addresses in Users Online for all users | ||||
|
|
Thread Tools | Search this Thread |
#31
|
|||||||
|
|||||||
Re: IP Addresses in Users Online for all users
Quote:
Just to explain, in the "Users Online" Statistics screen under customer i see Unregistered customer IP: and no IP address. Any ideas? laurieblake
__________________
Gold Version 4.1.5 Crystal Blue Skins |
|||||||
#32
|
|||||||
|
|||||||
Re: IP Addresses in Users Online for all users
Hi,
I just implemented this on 4.1.3 with no problem. I entered the code exactly as specified. Try replacing the session_ip variable with a literal string in the auth.php file. $session_ip = "1.2.3.4"; This is just to make sure the rest of the code works in the other two files. If it works then you know the problem is in the auth.php code. If it doesn't you know it's further down in either the stats.php or stats.tpl code.
__________________
X-cart Ver: 4.7.10 (Linux/Apache) XCartMods Ultra Template BCSE Authorize DPM Module CDSEO 2.2.0 CDSEO Pro Admin |
|||||||
#33
|
|||||||
|
|||||||
Re: IP Addresses in Users Online for all users
Thanks snowman99. I am looking at your suggestion. The biggest problem that i seem to have with x-cart is that I chose to add Crystal Blue Skins. It completely changes x-cart's command syntax and variables. Programs, add-ons, mods etc that work for everyone else just does not work for us. I like the look but hate the consequences.
I'll post my findings. Cheers.
__________________
Gold Version 4.1.5 Crystal Blue Skins |
|||||||
#34
|
|||||||
|
|||||||
Re: IP Addresses in Users Online for all users
Works great in 4.1.6 - altough there are some very minor code changes -- it's very easy to figure it out... don't replace the entire block of code, just find the differences and use the 1 or 2 new lines.
Also, if you want to make the IP clickable, use this code instead of "IP:{$v.session_ip}" Code:
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#35
|
|||||||||
|
|||||||||
Re: IP Addresses in Users Online for all users
I have this working in 4.0.19. The only thing I do not understand is that I have 2 entries for each visitor.
1 shows the IP and the other does not. Any Suggestions. Oh. This originally did not work for me but then I realized I had missed a piece of code that belongs in the "auth.php" file. (in red) Hope this helps... [code} 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'); } [/code}
__________________
Gold V4.0.19 X-AOM DSEFU HTML Pages BCSE- Price Match BCSE- Product Metatag Pro BCSE- EZCheckout BCSE- Image Verification (Captcha) BCSE- Ad/Banner V2.0 BCSE- MAP Pricing BCSE- Static Page Meta Tag Apache/Linux Server EWD Hosting Collectible Swords USA Swords By Us |
|||||||||
#36
|
|||||||
|
|||||||
Re: IP Addresses in Users Online for all users
Quote:
I used this code without any issue but I wanted to add the the code to make it clickable it worked for some time than I get page not found error. Was my IP banned after a few test clicks? or is their site is down? ( This program cannot display the webpage Most likely causes: You are not connected to the Internet. The website is encountering problems. There might be a typing error in the address. What you can try: Check your Internet connection. Try visiting another website to make sure you are connected) Any help please Jose |
|||||||
#37
|
|||||||||
|
|||||||||
Re: IP Addresses in Users Online for all users
all i can say is wow
thanks a ton, this was something i have been dreaming about now all i have to do is figure out where exactly to insert the code that allows you to click to do a locate ip again, thanks. love it. |
|||||||||
#38
|
|||||||||
|
|||||||||
Re: IP Addresses in Users Online for all users
Quote:
Use this code: Code:
Code goes in"skin1>modules>Users_online>stats.tpl" and replaces Code:
At least that is what worked for me! Save your files before changing any code! Good Luck!
__________________
Gold V4.0.19 X-AOM DSEFU HTML Pages BCSE- Price Match BCSE- Product Metatag Pro BCSE- EZCheckout BCSE- Image Verification (Captcha) BCSE- Ad/Banner V2.0 BCSE- MAP Pricing BCSE- Static Page Meta Tag Apache/Linux Server EWD Hosting Collectible Swords USA Swords By Us |
|||||||||
#39
|
|||||||||
|
|||||||||
Re: IP Addresses in Users Online for all users
Quote:
I figured this out and corrected it. Works Great!
__________________
Gold V4.0.19 X-AOM DSEFU HTML Pages BCSE- Price Match BCSE- Product Metatag Pro BCSE- EZCheckout BCSE- Image Verification (Captcha) BCSE- Ad/Banner V2.0 BCSE- MAP Pricing BCSE- Static Page Meta Tag Apache/Linux Server EWD Hosting Collectible Swords USA Swords By Us |
|||||||||
#40
|
|||||||
|
|||||||
Re: IP Addresses in Users Online for all users
Hi Herbj,
Glad to hear you figured the code out for X-cart 4.0.19 and fixed your duplicate entries problem. If you could post your final, revised code, that would be great! Thanks, Robert
__________________
X-cart 4.1.10 |
|||||||
|
|||
X-Cart forums © 2001-2020
|