1
meme
last post in newbb blocks
  • 2004/1/18 15:21

  • meme

  • Quite a regular

  • Posts: 271

  • Since: 2002/12/10


hi all

i add this template for /newbb/templates/blocks

template name newbb_bock_scrol.html

code

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

<{if $block.full_view == true}>


<{foreach item=topic from=$block.topics}>

<TD><marquee behavior="scroll" direction="right" scrolldelay="50" scrollamount="2" onMouseOver="this.stop()" onMouseOut="this.start()">
<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}>&nbsp;.:.&nbsp;
</a></marquee>

<{/foreach}>
<{/if}>

</table>

i do that for protect my top page from waste space

this template will scroling the new topic in small block

but there are one bug

this block will add 1 <TD> for every link
i need one <TD> only to scroling all the new topics in this <TD>

any help ?

2
wammes
Re: last post in newbb blocks
  • 2004/1/18 16:40

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


Dunno if it works,
but I would try:

<table dir=rtl class="outer" cellspacing="1">
<tr>
<td><marquee behavior="scroll" direction="right" scrolldelay="50" scrollamount="2" onMouseOver="this.stop()" onMouseOut="this.start()">
<{if $block.full_view == true}>
<table>
<tr>

<{foreach item=topic from=$block.topics}>

<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}>&nbsp;.:.&nbsp;</a>
</td>
<{/foreach}>
</tr>
</table>
<{/if}>
</marquee>
</td>
</tr>
</table>

3
meme
Re: last post in newbb blocks
  • 2004/1/18 19:25

  • meme

  • Quite a regular

  • Posts: 271

  • Since: 2002/12/10


thanks for try but still not fix

now its scroll but u have to wait about 20 secs to see the new links then stop after the last post appear


any help

4
kahumbu
Re: last post in newbb blocks
  • 2004/1/18 19:53

  • kahumbu

  • Documentation Writer

  • Posts: 277

  • Since: 2003/8/23


You might need to bring the <td> outside the foreach loop because you will add one <td> for each link.

5
meme
Re: last post in newbb blocks
  • 2004/1/18 23:20

  • meme

  • Quite a regular

  • Posts: 271

  • Since: 2002/12/10


still not work like what i need

its not appear correct

i need it look like a bar and the new posts scrolling from the begin to the end




Login

Who's Online

143 user(s) are online (79 user(s) are browsing Support Forums)


Members: 0


Guests: 143


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