ryczypior / discord-webhook-for-mybb Goto Github PK
View Code? Open in Web Editor NEWDiscord Webhook for MyBB
License: MIT License
Discord Webhook for MyBB
License: MIT License
Doesn't seem to work for me. Added webhook correctly, not sure why. Anything else required?
AS title says, when user is registered via these plugins from @shade, no info is posted to Discord.
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.
https://i.imgur.com/BrqapLf.png
if you need any info feel free to let me know or add me on discord MON5TERMATT#9999
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!
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?
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!
If there is a text in square brackets, for example: [SOLVED] I have a problem... it is ignored and shows only ** I have a problem...**
Hi,
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
Hi there ;D
I have found here you webhook and think is very nice projekt ;D
Thanks for this ;D
Greetings
Bogus
Options (separated for thread and posts):
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
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
Now we cannot sellect only to post info about new threads... there should be a settings for that.
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
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?
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.
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.
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?
Fatal error: Call to undefined function curl_strerror() in C:\xampp\htdocs\forum1.0\inc\plugins\discord_webhooks\DiscordWebhook.php on line 62
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.
Can u add support to mybboard friendly urls option?
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
Would be nice to add an option to send to Discord channel info where a new user is registered.
While cURL isn't default for PHP installation, we should also use socket for communication with discord webhook
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?
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?
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 :)
"Install & Activate" results in;
This page isn’t working
[WEBSITE] is currently unable to handle this request.
HTTP ERROR 500
I am unsure how to fix this?
Thank you!
EDIT TO ADD:
... Ummm....
https://i.gyazo.com/1741d754ac3101a8be799930c71d94d7.png
Why are htey all here? I removed the files for the additionals from the FTP?
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
The other plugin is CoderMe Donation. If I remove the inc/plugins/discord_webhooks.php
file everything is back to normal...
Color picker is not working for the colored bar in Discord messages/threads
I get this ugly error when I wanna install and activate your plugin. I use PHP 7.0.21 and MyBB 1.8.12
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" in my case i want to add "fid4" (there I have the discord id of my users (example: User#1234))
Would be nice to add a note how to style the output - I mean
** text **
*** text ***
A lot of users dont know about it
no post or thread info send to discord when they post anything on forum
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.