1
Chappy
Recent Topics
  • 2004/2/12 9:29

  • Chappy

  • Friend of XOOPS

  • Posts: 456

  • Since: 2002/12/14


I'm trying to change the Recent Topics Block so that it does not have the time of the last post in the block.

I'm still kinda' fuzzy on the use of the templating system. I have changed the template several times. When I go to the block admin area for that block then hit edit template, I make the changes, then hit View (why it doesn't say submit, I'm not sure - be glad for an explanation). It looks like it has changed when I hit view but the block still has the column with last post details. Why?

Here's the relevant part of the template after the change:
<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>
  </
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>
  </
tr>
  <{/foreach}>

  <{/if}>

</
table>


Obviously, I'm failing to grasp something. I have searched but am still clueless.

Oh, and I do not have it set to the full display in the blcok options.

Thanks for any help!

2
Herko
Re: Recent Topics
  • 2004/2/12 11:10

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


heh, you're trying to edit a default template. You can't, for continuity and security reasons. You'll have to clone the default template set, edit the clone and set your site to use the cloned set as it's template set

Herko

3
simonvl
Re: Recent Topics
  • 2004/2/12 13:34

  • simonvl

  • Just popping in

  • Posts: 44

  • Since: 2004/1/28


Thanks- I had done this successfully, then deleted my clone, not knowing the function of it, and tried editing the default!
Thanks for the explanation.
Simon

4
Chappy
Re: Recent Topics
  • 2004/2/12 18:06

  • Chappy

  • Friend of XOOPS

  • Posts: 456

  • Since: 2002/12/14


Thanks very much for your reply and for your help. This is the first time that I have really done anything with the templating system. I knew that I was not really understanding. Now, I get the idea. And, I walked away from it thinking to myself, once again, how powerful XOOPS is. This is really cool. Once again, thanks to the developers and thanks for the time you take to answer posts like mine Herko!

PS I just sent a donation to XOOPS to say thanks. First time I ever used Euros

5
noichuarac
Re: Recent Topics
  • 2006/3/31 9:22

  • noichuarac

  • Just popping in

  • Posts: 4

  • Since: 2006/3/16


In newbb2 I do "Recent Topics" as this, but it don't show.
Please help me!!
Thanks

Login

Who's Online

218 user(s) are online (123 user(s) are browsing Support Forums)


Members: 0


Guests: 218


more...

Donat-O-Meter

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

Latest GitHub Commits