1
Lakota
Recent Topics Block
  • 2005/3/7 3:09

  • Lakota

  • Just popping in

  • Posts: 11

  • Since: 2005/1/28


Below is the code that I use for my Recent Topics Block, Can anyone tell me why the poster info is missing? Or is there a better block for this that is spaced closer together? You can view the current at http://www.transconscious.com

Here is the code:

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

  <{if 
$block.disp_mode == 0}>
  <
tr>
    <
th class="head" nowrap><{$block.lang_forum}>th>
    <
th class="head" nowrap><{$block.lang_topic}>th>
    <
th class="head" align="center" nowrap><{$block.lang_replies}>th>
    <
th class="head" align="center" nowrap><{$block.lang_views}>th>
    <
th class="head" align="center" nowrap><{$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}>">

<{if 
$topic.topic_subject eq NONE}>
<{else}>
<{
$topic.topic_subject}>
<{/if}>

<{
$topic.title}>a><{$topic.topic_page_jump}>td>
    <
td align="center"><{$topic.replies}>td>
    <
td align="center"><{$topic.views}>td>

  tr>
  <{/foreach}>

  <{elseif 
$block.disp_mode == 1}>

  <
tr>
    <
td class="head" nowrap><{$block.lang_topic}>td>
    <
td class="head" align="center">Postertd>
    <
td class="head" align="center"
nowrap><{$block.lang_views}>/<br/><{$block.lang_replies}>td>
    <
td class="head" align="center" nowrap><{$block.lang_lastpost}>td>
  tr>

  <{foreach 
item=topic from=$block.topics}>
  <
tr class="<{cycle values="even,odd"}>">
    <
td style="font: 8pt/10pt Arial;"><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}>"
title="Last posted by: <{$topic.poster}> in
'<
{$topic.forum_name}>'"><{$topic.title}>a>td>
    <
td align="center" style="font: 8pt Arial;"><{if $topic.poster eq
""}>Guest<{else}><{$topic.poster}><{/if}>td>
    <
td align="center"><{$topic.views}>/<{$topic.replies}>td>
    <
td width=100 style="font: 8pt Arial;" align="right"><{$topic.time}>td>
  tr>
  <{/foreach}>

  <{elseif 
$block.disp_mode == 2}>

  <{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}>&post_id=<{$topic.post_id}>#forumpost<{$topic.post_id}>"><{$topic.title}>a>td>
  tr>
  <{/foreach}>

  <{/if}>

table>

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


Hope someone can help!

Login

Who's Online

157 user(s) are online (80 user(s) are browsing Support Forums)


Members: 0


Guests: 157


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