Deepblue

Customer
Hi there, i am wondering about how to move Username and user title above avatar? Is there any easy way to do it?
Thanks.
 
For this you'll just need to edit "message_macros"

Moving this bit:

Code:
        <div class="message-userDetails">
            <h4 class="message-name"><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="{{ $includeMicrodata ? 'name' : '' }}" /></h4>
            <xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="{{ $includeMicrodata ? 'jobTitle' : '' }}" />
            <xf:userbanners user="$user" tag="div" class="message-userBanner" itemprop="{{ $includeMicrodata ? 'jobTitle' : '' }}" />
        </div>

Above here:

Code:
        <div class="message-avatar {{ ($xf.options.showMessageOnlineStatus && $user && $user.isOnline()) ? 'message-avatar--online' : '' }}">

This would move the user banners too. If you want to keep those below the avatar,

Remove this bit:

Code:
            <h4 class="message-name"><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="{{ $includeMicrodata ? 'name' : '' }}" /></h4>
            <xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="{{ $includeMicrodata ? 'jobTitle' : '' }}" />

And add this above the message-avatar line mentioned above:

Code:
        <div class="message-userDetails">
            <h4 class="message-name"><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="{{ $includeMicrodata ? 'name' : '' }}" /></h4>
            <xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="{{ $includeMicrodata ? 'jobTitle' : '' }}" />
        </div>
 
For this you'll just need to edit "message_macros"

Moving this bit:

Code:
        <div class="message-userDetails">
            <h4 class="message-name"><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="{{ $includeMicrodata ? 'name' : '' }}" /></h4>
            <xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="{{ $includeMicrodata ? 'jobTitle' : '' }}" />
            <xf:userbanners user="$user" tag="div" class="message-userBanner" itemprop="{{ $includeMicrodata ? 'jobTitle' : '' }}" />
        </div>

Above here:

Code:
        <div class="message-avatar {{ ($xf.options.showMessageOnlineStatus && $user && $user.isOnline()) ? 'message-avatar--online' : '' }}">

This would move the user banners too. If you want to keep those below the avatar,

Remove this bit:

Code:
            <h4 class="message-name"><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="{{ $includeMicrodata ? 'name' : '' }}" /></h4>
            <xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="{{ $includeMicrodata ? 'jobTitle' : '' }}" />

And add this above the message-avatar line mentioned above:

Code:
        <div class="message-userDetails">
            <h4 class="message-name"><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="{{ $includeMicrodata ? 'name' : '' }}" /></h4>
            <xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="{{ $includeMicrodata ? 'jobTitle' : '' }}" />
        </div>
Thank you Russ now i have another problem with text editor. Selected item background become dark and even i change the color from template still not affect.

Please check the attachment.
 

Attachments

  • edıtor.png
    edıtor.png
    78.9 KB · Views: 11
  • editor2.png
    editor2.png
    50.1 KB · Views: 9
Looks like XenForo is adding a bit of strange CSS, using the block header major background out of all things but not using the color from the header.

Try adding this into extra.less:

Code:
.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active, .fr-popup .fr-command.fr-btn.fr-dropdown.fr-active, .fr-modal .fr-command.fr-btn.fr-dropdown.fr-active,
.fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active
{
    background: @xf-editorButtonHoverBg;
    color: @xf-editorButtonHoverColor;
}
 
Looks like XenForo is adding a bit of strange CSS, using the block header major background out of all things but not using the color from the header.

Try adding this into extra.less:

Code:
.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active, .fr-popup .fr-command.fr-btn.fr-dropdown.fr-active, .fr-modal .fr-command.fr-btn.fr-dropdown.fr-active,
.fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active
{
    background: @xf-editorButtonHoverBg;
    color: @xf-editorButtonHoverColor;
}
Thank you it worked.
 
Hello Rus, sorry to bother you i found a small problem again :)

Page numbers the selected item hover is just gray no matter what i can not change it.

Please check the attachment.

Thanks.
 

Attachments

  • Screenshot_1.png
    Screenshot_1.png
    10.5 KB · Views: 6
  • Screenshot_2.png
    Screenshot_2.png
    103.7 KB · Views: 6
The CSS should be using the default XF:

Code:
    &:hover,
    &:active
    {
        //background: xf-intensify(@xf-contentHighlightBg, 3%);
        background: xf-intensify(@xf-pageNavBase--background-color, 3%);
        text-decoration: none;
    }

So not sure why it'd be that color.

You can add this to your extra.less:

Code:
#XF .pageNav-page:hover
{
background: #CCC;
}

Replace with whatever color you want.
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.

Back