Advertisement:

Author Topic: Discord Web Hooks  (Read 6812 times)

Offline SugarD-x

  • Jr. Member
  • **
  • Posts: 381
  • Gender: Male
  • SMF and PHPBB Fan
    • SugarDx on Facebook
    • SugarD-x on GitHub
    • sugardx on LinkedIn
    • @SugarDx on Twitter
    • Clan Xperience
Re: Discord Web Hooks
« Reply #20 on: July 18, 2019, 12:13:06 PM »
getting an error saying package-info.xml not found! when uploading
puu.sh/DEJlX/d1f571659d.zip
though it does contain package-info.xml and i did use the right smf version when uploading it, however i did open the zip as soon as it downloaded to desktop an extracted your original .zip into a folder due to just plain lazyness an created a new .zip on desktop from that folder in which i installed... so that may have been the reason/problem to begin with, which as i said i think i may have installed it twice somehow...
(might have deleted it without uninstalling it)

each time i try uninstalling and reinstalling it still posts to discord twice so i'm not sure what i can do to fix the mistake already made.

using your original zip on smfhacks.com/smf-package-parser.html worked without an error so i'll try uninstalling and reinstalling the correct package here in a minute

Edit:
using your original package still results in double posts so need to find the file that was edited that probably now has two crucial edits causing it to be posted twice.
Uninstall the mod completely, and make sure no SMF integration hooks exist if on SMF 2.1. Also delete the package from your server's FTP completely, and do a search of your database to remove any references to the mod. Once your board is completely clean of it, download a new copy of the mod, upload it, and install it as is. If you are still getting double messages, either something is configured wrong, or you have a bug that no one else has seen or reported yet.

Offline njtweb

  • Sophist Member
  • *****
  • Posts: 1,032
Re: Discord Web Hooks
« Reply #21 on: July 18, 2019, 12:38:35 PM »
What specifically does this do?

Offline SychO

  • Lead Customizer
  • SMF Hero
  • *
  • Posts: 1,857
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: Discord Web Hooks
« Reply #22 on: July 18, 2019, 12:40:47 PM »
Posts forum notifications(new posts/topics and new registrations) to your Discord server.
Take the initiative

Offline njtweb

  • Sophist Member
  • *****
  • Posts: 1,032
Re: Discord Web Hooks
« Reply #23 on: July 18, 2019, 12:47:19 PM »
Ok, thank you.

Offline Kolya

  • Full Member
  • ***
  • Posts: 452
  • systemshock.org
Re: Discord Web Hooks
« Reply #24 on: August 19, 2019, 06:59:13 PM »
This works great. I got a non-fatal error with a guest creating a new topic though:
Undefined index: discord_guest
File: /Sources/discord2.php
Line: 218

Offline Kolya

  • Full Member
  • ***
  • Posts: 452
  • systemshock.org
Re: Discord Web Hooks
« Reply #25 on: August 19, 2019, 07:05:07 PM »
Another small problem is that links to posts don't work. They only lead to the topic.

A link as generated by the mod: /index.php?topic=10839.msg=129442
Actual working link to that post: /index.php?topic=10839.msg129442#msg129442

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 22,731
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Discord Web Hooks
« Reply #26 on: August 19, 2019, 10:44:07 PM »
1.0.2
!Fixed message link in postings to include anchor links.
!Fixed case of username guest language string not being loaded.
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 Kolya

  • Full Member
  • ***
  • Posts: 452
  • systemshock.org
Re: Discord Web Hooks
« Reply #27 on: August 20, 2019, 03:46:39 PM »
Well that was a quick response! Thank you for the fixes. :)

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 22,731
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Discord Web Hooks
« Reply #28 on: August 20, 2019, 03:48:32 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 adapa

  • Jr. Member
  • **
  • Posts: 112
Re: Discord Web Hooks
« Reply #29 on: October 13, 2019, 10:37:08 PM »
Posts forum notifications(new posts/topics and new registrations) to your Discord server.

any thoughts to going the reverse way?
I'd love to have discord posts appear in my forum.

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 22,731
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Discord Web Hooks
« Reply #30 on: October 13, 2019, 11:13:32 PM »
Might be possible with the api https://discordapp.com/developers/docs/resources/channel#get-channel-messages
Not sure how you control it though since discord is more of chat system. So can hit your forum with tons of posts...
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: 152
Re: Discord Web Hooks
« Reply #31 on: February 07, 2020, 03:17:26 PM »
It doesn't seem to tag the groupmembers on Discord.
For example, we have a group called "Member".
And I let the mod post this message:
@Member
But it posts it as regular text without actually pinging the users in the group "Member".

Offline SugarD-x

  • Jr. Member
  • **
  • Posts: 381
  • Gender: Male
  • SMF and PHPBB Fan
    • SugarDx on Facebook
    • SugarD-x on GitHub
    • sugardx on LinkedIn
    • @SugarDx on Twitter
    • Clan Xperience
Re: Discord Web Hooks
« Reply #32 on: February 07, 2020, 03:27:48 PM »
It doesn't seem to tag the groupmembers on Discord.
For example, we have a group called "Member".
And I let the mod post this message:
@Member
But it posts it as regular text without actually pinging the users in the group "Member".
It might not be built to support those types of messages. I've seen Discord bots before that don't have that support built into their custom commands, and it causes the text to be sent without the mention too.

Offline LG965

  • Semi-Newbie
  • *
  • Posts: 54
    • www.tuttovola.org
Re: Discord Web Hooks
« Reply #33 on: June 01, 2020, 05:27:02 PM »
Fantastic mod!
it would be even better if you could connect each board separately to a discord channel.

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 22,731
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Discord Web Hooks
« Reply #34 on: June 01, 2020, 05:59:45 PM »
Yeah little tricky.
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 kilk

  • Semi-Newbie
  • *
  • Posts: 25
    • Elddem The MMORPG
Re: Discord Web Hooks
« Reply #35 on: June 09, 2020, 04:06:23 PM »
Vbgamer is on a roll, so many badass mods! Thank you for all your hard work!
Elddem The MMORPG - https://www.elddem.com | Denarius (D) Cryptocurrrency - https://www.denarius.io | BlockForums - Cryptocurrency Community Forums - https://www.blockforums.org

Offline Sectomy

  • Semi-Newbie
  • *
  • Posts: 73
Re: Discord Web Hooks
« Reply #36 on: July 10, 2020, 10:06:08 AM »
Hi,
just a question, does it always post if theres a new "post" (reply) or only new topic ?
would be cool if theres only a "new topic" switch , i dont wanna know all replies, just the topic...is that possible ?
best regards
andi

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 22,731
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Discord Web Hooks
« Reply #37 on: July 10, 2020, 11:08:48 AM »
options for both

post on reply
post on new topic



you can customize them
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 Sectomy

  • Semi-Newbie
  • *
  • Posts: 73
Re: Discord Web Hooks
« Reply #38 on: July 12, 2020, 05:00:13 AM »
Fantastic mod!
it would be even better if you could connect each board separately to a discord channel.
yeah, that would be awsome, or maybe is it possible to modificate the pakage, so you can install 2 of the mods (maybe change the name?) so you can choose this Board Topics belong to Channel 1 and Notifications of Board 2 belongs to channel 2.....