Start Conversation Button in User Profile

Start Conversation Button in User Profile 0.9

No permission to download

otto

Well-known member
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:
@otto

Does this work on the new Xenforo 2.0
And/Or is there planned support for this once the official support XF 2.0 comes?

If the author or anyone knows the answer that would be great!
 
I doubt it will work with 2.0 as the template system has significantly changed. For support, I'm pretty sure they only support official add-ons like Media Gallery.
 
Back
Top Bottom