Skip to main content
[ADDON] Users Online Today Started by emanuele · · Read 27495 times 0 Members and 2 Guests are viewing this topic. previous topic - next topic

Re: [ADDON] Users Online Today

Reply #15

Nice Work, thank you Emanuelle.

French translation in attachment.

Re: [ADDON] Users Online Today

Reply #16

Candidate for 2.0 default :)

Re: [ADDON] Users Online Today

Reply #17

I just tested this addon on 1.1 RC2, it installs in compatibility mode and works fine 
sorry for my bad english

Re: [ADDON] Users Online Today

Reply #18

After the update to ElkArte 1.1.4 instead of the member names only long lines/URLs are shown in the online list, like

Code: [Select]
Today at 11:15" style="color: #FF0000" href="https://forum.website.de/index.php?action=profile;u=1">membername
How can I change this?
ElkArte version: 1.1.8 / Theme: BeSocial / PHP 8.0

Re: [ADDON] Users Online Today

Reply #19

The error is fixed. I did this in the  OnlineToday.class.php , line 105:

Find:
Code: [Select]
$title = !empty($user['last_login']) ? 'title="' . standardTime($user['last_login']) . '" ' : '';

Replace with:
Code: [Select]
$title = !empty($user['last_login']) ? 'title="' . strip_tags(standardTime($user['last_login'])) . '" ' : '';
ElkArte version: 1.1.8 / Theme: BeSocial / PHP 8.0

Re: [ADDON] Users Online Today

Reply #20

Any chance of this being updated?

Re: [ADDON] Users Online Today

Reply #21

I had a 0.2.2 version, so I must have updated for myself at some time.  Try the attached for Elk 1.1

ETA: Update is below
Last Edit: December 10, 2023, 06:19:47 pm by Spuds


Re: [ADDON] Users Online Today

Reply #23

What is the issue,  what @Mrs. Chaos reported?  I do have this running on several sites w/o problems so trying to understand if its a theme/config item or other.

Re: [ADDON] Users Online Today

Reply #24

I had gotten a "Invalid argument supplied for foreach()" error that broke the site after activating.
Had to phpmyadmin into the settings to disable the addon.

Code: [Select]
Type of error: General
Warning: Invalid argument supplied for foreach()
/index.php?action=admin;area=addonsettings;sa=general
File: /sources/subs/OnlineToday.class.php
Line: 222

Code: [Select]
Type of error: Undefined
Notice: Undefined index: membergroups
/index.php?action=admin;area=addonsettings;sa=general
File: /sources/subs/OnlineToday.class.php
Line: 293

Re: [ADDON] Users Online Today

Reply #25

Strange .... but then its not my Addon.   I think this will prevent the error when there are no membergroups found, I'm just not sure how it gets to that point.

Re: [ADDON] Users Online Today

Reply #26

Quote from: Spuds – Strange .... but then its not my Addon.   I think this will prevent the error when there are no membergroups found, I'm just not sure how it gets to that point.


That did the trick. Thank you, my friend. :)

Re: [ADDON] Users Online Today

Reply #27

Awesome  :cheesy: