Post by fido-x » Sun Feb 13, 2011 3:01 am

No, I don't. I just had a look at what I've got running on my dev site, and I noticed the same thing. Hadn't seen it before. Strange. Also had a brief look at my code, and I can't see anything in there that should be preventing guests from being counted.
I'll take a closer look at it tomorrow. Or, should I say, today. :bang:

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by i2Paq » Sun Feb 13, 2011 3:05 am

If you could also get the code from Brook in to filter Bots.... ;)

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by Brook » Sun Feb 13, 2011 3:15 am

Is there anything that I need to do to get my Visitor Counters, Guest Counters, and Customer Counters to (increment) and update on both my Admin->Dashboard and Admin->Who's Online?

I have downloaded the latest code today, uninstalled and then reinstalled the "Earthball" module, but I am not seeing any of my Counter Totals increment when I am testing this out. I am using 2 differnt computers, one for my Admin browser session and one computer for my Customer Session.

Again, I am sure that I am doing something wrong. I am not seeing my Totals incrementing when I am testing the Counter portion of this module.

I have looked in the database at the tables
opencart_counter table
the "counter" field is not getting incremented when a guest or customer visit my website

opencart_counter_history table
the session_counter, guest_counter, and customer_counter fields are not getting incremented when a guest or
a customer visits my website

whos_online table
I do not see any new records being created for guests or customers

I don't get it, any ideas why the counters are not getting incremented.

Active Member

Posts

Joined
Wed Feb 24, 2010 12:15 am

Post by wifi-online » Sun Feb 13, 2011 7:28 am

FFJim wrote:
wifi-online wrote:Hello I have a problem when I'm trying open my admin.
the error is:

Code: Select all

Notice: Undefined index: token in /home/xxxx/public_html/xxxx/xxxx/controller/common/header.php on line 145Notice: Undefined index: token in /home/xxxx/public_html/xxxx/xxxx/controller/common/header.php on line 146
Help me please!
I had that too. I believe your edits are in the wrong place in admin\controller\common\header.php

Put them right after this line (or at least in the same grouping of lines):

Code: Select all

            $this->data['zone'] = HTTPS_SERVER . 'index.php?route=localisation/zone&token=' . $this->session->data['token']; 

thanks, now it works ok!, I had the text of who's online after of }, see my bug:

Code: Select all

			$this->data['zone'] = HTTPS_SERVER . 'index.php?route=localisation/zone&token=' . $this->session->data['token'];
		}
		
// Who's Online and Counter Statistics
$this->data['whos_online'] = HTTPS_SERVER . 'index.php?route=module/earthball/whos_online&token=' . $this->session->data['token'];
$this->data['counter_statistics'] = HTTPS_SERVER . 'index.php?route=module/earthball/counter_statistics&token=' . $this->session->data['token'];
// end Who's Online and Counter Statistics
Thanks, Best regards!

New member

Posts

Joined
Wed Oct 20, 2010 8:49 am
Location - Spain

Post by fido-x » Mon Feb 14, 2011 4:34 pm

Another update available. Should fix any problems (I hope :crazy: )

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Brook » Tue Feb 15, 2011 1:02 am

Thank you very much for the update. Works great! Fixed my issues :)

Active Member

Posts

Joined
Wed Feb 24, 2010 12:15 am

Post by Brook » Tue Feb 15, 2011 1:56 am

I installed the latest updated code today. Everything appears to be working except for some reason "Bots" are showing up as "Guests" on the Admin->Dashboard and Admin->Who's Online Page.

Specifically "google bot" are showing up as "Guest" Customers on the Admin->Dashboard and Admin->Who's Online Page. I have checked my spiders.txt file in system\helper\spiders.txt and see that "google" is listed as a line in the file.

I am sure that I am missing something... Any ideas how to not show "bots" at all on the Admin->Dashboard nor the Admin->Who's Online Page? I don't want to show "bots" as "Guests" on the "Who's Online Page" or the Admin->Dashboard. I would rather not show them at all.

Thank you for your help.

Active Member

Posts

Joined
Wed Feb 24, 2010 12:15 am

Post by fido-x » Tue Feb 15, 2011 4:29 pm

Updated

Fixes: This update fixes the bots issue (finally) and also fixes a validation issue with the counter reset.
Added: Option to set the "auto-refresh" time.

My thanks to both Brook and FFJim for their assistance in sorting out the bots.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by i2Paq » Thu Feb 17, 2011 12:38 am

Could you please update the one in the Extension section of OpenCart.com, it is outdated :)

Because I bought it there I cannot update :-\

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by fido-x » Thu Feb 17, 2011 8:24 am

i2Paq wrote:Could you please update the one in the Extension section of OpenCart.com, it is outdated :)

Because I bought it there I cannot update :-\
I thought I had. I had updated the description, I thought that I'd also uploaded the updated package (I remember doing it!).

Should be fixed now.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by i2Paq » Fri Feb 18, 2011 1:58 am

OK, just downloaded it.

I reckon that updating is just replacing the current files?

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by fido-x » Fri Feb 18, 2011 4:41 am

Yes. To update, just replace the existing files. All of them have had some change made (controller, model, language, template and vQmod).

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Brook » Fri Feb 18, 2011 11:54 am

I have installed the updated code for this module and I get the following error message written to my Admin->Error Log

Code: Select all

2011-02-17 23:13:07 - PHP Notice:  Undefined index:  HTTP_USER_AGENT in /homepages/15/d244334450/htdocs/websites/prod_region/retail/oc149_shopcelebrity/catalog/model/fido/earthball.php on line 131
Here is my line 131 in admin\catalog\model\fido\earthball.php

Code: Select all

if(stripos($this->request->server['HTTP_USER_AGENT'], trim($bot)) != false) {
Does anyone know how to prevent this error from happening? What code changes should I make?

Thank you for your help.
Brook

Active Member

Posts

Joined
Wed Feb 24, 2010 12:15 am

Post by fido-x » Fri Feb 18, 2011 12:40 pm

Aah, forgot about that. Had the same issue in the original release. For a "work around", you can insert the following before line 131:

Code: Select all

if (isset($this->request->server['HTTP_USER_AGENT'])) {
    $user_agent = $this->request->server['HTTP_USER_AGENT'];
} else {
    $user_agent = '';
} 
Then change line 131 to:

Code: Select all

if(stripos($user_agent, trim($bot)) != false) { 
I'll do a "proper" fix and release another update early next week. However, if the above code works (it should), you probably won't need to update.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Brook » Sat Feb 19, 2011 1:42 am

fido-x,

Thank you for your post. I will try your fix.

Active Member

Posts

Joined
Wed Feb 24, 2010 12:15 am

Post by i2Paq » Sat Feb 19, 2011 5:45 pm

The new version is not working for me.

I just uploaded the files to replace the old/original ones.

I do not see any visitors or customers :(

I reverted back to the original files and bam, they are back.

I've tested it in my dev domain, installed in a sub-folder: dev-domein\store

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by fido-x » Tue Feb 22, 2011 10:27 pm

i2Paq wrote:The new version is not working for me.

I just uploaded the files to replace the old/original ones.

I do not see any visitors or customers :(

I reverted back to the original files and bam, they are back.

I've tested it in my dev domain, installed in a sub-folder: dev-domein\store
Hmmm, don't know what happened there. Blame the bots! ;D

OK, another update. This is the "d" release. I've been running this on my own site over the last few days, and everything appears to be working as it should.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by i2Paq » Wed Feb 23, 2011 2:33 am

fido-x wrote: Hmmm, don't know what happened there. Blame the bots! ;D

OK, another update. This is the "d" release. I've been running this on my own site over the last few days, and everything appears to be working as it should.
I'm not sure who to blame, but with this version I get a complete blank screen and my whole Admin is inaccessible :-[

You are sure I just have to upload the files to replace the original ones?

Edit: It is related to the language file in the Admin section! Using an old one works.
There is an error in the Admin English language file on line 76:

Code: Select all

$_['tex_['text_page_views']         = 'Total Page Views';
It should be:

Code: Select all

$_['text_page_views']         = 'Total Page Views';
It does not work using IE8, the dashboard function does not show at all.

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by fido-x » Thu Feb 24, 2011 12:46 pm

i2Paq wrote:There is an error in the Admin English language file on line 76:

Code: Select all

$_['tex_['text_page_views']         = 'Total Page Views';
It should be:

Code: Select all

$_['text_page_views']         = 'Total Page Views';
Don't know what happened there. Looks like the file got corrupted somehow. I've sent i2Paq a copy of the "uncorrupted" package for comparison.
It does not work using IE8, the dashboard function does not show at all.
To be honest, I didn't test in IE (I don't like it, so I don't use it). I know I should, but I just can't bring myself to open THAT browser.

There are probably a few things about OC (judging from other posts on the forum) that don't work properly in IE. Microsoft have a proven track record of not providing sufficient support for technologies that they didn't develop. Javascript is one of these, since it was based on Netscape's LiveScript and not Microsoft's ActiveScript.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by i2Paq » Thu Feb 24, 2011 8:27 pm

The new package works OK, even in IE8 the dashboard shows up. Thanks! :)

I discovered one glitch, it sees guest-visitors also as a BOT.

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands
Who is online

Users browsing this forum: No registered users and 45 guests