No announcement yet.

Remove border from 'latest threads' widget

  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] Remove border from 'latest threads' widget

    Hey All....

    On the home page of our website, we have several widgets. We have a widget with the heading 'LATEST TCF ARTICLES' which is customised to a suited design. Under that widget we have a widget with the heading 'Latest Questions from our Q&A Forums' which is a 'recent activity' widget ... as you can see, it has the whole widget border thing going on which makes it look out of place.

    How do I edit the template that this 'recent activity' widget uses (vbcms_searchresult_thread) to have it display without a border and with a <H1> heading...similar to my 'LATEST TCF ARTICLES' widget?

    vbcms_searchresult_thread code is as follows:

    <div class="cms_widget_post_bit">
    <div class="cms_widget_post_userinfo">
    <vb:if condition="$vboptions['avatarenabled']">
    <div class="cms_widget_post_useravatar">
    <vb:if condition="$show['guestuser']">
    <img src="{vb:stylevar imgdir_misc}/unknown.gif" alt="{vb:raw thread.postusername}" />
    <vb:else />
    <a class="comments_member_avatar_link" href="{vb:link member, {vb:raw userinfo}}">
    <vb:if condition="$thread['lastpost_avatar']">
    <img alt="{vb:raw thread.lastposter}-{vb:raw thread.lastposterid}" src="{vb:raw vboptions.bburl}/{vb:raw thread.lastpost_avatar.0}" {vb:raw thread.lastpost_avatar.1} />
    <vb:else />
    <img src="{vb:stylevar imgdir_misc}/unknown.gif" alt="{vb:raw thread.lastposter}-{vb:raw thread.lastposterid}" />
    <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>
    <h4 class="cms_widget_post_header"><a href="{vb:link thread, {vb:raw thread}}" class="cms_widget_post_bit">{vb:raw thread.title}</a></h4>
    {vb:rawphrase thread_starter}: <a href="{vb:link member, {vb:raw userinfo}}" class="cms_widget_post_bit">{vb:raw thread.postusername}</a>
    <p class="cms_widget_post_content">{vb:raw thread.preview}</p>
    <vb:if condition="$thread['lastposterid']">
    <a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}" class="cms_widget_post_bit">{vb:raw thread.lastposter}</a>
    <vb:else />
    {vb:rawphrase by_x_guest, {vb:raw thread.lastposter}}
    {vb:raw thread.lastpostdate}<vb:if condition="!$show['detailedtime']">, <span class="time">{vb:raw thread.lastposttime}</span></vb:if>
    <a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_lastpost}}#post{vb:raw thread.lastpostid}" class="cms_widget_post_bit"><img class="inlineimg" src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" border="0" /></a>
    {vb:rawphrase replies_x_views_y, {vb:raw thread.replycount}, {vb:raw thread.views}}</vb:comment>

  • #2


    • #3
      If you delete the Background Color from from the 'vbcms_widget_block_background' StyleVar and the border values from 'vbcms_widget_content_border', you will get them plain.
      Vote for:

      - *Admin Settable Paid Subscription Reminder Timeframe*
      *PM - Add ability to reply to originator only*
      - Add Admin ability to auto-subscribe users to specific channel(s)
      - "Quick Route" Interface...


      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.