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

XF 1.3 Move privateControls button into the messageUserInfo

Discussion in 'Styling and Customization Questions' started by tonnyz, Oct 5, 2014.

  1. tonnyz

    tonnyz Member

    Hi, I wanna move my privateControls .ip into the most bottom area of messageUserInfo

    any help for this ?

    thx :)
     
  2. sinucello

    sinucello Well-Known Member

    Hi, I just did something similar with the post-date:
    https://xenforo.com/community/threads/css-js-add-font-awesome-clock-icon-to-date-phrase.84428/

    First edit the "post" template and comment out the line

    Code:
    <xen:if is="{$canViewIps} AND {$post.ip_id}"><a href="{xen:link posts/ip, $post}" class="item control ip OverlayTrigger"><span></span>{xen:phrase ip}</a></xen:if>
    like this:
    Code:
    <xen:comment>
    <xen:if is="{$canViewIps} AND {$post.ip_id}"><a href="{xen:link posts/ip, $post}" class="item control ip OverlayTrigger"><span></span>{xen:phrase ip}</a></xen:if>
    </xen:comment>
    then add the line to the "message_user_info" template.

    You can also use the template modification system which I recommend. Normally, the button to create new template modifications is hidden:
    https://xenforo.com/community/threads/create-template-modification-is-missing.56358/

    but you can enter the URL directly:
    yourdomain.com/admin.php?template-modifications/add

    I love it as it make updating the templates much easier.
    all the best,
    Sacha
     
    AndyB and tonnyz like this.
  3. tonnyz

    tonnyz Member

    Works perfectly ! Thanks (y)
     

Share This Page