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

XF 1.2 Move Report Link

#1
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

#5
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