| ||||||||||
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 |
#91
|
|||||||
|
|||||||
Re: IP Addresses in Users Online for all users
Quote:
I tried doing the following: <div id="footer"> {* {if $active_modules.Users_online} {include file="modules/Users_online/menu_users_online.tpl"} {/if} *} {include file="customer/bottom.tpl"} </div> Which removes the users online information on the customer side but the space available for users online info still remained. the info within bottom.tpl moved up leaving a "blank" area at the bottom of the page. I was hoping to remove the users online info from the customer side as if it were not selected within admin,,,including the space for it. any ideas
__________________
X-Cart 4.3.2 (Gold) X-Special Offers X-Comparison X-Magnifier BCSE - Simple Password Recovery BCSE - Wholesale Pricing on Category Pages BCSE - Category Headings WebsiteCM - Prev / Next WebsiteCM - EzUpsell WebsiteCM - Dynamic Product Tabs WebsiteCM - xCMS WebsiteCM - CDSEO Xcart Mods - Recently Viewed SafetyNetWeb - Vistor Sitemap PRO Altered Cart - On Sale --------------------- Server: Linux Apache: 2.2.6 (Unix) PHP: 5.2.5 MySQL: 4.1.22 standard |
|||||||
#92
|
|||||||
|
|||||||
Re: IP Addresses in Users Online for all users
Quote:
That's what I'm lookin for too.
__________________
Rance Ball 4.4.4 http://www.shirtsforthepeople.com/ http://www.handsonwebhosting.com/ |
|||||||
#93
|
|||||||
|
|||||||
Re: IP Addresses in Users Online for all users
IN SKIN1/CUSTOMER/HOME.TPL
<div id="footer"> {* remove users online info on customer side - start {if $active_modules.Users_online} {include file="modules/Users_online/menu_users_online.tpl"} {/if} # remove users online info on customer side - end *} {include file="customer/bottom.tpl"} </div> IN MAIN.CSS /* users online module */ /* users statistics box */ /* remove users online from customer start .uo-box { width: 100%; border-top: 1px solid #acb7c7; background-color: #e8edf4; padding: 10px 0px 10px 13px; } remove users online from customer end */ AND /* users online sublayout */ /* remove users online from customer start .uo-container #content-container { padding-bottom: 104px; } .uo-container #footer { height: 94px; } .normal { font-weight: normal; } remove users online from customer end */ The above will remove users online from customer side
__________________
X-Cart 4.3.2 (Gold) X-Special Offers X-Comparison X-Magnifier BCSE - Simple Password Recovery BCSE - Wholesale Pricing on Category Pages BCSE - Category Headings WebsiteCM - Prev / Next WebsiteCM - EzUpsell WebsiteCM - Dynamic Product Tabs WebsiteCM - xCMS WebsiteCM - CDSEO Xcart Mods - Recently Viewed SafetyNetWeb - Vistor Sitemap PRO Altered Cart - On Sale --------------------- Server: Linux Apache: 2.2.6 (Unix) PHP: 5.2.5 MySQL: 4.1.22 standard |
|||||||
#94
|
|||||||
|
|||||||
Re: IP Addresses in Users Online for all users
Haven't been able to get this to work on 4.3.2. Basically trying to get the IP listed of who's on the customer site via admin panel, but so far no luck.
__________________
Rance Ball 4.4.4 http://www.shirtsforthepeople.com/ http://www.handsonwebhosting.com/ |
|||||||
#95
|
|||||||||
|
|||||||||
Re: IP Addresses in Users Online for all users
G'day,
I modified the code to resolve the hostname (from the IP address) instead of having a hyperlink to resolve it. Give it a try: Follow the steps previously provided. Then do the following: Then on or around line 94 in xcart>modules>Users_online>stats.php look for you recently changed code: Code: *********************************************** $rec['session_create_date'] = $data['session_create_date']+$config["General"]["timezone_offset"]; $rec['session_ip'] = $data['session_ip']; $statistics[] = $rec; *********************************************** and change it to *********************************************** $rec['session_create_date'] = $data['session_create_date']+$config["General"]["timezone_offset"]; if (!empty($data['session_ip'])) { if ($HTTP_SERVER_VARS['REMOTE_ADDR'] != $data['session_ip']) $rec['session_ip'] = gethostbyaddr($data['session_ip']); else $rec['session_ip'] = "Admin"; } else $rec['session_ip'] = $data['session_ip']; $statistics[] = $rec; *********************************************** This will: If it can resolve the IP Address, it will and replace the IP address with the hostname. If it was from your IP address it will replace it with ADMIN. If it cannot resolve, it will leave the IP address there. Here is an example from my site: Unregistered customer IP: Admin Unregistered customer IP: static-208-80-194-33.as13448.com Please note if your first line in that code looks like: $rec['session_create_date'] = $data['session_create_date']+$config["Appearance"]["timezone_offset"]; then keep it that way!
__________________
X-Cart Gold 4.6.1 |
|||||||||
#96
|
|||||||||
|
|||||||||
Re: IP Addresses in Users Online for all users
I used this mod and it works fine. My only issue is that it lists everyone as "Unregistered" even though some are registered. Is this an issue with the mod or with XCart in general?
__________________
X-Cart 4.4.4 Gold |
|||||||||
#97
|
|||||||||
|
|||||||||
Re: IP Addresses in Users Online for all users
G'day mate,
Sorry but I don't have the same problem. . Double check what you did in xcart>skin1>modules>Users_online>stats.tpl You may have made an error there.
__________________
X-Cart Gold 4.6.1 |
|||||||||
#98
|
|||||||||
|
|||||||||
Re: IP Addresses in Users Online for all users
Anyone know of a working MOD for 4.4?
|
|||||||||
#99
|
|||||||||
|
|||||||||
Re: IP Addresses in Users Online for all users
I've attached the "IP Addresses in Users Online for all users" mod patch for 4.4.x.
It can be applied via the Patch/Upgrade section.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#100
|
|||||||
|
|||||||
Re: IP Addresses in Users Online for all users
Hello,
We're using the Users_Online Module in version 4.4.1, and all of our online customers are listed as "Unregistered Customer", even though they are logged in. I'm still fairly new to the code, but I think I tracked it down to here: >skin>common_files>modules>Users_online>stats.tp l starting at my line 21 Code:
For some reason, our $v.userinfo array is always empty, so the {if} statement always defaults to the $lng.lbl_unregistered_customer value. Any ideas on what we could have wrong that would cause that array to have no values? Thank you! |
|||||||
|
|||
X-Cart forums © 2001-2020
|