| ||||||||||
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 |
#51
|
|||||||
|
|||||||
Re: IP Addresses in Users Online for all users
Quote:
in stats.tpl file find <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}</TD> And replace it with: <TD bgcolor="#FFFFFF" nowrap valign="top">{if $v.userinfo ne ''}{$v.userinfo.firstname} {$v.userinfo.lastname}{if $v.userinfo.status eq 'A'} ({$lng.lbl_anonymous_customer}){/if}{else}{$lng.lbl_unregistered_customer}{/if}</TD> I guess above should resolve this problem.
__________________
X-Cart: 4.7.7 LIVE Skin:Ultra by xcartmods.co.uk X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9) --------------- Server: Linux php: 5.3 mysql: 5.0.89 ---------------- |
|||||||
#52
|
|||||||
|
|||||||
Re: IP Addresses in Users Online for all users
Yes that worked !
and for a shot in the dark I also tried adding {$v.userinfo.username} but that didn't work
__________________
Xcart Gold 4.1.11-Gone = 4.7.11-Live |
|||||||
#53
|
|||||||||
|
|||||||||
Re: IP Addresses in Users Online for all users
post#1 works with XCart 4-1-9! Sweet~
__________________
_____________ Capture Your Mini-Me Look! - X-CART Gold (Current Version) V4.6 - Reboot - CDSEO |
|||||||||
#54
|
|||||||||
|
|||||||||
Re: IP Addresses in Users Online for all users
Quote:
__________________
_____________ Capture Your Mini-Me Look! - X-CART Gold (Current Version) V4.6 - Reboot - CDSEO |
|||||||||
#55
|
|||||||
|
|||||||
Re: IP Addresses in Users Online for all users
I've made the changes to the php's ok.
But in the tpl, the line of code is completely different from the one quoted in the OP to look for. Quote:
Has there been an update that this mod has not taken into account since the last post on this thread ? Suggestions ? I dont like the idea of just replacing it, without knowing why the code is different.
__________________
http://CircleofAtlantis.com/marketplace/ Xcart Version 4.1.9 Please bare with me. Ex-Analyst, ex-cobol, still teaching myself html, let alone anything else. |
|||||||
#56
|
|||||||
|
|||||||
Re: IP Addresses in Users Online for all users
Ok, took the plunge and just added the IP bit to the existing line.
Seems to work fine. And I added the line break as well Next question : How does one modify this to only display 1 line per IP ? Edit : I got the click on IP working to, thanks whoever suggested the 2 add-ons. I'm finding the results a bit odd. All the IP's are the same, and yet the user environments are all different. If it was the same IP address, why isnt the environment list showing all the same ? Personally, I dont want to know that 1 user is on and has visited 61 pages in the last however long. I want to know how many genuine users are online now and where they actually are now. Can anyone suggest some modifications to achieve this ?
__________________
http://CircleofAtlantis.com/marketplace/ Xcart Version 4.1.9 Please bare with me. Ex-Analyst, ex-cobol, still teaching myself html, let alone anything else. |
|||||||
#57
|
|||||||
|
|||||||
Re: IP Addresses in Users Online for all users
hi circleofatlantis
Each time a user opens a new window, they will be assigned a new sessionid. So, say a user is on your home page and clicks one of your categories to open in a new window - they will now appear twice in your Users Online. So the more windows they open, the more times they will appear in your Users Online. Each session remains active for 1 hour by default. Obviously different people surf in different ways - some people always open up links in new windows - but you will find that most people keep to one session. In my experience, I have found that if you see many many instances of the same IP appearing multiple times, it's usually a spider (or other automated bot creature) indexing your site - but its badly written - ie. it hasn't been configured to keep the same session. I usually watch out for these as they can open hundreds of connections in a short amount of time which leads to an unneccesary heavy load on the server. When I spot these, I run a quick check to see where the ip originates from and then add a 'deny from xxx.xxx.xxx.xxx' in my .htaccess file to stop it in its tracks. There probably is a way of modifying the code to filter multiple instances of each ip address, but I have found that the original code is just too useful in its present form.
__________________
X-Cart Gold v4.6.5 |
|||||||
#58
|
|||||||
|
|||||||
Re: IP Addresses in Users Online for all users
Thanks for that info. Makes things make sense now
I've had one persistent robot in, which I traced to a site that says its an experimental robot. I asked for some details and they said it was for a yet to be announced search engine. No follow up details. I banned it from the site. My stats show its using more bandwidth than Google. And since its been there, my junk mail has gone up about 500%. Since then, the traffic is actually disapointing, but accurately displayed. But considering that Google hasnt found that part of my site yet, its not surprising.
__________________
http://CircleofAtlantis.com/marketplace/ Xcart Version 4.1.9 Please bare with me. Ex-Analyst, ex-cobol, still teaching myself html, let alone anything else. |
|||||||
#59
|
|||||||
|
|||||||
Re: IP Addresses in Users Online for all users
This is a great mod! Thanks all of you.
For 4.1.10 - I followed Post #1 with the following: auth.php - no changes to Post #1 modules>Users_online>stats.php Instead of this change Quote:
I did this Quote:
skin1>modules>Users_online>stats.tpl Instead of this change Quote:
I did this Quote:
Thank you Hamid very much! Paul
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best |
|||||||
#60
|
|||||||
|
|||||||
Re: IP Addresses in Users Online for all users
Hi Paul
Glad you like it - I can't imagine living without it now Hamid
__________________
X-Cart Gold v4.6.5 |
|||||||
|
|||
X-Cart forums © 2001-2020
|