XenForo Tutorials

Start a Conversation on Profile Pages

Submitted by Oxygen, , Thread ID: 16055

Thread Closed
Oxygen
<div class="postbit-usertitle">
Prime
Level:
0
Reputation:
35
Posts:
608
Likes:
62
Credits:
1.47K
23-12-2015, 02:00 PM
#1
The following will add "Start a Conversation on Profile Pages"

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>

[Image: 6fdc7996ea91181a27bc797de474d9c6.png]

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>

[Image: 99585aba47644d6e1b0a9cf8b05d9a52.png]
[Image: UeTXrZ5.png]

RE: Start a Conversation on Profile Pages

johnybrava
Closed Account
Level:
0
Reputation:
0
Posts:
15
Likes:
0
Credits:
15
16-08-2017, 11:48 PM
#2
thank you my friend i need 15 post for download!

Users browsing this thread: 1 Guest(s)