thank you from a template newb.siropuRecentPosts .structItem-title {
font-size: 11px;
}
In theIs the a way, for link to post, which was read already to refer to latest post instead of first?
siropu_recent_posts_macros
template replace:link('threads' . (($thread.isUnread() AND $options.link_to_first_unread) ? '/unread' : ''), $thread)
link('threads/unread', $thread)
In thesiropu_recent_posts_macros
template replace:
link('threads' . (($thread.isUnread() AND $options.link_to_first_unread) ? '/unread' : ''), $thread)
With:
link('threads/unread', $thread)
With some small template changes, yes. But the issue is that it will display the entire post content so it can become very large.is there a way for the sidebar to show quotes and thumbnail images, like the old XF1.5 Widget Framework recent posts sidebar?
nice one....i didnt realize this was the default....any chance to get that into an option so we wont have to hack the template each upgrade?In thesiropu_recent_posts_macros
template replace:
link('threads' . (($thread.isUnread() AND $options.link_to_first_unread) ? '/unread' : ''), $thread)
With:
link('threads/unread', $thread)
With some small template changes, yes. But the issue is that it will display the entire post content so it can become very large.
Like I said, with some template changes but it will display the entire post basically with quote, attachments and everything.s there a way to include quote formatting and thumbnail images from the latest reply?
siropu_recent_posts_macros
template and replace:<xf:if is="$options.post_excerpt AND ($xf.visitor.hasNodePermission($thread.node_id, 'viewContent') || !$options.post_excerpt_permission)">
<div class="siropuRecentPostsExcerpt">{{ snippet($thread.LastPost.message, $options.post_excerpt_length, {'stripBbCode': true}) }}</div>
</xf:if>
<xf:if is="$xf.visitor.hasNodePermission($thread.node_id, 'viewContent')">
<div class="siropuRecentPostsExcerpt">{{ bb_code_snippet($thread.LastPost.message, 'post', '$thread.LastPost', {
'attachments': $thread.LastPost.attach_count ? $thread.LastPost.Attachments : [],
'viewAttachments': $thread.canViewAttachments(),
'post': $thread.LastPost
}) }}</div>
</xf:if>
If you could show a snapshot how it looks in action I would be gratefulBrilliant! Thank you...my forum members are ecstatic to have this back.
If you could show a snapshot how it looks in action I would be grateful
Thank you as well @Siropu, is there a way to remove quotes only?Go tosiropu_recent_posts_macros
template and replace:
With:Code:<xf:if is="$options.post_excerpt AND ($xf.visitor.hasNodePermission($thread.node_id, 'viewContent') || !$options.post_excerpt_permission)"> <div class="siropuRecentPostsExcerpt">{{ snippet($thread.LastPost.message, $options.post_excerpt_length, {'stripBbCode': true}) }}</div> </xf:if>
Code:<xf:if is="$xf.visitor.hasNodePermission($thread.node_id, 'viewContent')"> <div class="siropuRecentPostsExcerpt">{{ bb_code_snippet($thread.LastPost.message, 'post', '$thread.LastPost', { 'attachments': $thread.LastPost.attach_count ? $thread.LastPost.Attachments : [], 'viewAttachments': $thread.canViewAttachments(), 'post': $thread.LastPost }) }}</div> </xf:if>
would be nice if this could exclude quotes from the post preview snippet....otherwise it just repeats previous posts in the snippet instead of the new content...
that possible?
thank you
Look for{'stripBbCode': true}
insiropu_recent_posts_macros
template. ReplacestripBbCode
withstripQuote
.
Close but does not work for full post option.
Can't find an option for that.is there a way to remove quotes only?
Thank you for checking.Can't find an option for that.
We use essential cookies to make this site work, and optional cookies to enhance your experience.