Advertisement:

Author Topic: Discord Who's Online  (Read 1700 times)

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,510
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Discord Who's Online
« on: February 18, 2021, 01:19:30 PM »
Link to Mod

Discord Who's Online
By: vbgamer45

For: SMF 2.1.x, SMF 2.0.x

Adds who is online for a discord channel below who's online a forum.
Requires the Server Widget to be enabled under the Widget section for the channel settings.
Also requires cURL to be installed with PHP


Based on the idea from Arantor/StoryBB.


https://www.smfhacks.com
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Project Manager
  • SMF Super Hero
  • *
  • Posts: 19,929
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • My Daily Dose Of Blasphemy
Re: Discord Who's Online
« Reply #1 on: February 20, 2021, 02:28:58 AM »
Cool. Seems to me though that the "Show discord avatars.." setting does nothing. Either way it's set, the avatars are shown.
A Finnish Project Manager (Support Specialist)
Happily running multiple SMF 2.x installations.
 Fooling around with an i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,510
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Discord Who's Online
« Reply #2 on: February 20, 2021, 02:22:30 PM »
Fixed

1.1
!Fixed setting for showing avatars not working.
!Clear cache when saving setings
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Project Manager
  • SMF Super Hero
  • *
  • Posts: 19,929
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • My Daily Dose Of Blasphemy
Re: Discord Who's Online
« Reply #3 on: February 20, 2021, 02:26:19 PM »
Seems to work now, thanks! :)
A Finnish Project Manager (Support Specialist)
Happily running multiple SMF 2.x installations.
 Fooling around with an i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,510
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Discord Who's Online
« Reply #4 on: February 20, 2021, 02:31:13 PM »
Glad to help
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Jelle Mees

  • Jr. Member
  • **
  • Posts: 158
Re: Discord Who's Online
« Reply #5 on: March 18, 2021, 04:06:00 PM »
Can you make it so that the usernames are aligned in the center of the avatar and not at the bottem. Like this:



It's an easy fix. Simply add vertical-align:middle to the img style.

I also added padding-right:5px . Looks much nicer. Try it ;)
« Last Edit: March 18, 2021, 04:26:58 PM by Jelle Mees »

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,510
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Discord Who's Online
« Reply #6 on: March 18, 2021, 04:32:42 PM »
Change made the vertical-align middle thanks.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline efk

  • Full Member
  • ***
  • Posts: 417
  • Gender: Male
Re: Discord Who's Online
« Reply #7 on: March 18, 2021, 07:56:43 PM »
Can it be displayed inside block on portal and without avatar, as a list of 10 names for example and with scroll button to see who else is active?

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,510
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Discord Who's Online
« Reply #8 on: March 18, 2021, 08:08:02 PM »
Could be possible include discordonline.php
THen call
discordonline_boardlayout();
You can then customize your own
template_ic_block_discord_whos_online() for the layout
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline efk

  • Full Member
  • ***
  • Posts: 417
  • Gender: Male
Re: Discord Who's Online
« Reply #9 on: March 18, 2021, 11:50:04 PM »
Could be possible include discordonline.php
THen call
discordonline_boardlayout();
You can then customize your own
template_ic_block_discord_whos_online() for the layout
Thanks this can be useful for everyone.