Fields
07-01-2014, 11:47 AM
Hello,
I would like to display thread prefixes in the "Latest Threads" forum sidebar block. I tried it for hours and searched for a solution, but I can't get it working.
The template (block_threads) for this sidebar block contains the following code:
<li>
<div class="block smaller">
<div class="blocksubhead">
<a class="collapse" id="collapse_block_newthreads_{vb:raw blockinfo.blockid}" href="{vb:raw relpath}#top"><img alt="" src="{vb:stylevar imgdir_button}/collapse_40b.png" id="collapseimg_newthreads_{vb:raw blockinfo.blockid}"/></a>
<img src="{vb:stylevar imgdir_cms}/widget-forum.png" alt="" />
<span class="blocktitle">{vb:raw blockinfo.title}</span>
</div>
<div class="widget_content blockbody floatcontainer">
<ul id="block_newthreads_{vb:raw blockinfo.blockid}" class="blockrow">
<vb:each from="threads" key="threadid" value="thread">
<li class="<vb:if condition="!$vboptions['avatarenabled']">no</vb:if>avatarcontent floatcontainer widget_post_bit">
<div class="widget_post_userinfo">
<vb:if condition="$vboptions['avatarenabled']">
<div class="cms_widget_post_useravatar widget_post_useravatar">
<vb:if condition="$thread['userid']">
<a class="smallavatar comments_member_avatar_link" href="{vb:link member, {vb:raw thread}}">
</vb:if>
<vb:if condition="$thread['showavatar']">
<img src="{vb:raw thread.avatarurl}" alt="{vb:raw thread.postusername}" />
<vb:else />
<img src="{vb:stylevar imgdir_misc}/unknown.gif" alt="{vb:raw thread.postusername}" />
</vb:if>
<vb:if condition="$thread['userid']">
</a>
</vb:if>
</div>
</vb:if>
</div>
<div class="smallavatartext widget_post_comment<vb:if condition="!$vboptions['avatarenabled']">_noavatar</vb:if>">
<h5 class="widget_post_header"><a href="{vb:raw thread.url}" class="title">{vb:raw thread.title}</a></h5>
<div class="meta">
<vb:if condition="$threadstype == 0">
{vb:stylevar dirmark} {vb:rawphrase posted_by} <vb:if condition="$thread['userid']"><a href="{vb:link member, {vb:raw thread}}">{vb:raw thread.postusername}</a><vb:else />{vb:raw thread.postusername}</vb:if> {vb:stylevar dirmark}({vb:rawphrase x_replies, {vb:raw thread.replycount}})
<br />{vb:raw thread.date}<vb:if condition="!$show['detailedtime']">, <span class="time">{vb:raw thread.time}</span></vb:if> {vb:rawphrase in_x, {vb:link forum, {vb:raw thread}, null, 'forumid', 'forumtitle'}, {vb:raw thread.forumtitle}}
<vb:else />
{vb:stylevar dirmark}{vb:rawphrase last_post_by} <vb:if condition="$thread['lastposterid']"><a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}">{vb:raw thread.lastposter}</a><vb:else />{vb:raw thread.lastposter}</vb:if> {vb:stylevar dirmark}({vb:rawphrase x_replies, {vb:raw thread.replycount}})
<br />
{vb:raw thread.lastpostdate}<vb:if condition="!$show['detailedtime']">, <span class="time">{vb:raw thread.lastposttime}</span></vb:if> {vb:rawphrase in_x, {vb:link forum, {vb:raw thread}, null, 'forumid', 'forumtitle'}, {vb:raw thread.forumtitle}}
</vb:if>
</div>
</div>
</li>
</vb:each>
</ul>
</div>
</div>
<div class="underblock"></div>
</li>
Can anyone tell me, what I have to add to get prefixes showing in the block?
I appreciate your help!
Best regards,
Fields (vB 4.2.2)
I would like to display thread prefixes in the "Latest Threads" forum sidebar block. I tried it for hours and searched for a solution, but I can't get it working.
The template (block_threads) for this sidebar block contains the following code:
<li>
<div class="block smaller">
<div class="blocksubhead">
<a class="collapse" id="collapse_block_newthreads_{vb:raw blockinfo.blockid}" href="{vb:raw relpath}#top"><img alt="" src="{vb:stylevar imgdir_button}/collapse_40b.png" id="collapseimg_newthreads_{vb:raw blockinfo.blockid}"/></a>
<img src="{vb:stylevar imgdir_cms}/widget-forum.png" alt="" />
<span class="blocktitle">{vb:raw blockinfo.title}</span>
</div>
<div class="widget_content blockbody floatcontainer">
<ul id="block_newthreads_{vb:raw blockinfo.blockid}" class="blockrow">
<vb:each from="threads" key="threadid" value="thread">
<li class="<vb:if condition="!$vboptions['avatarenabled']">no</vb:if>avatarcontent floatcontainer widget_post_bit">
<div class="widget_post_userinfo">
<vb:if condition="$vboptions['avatarenabled']">
<div class="cms_widget_post_useravatar widget_post_useravatar">
<vb:if condition="$thread['userid']">
<a class="smallavatar comments_member_avatar_link" href="{vb:link member, {vb:raw thread}}">
</vb:if>
<vb:if condition="$thread['showavatar']">
<img src="{vb:raw thread.avatarurl}" alt="{vb:raw thread.postusername}" />
<vb:else />
<img src="{vb:stylevar imgdir_misc}/unknown.gif" alt="{vb:raw thread.postusername}" />
</vb:if>
<vb:if condition="$thread['userid']">
</a>
</vb:if>
</div>
</vb:if>
</div>
<div class="smallavatartext widget_post_comment<vb:if condition="!$vboptions['avatarenabled']">_noavatar</vb:if>">
<h5 class="widget_post_header"><a href="{vb:raw thread.url}" class="title">{vb:raw thread.title}</a></h5>
<div class="meta">
<vb:if condition="$threadstype == 0">
{vb:stylevar dirmark} {vb:rawphrase posted_by} <vb:if condition="$thread['userid']"><a href="{vb:link member, {vb:raw thread}}">{vb:raw thread.postusername}</a><vb:else />{vb:raw thread.postusername}</vb:if> {vb:stylevar dirmark}({vb:rawphrase x_replies, {vb:raw thread.replycount}})
<br />{vb:raw thread.date}<vb:if condition="!$show['detailedtime']">, <span class="time">{vb:raw thread.time}</span></vb:if> {vb:rawphrase in_x, {vb:link forum, {vb:raw thread}, null, 'forumid', 'forumtitle'}, {vb:raw thread.forumtitle}}
<vb:else />
{vb:stylevar dirmark}{vb:rawphrase last_post_by} <vb:if condition="$thread['lastposterid']"><a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}">{vb:raw thread.lastposter}</a><vb:else />{vb:raw thread.lastposter}</vb:if> {vb:stylevar dirmark}({vb:rawphrase x_replies, {vb:raw thread.replycount}})
<br />
{vb:raw thread.lastpostdate}<vb:if condition="!$show['detailedtime']">, <span class="time">{vb:raw thread.lastposttime}</span></vb:if> {vb:rawphrase in_x, {vb:link forum, {vb:raw thread}, null, 'forumid', 'forumtitle'}, {vb:raw thread.forumtitle}}
</vb:if>
</div>
</div>
</li>
</vb:each>
</ul>
</div>
</div>
<div class="underblock"></div>
</li>
Can anyone tell me, what I have to add to get prefixes showing in the block?
I appreciate your help!
Best regards,
Fields (vB 4.2.2)