1
noone
Forum blocks
  • 2006/10/28 17:15

  • noone

  • Just popping in

  • Posts: 53

  • Since: 2006/9/30


I installed the NewBB 2 Forum on my webpage, it is working good but when I put a block (Recent Topics) on page there are shown more category column than I want, I mean on the block (Recent Topics) are shown these columns: Forum, Topic, Replies, Views and Last Post.

Instead of this I want to delete the Forum colum and to have only these: Topic, Relies, Views and Last post.

If you have any idea how to do this, please tell me
Thanks

2
WarDick
Re: Forum blocks
  • 2006/10/29 0:46

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


You can accomplish this by editing the newbb_block_topic.html if you are using XOOPS > 2.0.13 you can add this to your theme folder.

Just delete the red lines.

This is just a portion of the block_topic.html file.

<{if $block.disp_mode == 0}>
  <
tr>
    [
color=FF0000]<th class="head" nowrap="nowrap"><{$smarty.const._MB_NEWBB_FORUM}>th>[/color]
    <
th class="head" nowrap="nowrap"><{$smarty.const._MB_NEWBB_TITLE}>th>
    <
th class="head" align="center" nowrap="nowrap"><{$smarty.const._MB_NEWBB_RPLS}>th>
    <
th class="head" align="center" nowrap="nowrap"><{$smarty.const._MB_NEWBB_VIEWS}>th>
    <
th class="head" align="center" nowrap="nowrap"><{$smarty.const._MB_NEWBB_AUTHOR}>th>
  tr>

  <{foreach 
item=topic from=$block.topics}>
  <
tr class="<{cycle values="even,odd"}>">
    [
color=FF0000]<td><a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$topic.forum_id}>"><{$topic.forum_name}>a>td>[/color]
    <
td><a href="<{$xoops_url}>/modules/newbb/viewtopic.php?topic_id=<{$topic.id}>&forum=<{$topic.forum_id}>">
        <{if 
$topic.topic_subject}>
        <{
$topic.topic_subject}>
        <{/if}>
        <{
$topic.title}>a>
    td>
    <
td align="center"><{$topic.replies}>td>
    <
td align="center"><{$topic.views}>td>
    <
td align="right"><{$topic.time}><br /><{$topic.topic_poster}>td>
  tr>
Urging XOOPS to be the Best It Can Be.
Richard......

Login

Who's Online

459 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 459


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits