Ability to move "Flag" option to reactions section at the bottom

Is there a way to move the Flag option to the reactions section at the bottom of a post?

I can see that it inserts its information using

  public function discussionController_commentInfo_handler($sender, $args) {
    // Signed in users only. No guest reporting!
    if (Gdn::session()->UserID) {
      $this->addFlagButton($sender, $args);
    }
  }

and there is also one for discussions

Comments

  • R_JR_J Admin

    You have two options, I'd say: one is to clone the repo and change the code and the other is to write a new plugin (or make it part of your theme).

    If you write a plugin you could hide the code inserted with the commentInfo handler.

    To insert the flag at the reactions area, use the base_afterReactions_handler method as you can see it in the Facebook plugin

Sign In or Register to comment.