[8WR] Discord Integration

[8WR] Discord Integration [Paid] 1.0.9

No permission to buy ($30.00)
I'm getting this :/

Code:
Server Error Log

Error Info
ErrorException: Undefined index: instant_invite - library/EWRdiscord/Listener/NavTabs.php:17
Generated By: SimplyBrandon1, 3 minutes ago
Stack Trace
#0 /home/compyakd/public_html/library/EWRdiscord/Listener/NavTabs.php(17): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/compyakd/...', 17, Array)
#1 [internal function]: EWRdiscord_Listener_NavTabs::listen(Array, 'forums')
#2 /home/compyakd/public_html/library/XenForo/CodeEvent.php(90): call_user_func_array(Array, Array)
#3 /home/compyakd/public_html/library/XenForo/Dependencies/Public.php(495): XenForo_CodeEvent::fire('navigation_tabs', Array)
#4 /home/compyakd/public_html/library/XenForo/Dependencies/Public.php(371): XenForo_Dependencies_Public->_getNavigationContainerParams('forums')
#5 /home/compyakd/public_html/library/XenForo/FrontController.php(660): XenForo_Dependencies_Public->getEffectiveContainerParams(Array, Object(Zend_Controller_Request_Http))
#6 /home/compyakd/public_html/library/XenForo/FrontController.php(176): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_Json), Array)
#7 /home/compyakd/public_html/index.php(13): XenForo_FrontController->run()
#8 {main}
Request State
array(3) {
  ["url"] => string(58) "https://www.competitivetournaments.xyz/posts/3/save-inline"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(6) {
    ["message_html"] => string(1937) "<p style="text-align: center"><b><font size="7">Cake Wars CTL Information</font></b></p>
<p style="text-align: center"><b><font size="7"><br></font></b></p>
<p style="text-align: left"><b><font size="5">Tournament Overview</font></b></p>
<p style="text-align: left"><font size="4">Cake Wars Tournaments are played on a Mineplex MPS. Two teams play in each game of each stage of the tournament, until they knock each other out. There are 4 players on each team.</font></p>
<p style="text-align: left"><br></p>
<p style="text-align: left"><b><font size="5">Cake Wars Tournament Maps</font></b></p>
<ul style="text-align: center">
<li><p style="text-align: left"><font size="4">Milo Realm</font></p>
</li>
<li><p style="text-align: left"><font size="4">Oasis</font></p>
</li>
</ul>
<p style="text-align: left"><font size="5"><b style="">Cake Wars CTL Specific </b><span style=""><b>game-play</b></span><b style="">&nbsp;rules</b></font></p>
<ul style="text-align: center">
<li><p style="text-align: left">Each team may have a <b>maximum </b>of <b>1 </b>archer kit</p>
</li><li><p style="text-align: left">Spawn killing the other team is not allowed unless an effort is being made to remove their cake at the same time or the cake has already gone and you are attempting to get final kills.</p></li>
</ul>
<p style="text-align: left"><br></p><p style="text-align: left"><b><font size="5">Cake Wars tournament information</font></b><br></p><p style="text-align: left"><ul><li><font size="4">The winner of each game is decided by the last team standing.</font></li><li><font size="4">There are four players per team.</font></li></ul></p><p style="text-align: left"><br></p><p style="text-align: left"><br></p>
<p style="text-align: left"><font size="5"><b>Cake Wars CTL referees</b></font></p>
<ul style="text-align: left">
<li><font size="4">SimplyBrandon1</font></li>
<li><font size="4">xEnderSlayer</font></li>
</ul>
"
    ["_xfRelativeResolver"] => string(91) "https://www.competitivetournaments.xyz/threads/cake-wars-standard-ctl-information-thread.3/"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(53) "/threads/cake-wars-standard-ctl-information-thread.3/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

and this :/

Code:
Server Error Log
Error Info
ErrorException: Undefined index: members - library/EWRdiscord/Listener/NavTabs.php:18
Generated By: SimplyBrandon1, 5 minutes ago
Stack Trace
#0 /home/compyakd/public_html/library/EWRdiscord/Listener/NavTabs.php(18): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/compyakd/...', 18, Array)
#1 [internal function]: EWRdiscord_Listener_NavTabs::listen(Array, 'forums')
#2 /home/compyakd/public_html/library/XenForo/CodeEvent.php(90): call_user_func_array(Array, Array)
#3 /home/compyakd/public_html/library/XenForo/Dependencies/Public.php(495): XenForo_CodeEvent::fire('navigation_tabs', Array)
#4 /home/compyakd/public_html/library/XenForo/Dependencies/Public.php(371): XenForo_Dependencies_Public->_getNavigationContainerParams('forums')
#5 /home/compyakd/public_html/library/XenForo/FrontController.php(660): XenForo_Dependencies_Public->getEffectiveContainerParams(Array, Object(Zend_Controller_Request_Http))
#6 /home/compyakd/public_html/library/XenForo/FrontController.php(176): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_Json), Array)
#7 /home/compyakd/public_html/index.php(13): XenForo_FrontController->run()
#8 {main}
Request State
array(3) {
  ["url"] => string(58) "https://www.competitivetournaments.xyz/posts/3/save-inline"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(6) {
    ["message_html"] => string(1937) "<p style="text-align: center"><b><font size="7">Cake Wars CTL Information</font></b></p>
<p style="text-align: center"><b><font size="7"><br></font></b></p>
<p style="text-align: left"><b><font size="5">Tournament Overview</font></b></p>
<p style="text-align: left"><font size="4">Cake Wars Tournaments are played on a Mineplex MPS. Two teams play in each game of each stage of the tournament, until they knock each other out. There are 4 players on each team.</font></p>
<p style="text-align: left"><br></p>
<p style="text-align: left"><b><font size="5">Cake Wars Tournament Maps</font></b></p>
<ul style="text-align: center">
<li><p style="text-align: left"><font size="4">Milo Realm</font></p>
</li>
<li><p style="text-align: left"><font size="4">Oasis</font></p>
</li>
</ul>
<p style="text-align: left"><font size="5"><b style="">Cake Wars CTL Specific </b><span style=""><b>game-play</b></span><b style="">&nbsp;rules</b></font></p>
<ul style="text-align: center">
<li><p style="text-align: left">Each team may have a <b>maximum </b>of <b>1 </b>archer kit</p>
</li><li><p style="text-align: left">Spawn killing the other team is not allowed unless an effort is being made to remove their cake at the same time or the cake has already gone and you are attempting to get final kills.</p></li>
</ul>
<p style="text-align: left"><br></p><p style="text-align: left"><b><font size="5">Cake Wars tournament information</font></b><br></p><p style="text-align: left"><ul><li><font size="4">The winner of each game is decided by the last team standing.</font></li><li><font size="4">There are four players per team.</font></li></ul></p><p style="text-align: left"><br></p><p style="text-align: left"><br></p>
<p style="text-align: left"><font size="5"><b>Cake Wars CTL referees</b></font></p>
<ul style="text-align: left">
<li><font size="4">SimplyBrandon1</font></li>
<li><font size="4">xEnderSlayer</font></li>
</ul>
"
    ["_xfRelativeResolver"] => string(91) "https://www.competitivetournaments.xyz/threads/cake-wars-standard-ctl-information-thread.3/"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(53) "/threads/cake-wars-standard-ctl-information-thread.3/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

Ranks don't seem to get updated correctly
 

ulric

Member
@Jaxel - We have a large environment, both with the xenforo forum - around 54,000 registered users, 33,000 members with around 1/3 of the members active during any given month, and our discord server(s).

Our main discord server regularly sits at over 250 users in off peak, more in busy times. Current Discord member numbers in our primary server is around 1000 members and increasing at a rate of around 200 per month.

We are very interested in your addon as it would make user administration a lot easier for us.

In your 1.08 change log you mention that the job to sync members runs every 5 minutes and syncs one user. As you mentioned this limits the roll sync to 288 members. If this is the case then we could never sync our user base. Is this the case?
 

Jaxel

Well-known member
It limits the roll sync to 288 members in a 24 hour period... if you have more than that, it just takes longer. 24 hours is a MINIMUM, not a maximum.
 

ulric

Member
Thanks for the fast response.

Sorry for my misunderstanding. I had read it that the job would restart at 24 hours and go back to the start of the list.

Within xenforo does the system only look at people who have registered their Discord user details, or does it go through all users in the forum?

I am trying to get an understanding of the cycle times and responsiveness of the interface. Currently with the 288 members/day limit we would be looking at around a 3.5 day response time to permission/role changes extending at around 17 hours per month given current growth rates if it is limited to only those who have registered their Discord details in xenforo. Does this sound about right to you?
 

Revenact

Member
Hey there.

I want to ask, if it is possible, to change the Text in the Chat-tab to a livechat like on the 8Wayrun-forum.
And if yes, how can I make that possible?
 

Jaxel

Well-known member
Hey there.

I want to ask, if it is possible, to change the Text in the Chat-tab to a livechat like on the 8Wayrun-forum.
And if yes, how can I make that possible?
Its phrased.



BTW, I'm looking for beta testers for the XF2 version of this addon... just let me know.
 

Revenact

Member
Its phrased.



BTW, I'm looking for beta testers for the XF2 version of this addon... just let me know.
We really want to help, but sadly one add-on that we're using is still only for XenForo 1.5.16a and it is required....
So sadly, we can't really help.
 

feldon30

Well-known member
In the process of installing this and the handshaking process between my site and Discord, I had major server problems. As a result the handshaking process did not complete and so the Discordapp "invite" link is not set correctly. Is there any way to re-run this handshaking process or manually set these values in the database or somewhere else?
 
Last edited:

Verringer

Active member
Hi Jaxel,

Do you have any plans to update this addon alongside your xF2 version? There's a few quite simple flaws / missing features that we've encountered.

1) A way to display the users Discord username in the user fields, at the moment having to add it in contact details and it isn't verified / auto-updating.
Screen Shot 2018-02-24 at 19.24.24.png
2) Preventing posting #posts and #threads from certain forums in bulk / use guest permissions . At the moment the addon is posting private threads/posts and would require going through a lot of nodes to change this vs the standard way to do it. For example in XenPorta:
Screen Shot 2018-02-25 at 01.27.39.png
3) Prevention against tagging in #posts and #threads - at the moment somebody could use this to tag everyone given the bots Administrator permission.
Screen Shot 2018-02-24 at 19.22.22.png 1519499979892.png
 
Last edited:
Continuing discussion from PM @Jaxel

Bot doesn't sync roles/usernames/bans when account is already associated.

The bot can only apply roles after their accounts are associated...
The account is associated. The issue is that the bot will not sync usernames/roles/bans if the account has been already associated on the XF forum before the Discord account has joined the server. As the XF account has already been associated with the Discord account prior to joining the Discord server, the Discord user should automatically have their roles/username/bans synced.

EDIT: What this means is that the user has to dissociate their account and then re-associate it after joining the Discord server.
 

CM30

Member
Hey, quick question about this mod. If I buy it for XenForo 1 and then upgrade to XenForo 2, do I need to buy another license for the XenForo 2 version? Just wondering, because if so, I'll wait until I upgrade to XenForo 2 before buying it.
 
Top