Giter Site home page Giter Site logo

discord-webhook-for-mybb's People

Contributors

quintasan avatar ryczypior avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

discord-webhook-for-mybb's Issues

Doesn't seem to work

Doesn't seem to work for me. Added webhook correctly, not sure why. Anything else required?

Post new threads - issue on Discord

I use your latest version from GitHub, everything seems to be fine except posting info about new threads to Discord channel. I use my custom color, but after sending a thread, the info in discord channel is not complete - the color bar with link is missing

image

I use this settings:
image

[1.8.19] cURL errors on user registration

When the plugin is enabled, 3 errors are thrown which cause the server to return 500 whenever a new user registers.

Type: 2
File: inc/functions.php (Line no. 7066)
Message
Use of undefined constant CURLOPT_FOLLOWLOCATION - assumed 'CURLOPT_FOLLOWLOCATION' (this will throw an Error in a future version of PHP) 
Type: 2
File: inc/functions.php (Line no. 7064)
Message
Use of undefined constant CURLOPT_TIMEOUT - assumed 'CURLOPT_TIMEOUT' (this will throw an Error in a future version of PHP) 
Type: 2
File: inc/functions.php (Line no. 7063)
Message
Use of undefined constant CURLOPT_HEADER - assumed 'CURLOPT_HEADER' (this will throw an Error in a future version of PHP) 

Error source in functions.php

if(function_exists("curl_init"))
        {
                $fetch_header = $max_redirects > 0;

                $ch = curl_init();

                $curlopt = array(
                        CURLOPT_URL => $url,
                        CURLOPT_HEADER => $fetch_header,
                        CURLOPT_TIMEOUT => 10,
                        CURLOPT_RETURNTRANSFER => 1,
                        CURLOPT_FOLLOWLOCATION => 0,
                );

I'm not entirely sure whether this is an issue with the plugin itself, or a problem with myBB, but I thought I'd flag it up here since it's the plugin causing the error.

Thanks very much for this, by the way- it's enormously useful.

Request: Sort by Prefix

This is amazing. Good work!

I was wondering, would it be possible in the future to push threads based on Prefix? For example, if someone posts a thread using Prefix A, in any approved board, it will post to the Discord. But if the thread doesn't have Prefix A, it won't post to the Discord?

Similar to how you can ignore usergroups or forums!

'cause that would be insanely useful!

Thanks for sharing this!

Not working

I installed everything correctly, but it won't post the msg's on my discord. Is there a way to find out where the problem is?

Webhook for New Registrations is sending 3 times instead of once

Heya. So, I do have multiple instances of the Discord Webhook plugin for MyBB set up.
I have 3 instances, but only one of them is set to push New Registrations to a Discord Bot.

However, when a new user registers, it posts 3 Bot messages (all the same) in the channel specific.

Here is my settings for New Registrations:
https://i.imgur.com/72Si5Ex.png

Here is what happens in the Discord Channel specific:
https://i.imgur.com/QmcsnhY.png

Thanks in advance for any help in regards to this! If you need any more information, just let me know!

Create new Thread = HTTP ERROR 500 and no Discord Post

Hi,

  • Uploaded the inc folder
  • Installed / Activated the Plugin
  • Generated a Webhook URL and set it up in the Plugins Settings
  • Create a new Thread gives:

Chrome Errormessage with:

HTTP ERROR 500

If i go back to the Forum the Thread is created but no Post in Discord.

Any workaround or is something messed up on my side?

Details:
php_7.0.18_x64
nginx_1.13.1_x86
mariadb_10.2.6_x64

MyBB 1.8.14

Best Regards

Nice webhook ;D

Hi there ;D
I have found here you webhook and think is very nice projekt ;D

Thanks for this ;D

Greetings
Bogus

Separate options for every element pushed to discord

Options (separated for thread and posts):

  • enabled (on/off) - exists
  • send a message (on/off)
  • message content (text) - exists
  • use author's username as bot name (on/off)
  • use author's avatar as bot avatar if available (on/off)
  • show post / thread title (on/off)
  • show post / thread message (on/off)
  • maximum characters of post / thread message (int)
  • show author (off, on, on with avatar)
  • show author's avatar as thumbnail

friendly urls

more of a question then an issue. I was wondering if your update for friendly urls will also work with the google seo addon since they are generated differently.

Thanks

plugin doesn't work

I installed it, no problem, no error-message or anything, put the settings in, set the webhook at my server and nothing happend. It doesn't work. I deinstalled it, deleted the webhook, downloaded the this version again(could've happen i downloaded not all), uploaded it again, installed it again and set the settings. But nothing. Perhaps it doesn't work bc of the mybbversion? Pls help

Not works

Hello,

I did everything right but still i cant see anything new from our forum. Its like plugin not works. Tried socket / curl too but no way. PHP 7.4 with all needed modules is active and im sure about my discord webhook url is correct

Plugin does not work anymore

Hi, it worked all the time without any problems, now nothing happens after I changed the Server - but the URL, etc. did not change. I tried to reinstall it, to deinstall it and enable it from scratch.

I tried these solutions:
1.) change webhook link from discord.com to discordapp.com
2.) changed it to if (preg_match('/^\s*https?://(ptb.)?discord.com/api/webhooks//i', $webhookurl) == 0) {

(of course, I tried both solutions separate)

Any other ideas?

Option to allow a forum and it's subforums

Not really an issue, rather a feature request : currently you have to enable forum by forum the option, would be great to have the top level forum selected and have the option to inherit it's properties. We use our forum to manage events, and they are ordered by month, that's rather inconvenient to have to edit the plugin settings each time we add new monthly forums for our events...

Thanks a bunch. Hope my explanations are clear.

Plugin not working after last update.

Plugin not working after last update. When writing a post forum stop at the loading spinner and information about the new post is not sent to discord server.

Configuration bug on fresh installation:

bug

Error when unregisterd user Posts.

Hey there,

great plugin, but it seems that its not really build for using in parts of the forum where unregisterd users can post. allways keep getting an php-error on the load page.

Unfortunatly I could not copy that error due to fast realod times, but it seems easy to recreate. Maybe you can fix that.

Followed instructions, not posting on discord, no errors.

I have followed the instructions a while ago, and nothing happened. I installed the update, plugged in the webhook, set the forums to include, set it to ignore none. I haven't changed any customizations or anything. When I post a new thread, it does not post on discord. I get no error, no indication as to what is going wrong here. I am using an older theme that I customized and spent a lot of time getting to work on 1.8, I think it was from 1.6 if I remember correctly. I dont know if that matters, some of the templates had to be reset to the original. Help?

replying to a thread

Fatal error: Call to undefined function curl_strerror() in C:\xampp\htdocs\forum1.0\inc\plugins\discord_webhooks\DiscordWebhook.php on line 62

Message information

I'm trying to create the message for the WebHook like this:

{username} has created a new topic called {threadtitle} in the {boardname} section

But after this text, part of the message written by the user appears, I want to remove it.

Portions of the URL are missing

We have been using this plugin for nearly a year now and have only recently started to run into this issue. The message posted will be all correct except it will be missing the thread number. This only happens every so often so it makes it harder to track down weather its an issue with the plugin or our site.

Example of a broken message:

AUTHOR NAME has posted a new thread to the forums: THREAD TITLE http://example.com/thread-.html

Note the missing thread number, this only started happening lately when we reached over ~800 threads on the forums. Is this an issue with the plugin? I have the settings set to not using sockets.

Plugin version: 1.11
MyBB version: 1.8.14

Add a new option - post info about new user registrations

Would be nice to add an option to send to Discord channel info where a new user is registered.

  • username
  • avatar
  • time/date
  • select usergroup - I mean post info only when user will be for example activated not just registered (or where - is that even possible?
  • add a color for this kind of messages

Does this plugin still work?

I just tried to install this plugin but it doesn't work. I think I have it set up right but if I write a post on my mybb forum, I don't see the post on the discord channel. I created the webhook of a channel and copied it into the plugin but it does not work as described above. Can you please help me?

Webhook doesn'

I filled in all hook information in the settings and tried it on 2 different servers with the php requirements as per instructions, but nothing is being referred to discord while the other (but older) mybb discord relay appears to work.. Any idea as to why?

Multi Not Working

Hello,

I have the [url=https://community.mybb.com/mods.php?action=view&pid=1056]Discord Webhooks for MyBB[/url] intalled. I've had it installed since early 2020 and it works fine.

However, when I followed the steps to install a Suffix version today [Feb 2021], it is not working. I even copied it directly from my other forum, which is working, and installed that. Still no dice.

I'm not exactly sure what is going on or what I need to do to make it work.

The working version uses 'General' prefixes to send to Discord.
The not-working Suffix version should be using the 'Mature' prefixes to send to Discord. I tried changing all the settings around, or removing any of the requirements, but it seems the Suffix version is simply adverse to working.

Any assistance would be outstanding.

I can provide a link to my website if required.

Thank you kindly :)

Plugin colliding with another plugin?

I just uploaded this plugin on my forum and when I go to activate the plugin in the ACP I get the following error.

Warning [2] require_once(/home/hackrall/public_html/inc/plugins/naoardonate/paymentgateways/.php): failed to open stream: No such file or directory - Line: 46 - File: inc/plugins/naoardonate/loader.php PHP 7.0.30 (Linux)

Fatal error: require_once(): Failed opening required '/home/hackrall/public_html/inc/plugins/naoardonate/paymentgateways/.php' (include_path='.:/usr/local/php70/pear') in /home/hackrall/public_html/inc/plugins/naoardonate/loader.php on line 46

screenshot-2018-6-11 plugins

The other plugin is CoderMe Donation. If I remove the inc/plugins/discord_webhooks.php file everything is back to normal...

screenshot-2018-6-11 plugins 1

Error

awG4iq

What can ı do? its working but when ı login to forum with discord its errors

webhook causes clients site to freeze

Hi, this seems like an amazing little plugin here. I have it installed and whatnot, and whenever its enabled, my site hangs when i make a post. If i refresh the post shows up, but discord doesnt seem to do anything.

I feel like im missing a php module or something?
Its a pretty basic install. I added the mbstring module, tried switching between sockets and curl, and havent gotten anywhere.

add a "userfields"

add a "userfields" in my case i want to add "fid4" (there I have the discord id of my users (example: User#1234))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.