The Who's Online component displays the number of visitors currently online, including the separation of guests and registered customers. The Visitor Counter component shows the total number of visitors and page views from the date the counter is started.
Integrates with RevolverMaps to give a visual display of where your customers come from.
The administration includes a dashboard component displaying a few statistics of the number of visitors and who's online with links to pages containing more detailed information.
Simple "plug'n'play" installation, with nothing overwritten.
Full installation instructions included.
Compatible with OpenCart versions 1.4.8, 1.4.8b, 1.4.9, 1.4.9.1 and 1.4.9.2.
Demo: http://demo.fido-x.net. You can login to the administration with username/password of "demo/demo" to view the administration.
You'll find the Earthball module under "Extensions->Modules". You'll also find direct links to the Who's Online and Counter Statistics pages under the "Reports" entry in the header menu.
Available from: Fido-X IT or from Extensions.
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!
I'm already having a few modules in the left and right column and I personally think the output of your module looks "better" there

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.
General Instructions for Placing Module in Footer
For the front-end, by making the following changes to the footer controller and template files, you can add any module to the footer:-
catalog/controller/common/footer.php
Insert the following:-
Code: Select all
$module_data = array();
$this->load->model('checkout/extension');
$results = $this->model_checkout_extension->getExtensions('module');
foreach ($results as $result) {
if ($this->config->get($result['key'] . '_status') && ($this->config->get($result['key'] . '_position') == 'footer')) {
$module_data[] = array(
'code' => $result['key'],
'sort_order' => $this->config->get($result['key'] . '_sort_order')
);
$this->children[] = 'module/' . $result['key'];
}
}
$sort_order = array();
foreach ($module_data as $key => $value) {
$sort_order[$key] = $value['sort_order'];
}
array_multisort($sort_order, SORT_ASC, $module_data);
$this->data['modules'] = $module_data;
Code: Select all
$this->id = 'footer';
catalog/view/theme/YOUR_TEMPLATE/template/common/footer.tpl
Insert the following at line 2:-
Code: Select all
<div class="modules">
<?php foreach ($modules as $module) { ?>
<?php echo ${$module['code']}; ?>
<?php } ?>
</div>
Code: Select all
#footer .modules {
display: block;
text-align: left;
}
In the administration:
admin/controller/module/earthball.php
Insert the following at line 94:-
Code: Select all
$this->data['positions'][] = array(
'position' => 'footer',
'title' => $this->language->get('text_footer'),
);
Insert the following at line 17:-
Code: Select all
$_['text_footer'] = 'Footer';
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!
Thanks!
After my testing I will put up the Dutch translation for download in this topic.
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.
I have double checked everything but the module does not show up.
I also see that when logged on as a customer I'm still a visitor in the statistics.
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.
I am getting the following error written to my Admin-System->Error Log
Code: Select all
2010-12-20 23:25:53 - PHP Notice: Undefined index: HTTP_USER_AGENT in /homepages/15/d244334450/htdocs/websites/prod_region/retail/oc149_shopcelebrity/catalog/controller/module/earthball.php on line 31
Reason: Removed code snippet from commercial module.
The "HTTP_USER_AGENT" provides information about the browser being used and is normally accessible with the following code:Brook wrote:I have OpenCart 1.4.9.2 installed. I just bought and installed this module.
I am getting the following error written to my Admin-System->Error LogAny ideas what might be causing this error?Code: Select all
2010-12-20 23:25:53 - PHP Notice: Undefined index: HTTP_USER_AGENT in /homepages/15/d244334450/htdocs/websites/prod_region/retail/oc149_shopcelebrity/catalog/controller/module/earthball.php on line 31
Code: Select all
$_SERVER['HTTP_USER_AGENT']
Code: Select all
$this->request->server['HTTP_USER_AGENT']
The "user agent" information (as you would have seen) is being displayed in the "Who's Online" list in the admin, as to why it's flagging an error, I have no answer.
I don't get this error on my localhost test environment, or on my demo site, but I do get the same error showing up in the logs for my own site, as well as a few other errors relating to environment variables (HTTP_HOST, HTTP_REFERER). I suspect it is related to server settings.
Had a look at your demo setup and (from viewing the page source), it would appear that you haven't put the following code in the footer as suggested:i2Paq wrote:I'm not getting it to work in my footer.
I have double checked everything but the module does not show up.
I also see that when logged on as a customer I'm still a visitor in the statistics.
Code: Select all
<div class="modules">
<?php foreach ($modules as $module) { ?>
<?php echo ${$module['code']}; ?>
<?php } ?>
</div>
The code I provided earlier in this post for the footer controller and template files, will allow the inclusion of any module in the footer that has a position of "Footer".
As to why you're still showing as a "Guest" when you've logged in, I have no answer, as I haven't been able to re-create this scenario, either on my localhost test environment or on my demo site.
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!

So that is why you do not see the code in the footer

I will try and set up your code again and PM you the link tonight.
Thanks for you prompt reply.
As I only want certain links in a certain way in my footer I've only used "static" links to the information pages etc.
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.
Code: Select all
2010-12-20 23:25:53 - PHP Notice: Undefined index: HTTP_USER_AGENT in /homepages/15/d244334450/htdocs/websites/prod_region/retail/oc149_shopcelebrity/catalog/controller/module/earthball.php on line 31
find line 31
Code: Select all
$user_agent = $this->request->server['HTTP_USER_AGENT'];
Code: Select all
$user_agent = (isset($_SERVER['HTTP_USER_AGENT'])) ? $_SERVER['HTTP_USER_AGENT'] : '';
Turned out that I had not set the module to: active

The output is now visible in my footer, it still needs some work to get it in-line with the rest. See here.
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.
@i2Paq
Looks like a style issue. Maybe you should give it a width, text-align to the left and auto margins left and right.
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!
Yep, I know.fido-x wrote:Thanks Brook. Should have thought of that myself.
@i2Paq
Looks like a style issue. Maybe you should give it a width, text-align to the left and auto margins left and right.
I'm working on this today

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.

Attachments
This is for the "e" release.
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.
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.
The "counter" table contains the overall total (page views), while the "counter_history" table contains the daily count of visitors, and records whether they are guests or registered customers (same method as used by ZenCart and osCommerce).
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!
You say I have to divide them over 2 tables?
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.
Is there any SQL change that I can make with this module to show all sessions that are not Bot or Google Bot Sessions. There is a user_type field I think in the opencart_session table if I am not mistaken?
Thank you.
I know that my osCommerce Who's Online has this.
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.
I understand that the Earthball Module uses a new table opencart_whos_online table. I cannot figure out how the opencart_whos_online table gets populated with data from the opencart_session table. Can someone help me understand? I looked in admin\model\\fido\earthball.php and could not figure it out?
I really only want the Earthball Module to not show user_type sessions that are "bots", only show guests and customers.
What changes do I need to make to the Earthball Module to add a user_type column to the who's online page?
Any help would be appreciated.
Users browsing this forum: No registered users and 11 guests