1
johnwyp
Recent posts block problem
  • 2003/12/12 15:56

  • johnwyp

  • Just popping in

  • Posts: 10

  • Since: 2003/3/20


If you choose to NOT have the recent posts block display in full, then the last post column in the table created is empty even though the template looks correct.

Both full display and non-full display have <{$topic.time}> to display when the last post was made....but it only WORKS when displaying in full mode.

Ideas?

<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>

<
div style="text-align:right; padding: 5px;">
<
a href="<{$xoops_url}>/modules/newbb/"><{$block.lang_visitforums}>a>
div>

Login

Who's Online

359 user(s) are online (92 user(s) are browsing Support Forums)


Members: 0


Guests: 359


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