Resource icon

[BS] Forum moderators 1.0.1

No permission to download

Azaly

Active member
Little bug. Plugin do not check if display in positions of widget is correctly and page load stack with error: [E_WARNING] Declaration of BS\ForumModerators\XF\Repository\UserAlert::alert(XF\Entity\User $receiver, $senderId, $senderName, $contentType, $contentId, $action, array $extra = Array) should be compatible with XF\Repository\UserAlert::alert(XF\Entity\User $receiver, $senderId, $senderName, $contentType, $contentId, $action, array $extra = Array, array $options = Array)
 

Orit

Active member
Little bug. Plugin do not check if display in positions of widget is correctly and page load stack with error: [E_WARNING] Declaration of BS\ForumModerators\XF\Repository\UserAlert::alert(XF\Entity\User $receiver, $senderId, $senderName, $contentType, $contentId, $action, array $extra = Array) should be compatible with XF\Repository\UserAlert::alert(XF\Entity\User $receiver, $senderId, $senderName, $contentType, $contentId, $action, array $extra = Array, array $options = Array)
Here too.
I can't get this add-on to work on XF 2.2.
 
Found a minor bug/conflict work with XFRM:
ErrorException: Fatal Error: Declaration of BS\ForumModerators\XF\Repository\UserAlert::alert(XF\Entity\User $receiver, $senderId, $senderName, $contentType, $contentId, $action, array $extra = []) must be compatible with XF\Repository\UserAlert::alert(XF\Entity\User $receiver, $senderId, $senderName, $contentType, $contentId, $action, array $extra = [], array $options = [])

How to fix?
 

Attachments

  • screen.png
    screen.png
    35.4 KB · Views: 21

021

Well-known member
Can you please explain what you mean by this:
View attachment 270448
Thanks!!
If you want to use the widget somewhere other than the "Forum view: Sidebar" position (for example, directly in the template via xf:widget), you will need to specify the context-forum parameter, which will contain the entry of the forum whose moderators you want to display. Here are some examples

HTML:
<!-- Forum view: Sidebar position -->
<xf:widgetpos id="forum_view_sidebar" context-forum="{$forum}" position="sidebar" />

<!-- Show widget with key "forum_moderators" in forum_view template  -->
<xf:widget key="forum_moderators" context-forum="${forum}" />

<!-- Show widget with key "forum_moderators" in any template for forum with ID 666 (will add at least one query to database)  -->
<xf:widget key="forum_moderators" context-forum="{{ $xf.app.em.find('XF:Forum', 666) }}" />
 
Top