Who's Online Enhanced

Open to all! Ask other shopowners for help.
User avatar
tessthepup
Certified Developer
Posts: 381
Joined: Mon Mar 01, 2021 5:55 pm
Phoenix Version:
Has thanked: 47 times
Been thanked: 62 times

Who's Online Enhanced

Post by tessthepup »

I enhanced the who's online page to have more function and show more info.

Before I upload it to the addons I would love some feedback on it and if you have any suggestions for improvements or changes.
Who's Online Enhanced Version 1

Created & Tested on CE Phoenix v1.1.0.6

This addon is an enhancement to the standard Phoenix Cart Who's Online

** Note this addon modifies a core file - YOU HAVE BEEN WARNED!

This addon also uses CrawlerDetect https://github.com/JayBizzle/Crawler-Detect which is a PHP class for detecting bots/crawlers/spiders via the user agent
All credits to the author https://github.com/JayBizzle

This addon detects and displays if the visitor is a guest, customer or search engine bot.

It also has a unique feature which allows you to 'kick' a session if required.

The page will also refresh every 30 seconds.

It will also display

- Total Visitors
- Total Customers
- Total Guests
- Total Bots
- Top Countries with flags

Unlike the original who's online this enhanced version has a dropdown arrow that will show

- Visitor type
- IP address with IP address lookup and a link to AbuseIPDB to check for malicious IP addresses
- Country
- Device type
- Browser/OS
- Referrer
- Entry date & time
- Last click date & time
- Session ID

Installation

Step 1

Backup your database and store files!

Step 2

Upload all files to your store

Step 3

Run this SQL to add the extra required fields to your whos_online table

ALTER TABLE whos_online
ADD COLUMN user_agent varchar(255) NULL AFTER ip_address,
ADD COLUMN http_referer text NULL AFTER user_agent;

Step 4

Go to admin/tools/Who's Online to see your updated Who's Online
You do not have the required permissions to view the files attached to this post.


Join The Code Co-op to get access to your library in the Code Co-op Forum
azpro
Contributor
Posts: 177
Joined: Fri Nov 06, 2020 8:25 am
Phoenix Version: v1.1.0.6
Has thanked: 30 times
Been thanked: 34 times

Re: Who's Online Enhanced

Post by azpro »

Hi Mark,

This add-on is awesome! Tested and works lik a charm!

If it was possible to show the contents of a guests Shopping Cart (like logged-in costomers) that would really be great!

And maybe - discard the ext/modules/pulse/collect.php (now always shown as Last URL) ...

Then this add-on would be (f***ing) close to perfection :D

Again - Thank you Mark for your great work!

A
User avatar
tessthepup
Certified Developer
Posts: 381
Joined: Mon Mar 01, 2021 5:55 pm
Phoenix Version:
Has thanked: 47 times
Been thanked: 62 times

Re: Who's Online Enhanced

Post by tessthepup »

azpro wrote: Sat Nov 29, 2025 4:15 pm Hi Mark,

This add-on is awesome! Tested and works lik a charm!

If it was possible to show the contents of a guests Shopping Cart (like logged-in costomers) that would really be great!

And maybe - discard the ext/modules/pulse/collect.php (now always shown as Last URL) ...

Then this add-on would be (f***ing) close to perfection :D

Again - Thank you Mark for your great work!

A
@azpro
Thank you very much for the kind words :D

I would probably need feedback from a certain a core team member @burt as I am not sure how the guest cart side of things would be handled but willing to give it a go when time permits

I will have to dig deeper into the pulse collect module as well as I don't know a great deal about how it works.
rupruprup
Member
Posts: 44
Joined: Thu Nov 05, 2020 7:39 pm
Phoenix Version: v1.0.9.10
Has thanked: 6 times
Been thanked: 3 times

Re: Who's Online Enhanced

Post by rupruprup »

there is no download link or did I miss something?
Dan Cole
Senior Contributor
Posts: 498
Joined: Fri Oct 25, 2019 2:14 pm
Phoenix Version: 1.0.8.21
Has thanked: 67 times
Been thanked: 61 times

Re: Who's Online Enhanced

Post by Dan Cole »

rupruprup wrote: Wed Dec 03, 2025 12:58 pm there is no download link or did I miss something?
You did...have a look at the bottom of the first post.

Dan
User avatar
burt
Core Team
Posts: 4550
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Who's Online Enhanced

Post by burt »

tessthepup wrote: Sat Nov 29, 2025 5:51 pm I am not sure how the guest cart side of things would be handled but willing to give it a go when time permits
It's not an area I have worked in, ecartz last worked there and changed some stuff. You might look back through any posts of Matts or see if anyone has updated the whos_online to show `not logged in` carts.
I am not here to build for you.
I am here to build with you. Let's help each other.
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Has thanked: 29 times
Been thanked: 3 times

Re: Who's Online Enhanced

Post by radhavallabh »

Hi dear;
Thanx @tessthepup for this wonderful addon;
I tried uploading and visiting whosonline.php;
It keeps loading the page without further moving, followed all steps but still does not load.
Any guidance pls??
Thabk you again in advance ;
Very Warm Regds./
radhavallabh
User avatar
tessthepup
Certified Developer
Posts: 381
Joined: Mon Mar 01, 2021 5:55 pm
Phoenix Version:
Has thanked: 47 times
Been thanked: 62 times

Re: Who's Online Enhanced

Post by tessthepup »

radhavallabh wrote: Fri Dec 05, 2025 10:52 am Hi dear;
Thanx @tessthepup for this wonderful addon;
I tried uploading and visiting whosonline.php;
It keeps loading the page without further moving, followed all steps but still does not load.
Any guidance pls??
Thabk you again in advance ;
Very Warm Regds./
radhavallabh
Hi, what version of Phoenix are you using?

Also have you checked your error log for any errors?
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Has thanked: 29 times
Been thanked: 3 times

Re: Who's Online Enhanced

Post by radhavallabh »

tessthepup wrote: Fri Dec 05, 2025 11:08 am
radhavallabh wrote: Fri Dec 05, 2025 10:52 am Hi dear;
Thanx @tessthepup for this wonderful addon;
I tried uploading and visiting whosonline.php;
It keeps loading the page without further moving, followed all steps but still does not load.
Any guidance pls??
Thabk you again in advance ;
Very Warm Regds./
radhavallabh
Hi, what version of Phoenix are you using?

Also have you checked your error log for any errors?
Hi dear;
Using 1.1.0.6, yes checked error logs nothing there. In chrome it loaded in around 5 minutes but hung and keeps loading showing refreshing on the top right.
Also i noticed the entries are not sorted by time of entry dear...
Very Warm Regds./
radhavallabh
User avatar
tessthepup
Certified Developer
Posts: 381
Joined: Mon Mar 01, 2021 5:55 pm
Phoenix Version:
Has thanked: 47 times
Been thanked: 62 times

Re: Who's Online Enhanced

Post by tessthepup »

radhavallabh wrote: Fri Dec 05, 2025 11:12 am
tessthepup wrote: Fri Dec 05, 2025 11:08 am
radhavallabh wrote: Fri Dec 05, 2025 10:52 am Hi dear;
Thanx @tessthepup for this wonderful addon;
I tried uploading and visiting whosonline.php;
It keeps loading the page without further moving, followed all steps but still does not load.
Any guidance pls??
Thabk you again in advance ;
Very Warm Regds./
radhavallabh
Hi, what version of Phoenix are you using?

Also have you checked your error log for any errors?
Hi dear;
Using 1.1.0.6, yes checked error logs nothing there. In chrome it loaded in around 5 minutes but hung and keeps loading showing refreshing on the top right.
Also i noticed the entries are not sorted by time of entry dear...
Very Warm Regds./
radhavallabh
@radhavallabh
Leave it with me and I will try and replicate the problem over the weekend


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply