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

XF 1.4 How to remove this link?

Discussion in 'Styling and Customization Questions' started by imthebest, Aug 25, 2014.

  1. imthebest

    imthebest Formerly Super120


    I want to keep showing "Glasgow, UK" but without the link. How I can do that? I tried looking for the code at the member_view template but it isn't there. Any ideas?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    It's handled in PHP so it's not something you can change in the template.

    $location '<a href="'
    XenForo_Link::buildPublicLink('misc/location-info''', array('location' => $user['locationCensored']))
    '" class="concealed" target="_blank" rel="nofollow">'
    caoanh204 likes this.
  3. Amaury

    Amaury Well-Known Member

    Wouldn't you just find every instance of this in the member_view template (and other templates with the location):

    <xen:if is="{$user.location}">
                        <dl><dt>{xen:phrase location}:</dt>
                            <dd><a href="{xen:link misc/location-info, '', 'location={xen:string censor, $user.location, 'x'}'}" rel="nofollow" target="_blank" itemprop="address">{xen:string censor, $user.location}</a></dd></dl>
    And change it to this:

    <xen:if is="{$user.location}">
                        <dl><dt>{xen:phrase location}:</dt>
    I just tested it, and doing the above made the location plain text in the block below the Following and Followers blocks.
  4. imthebest

    imthebest Formerly Super120

    @Amaury I already did that however as I said on my original message that specific link isn't on the member_view template.

    Anyone can confirm what @Brogan said? i.e. that it isn't editable in the templates and needs direct code manipulation.

  5. Ernest L. Defoe

    Ernest L. Defoe Well-Known Member

    If @Brogan says it you can put money on it that it's correct.
    Amaury likes this.
  6. imthebest

    imthebest Formerly Super120

    Okay @Brogan could you please tell me what file should I edit?
  7. imthebest

    imthebest Formerly Super120

    Please I need to know which file should I edit since it appears that this can't be done editing templates :(
  8. Brogan

    Brogan XenForo Moderator Staff Member

    imthebest likes this.

Share This Page