Thanks. Updated the first post.Well, the quoted text isn't shown, so the avatar just shows up by itself. Just a minor issue.
Sheryl on ignore
View attachment 23252
Sheryl not ignored:
View attachment 23254
If CyberAp doesn't mind i would like to have your code too, my users to massive use of nested quotes..I don't want to step on CyberAP's toes so I'll PM you.
that seems to be an issue with several small addons too (for example 'likes given'), would be nice if this can be solved by XF generallyI spoke with Mike today about this and he had a play around with the code.
Unfortunately it doesn't look like it's possible to show the default avatar for those who haven't uploaded one without some additional php code.
Specifically an avatar.php file that can handle everything with only a user ID.
I don't mind if you want to share a code with community.I don't want to step on CyberAP's toes so I'll PM you.
Great news, though.I know Mike was thinking about it so I'll speak to him again and see what he's decided.
Edit: He said it may be possible to include it in 1.2 (not definite).
Thanks . I originally used your code and agree it works fine with nested quotes.I don't mind if you want to share a code with community.
However the code in the first post should work fine with nested quotes.
<xen:require css="bb_code.css" />
<xen:if is="{$attributes.member}">
<div class="{xen:if $ignored, 'ignored'}">
</xen:if>
<xen:if is="{$attributes.member}">
<xen:set var="$avaUser.user_id">{$attributes.member}</xen:set>
<xen:set var="$avaUser.username">{$nameHtml}</xen:set>
<xen:set var="$avaUser.avatar_date">1</xen:set>
<xen:avatar user="$avaUser" size="s" class="QuoteAvatar" />
</xen:if>
<xen:comment><!-- content is escaped via parser --></xen:comment>
<div class="bbCodeBlock bbCodeQuote{xen:if $ignored, ' ignored'}{xen:if $attributes.member, ' hasAvatar'}"{xen:if $nameHtml, ' data-author="{$nameHtml}"'}>
<aside>
<xen:if is="{$nameHtml}">
<div class="attribution type">{xen:phrase x_said, 'name={xen:raw $nameHtml}'}:
<xen:if is="{$source}">
<a href="{xen:link 'goto/{$source.type}', '', 'id={$source.id}'}#{$source.type}-{$source.id}" class="AttributionLink">↑</a>
</xen:if>
</div>
</xen:if>
<blockquote>{xen:raw $content}</blockquote>
</aside>
<span class="arrow"></span>
</div>
<xen:if is="{$attributes.member}">
</div>
</xen:if>
/* Avatars for quotes */
body .messageText .QuoteAvatar {
float: left;
margin: 0;
padding: 0;
box-shadow: none;
}
.messageText .bbCodeQuote.hasAvatar {
margin-bottom: 10px;
margin-left: 68px;
position: relative;
box-shadow: none;
}
.messageText .bbCodeQuote.hasAvatar .arrow {
border-radius: 0;
height: 20px;
width: 10px;
position: absolute;
left: -11px;
top: 2px;
overflow: hidden;
}
.messageText .bbCodeQuote.hasAvatar .arrow:after {
content: " ";
background: @bbCodeQuote.border-color;
height: 9px;
width: 9px;
top: 5px;
left: 5px;
position: absolute;
box-shadow: none;
transform: rotate(45deg);
-ms-transform: rotate(45deg);
}
I changed the layout and feel it works much better this way.
View attachment 23315
Having said that, no-one uses nested quotes on my site, they're happy to use separate quoting.
We use essential cookies to make this site work, and optional cookies to enhance your experience.