Start a Conversation on Profile Pages

by Oxygen - 23-12-2015, 01:00 PM
<div class="postbit-usertitle">
Posts:
642
Joined:
Feb 2015
Likes:
53
Credits:
1,318
Reputation:
35
3 Years of Service
#1
OP
Posted: 23-12-2015, 01:00 PM
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]
Newbie
Posts:
15
Joined:
May 2017
Likes:
0
Credits:
15
Reputation:
0
1/2 Year of Service
#2
Posted: 11-05-2017, 01:07 AM
Oxygen você é esplêndido, você é muito bom fazendo post de tutorias, continua, eu confio no seiseu potencial.
Closed Account
Posts:
15
Joined:
Aug 2017
Likes:
0
Credits:
15
Reputation:
0
1/2 Year of Service
#3
Posted: 16-08-2017, 10:48 PM
thank you my friend i need 15 post for download!
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)