XF 1.2 Move Report Link

Frigeri

Member
Hello,

How can I move the report link to the side of the message?

Can I just copy and paste this code?

Code:
<xen:if is="{$post.canReport}">
<a href="{xen:link posts/report, $post}" class="OverlayTrigger item control report" data-cacheOverlay="false"><span></span>{xen:phrase report}</a>
</xen:if>

Example below
 

Attachments

  • test.webp
    test.webp
    6 KB · Views: 12
Copy & Paste should work, but you will want to test it.

Thanks Jeremy. I actually created a bar inside the message layout and then put the controls there.

The problem is that it's not very responsive (images below). Do you have any tip on how to make it better? Here's the code:

Code:
    <div class="message_header">
            {xen:raw $messageAfterTemplate}
    </div>

Code:
.message_header{
    min-height:30px;
    border-bottom:1px solid #c9daeb;
    margin: -10px -10px 10px -10px;
}

MetaControls css:
Code:
.message .messageMeta {
    font-size: 11px;
    padding: 9px 8px 7px;
    overflow: hidden;
}
 

Attachments

  • testing.webp
    testing.webp
    10.7 KB · Views: 9
  • test2.webp
    test2.webp
    50.1 KB · Views: 10
Back
Top Bottom