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

XF 1.5 Add tool tip to users location in postbit

Discussion in 'Styling and Customization Questions' started by tommydamic68, Jan 9, 2016.

  1. tommydamic68

    tommydamic68 Well-Known Member

    Does anyone know how to add a tooltip to user location in the post bit?
     
  2. tommydamic68

    tommydamic68 Well-Known Member

    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.png Screen Shot 2016-01-09 at 3.01.01 PM.png Screen Shot 2016-01-09 at 3.01.10 PM.png
     
    Last edited: Jan 10, 2016
    Focker, Sunka and wang like this.

Share This Page