1
jdseymour
Stories_block_top.html Truncated.

On my clients site he uses a custom block for stories_block_top block. I have tried a few things over the week, and even the original block comes truncated no matter what I set the title length to in the blocks admin.

Here is the code to his modified block:
<img src="<{$xoops_url}>/themes/v2004/graphics/textNewStories.gif">
<
table width="99%" border="0" cellspacing="5" cellpadding="5"  class="box"> <tr>
  <
td width="20%">
<
p align="center">&nbsp;
<
img src="<{$xoops_url}>/themes/v2004/graphics/book24.gif" width="113" height="112">&nbsptd>
  <
td width="80%">
<{foreach 
item=news from=$block.stories}>
        <
img src="<{$xoops_url}>/themes/v2004/graphics/bullet.png"><a href="<{$xoops_url}>/modules/stories/article.php?storyid=<{$news.id}>"><{$news.title}>a> (<{$news.hits}>)<{$news.unread}><br>
  <{/foreach}>
td>table>


Here is the code of the original:

<ul>
  <{foreach 
item=news from=$block.stories}>
        <
li><a href="<{$xoops_url}>/modules/stories/article.php?storyid=<{$news.id}>"><{$news.title}>a> (<{$news.hits}>)<{$news.unread}>li>
  <{/foreach}>
ul>


He is using XOOPS 2.0.16 on a server (private) with php 4.4.6 and MySQL 3.28 (soon to be upgraded).

If you need to see the site PM me for the link (it is an adult site so no link will be posted here).

Thanks in advance for your help.

2
davidl2
Re: Stories_block_top.html Truncated.
  • 2007/4/14 10:32

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


I'll have a quick look later JD - but if someone can do it sooner, please let them contact you.

3
svaha
Re: Stories_block_top.html Truncated.
  • 2007/4/14 14:49

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Just a quick question : Why don't you start with a after the ?

4
davidl2
Re: Stories_block_top.html Truncated.
  • 2007/4/14 14:51

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


The
is at the end of the
line.

Login

Who's Online

336 user(s) are online (206 user(s) are browsing Support Forums)


Members: 0


Guests: 336


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