• 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

sinucello

Well-known member
#2
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
 
#3
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
Works perfectly ! Thanks (y)