XF 1.5 Add tool tip to users location in postbit

Just in case anyone wanted to add a tooltip to the users location in the post bit as well as shorten the length of the users location being that its too long and drops down to another line, this is an all in one fix for both. (I hope I did it right - it appears to work fine.)

Edit Template: message_user_info

Find this code:
Code:
<xen:if is="@messageShowLocation AND {$user.location}">
                    <dl class="pairsJustified">
                        <dt>{xen:phrase location}:</dt>
                        <dd><a href="{xen:link 'misc/location-info', '', 'location={xen:string censor, $user.location, '-'}'}" target="_blank" rel="nofollow" itemprop="address" class="concealed">{xen:helper snippet, {xen:string censor, $user.location}, 11}</a></dd>
                    </dl>
                
                </xen:if>
>
Replace with this:

Code:
<xen:if is="@messageShowLocation AND {$user.location}">
                    <dl class="pairsJustified">
                        <dt>{xen:phrase location}:</dt>
                        <dd><a href="{xen:link 'misc/location-info', '', 'location={xen:string censor, $user.location, '-'}'}" target="_blank" rel="nofollow" itemprop="address" class="Tooltip" title="{$user.location}">{xen:helper snippet, {xen:string censor, $user.location}, 11}</a></dd>
                    </dl>
                
                </xen:if>

Screen Shot 2016-01-09 at 3.00.46 PM.webp Screen Shot 2016-01-09 at 3.01.01 PM.webp Screen Shot 2016-01-09 at 3.01.10 PM.webp
 
Last edited:
Back
Top Bottom