1
irmtfan
newbb: recent topics block with selectable categories
  • 2004/9/1 5:42

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


i no need to install two modules for forum if in recent topics block can select cats to show new posts.
for example one recent topis block for 3 cats and another for rest.
is this posible? how?
thanks in advance

2
irmtfan
Re: newbb: recent topics block with selectable categories
  • 2004/9/3 5:11

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


can i make a custom block for this ?
any help would be really appreciated

3
irmtfan
Re: newbb: recent topics block with selectable categories
  • 2004/9/5 20:22

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


bump

4
Lance_
Re: newbb: recent topics block with selectable categories
  • 2004/9/5 20:40

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


Sorry I can't help, but I have had in mind to request the same thing in a while.

This is the block for Recent topics.
Would a proper way be to add a ForEach loop around the whole thing setting the condition for each Category wanted to appear.

I don't have the knowledge to code it myself.

<table class="outer" cellspacing="1">

  <{if 
$block.full_view == true}>
  <
tr>
    <
th><{$block.lang_forum}>th>
    <
th><{$block.lang_topic}>th>
    <
th align="center"><{$block.lang_replies}>th>
    <
th align="center"><{$block.lang_views}>th>
    <
th align="right"><{$block.lang_lastpost}>th>
  tr>

  <{foreach 
item=topic from=$block.topics}>
  <
tr class="<{cycle values="even,odd"}>">
    <
td><a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$topic.forum_id}>"><{$topic.forum_name}>a>td>
    <
td><a href="<{$xoops_url}>/modules/newbb/viewtopic.php?topic_id=<{$topic.id}>&forum=<{$topic.forum_id}>&post_id=<{$topic.post_id}>#forumpost<{$topic.post_id}>"><{$topic.title}>a>td>
    <
td align="center"><{$topic.replies}>td>
    <
td align="center"><{$topic.views}>td>
    <
td align="right"><{$topic.time}>td>
  tr>
  <{/foreach}>

  <{else}>

  <
tr>
    <
td class="head"><{$block.lang_topic}>td>
    <
td class="head" align="center"><{$block.lang_replies}>td>
    <
td class="head" align="right"><{$block.lang_lastpost}>td>
  tr>

  <{foreach 
item=topic from=$block.topics}>
  <
tr class="<{cycle values="even,odd"}>">
    <
td><a href="<{$xoops_url}>/modules/newbb/viewtopic.php?topic_id=<{$topic.id}>&forum=<{$topic.forum_id}>"><{$topic.title}>a>td>
    <
td align="center"><{$topic.replies}>td>
    <
td align="right"><{$topic.time}>td>
  tr>
  <{/foreach}>

  <{/if}>

table>


Thanks.

Cheers

Login

Who's Online

392 user(s) are online (279 user(s) are browsing Support Forums)


Members: 0


Guests: 392


more...

Donat-O-Meter

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

Latest GitHub Commits