Discord Integration

Discord Integration [Paid] 2.5.7

No permission to buy ($35.00)

NixFifty

XenForo developer
Staff member
NixFifty updated Discord Integration with a new update entry:

Version 2.2.4

Thanks @Xon for contributions to this release. :)
  • Only display "Automatically mirror your alerts to your Discord DMs" if the user can login to discord, and do not reset the value if the mirroring option is globally disabled.
  • Ensure Discord notifications are sent for threads that are approved.
  • Other minor compatibility tweaks.

Read the rest of this update entry...
 
  • Like
Reactions: Xon

NixFifty

XenForo developer
Staff member
Can you reply?
How do I get the notifications......
I do have a bot (appears offline, no clue why)
I have this turned on - but whenever I create a thread nothing happens in discord???
No new post, no nothing....
The bot appearing offline is normal.

If you're not getting notifications, you haven't opened a WebSocket. You can do this by visiting 'Test Discord Integration' located at XenForo Admin Control Panel -> Tools. If you're still having trouble, open a ticket here and I'll look in to it for you.
 

Shamatix

Active member
The bot appearing offline is normal.

If you're not getting notifications, you haven't opened a WebSocket. You can do this by visiting 'Test Discord Integration' located at XenForo Admin Control Panel -> Tools. If you're still having trouble, open a ticket here and I'll look in to it for you.

The initate websocket doesnt work - I have now made a ticket with ID #226
Like pressing initiate websocket just refreshes the page (admin.php?tools/test-discord&test=1)
 
Last edited:

Xon

Well-known member
@Shamatix if you follow the install steps listed in the overview, this add-on does work.

There is a "'Test Discord Integration" page under the XenForo Admin Control Panel's Tools section. This is an important diagnostic tool as it will tell you most ways the add-on can be incorrectly setup.
 

Firestrm_ZA

Member
Getting a massive repeating error so far 251000 error messages since this first one. @NixFifty
This happened after I upgraded to the latest version
  • rrorException: Template error: Method isUserFeedback is not callable on the given object (NF\Discord\XF\Entity\User)
  • src/XF/Template/Templater.php:980
  • Generated by: Unknown account
  • May 10, 2019 at 8:13 PM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Method isUserFe...', '/home/carbonit/...', 980, Array)
#1 src/XF/Template/Templater.php(980): trigger_error('Method isUserFe...', 512)
#2 internal_data/code_cache/templates/l1/s40/public/xcfs_feedback_bit_main_info_view.php(47): XF\Template\Templater->method(Object(NF\Discord\XF\Entity\User), 'isUserFeedback', Array)
#3 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(xenMade\LAU\XF\Template\Templater), Array, Array)
#4 internal_data/code_cache/templates/l1/s40/public/xcfs_feedback_bit_view.php(19): XF\Template\Templater->callMacro('xcfs_feedback_b...', 'xcfs_feedback_b...', Array, Array)
#5 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(xenMade\LAU\XF\Template\Templater), Array, Array)
#6 internal_data/code_cache/templates/l1/s40/public/xcfs_feedback_view.php(42): XF\Template\Templater->callMacro('xcfs_feedback_b...', 'xcfs_feedback_b...', Array, Array)
#7 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(xenMade\LAU\XF\Template\Templater), Array, Array)
#8 internal_data/code_cache/templates/l1/s40/public/xcfs_feedback_view.php(99): XF\Template\Templater->callMacro('xcfs_feedback_v...', 'feeddback_view', Array, Array)
#9 src/XF/Template/Templater.php(1301): XF\Template\Templater->{closure}(Object(xenMade\LAU\XF\Template\Templater), Array)
#10 src/addons/AL/ThreadFilter/XF/Template/Templater.php(109): XF\Template\Templater->renderTemplate('xcfs_feedback_v...', Array, true)
#11 src/XF/Template/Template.php(24): AL\ThreadFilter\XF\Template\Templater->renderTemplate('public:xcfs_fee...', Array)
#12 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#13 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XenCentral\\Feed...', 'public:xcfs_fee...', Array)
#14 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#15 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#16 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#17 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#18 src/XF.php(390): XF\App->run()
#19 index.php(20): XF::runApp('XF\\Pub\\App')
#20 {main}
Request state
array(4) {
["url"] => string(39) "/index.php?feedback/feedback/92700/view"
["referrer"] => bool(false)
["_GET"] => array(1) {
["feedback/feedback/92700/view"] => string(0) ""
}
["_POST"] => array(0) {
}
}

https://carbonite.co.za/admin.php?logs/server-errors/2/delete
 

Xon

Well-known member
Getting a massive repeating error so far 251000 error messages since this first one. @NixFifty
This happened after I upgraded to the latest version
  • rrorException: Template error: Method isUserFeedback is not callable on the given object (NF\Discord\XF\Entity\User)
  • src/XF/Template/Templater.php:980
  • Generated by: Unknown account
  • May 10, 2019 at 8:13 PM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Method isUserFe...', '/home/carbonit/...', 980, Array)
#1 src/XF/Template/Templater.php(980): trigger_error('Method isUserFe...', 512)
#2 internal_data/code_cache/templates/l1/s40/public/xcfs_feedback_bit_main_info_view.php(47): XF\Template\Templater->method(Object(NF\Discord\XF\Entity\User), 'isUserFeedback', Array)
#3 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(xenMade\LAU\XF\Template\Templater), Array, Array)
#4 internal_data/code_cache/templates/l1/s40/public/xcfs_feedback_bit_view.php(19): XF\Template\Templater->callMacro('xcfs_feedback_b...', 'xcfs_feedback_b...', Array, Array)
#5 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(xenMade\LAU\XF\Template\Templater), Array, Array)
#6 internal_data/code_cache/templates/l1/s40/public/xcfs_feedback_view.php(42): XF\Template\Templater->callMacro('xcfs_feedback_b...', 'xcfs_feedback_b...', Array, Array)
#7 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(xenMade\LAU\XF\Template\Templater), Array, Array)
#8 internal_data/code_cache/templates/l1/s40/public/xcfs_feedback_view.php(99): XF\Template\Templater->callMacro('xcfs_feedback_v...', 'feeddback_view', Array, Array)
#9 src/XF/Template/Templater.php(1301): XF\Template\Templater->{closure}(Object(xenMade\LAU\XF\Template\Templater), Array)
#10 src/addons/AL/ThreadFilter/XF/Template/Templater.php(109): XF\Template\Templater->renderTemplate('xcfs_feedback_v...', Array, true)
#11 src/XF/Template/Template.php(24): AL\ThreadFilter\XF\Template\Templater->renderTemplate('public:xcfs_fee...', Array)
#12 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#13 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XenCentral\\Feed...', 'public:xcfs_fee...', Array)
#14 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#15 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#16 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#17 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#18 src/XF.php(390): XF\App->run()
#19 index.php(20): XF::runApp('XF\\Pub\\App')
#20 {main}
Request state
array(4) {
["url"] => string(39) "/index.php?feedback/feedback/92700/view"
["referrer"] => bool(false)
["_GET"] => array(1) {
["feedback/feedback/92700/view"] => string(0) ""
}
["_POST"] => array(0) {
}
}

https://carbonite.co.za/admin.php?logs/server-errors/2/delete
That is a error with @XCentral's XenCentral Feedback, not this add-on
 

rivacom

Active member
Just got the addon, So far the Discord Test comes back all green. It loads all the roles/channels etc fine. I am able to get notifications for both alerts and posted messages into forums. However. After adding a few roles in xenforo to sync to discord roles, I've went ahead and tried changed the role in xenforo of a user with a connected account to discord. The bot doesn't seem to ever change the role in discord. Bot has manage role permissions. Any thing I can try to get it to change?
 

Mike Fara

Active member
Mine actually made two connections (one for my old TH User Improvements and one for this. Still curious about the above though. Any help?
One addon or the other actually deleted the TH connection and we can't get it back (even after uninstalling/reinstalling/disabling/rebuilding). Presumably one or the other overwrote the information in MySQL but not 100% sure on that.


Why this even matters: @NixFifty 's connection doesn't let you register with this connection but TH does
 

NixFifty

XenForo developer
Staff member
Just got the addon, So far the Discord Test comes back all green. It loads all the roles/channels etc fine. I am able to get notifications for both alerts and posted messages into forums. However. After adding a few roles in xenforo to sync to discord roles, I've went ahead and tried changed the role in xenforo of a user with a connected account to discord. The bot doesn't seem to ever change the role in discord. Bot has manage role permissions. Any thing I can try to get it to change?
The bot can't update the server owner or anyone in roles weighted higher than the one it is currently in by Discord design. If these two cases don't apply, open a ticket here and we can look in to it.
There is a bug with this and https://xenforo.com/community/threads/th-user-improvements.134606/ whereas one overwrites the other Discord connection if both are installed.
One addon or the other actually deleted the TH connection and we can't get it back (even after uninstalling/reinstalling/disabling/rebuilding). Presumably one or the other overwrote the information in MySQL but not 100% sure on that.


Why this even matters: @NixFifty 's connection doesn't let you register with this connection but TH does
Thanks, I suspect this is because my add-on attempts to convert old XF1 external accounts to XF2 connected accounts but looks for the same prefix that the TH add-on uses to store its accounts. I'll look in to handling this better.
 

Raphy123

Member
Hi

With your add on
How to don't display the new post for example in some forum ? for example a private category
I don't see any informations of that in your tutoriel

We can translate this extension ?
 

rivacom

Active member
@NixFifty Having trouble getting discord login working. The user improvements addon worked fine for us with discord. With that gone now, configured this addon , all the keys are right. If I use http://mysite.com/connected_account.php the authorization just loops over and over again. It seems to point to connected_accounts and back to /register/connected-accounts/nfDiscord/?setup=1/connected-accounts/nfDiscord/ and back to the discord authorization page.

If I use https:// I get "An error occurred while connecting with Discord. Please try again later." Ideas? site is http://revenantgaming.com XF 2.1.0 and latest version of your addon.
 

NixFifty

XenForo developer
Staff member
@NixFifty Having trouble getting discord login working. The user improvements addon worked fine for us with discord. With that gone now, configured this addon , all the keys are right. If I use http://mysite.com/connected_account.php the authorization just loops over and over again. It seems to point to connected_accounts and back to /register/connected-accounts/nfDiscord/?setup=1/connected-accounts/nfDiscord/ and back to the discord authorization page.

If I use https:// I get "An error occurred while connecting with Discord. Please try again later." Ideas? site is http://revenantgaming.com XF 2.1.0 and latest version of your addon.
The redirect url should be https://revenantgaming.com/connected_account.php in this case. Can you open a ticket here with an admin login so I can take a look if that's not working?
Hi

With your add on
How to don't display the new post for example in some forum ? for example a private category
I don't see any informations of that in your tutoriel

We can translate this extension ?
The options for thread alerting can be found on the forum edit page for each forum.
 
Top