1. 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 0.9

Add a new "Start Conversation" Button in user profile sidebar

  1. otto

    otto Well-Known Member

    rafass likes this.
  2. zoldos

    zoldos Well-Known Member

    Nice! Just what I was looking for. Good with XF 1.4.6?
     
    otto likes this.
  3. otto

    otto Well-Known Member

    It should also work in 1.4.6... (y)
     
    zoldos likes this.
  4. zoldos

    zoldos Well-Known Member

    Cool! Mod works great, thank you! :)
     
    otto likes this.
  5. rafass

    rafass 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}"><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: Aug 24, 2015
    zoldos and otto like this.
  6. otto

    otto Well-Known Member

    Nice... :)

    I can put this as a option in the next release. (y)
     
    rafass likes this.

Share This Page