Advertisement:

Author Topic: Discord Web Hooks  (Read 4286 times)

Offline SugarD-x

  • Jr. Member
  • **
  • Posts: 363
  • 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

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

Online SychO

  • Lead Customizer
  • SMF Hero
  • *
  • Posts: 1,523
  • 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.

Imazighen

Offline njtweb

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

Offline Kolya

  • Full Member
  • ***
  • Posts: 433
  • 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: 433
  • 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: 21,555
    • 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: 433
  • 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: 21,555
    • 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: 102
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: 21,555
    • 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