[AH] Discord Widget

[AH] Discord Widget 3.0.3

No permission to download
I'm not at all familiar with Discord, but I've followed the instructions and the widget is blank.

Is this incompatible with 2.2 - or have I done something wrong? :X3:
 
I'm not at all familiar with Discord, but I've followed the instructions and the widget is blank.

Is this incompatible with 2.2 - or have I done something wrong? :X3:
You have most likely done something wrong, I have no problems running this addon with XF2.2.

From the Addons FAQ
Q. The widget block is showing, but none of the contents of my discord server are appearing.
A. This could be due to a couple of things. Number one: make sure your server ID is correct. If it's not correct, the add-on can't retrieve data from Discord. Number two: make sure the "Enable Widget" in your discord server's settings is checked. Here's how to do that:
  1. Navigate to your discord server's settings.
  2. Choose the widget section.
  3. Make sure "Enable Widget" is checked.
 
Last edited:
So, am I the only one who doesn't know how add this widget on my home page?

It doesn't show up on the widget list after installation.

Tagging @Oblivion Knight cuz he was online recently and seems to have this widget.
 
Hi, we've noticed an issue with the discord widget. It seems to max out at an online count of 100 users online.

Is it possible to have the addon report a higher maximum online user count? We generally have several hundred members online on our discord channel at any given moment, so it's just stuck at 100 users online 24/7.
 
Hi, we've noticed an issue with the discord widget. It seems to max out at an online count of 100 users online.

Is it possible to have the addon report a higher maximum online user count? We generally have several hundred members online on our discord channel at any given moment, so it's just stuck at 100 users online 24/7.
I’ll look into it.
 
Hi, we've noticed an issue with the discord widget. It seems to max out at an online count of 100 users online.

Is it possible to have the addon report a higher maximum online user count? We generally have several hundred members online on our discord channel at any given moment, so it's just stuck at 100 users online 24/7.
I solved problem. src\addons\AH\DiscordWidget\_data\templates.xml:287
Code:
w.innerHTML = "Users Online: " + y.members.length;
change to
Code:
w.innerHTML = "Users Online: " + y.presence_count;
 
Matt C. updated [AH] Discord Widget with a new update entry:

3.0.0 Released. XF 2.3 compatible

This add-on has been completely rewritten from JQuery to Javascript in order to be XF 2.3 compatible. It also redesigned to be more appealing and blend into your existing style.

Please note this add-on only functions through Discord's JSON API. Whatever is listed on that API, is what will show.

The JSON API ONLY supports voice and text channels. No threads, no categories, no stages.
View attachment 324119[ATTACH type="full" width="213px"...

Read the rest of this update entry...
 
Matt C. updated [AH] Discord Widget with a new update entry:

3.0.1 Released

Due to the limitations of Discord's JSON API, they will only show the first 100's members online. So if you have 100 or more members online, it will show the first 20 in the list, and then "+ 80 more" no matter how many more members are online.

Here is an example: This server has almost 30,000 people online, but the online member list will show a maximum of 100.
View attachment 324136

But they do have a presense_count that will...

Read the rest of this update entry...
 
Matt C. updated [AH] Discord Widget with a new update entry:

3.0.3 Released

Sorry for the multiple updates. Stuck at home, with nothing else to do. 🤷‍♂️

This release adds new features:
  1. Adds new option for a scrollable members list.
  2. Adds option to the change how many members appear in the online list. Options are between 1 and 100, due to limitations of Discord's JSON API. I do not recommend setting this to more than 20, unless you are using the scrollable members list.
  3. Will now do a better job of filtering out bot users like "a...." or "b..."...

Read the rest of this update entry...
 
Back
Top Bottom