Social Groups (XenForo 2.x.x)

Social Groups (XenForo 2.x.x) [Paid] 3.6.1

No permission to buy ($50.00)
Thankyou for the update @truonglv

Can you add more user promotion options tho?
Such as let us select individual social groups as a promotion option.

We want to be able to promote users who are accepted into a particular social group and grant them benefits forum wide.

Screenshot_20201009-121632.webp
 
Summary of my suggestions for this addon..

Added some more suggestions (also some from other users that I think were excellent):

Show joined group (icon/name etc) on postbit on messages/profile etc of that userFurther integrate/boost awareness of the group feature, when users view their profile on threads etc.
Ability to set a location for the group (using Google API)Easier to find local groups
Browse groups by location on indexSame as above
Be able to add polls on events (in OP)For example:
"What should we play today? Table tennis, board game etc?"
Add group language as a filterSo users can filter by language on the group index page
Add the option to give specific groups access to more forum nodes than the standard value in " Forum discussion options"Default to 1 (to keep the amount of nodes within reason), but I think it would be cool to have the option to give access to have more nodes to certain groups. F.ex groups that contribute a lot to the general activity on the site.
Auto-close/delete inactive groups after X days (including deleting any associated nodes)House cleaning is good.
Originally posted by meme.
Paid groups, membership fee. (one time or recurring). Can take %cut to site owner, rest goes to group owner.Adding support for membership VIP groups. This is a brilliant feature that is present in the IPS Clubs package.
Originally posted by alfa1.
Group owners can create new rolesGive the Group owners the options to create new roles for their groups. More power to the groups to individualize themselves.
Originally posted by vanucci.

Several of these will hopefully find their way into the next feature release of this addon :)
 
@truonglv, I recently installed version 2.2.9 and am getting a lot of errors like the one below:

Code:
Server error log
Error: Call to a member function canViewGroupContent() on null src/addons/Truonglv/Groups/Entity/UserCache.php:40
Generated by: MichaelPruff Oct 21, 2020 at 6:32 AM
Stack trace
#0 src/addons/Truonglv/Groups/XF/Entity/Forum.php(99): Truonglv\Groups\Entity\UserCache->canViewGroupContent(29, NULL)
#1 src/XF/Entity/Node.php(52): Truonglv\Groups\XF\Entity\Forum->canView(NULL)
#2 src/XF/Mvc/Entity/AbstractCollection.php(320): XF\Entity\Node->canView()
#3 [internal function]: XF\Mvc\Entity\AbstractCollection->XF\Mvc\Entity\{closure}(Object(Truonglv\Groups\XF\Entity\Node))
#4 src/XF/Mvc/Entity/AbstractCollection.php(189): array_filter(Array, Object(Closure))
#5 src/XF/Mvc/Entity/AbstractCollection.php(321): XF\Mvc\Entity\AbstractCollection->filter(Object(Closure))
#6 src/XF/Repository/Node.php(159): XF\Mvc\Entity\AbstractCollection->filterViewable()
#7 src/XF/Pub/Controller/Watched.php(132): XF\Repository\Node->filterViewable(Object(XF\Mvc\Entity\ArrayCollection))
#8 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\Watched->actionForums(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(261): XF\Mvc\Dispatcher->dispatchClass('XF:Watched', 'Forums', Object(XF\Mvc\RouteMatch), Object(XFRM\XF\Pub\Controller\Watched), NULL)
#10 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XFRM\XF\Pub\Controller\Watched), NULL)
#11 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src/XF/App.php(2191): XF\Mvc\Dispatcher->run()
#13 src/XF.php(391): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}
Request state
array(4) {
  ["url"] => string(15) "/watched/forums"
  ["referrer"] => string(39) "https://www.mooclab.club/watched/forums"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
@truonglv, I recently installed version 2.2.9 and am getting a lot of errors like the one below:

Code:
Server error log
Error: Call to a member function canViewGroupContent() on null src/addons/Truonglv/Groups/Entity/UserCache.php:40
Generated by: MichaelPruff Oct 21, 2020 at 6:32 AM
Stack trace
#0 src/addons/Truonglv/Groups/XF/Entity/Forum.php(99): Truonglv\Groups\Entity\UserCache->canViewGroupContent(29, NULL)
#1 src/XF/Entity/Node.php(52): Truonglv\Groups\XF\Entity\Forum->canView(NULL)
#2 src/XF/Mvc/Entity/AbstractCollection.php(320): XF\Entity\Node->canView()
#3 [internal function]: XF\Mvc\Entity\AbstractCollection->XF\Mvc\Entity\{closure}(Object(Truonglv\Groups\XF\Entity\Node))
#4 src/XF/Mvc/Entity/AbstractCollection.php(189): array_filter(Array, Object(Closure))
#5 src/XF/Mvc/Entity/AbstractCollection.php(321): XF\Mvc\Entity\AbstractCollection->filter(Object(Closure))
#6 src/XF/Repository/Node.php(159): XF\Mvc\Entity\AbstractCollection->filterViewable()
#7 src/XF/Pub/Controller/Watched.php(132): XF\Repository\Node->filterViewable(Object(XF\Mvc\Entity\ArrayCollection))
#8 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\Watched->actionForums(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(261): XF\Mvc\Dispatcher->dispatchClass('XF:Watched', 'Forums', Object(XF\Mvc\RouteMatch), Object(XFRM\XF\Pub\Controller\Watched), NULL)
#10 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XFRM\XF\Pub\Controller\Watched), NULL)
#11 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src/XF/App.php(2191): XF\Mvc\Dispatcher->run()
#13 src/XF.php(391): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}
Request state
array(4) {
  ["url"] => string(15) "/watched/forums"
  ["referrer"] => string(39) "https://www.mooclab.club/watched/forums"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
Please upgrade to latest version.
 
Hey,

So I deleted some nodes and it turned the forums into this error:
Code:
Error: Call to a member function canViewGroupContent() on null in src/addons/Truonglv/Groups/Entity/UserCache.php at line 40
Truonglv\Groups\Entity\UserCache->canViewGroupContent() in src/addons/Truonglv/Groups/XF/Entity/Forum.php at line 99
Truonglv\Groups\XF\Entity\Forum->canView() in src/XF/Entity/Node.php at line 52
XF\Entity\Node->canView() in src/XF/Mvc/Entity/AbstractCollection.php at line 320
XF\Mvc\Entity\AbstractCollection->XF\Mvc\Entity\{closure}()
array_filter() in src/XF/Mvc/Entity/AbstractCollection.php at line 189
XF\Mvc\Entity\AbstractCollection->filter() in src/XF/Mvc/Entity/AbstractCollection.php at line 321
XF\Mvc\Entity\AbstractCollection->filterViewable() in src/XF/Repository/Node.php at line 159
XF\Repository\Node->filterViewable() in src/XF/Repository/Node.php at line 20
XF\Repository\Node->getNodeList() in src/XF/Pub/Controller/Forum.php at line 52
XF\Pub\Controller\Forum->actionList() in src/addons/Truonglv/Groups/XF/Pub/Controller/Forum.php at line 27
Truonglv\Groups\XF\Pub\Controller\Forum->actionList() in src/XF/Mvc/Dispatcher.php at line 350
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2300
XF\App->run() in src/XF.php at line 465
XF::runApp() in index.php at line 20

Any idea how to fix this?

Nevermind, saw the solution in a post above. Thank you.

Edit: It still is an issue with the latest version.
 
Last edited:
Hey,

So I deleted some nodes and it turned the forums into this error:
Code:
Error: Call to a member function canViewGroupContent() on null in src/addons/Truonglv/Groups/Entity/UserCache.php at line 40
Truonglv\Groups\Entity\UserCache->canViewGroupContent() in src/addons/Truonglv/Groups/XF/Entity/Forum.php at line 99
Truonglv\Groups\XF\Entity\Forum->canView() in src/XF/Entity/Node.php at line 52
XF\Entity\Node->canView() in src/XF/Mvc/Entity/AbstractCollection.php at line 320
XF\Mvc\Entity\AbstractCollection->XF\Mvc\Entity\{closure}()
array_filter() in src/XF/Mvc/Entity/AbstractCollection.php at line 189
XF\Mvc\Entity\AbstractCollection->filter() in src/XF/Mvc/Entity/AbstractCollection.php at line 321
XF\Mvc\Entity\AbstractCollection->filterViewable() in src/XF/Repository/Node.php at line 159
XF\Repository\Node->filterViewable() in src/XF/Repository/Node.php at line 20
XF\Repository\Node->getNodeList() in src/XF/Pub/Controller/Forum.php at line 52
XF\Pub\Controller\Forum->actionList() in src/addons/Truonglv/Groups/XF/Pub/Controller/Forum.php at line 27
Truonglv\Groups\XF\Pub\Controller\Forum->actionList() in src/XF/Mvc/Dispatcher.php at line 350
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2300
XF\App->run() in src/XF.php at line 465
XF::runApp() in index.php at line 20

Any idea how to fix this?

Nevermind, saw the solution in a post above. Thank you.

Edit: It still is an issue with the latest version.
Does rebuild group user caches help?
 
  • Like
Reactions: jul
When you have a cover, it will keep "loading" the cover every single time you swap between the various tabs. (you see those white loading bars on the cover, and a delay before it shows it). It is extremely annoying :) Can you please fix that?
 
I'm getting these errors:

Code:
Error: Error rendering navigation: Call to undefined method XF\Entity\Node::setTlgGroupEntity() src/addons/Truonglv/Groups/Repository/Group.php:140
Generated by: Unknown account Oct 27, 2020 at 4:06 PM
Stack trace
#0 src/addons/Truonglv/Groups/XF/Repository/Node.php(26): Truonglv\Groups\Repository\Group->loadGroupsForNodes(Array)
#1 src/XF/Navigation/NodeType.php(237): Truonglv\Groups\XF\Repository\Node->loadNodeTypeDataForNodes(Array)
#2 src/XF/Navigation/NodeType.php(124): XF\Navigation\NodeType::loadPendingNodeData(true)
#3 internal_data/code_cache/navigation_cache.php(651): XF\Navigation\NodeType::displayNodeExtended(494, 'course_tracker')
#4 src/XF/Template/Templater.php(7311): XF\Pub\App->{closure}(Object(SV\StandardLib\XF\Template\Templater), NULL, Array)
#5 src/XF/Pub/App.php(575): XF\Template\Templater->renderNavigationClosure(Object(Closure), NULL, Array)
#6 src/XF/Pub/App.php(526): XF\Pub\App->getNavigation(Array, NULL)
#7 src/XF/App.php(2105): XF\Pub\App->renderPageHtml('<div class="blo...', Array, Object(XF\Mvc\Reply\Message), Object(XF\Mvc\Renderer\Html))
#8 src/XF/Mvc/Dispatcher.php(402): XF\App->renderPage('<div class="blo...', Object(XF\Mvc\Reply\Message), Object(XF\Mvc\Renderer\Html))
#9 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\Message), 'html')
#10 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()
#11 src/XF.php(465): XF\App->run()
#12 index.php(20): XF::runApp('XF\\Pub\\App')
#13 {main}
Request state
array(4) {
  ["url"] => string(15) "/tags/universe/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Top Bottom