creaky

Customer
I've changed to a horizontal postbit and would like to move the message elements from where they currently show

9363

At the moment they are on the right hand side of the postbit. Can they be moved so they show on the left under the username's and group icons.

Also the icons that are showing are the groups the member belongs to. How can I add a tooltip to them so when you hover over them they show the group name?
 

Russ

Pixel Exit Staff
Not easily, you'll need to edit the template message_macros, move all of the extra details:
Code:
        <xf:if is="$user.user_id">
            <xf:set var="$extras" value="{{ property('messageUserElements') }}" />
            <xf:if contentcheck="true">
                <div class="message-userExtras">
                <xf:contentcheck>
                    <xf:if is="$extras.register_date">
                        <dl class="pairs pairs--justified">
                            <dt><xf:if is="property('xbMessageUserIcons')"><xf:fa icon="fa-calendar fa-fw" data-xf-init="tooltip" title="{{ phrase('joined') }}" /> <xf:else />{{ phrase('joined') }}</xf:if></dt>
                            <dd>{{ date($user.register_date) }}</dd> 
                        </dl>
                    </xf:if>
                    <xf:if is="$extras.message_count">
                        <dl class="pairs pairs--justified pairs--xbBoxed">
                            <dt><xf:if is="property('xbMessageUserIcons')"><xf:fa icon="fa-comments fa-fw" data-xf-init="tooltip" title="{{ phrase('messages') }}" /> <xf:else />{{ phrase('messages') }}</xf:if></dt>
                            <dd>{$user.message_count|number}</dd>
                        </dl>
                    </xf:if>
                    <xf:if is="$extras.reaction_score">
                        <dl class="pairs pairs--justified">
                            <dt><xf:if is="property('xbMessageUserIcons')"><xf:fa icon="fa-thumbs-up fa-fw" data-xf-init="tooltip" title="{{ phrase('reaction_score') }}" /> <xf:else />{{ phrase('reaction_score') }}</xf:if></dt>
                            <dd>{$user.reaction_score|number}</dd>
                        </dl>
                    </xf:if>
                    <xf:if is="$extras.trophy_points && $xf.options.enableTrophies">
                        <dl class="pairs pairs--justified pairs--xbBoxed">
                            <dt><xf:if is="property('xbMessageUserIcons')"><xf:fa icon="fa-trophy fa-fw" data-xf-init="tooltip" title="{{ phrase('points') }}" /> <xf:else />{{ phrase('points') }}</xf:if></dt>
                            <dd>{$user.trophy_points|number}</dd>
                        </dl>
                    </xf:if>
                    <xf:if is="$extras.age && $user.Profile.age">
                        <dl class="pairs pairs--justified">
                            <dt><xf:if is="property('xbMessageUserIcons')"><xf:fa icon="fa-birthday-cake fa-fw" data-xf-init="tooltip" title="{{ phrase('age') }}" /> <xf:else />{{ phrase('age') }}</xf:if></dt>
                            <dd>{$user.Profile.age}</dd>
                        </dl>
                    </xf:if>
                    <xf:if is="$extras.location && $user.Profile.location">
                        <dl class="pairs pairs--justified">
                            <dt><xf:if is="property('xbMessageUserIcons')"><xf:fa icon="fa-map fa-fw" data-xf-init="tooltip" title="{{ phrase('location') }}" /> <xf:else />{{ phrase('location') }}</xf:if></dt>
                            <dd>
                                <xf:if is="$xf.options.geoLocationUrl">
                                    <a href="{{ link('misc/location-info', '', {'location': $user.Profile.location}) }}" rel="nofollow noreferrer" target="_blank" class="u-concealed">{$user.Profile.location}</a>
                                <xf:else />
                                    {$user.Profile.location}
                                </xf:if>
                            </dd>
                        </dl>
                    </xf:if>
                    <xf:if is="$extras.website && $user.Profile.website">
                        <dl class="pairs pairs--justified">
                            <dt><xf:if is="property('xbMessageUserIcons')"><xf:fa icon="fa-globe fa-fw" data-xf-init="tooltip" title="{{ phrase('website') }}" /> <xf:else />{{ phrase('website') }}</xf:if></dt>
                            <dd><a href="{$user.Profile.website}" rel="nofollow" target="_blank">{$user.Profile.website|url('host', phrase('visit_site'))}</a></dd>
                        </dl>
                    </xf:if>
                    <xf:if is="$extras.custom_fields">
                        <xf:macro template="custom_fields_macros" name="custom_fields_values"
                            arg-type="users"
                            arg-group="personal"
                            arg-set="{$user.Profile.custom_fields}"
                            arg-additionalFilters="{{ ['message'] }}"
                            arg-valueClass="pairs pairs--justified" />
                        <xf:if is="$user.canViewIdentities()">
                            <xf:macro template="custom_fields_macros" name="custom_fields_view"
                                arg-type="users"
                                arg-group="contact"
                                arg-set="{$user.Profile.custom_fields}"
                                arg-additionalFilters="{{ ['message'] }}"
                                arg-valueClass="pairs pairs--justified" />
                        </xf:if>
                    </xf:if>
                </xf:contentcheck>
                </div>
            </xf:if>
        </xf:if>
Below:

Code:
<xf:userbanners user="$user" tag="div" class="message-userBanner" itemprop="jobTitle" />
Then for the tooltips... no userbanners don't support it. You'll have to create custom banners, I talk a little about it here: https://xenforo.com/community/threads/clickable-user-banners.91729/#post-1271851
 

creaky

Customer
Decided to just turn them off for now, will come back to this at a later date.

Just noticed the font on the grip handle in your reply isn't showing in the post above this.

9371
 

Russ

Pixel Exit Staff
Would it be possible to turn this in to a template modification?
Thought I responded... sorry @creaky

Technically you'd be able to do it, just do a simple find and replace but it's a bit dicey in that template as a lot of add-ons target it potentially.
 

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.