rares.stanescu
08-29-2012, 12:31 PM
Hello, I am using this template vbcms_searchresult_thread to show new threads from some subforums on my vbulletin forum.
At this moment the widget displays the thread preview text, thread start date and thread author, thread name
Please can anyone tell me how I can change it with last post preview text, last post date, last post author and keep the thread name?
the code is the following
<div class="cms_widget_post_bit post-list-entry">
<div class="cms_widget_post_comment<vb:if condition="!$vboptions['avatarenabled']">_noavatar</vb:if>">
<vb:comment><vb:if condition="$show['gotonewpost']">
<a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_newpost}}" id="thread_gotonew_{vb:raw thread.realthreadid}" class="cms_widget_post_bit"><img class="inlineimg" src="{vb:stylevar imgdir_button}/firstnew.gif" alt="{vb:rawphrase go_to_first_new_post}" border="0" /></a>
</vb:if></vb:comment>
<h4 class="cms_widget_post_header"><a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_lastpost}}#post{vb:raw thread.lastpostid}" class="cms_widget_post_bit">{vb:raw thread.title}
</a></h4>
<p class="cms_widget_post_content">{vb:raw thread.preview}</p>
<div class="post-list-details">
<span class="time forum-sidebar-time" style="padding-top: 12px;">
{vb:raw thread.starttime}
</span>
<div style="float:left;">
{vb:rawphrase thread_starter} <a href="{vb:link member, {vb:raw userinfo}}" class="starter-link cms_widget_post_bit">{vb:raw thread.postusername}</a>
<br/> {vb:raw thread.startdate}{vb:raw thread.lastpostid}{vb:raw post.username}
</div>
<a href="{vb:link thread, {vb:raw thread}}" class="cms_widget_post_bit">
<span class="posts-count
<vb:if condition="$thread['replycount'] > 15">
post-count-big
<vb:elseif condition="$thread['replycount'] > 6" />
post-count-medium
<vb:else />
post-count-small
</vb:if>
" style="margin-left:5px;">
{vb:raw thread.replycount}
</span></a>
</div>
</div>
</div>
Thanks a lot
At this moment the widget displays the thread preview text, thread start date and thread author, thread name
Please can anyone tell me how I can change it with last post preview text, last post date, last post author and keep the thread name?
the code is the following
<div class="cms_widget_post_bit post-list-entry">
<div class="cms_widget_post_comment<vb:if condition="!$vboptions['avatarenabled']">_noavatar</vb:if>">
<vb:comment><vb:if condition="$show['gotonewpost']">
<a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_newpost}}" id="thread_gotonew_{vb:raw thread.realthreadid}" class="cms_widget_post_bit"><img class="inlineimg" src="{vb:stylevar imgdir_button}/firstnew.gif" alt="{vb:rawphrase go_to_first_new_post}" border="0" /></a>
</vb:if></vb:comment>
<h4 class="cms_widget_post_header"><a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_lastpost}}#post{vb:raw thread.lastpostid}" class="cms_widget_post_bit">{vb:raw thread.title}
</a></h4>
<p class="cms_widget_post_content">{vb:raw thread.preview}</p>
<div class="post-list-details">
<span class="time forum-sidebar-time" style="padding-top: 12px;">
{vb:raw thread.starttime}
</span>
<div style="float:left;">
{vb:rawphrase thread_starter} <a href="{vb:link member, {vb:raw userinfo}}" class="starter-link cms_widget_post_bit">{vb:raw thread.postusername}</a>
<br/> {vb:raw thread.startdate}{vb:raw thread.lastpostid}{vb:raw post.username}
</div>
<a href="{vb:link thread, {vb:raw thread}}" class="cms_widget_post_bit">
<span class="posts-count
<vb:if condition="$thread['replycount'] > 15">
post-count-big
<vb:elseif condition="$thread['replycount'] > 6" />
post-count-medium
<vb:else />
post-count-small
</vb:if>
" style="margin-left:5px;">
{vb:raw thread.replycount}
</span></a>
</div>
</div>
</div>
Thanks a lot