• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Start Conversation Button in User Profile

Start Conversation Button in User Profile 0.9

No permission to download

otto

Well-known member
#1

rafass

Well-known member
#5
Hey Otto, Thanks for this mod. (y)
[To my own references] I've modified the replacement to show the button to guests and if it's clicked open the form to login in or register:
gif.gif
PHP:
<xen:if is="{$visitor.user_id}">
<xen:hook name="member_view_sidebar_start" params="{xen:array 'user={$user}'}" />
<center><xen:if is="{$canStartConversation}"><a class="callToAction" href="{xen:link conversations/add, '', 'to={$user.username}'}"><span>{xen:phrase start_conversation}</span></a></xen:if></center>
<xen:else />
 <center><label for="LoginControl"><a href="{xen:link login}" class="callToAction"><span>{xen:phrase start_conversation}</span></a></label></center>
</xen:if>
 
Last edited: