Is there a way to move Flagging link to the bottom of the post?
Hi everyone!
Is there a way to move Flagging link to the bottom of the post (before or after Quote link) instead of the top using just CSS?
My forum runs on Vanilla version 2.2 and we have Bootsrap theme.
Thanks in advance.
Best Answers
-
R_J Admin
Try replacing
public function discussionController_afterDiscussionMeta_handler($Sender, $Args) {
withpublic function discussionController_afterDiscussionBody_handler($Sender, $Args) {
You can enable the plugin eventi to see more possibilities.
3 -
mirX ✭
@R_J написал:
Try replacingpublic function discussionController_afterDiscussionMeta_handler($Sender, $Args) {
withpublic function discussionController_afterDiscussionBody_handler($Sender, $Args) {
You can enable the plugin eventi to see more possibilities.
Thanks @R_J for your hint. It works but new 'Flag' link is placed above the reactions line (with Quote link).
I developed your idea - if replace:
public function discussionController_afterDiscussionMeta_handler($Sender, $Args) {
withpublic function discussionController_afterReactions_handler($Sender, $Args) {
(this add 'Flag' link for discussions), andpublic function discussionController_insideCommentMeta_handler($Sender, $Args) {
withpublic function discussionController_insideReactions_handler($Sender, $Args) {
(this add 'Flag' link for comments)we get Flag link located after Quote link. It works fo me.
8
Answers
Not really a good way to do it. The flagging plugin here is part of the closed addon Reputation, IIRC.
You could write a dependent plugin that outputs it in the reaction area. Or modify the flagging plugin.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Thanks @hgtonight for your explanation.
The easiest way to modify the flagging plagin, isn't it? You mean modify
addFlagButton
, something along those lines https://vanillaforums.org/discussion/31711/move-flagging-link-to-cogwheel-menu ?Try replacing
public function discussionController_afterDiscussionMeta_handler($Sender, $Args) {
with
public function discussionController_afterDiscussionBody_handler($Sender, $Args) {
You can enable the plugin eventi to see more possibilities.
Thanks @R_J for your hint. It works but new 'Flag' link is placed above the reactions line (with Quote link).
I developed your idea - if replace:
public function discussionController_afterDiscussionMeta_handler($Sender, $Args) {
withpublic function discussionController_afterReactions_handler($Sender, $Args) {
(this add 'Flag' link for discussions), andpublic function discussionController_insideCommentMeta_handler($Sender, $Args) {
withpublic function discussionController_insideReactions_handler($Sender, $Args) {
(this add 'Flag' link for comments)
we get Flag link located after Quote link. It works fo me.