XenForo Tutorials
Start a Conversation on Profile Pages
Submitted by Oxygen, 23-12-2015, 02:00 PM, Thread ID: 16055
Thread Closed
The following will add "Start a Conversation on Profile Pages"
In the member_view template look for the following:
and add the following before </xen:contentcheck>:
The end result:
If you would like to remove "Start a Conversation" from the information page, then, follow this:
In member_view find the following:
and remove the following:
The result:
In the member_view template look for the following:
Code:
<xen:follow user="$user" title="" tag="li" />
<xen:if is="{xen:helper isIgnored, $user.user_id}">
<li><a href="{xen:link members/unignore, $user}" class="FollowLink">{xen:phrase unignore}</a></li>
<xen:elseif is="{$canIgnore}" />
<li><a href="{xen:link members/ignore, $user}" class="FollowLink">{xen:phrase ignore}</a></li>
</xen:if>
<xen:if is="{$canReport}">
<li><a href="{xen:link members/report, $user}" class="OverlayTrigger">{xen:phrase report}</a></li>
</xen:if>
</xen:contentcheck>
</ul>
</xen:if>
and add the following before </xen:contentcheck>:
Code:
<xen:if is="{$canStartConversation}"><a href="{xen:link conversations/add, '', 'to={$user.username}'}">{xen:phrase start_conversation}</a></xen:if>
The end result:
Code:
<xen:follow user="$user" title="" tag="li" />
<xen:if is="{xen:helper isIgnored, $user.user_id}">
<li><a href="{xen:link members/unignore, $user}" class="FollowLink">{xen:phrase unignore}</a></li>
<xen:elseif is="{$canIgnore}" />
<li><a href="{xen:link members/ignore, $user}" class="FollowLink">{xen:phrase ignore}</a></li>
</xen:if>
<xen:if is="{$canReport}">
<li><a href="{xen:link members/report, $user}" class="OverlayTrigger">{xen:phrase report}</a></li>
</xen:if>
<xen:if is="{$canStartConversation}"><a href="{xen:link conversations/add, '', 'to={$user.username}'}">{xen:phrase start_conversation}</a></xen:if>
</xen:contentcheck>
</ul>
</xen:if>
If you would like to remove "Start a Conversation" from the information page, then, follow this:
In member_view find the following:
Code:
<div class="primaryContent">
<div class="pairsColumns contactInfo">
<dl>
<dt>{xen:phrase content}:</dt>
<dd><ul>
<xen:hook name="member_view_search_content_types">
<li><a href="{xen:link search/member, '', 'user_id={$user.user_id}'}" rel="nofollow">{xen:phrase find_all_content_by_x, 'name={$user.username}'}</a></li>
<li><a href="{xen:link search/member, '', 'user_id={$user.user_id}', 'content=thread'}" rel="nofollow">{xen:phrase find_all_threads_by_x, 'name={$user.username}'}</a></li>
</xen:hook>
</ul></dd>
</dl>
<xen:if is="{$canStartConversation}">
<dl><dt>{xen:phrase conversation}:</dt> <dd><a href="{xen:link 'conversations/add', '', 'to={$user.username}'}">{xen:phrase start_conversation}</a></dd></dl>
</xen:if>
<xen:if is="{$customFieldsGrouped.contact}">
<xen:foreach loop="$customFieldsGrouped.contact" value="$field">
<xen:include template="custom_field_view" />
</xen:foreach>
</xen:if>
</div>
</div>
</div>
and remove the following:
Code:
<xen:if is="{$canStartConversation}">
<dl><dt>{xen:phrase conversation}:</dt> <dd><a href="{xen:link 'conversations/add', '', 'to={$user.username}'}">{xen:phrase start_conversation}</a></dd></dl>
</xen:if>
The result:
Code:
<div class="primaryContent">
<div class="pairsColumns contactInfo">
<dl>
<dt>{xen:phrase content}:</dt>
<dd><ul>
<xen:hook name="member_view_search_content_types">
<li><a href="{xen:link search/member, '', 'user_id={$user.user_id}'}" rel="nofollow">{xen:phrase find_all_content_by_x, 'name={$user.username}'}</a></li>
<li><a href="{xen:link search/member, '', 'user_id={$user.user_id}', 'content=thread'}" rel="nofollow">{xen:phrase find_all_threads_by_x, 'name={$user.username}'}</a></li>
</xen:hook>
</ul></dd>
</dl>
<xen:if is="{$customFieldsGrouped.contact}">
<xen:foreach loop="$customFieldsGrouped.contact" value="$field">
<xen:include template="custom_field_view" />
</xen:foreach>
</xen:if>
</div>
</div>
</div>
RE: Start a Conversation on Profile Pages
16-08-2017, 11:48 PM
#2 thank you my friend i need 15 post for download!
Users browsing this thread: 3 Guest(s)