1
Bassman
removing "Comments" etc from News Items header and footer.
  • 2003/11/25 1:30

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


I wanted to remove the poster, post date, comments etc links in the News Items main block, and I experimented by commenting out a few lines in the news_item.html template (using a cloned set of templates of course):

<div class="item">
<div class="itemHead"><span class="itemTitle"><{$story.title}></span></div>
<div class="itemInfo">
<!--<span class="itemPoster"><{$lang_postedby}> <{$story.poster}></span> <span class="itemPostDate"><{$lang_on}> <{$story.posttime}></span> (<span class="itemStats"><{$story.hits}> <{$lang_reads}></span>)
</div>-->
<div class="itemBody">
<{$story.imglink}>
<p class="itemText"><{$story.text}></p>
</div>
<!--<div class="itemFoot">
<span class="itemAdminLink"><{$story.adminlink}></span> <span class="itemPermaLink"><{$story.morelink}></span>
</div>-->
</div>

Now, this worked fine, but if I have more than one news item, they appear to nest inside each other, with the block border getting progressively thicker with each item. See scac.asn.au for details.
Any ideas on how to overcome this? I would like to have a footer at the end of each news item also, just a bar the same color as the header.scac.asn.au

2
hsalazar
Re: removing "Comments" etc from News Items header and footer.
  • 2003/11/25 1:55

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


Bassman:

Taking a look at your site, I see you have already corrected the issue. All that's left to comment is the fact that the code as you posted has, after taking out the comments, 4 opening DIV tags and just 3 closing tags. You could have avoided this either moving the first comment opening to the beginning of the DIV class "itemInfo" or moving the first comment closure before the closing DIV tag. But you already know this <lol>...

Cheers.

3
Per4orm
Re: removing "Comments" etc from News Items header and footer.
  • 2003/11/25 1:56

  • Per4orm

  • Documentation Writer

  • Posts: 145

  • Since: 2003/11/14


If you look closely, you start to comment out the item info on line 4 (<span class="itemPoster...>) but close the comment on line 7 (</div>-->)

Therefore on line 3, you've got a <div class="itemInfo"> which would normally be closed off on line 7, but isn't because it's been commented out. This is causing items to nest.

Therefore, either start your comment on line 3, or end the comment at the end of line 6.

Gareth

4
Per4orm
Re: removing "Comments" etc from News Items header and footer.
  • 2003/11/25 1:58

  • Per4orm

  • Documentation Writer

  • Posts: 145

  • Since: 2003/11/14


Horacio you b****rd! You beat me to it!

5
Bassman
Re: removing "Comments" etc from News Items header and footer.
  • 2003/11/25 2:01

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Thanks Horacio :)

Actually I only fixed it after you posted....... what browser are you using? After reading your post I looked at my site and it was unchanged, but your suggestion fixed it.
I'm using IE6.

6
Bassman
Re: removing "Comments" etc from News Items header and footer.
  • 2003/11/25 2:03

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Thanks anyhow Per4orm :)

7
hsalazar
Re: removing "Comments" etc from News Items header and footer.
  • 2003/11/25 2:06

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


Per4orm:

Sorry, I'll try to slow down next time!

Bassman:

I'm using MSIE 6.0 in a WinXP Pro machine.

Cheers.

8
Bassman
Re: removing "Comments" etc from News Items header and footer.
  • 2003/11/25 2:10

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


So am I...... curious.

Anyhow, it works now, and i'm a happy chappie :) Thanks again.

9
wjaggs
Re: removing "Comments" etc from News Items header and footer.
  • 2004/3/31 23:39

  • wjaggs

  • Just popping in

  • Posts: 11

  • Since: 2003/8/18


I would like to remove the "Comments?" as well.

If you take out the "adminlink" and "morelink" from the Block Template.. then how would readers be able to "Read More"?

I tried looking at the news code.. and was toying with the more.link statement (??? I am no PHP expert here).. but that didn't seem to work.

How could I just leave a "Read More" link?

Login

Who's Online

163 user(s) are online (132 user(s) are browsing Support Forums)


Members: 0


Guests: 163


more...

Donat-O-Meter

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

Latest GitHub Commits