1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lack of Interest Additional Moderation Queue Actions

Discussion in 'Closed Suggestions' started by xf_phantom, Jul 4, 2013.

  1. xf_phantom

    xf_phantom Well-Known Member

    ATM the modqueue actions are limited to "approve" and "delete".

    It would be nice, if we could define more actions via the handler. (e.g. include also softdelete + delnotice) OR even much more powerful workflows where we would need more states as "approved and not approved" (e.g. article system, where the mods approve the articles (1. level) and the team leader sees e.g. only the 1. level approved articles, and then he's able to really make them public.. So he'll not need to waste his time with viewing all the articles because the the mods would sort the trash out^^ It's just an example, which would require backend changes, but it's just an example why it would be good to be able to have this more reusable)

    A way would be to define and call the actions in the modqueue handler which would also returns the template with the formfields for the specific content type in the modqueue list

    maybe it's easier to understand the code:D

    instead of the 2 hardcoded actions in the moderationqueue model
          if ($change['action'] == 'approve')
    $handler->approveModerationQueueEntry($entry['content_id'], $message$title);
           else if (
    $change['action'] == 'delete')
    xenforo could have this
    if (in_array($handler->getAvailableActions(), $change['action']){
    $handler->callAction(, $change['action'], $entry['content_id'], $message$title);

    and instead of the hardcoded actions in the template moderation_queue_list
    <li><label for="ctrl_{$entry.content_type}_{$entry.content_id}_action_approve">
                     <input type="radio" name="queue[{$entry.content_type}][{$entry.content_id}][action]" value="approve" id="ctrl_{$entry.content_type}_{$entry.content_id}_action_approve" />
                     {xen:phrase approve}
                   <li><label for="ctrl_{$entry.content_type}_{$entry.content_id}_action_delete">
                     <input type="radio" name="queue[{$entry.content_type}][{$entry.content_id}][action]" value="delete" id="ctrl_{$entry.content_type}_{$entry.content_id}_action_delete" />
                     {xen:phrase delete}
    the actions would come from the handler->getAvailableActions() method.
    Last edited: Jul 4, 2013
    Bob, RoldanLT and Chris D like this.
  2. RoldanLT

    RoldanLT Well-Known Member

    Too bad, it's denied by XF team :/
  3. Chris D

    Chris D XenForo Developer Staff Member

    That is not correct.

    A nearly 3 year old suggestion with only two likes, by definition of "Lack of Interest", has been rejected by the wider customer base.
    Amaury likes this.

Share This Page