[XFA] Extended Moderation and Banning

[XFA] Extended Moderation and Banning [Paid] 3.4.3

No permission to buy (€6.00)
Well, I guess that might be something possible yes, please request it in our suggestion forum.
 
XFA updated [XFA] Extended Moderation with a new update entry:

Maintenance release

Corrected Bugs:
  • When Extended moderation is active, buttons from other add-ons in the moderator bar disappear.
  • ErrorException: Undefined index: forum - library/XFA/ExtendedModeration/ControllerPublic/Thread.php:23 when Limit Guest Views add-on is installed.
  • Image attachments inserted as thumbnail in posts are visibile to everyone while they should be shown as awaiting...

Read the rest of this update entry...
 
This add-on doesn't seem to scale very well, I've got the following queries being run on the member list causing extremely low page generation:

Code:
SELECT user.*
   ,
   user_profile.*,
   user_option.*,
   user_privacy.*,
               extmod_ban.*, IF(extmod_ban.extmod_ban_user_id IS NULL, 0,
                   IF(extmod_ban.extmod_ban_expiry_date IS NULL OR extmod_ban.extmod_ban_expiry_date > 1481828561, 1, 0)) AS extmod_banned
FROM xf_user AS user

   LEFT JOIN xf_user_profile AS user_profile ON
       (user_profile.user_id = user.user_id)
   LEFT JOIN xf_user_option AS user_option ON
       (user_option.user_id = user.user_id)
   LEFT JOIN xf_user_privacy AS user_privacy ON
       (user_privacy.user_id = user.user_id)
               LEFT JOIN xfa_extmod_ban AS extmod_ban
                   ON (extmod_ban.extmod_ban_user_id = user.user_id)
WHERE (user.message_count > 0) AND (user.is_banned = 0)
ORDER BY user.message_count DESC
 LIMIT 20

Run Time: 16 Seconds

Code:
SELECT user.*
   ,
               extmod_ban.*, IF(extmod_ban.extmod_ban_user_id IS NULL, 0,
                   IF(extmod_ban.extmod_ban_expiry_date IS NULL OR extmod_ban.extmod_ban_expiry_date > 1481828561, 1, 0)) AS extmod_banned
FROM xf_user AS user

               LEFT JOIN xfa_extmod_ban AS extmod_ban
                   ON (extmod_ban.extmod_ban_user_id = user.user_id)
WHERE (user.last_activity > 1466276561) AND (user.user_state = 'valid') AND (user.is_banned = 0)
ORDER BY user.register_date DESC
 LIMIT 12
Run Time: 2.5 Seconds

Disabling the add-on completely resolves the issue
 
Hello,

How many user do you have in your database ?

Could you provide me the whole xF debug output log for those two queries ?

Thanks,
Clément
 
XFA updated [XFA] Extended Moderation and Banning with a new update entry:

Maintenance Release

Corrected bugs:
  • ErrorException: Undefined variable: message - library/XFA/ExtendedModeration/DataWriter/DiscussionMessage/Post.php:121
  • XenForo_Exception: Set cannot be called after preSave has been called. - library/XenForo/DataWriter.php:626
  • XenForo_Exception: No controller response from XenForo_ControllerPublic_Member::actionFollow - library/XenForo/FrontController.php:486

Read the rest of this update entry...
 
Hi I would like to know a few things:

can you Ban / Restrict a member from entering any individual forum, or any multiple forums you select?


Can you change the messages to read (you have been restricted from entering this forum, until you contact the forum Admin)
 
Hi,

The ban and restrictions can either be global or per forum.
It also adds some extra to the existing thread ban.

Regarding your second question, you can input a reason therefore the user can be alerted and know the reason, that may answer to such need ?

Clément
 
Reporting an issue... Apparently, you guys are redefining DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction into a public function. The original function within XenForo is a protected function; not public. This could cause issues with other addons which expect this function to be protected as well, not public.
 
Running Extended Moderation I receive the following error & users are unable to post in threads:

Pg04poZ.png


I have updated to the latest version with no resolution:

xujFu0u.png


Issue as Jaxel posted above

Please advise.
 
Yes indeed it's a bug.

Edit the file library/XFA/ExtendedModeration/DataWriter/DiscussionMessage/Post.php.
Search for :
PHP:
function _postSaveAfterTransaction()

Replace by:
PHP:
protected function _postSaveAfterTransaction()
 
Last edited:
Yes indeed it's a bug.

Edit the file library/XFA/ExtendedModeration/DataWriter/DiscussionMessage/Post.php.
Search for :
PHP:
function _postSaveAfterTransaction()

Replace by:
PHP:
public function _postSaveAfterTransaction()

I'm pretty sure you meant Replace by:
PHP:
protected function _postSaveAfterTransaction()
 
Ah then no currently this is not implemented.

But this could be for sure, you can request it in our suggestion forum.
And if that's a feature that would trigger your purchase for sure I could implement it.
 
Ah then no currently this is not implemented.

But this could be for sure, you can request it in our suggestion forum.
And if that's a feature that would trigger your purchase for sure I could implement it.

Yes that would be a great addition, if you really want to get someones attention, you need to lock them out of the specific forum, otherwise they could still read whats is still being posted.

Maybe you could request it, I do not know where this is done.

oh and yes, that would be the reason I purchase it or not.

Thanks
 
Top Bottom