[cXF] Conversation Button under Avatar

[cXF] Conversation Button under Avatar 2.7.4

No permission to download
Kind of lost with this bit:
Where can I translate button text?
find phrase conversationbutton_profile_new and edit it to change text for button on profile page
find phrase conversationbutton_info_avatar_new and edit it to change text for button on postbit under avatar
find phrase conversationbutton_info_new and edit it to change text for button in postbit under user information
find phrase conversationbutton_staff_new and edit it to change text for button in online staff sidebar block
find phrase conversationbutton_card_new and edit it to change text for button on member card

All I wan to show is the envelope icon on the postbit only, but the above doesn't tell you what to change the text for.
Like this:
Screen Shot 2557-10-12 at 6.11.28 PM.webp


Any help?
 
Last edited:
Thanks that worked fine
However on my skin the envelope needs to be changed in color, any way to do that?
 
Thanks that worked fine
However on my skin the envelope needs to be changed in color, any way to do that?

Change it in style properties. For example, Go to Style Properties > Conversation Button under Avatar [postbit username] then in Button (postbit icon) and Button (postbit icon), Hover change the text colour to suit your needs - that will change it in the postbit. If you need to change the colour elsewhere just go into the other style properties and do the same again.
 
The envelope breaks up my usernames if they are a bit lengthy, wish it could be located elsewhere or at least given some additional options to do so. :)
 
Last edited:
Think I found a bug. I couldn't figure out why the hell all of my conversations had lost the editor. Starting a new conversation, replying to one, everything had lost the ability to use the editor toolbar. What I finally found out was that if you have the option to have the editor not show up in the popup overlay when the button is activated, it turns off the editor to ALL conversation functions.
 
This is how it works if you don't have editor visible, but only when creating conversations.

When you reply to conversation the editor is visible. If you don't see it check your template modification if all numbers are green for this add-on.
 
Sorry, don't understand how and why to separate those two? Really don't understand what you mean :confused:
Hmmmm. So, on the normal page, I have the icon setup. But now, I can't seem to get the conversation button to show up on the member card popup without also adding the button to the user avatar itself.

Actually, now that I'm playing around with the settings, I can't get the button to show up on the member card popup at all for some reason.


Edit - check that, I figured it out. The new theme I installed isn't showing the button on the member card for some reason. That's why I couldn't see it. When I switched back to my main theme I found it again. Suggestions on what might be causing it not to show up?
 
Ok, now I've tested with icon in postbit (works when clicks on it).

Tested with button under avatar - works.

Tested with button in member card - works.

Try refresing your forum (CTRL + F5). Check template modifications if all numbers are green (for this add-on).
 
Ok, now I've tested with icon in postbit (works when clicks on it).

Tested with button under avatar - works.

Tested with button in member card - works.

Try refresing your forum (CTRL + F5). Check template modifications if all numbers are green (for this add-on).
Yep, member card is showing 1 green/2 grey/0 red.

Template contents:
Code:
<xen:edithint template="xenforo_overlay.css" /> <xen:require css="member_card.css" /> <div id="memberCard{$user.user_id}" data-overlayClass="memberCard"> <div class="avatarCropper"> <a class="avatar NoOverlay Av{$user.user_id}l" href="{xen:link members, $user}"> <img src="{xen:helper avatar, {$user}, l}" alt="" style="{xen:helper avatarCropCss, $user}" /> </a> <xen:if hascontent="true"> <div class="modControls" style="position:absolute; bottom:0px; right:0px"> <xen:contentcheck> <xen:if is="{$canEditUser}"><a href="{xen:link members/edit, $user}">{xen:phrase edit}</a></xen:if> <xen:if is="{$canCleanSpam}"><a href="{xen:link spam-cleaner, $user}" class="OverlayTrigger">{xen:phrase spam}</a></xen:if> <xen:if is="{$canWarn}"><a href="{xen:link members/warn, $user}">{xen:phrase warn}</a></xen:if> <xen:if is="{$canBanUsers}"> <xen:if is="{$user.is_banned}"> <a href="{xen:adminlink banning/users/lift, $user}">{xen:phrase lift_ban}</a> <xen:else /> <a href="{xen:adminlink banning/users/add, $user}">{xen:phrase ban}</a></xen:if> </xen:if> </xen:contentcheck> </div> </xen:if> </div> <div class="userInfo"> <h3 class="username"><xen:username user="$user" class="NoOverlay" /></h3> <div class="userTitleBlurb"> <h4 class="userTitle">{xen:helper userTitle, $user}</h4> <div class="userBlurb">{xen:helper userBlurb, $user, 0}</div> </div> <blockquote class="status">{xen:helper bodytext, $user.status}</blockquote> <div class="userLinks"> <xen:hook name="member_card_links"> <a href="{xen:link members, $user}">{xen:phrase profile_page}</a> <xen:if is="{$visitor.user_id} AND {$user.user_id} != {$visitor.user_id}"> <xen:if is="{$canStartConversation}"><a href="{xen:link conversations/add, '', 'to={$user.username}'}">{xen:phrase start_conversation}</a></xen:if> <xen:follow user="$user" class="Tooltip" /> <xen:if is="{xen:helper isIgnored, $user.user_id}"><a href="{xen:link members/unignore, $user}" class="FollowLink">{xen:phrase unignore}</a><xen:elseif is="{$canIgnore}" /><a href="{xen:link members/ignore, $user}" class="FollowLink">{xen:phrase ignore}</a></xen:if> </xen:if> </xen:hook> </div> <dl class="userStats pairsInline"> <xen:hook name="member_card_stats"> <dt>{xen:phrase member_since}:</dt> <dd>{xen:date $user.register_date}</dd> <!-- slot: pre_messages --> <dt>{xen:phrase messages}:</dt> <dd><a href="{xen:link search/member, '', 'user_id={$user.user_id}'}" class="concealed" rel="nofollow">{xen:number $user.message_count}</a></dd> <!-- slot: pre_likes --> <dt>{xen:phrase likes_received}:</dt> <dd>{xen:number $user.like_count}</dd> <!-- slot: pre_trophies --> <dt>{xen:phrase trophy_points}:</dt> <dd><a href="{xen:link members/trophies, $user}" class="concealed OverlayTrigger">{xen:number $user.trophy_points}</a></dd> <xen:if is="{$canViewWarnings}"> <dt>{xen:phrase warning_points}:</dt> <dd><a href="{xen:link members, $user}#warnings" class="concealed">{xen:number $user.warning_points}</a></dd> </xen:if> </xen:hook> </dl> <xen:if is="{$canViewOnlineStatus}"> <dl class="pairsInline lastActivity"> <dt>{xen:phrase x_was_last_seen, 'username={$user.username}'}:</dt> <dd> <xen:if is="{$user.activity} AND {$canViewCurrentActivity}"> <xen:if is="{$user.activity.description}"> {$user.activity.description}<xen:if is="{$user.activity.itemTitle}"> <em><a href="{$user.activity.itemUrl}" class="concealed">{$user.activity.itemTitle}</a></em></xen:if>, <xen:else /> {xen:phrase viewing_unknown_page}, </xen:if> <xen:datetime time="{$user.effective_last_activity}" class="muted" /> <xen:else /> <xen:datetime time="{$user.effective_last_activity}" /> </xen:if> </dd> </dl> </xen:if> </div> <a class="close OverlayCloser"></a> </div>

Replace:
Code:
$0
<xen:require css="conversationbutton_card.css" />
<xen:if is="@cbuaCard">
<xen:if is="{$visitor.permissions.conversation.start} AND {$visitor.user_id} != {$user.user_id}">
    <dl class="convButtonCard convButtonCardM"><a href="{xen:link 'conversations/add', '', 'to={$user.username}'}" <xen:if is="@cbuaShowOverlay">class="OverlayTrigger" data-cacheOverlay="false"</xen:if> >{xen:phrase conversationbutton_card_new}</a></dl>
</xen:if>
</xen:if>

<xen:if is="@cbuaMobileCard">
<style type="text/css">
<xen:if is="@enableResponsive">
@media (max-width:@maxResponsiveMediumWidth)
{
    .convButtonCardM {
        display: none;
    }
}
</xen:if>
</style>
</xen:if>

Thoughts on a fix?
 
Top Bottom