1
daddystu
New BB How do I get inside {$topic.time} ?
  • 2005/1/10 1:27

  • daddystu

  • Just popping in

  • Posts: 100

  • Since: 2004/5/25


Not sure if that is the right question, thought it would get the attention of the knowledgable though

Very simply.
Module Newbb, there is a block that shows the recent posts.
I would like to alter the information this presents.

In such a case I usually look in two places.
1.the preferences for the module (often a setting there helps)
2. the templates.

In this case, specifically, I would like each entry to take up only one line, not three. Looking at the generated htmlIn the last column on the right it shows time,icon, poster name all seperated by <br />
It is this <br /> that I would like to be able to edit. Get rid of the poster name and icon altogether.

The preference settings didn't seem to help (although the if clauses in the template code imply some settings-dependencies)
So, I looked at the templates.

I looked at newbb_block.html and it seems to me that if I can get 'inside' the {$topic.xxx} parts of this code

<{$topic.title}></a><{$topic.topic_page_jump}></td>
<td align="center"><{$topic.replies}></td>
<td align="center"><{$topic.views}></td>
<td align="right"><{$topic.time}></td>
</tr>
<{/foreach}>

I might be able to work it out.

So...errr, where is a good place to start??


Thanks.

2
Dave_L
Re: New BB How do I get inside {$topic.time} ?
  • 2005/1/10 2:45

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


See this bug report.

Until 2.0.1 is released, you'll need to edit the .php file.

3
daddystu
Re: New BB How do I get inside {$topic.time} ?
  • 2005/1/10 4:33

  • daddystu

  • Just popping in

  • Posts: 100

  • Since: 2004/5/25


Fantastic.
Thanks.

All becoming clearer...fun ahead!

Login

Who's Online

95 user(s) are online (54 user(s) are browsing Support Forums)


Members: 0


Guests: 95


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