1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PM

Discussion in 'Styling and Customization Questions' started by Cees50, Nov 21, 2012.

  1. Cees50

    Cees50 Active Member

    Much of my users are custom to vB.
    Many of them have problems with the conversations. IS it possible to have a PM button in the postbit, were they can click to start an conversation?

    I saw the add pm to conversation_add. But that isnt correct. Is there an othr way or were can i do this and how ? (no coder)
     
    tenants likes this.
  2. Digital Doctor

    Digital Doctor Well-Known Member

  3. Chris D

    Chris D XenForo Developer Staff Member

    Jake Bunce and tenants like this.
  4. Morgain

    Morgain Well-Known Member

    I too felt that PC (Personal Conversations) are quite hidden away. I put a button under the postbit and also a button under the avatar on the profile page. (That addon didnt exist then) I renamed "Start Conversation" to bolded "TALK!" in phrases so the button is tidy.
    I also made the link bigger on the Membercard.
     
    Jake Bunce and tenants like this.
  5. Cees50

    Cees50 Active Member

    Ok thanks..
     
  6. tenants

    tenants Well-Known Member

    I too think it should be directly under the avatars, I might customise some of my forums
    But under the actual avatars on the thread (only 1 click away)

    << Here
     
  7. Cees50

    Cees50 Active Member

    I know, and still they are sending email that they dont know how to do that :eek: They are searching for the sen a PB button
    If i do this, its in the wrong place. in the conversation_add i cant find the
    Code:
            <!-- slot: message_user_info_text -->
            </h3>
        </xen:hook>
    In the message_user_info found the line. But if i put the code there i got an error.
    How did you do that? ;) Im no coder, but if i can read what to do, i found my way. (using TMS)
     
  8. Chris D

    Chris D XenForo Developer Staff Member

    I can make this into an add-on if there is a hook in the right place.

    Where do you want the conversation link to appear?
     
    Jake Bunce likes this.
  9. Cees50

    Cees50 Active Member

    Beneath the name and rank should be nice :)

    Thanks....
     
  10. tenants

    tenants Well-Known Member


    Are you going for a record?
    ... only another 30 and you'll be in the lead ;)
     
    Chris D likes this.
  11. Chris D

    Chris D XenForo Developer Staff Member

    Got this:

    [​IMG]
     
    Jake Bunce and tenants like this.
  12. Cees50

    Cees50 Active Member

    Nice, Is the "start a conversation" a phrase?
     
  13. Chris D

    Chris D XenForo Developer Staff Member

    Jake Bunce likes this.
  14. Morgain

    Morgain Well-Known Member

    Here's what I have on my profile pages under the avatar in the left sidebar.

    Template is member_view

    Code:
    <xen:include template="ad_member_view_below_avatar" />
            <xen:hook name="member_view_sidebar_start" params="{xen:array 'user={$user}'}" />
            <div class="section infoBlock">
                <dl class="secondaryContent pairs">
                    <xen:hook name="member_view_info_block">
                        <xen:if is="{$canStartConversation}">
                            <dd>
                                <a href="{xen:link 'conversations/add', '', 'to={$user.username}'}">
                                    <input type="submit" class="button primary" value="{xen:phrase start_conversation}" />
                                </a>
                            </dd>
                        </xen:if>       
    
    The part in blue is added. My link to start a C is a button.
    If you don't want a button do this:

    Code:
    <xen:include template="ad_member_view_below_avatar" />
            <xen:hook name="member_view_sidebar_start" params="{xen:array 'user={$user}'}" />
            <div class="section infoBlock">
                <dl class="secondaryContent pairs">
                    <xen:hook name="member_view_info_block">
                        <xen:if is="{$canStartConversation}">
                            <dd>
                                <a href="{xen:link 'conversations/add', '', 'to={$user.username}'}">
                                    {xen:phrase start_conversation}"</a>
                            </dd>
                        </xen:if>       
    
    Mysteriously although it says xen:phrase start_conversation searching Phrases on gets me no resultrs! I bet Chris can tell us why.



     
    Jake Bunce likes this.
  15. Chris D

    Chris D XenForo Developer Staff Member

    Seems to work for me. Search for the phrase name on its own - start_conversation
     
    Jake Bunce likes this.
  16. Neil E.

    Neil E. Active Member

    Interesting topic. I changed the link text. I figured if it was called PM user, it would be more recognizable and not that far away from the post bit.

    xenforo84.jpg
     
    Chris D likes this.
  17. Neil E.

    Neil E. Active Member

    That's probably only true for me though since I put the userbit on the right hand side of the forum.
     
  18. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page