PDA

View Full Version : Changing format of CMS WIDGET RECENT THREAD


Volvoholic
02-04-2012, 08:26 AM
Hi,

I would like to know how to go about removing the following in the Recent Threads CMS Widget;

1. Thread starter
2. Thread content
3. Thread date

I don't know much about PHP coding and I basically just need the Thread title in the widget. Thanks in advance.

V

Lynne
02-04-2012, 06:08 PM
Only the thread title. If so, edit the vbcms_widget_recentthreads_page template to only have the following code:

<div class="cms_widget">
<div class="block">
<div class="cms_widget_header">
<h3><img alt="" src="{vb:stylevar imgdir_cms}/widget-forum.png" /> {vb:raw title}</h3>
</div>
<div class="cms_widget_content widget_content">
<vb:each from="threads" key="threadid" value="thread">
<div class="cms_widget_post_bit widget_post_bit">
<div class="cms_widget_post_comment_noavatar widget_post_comment_noavatar">
<h4 class="cms_widget_post_header widget_post_header">
<a href="{vb:link thread, {vb:raw thread}}">{vb:raw thread.title}</a>
</h4>
</div>
</vb:each>
</div>
</div>
</div>

Volvoholic
02-05-2012, 08:24 AM
Thanks Lynne !!! :)

That was exactly what I was looking for.