1
defwind77
html in news 1.43 blocks?
  • 2005/11/23 10:03

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


I'm got news 1.43 installed and I'm adding news articles - eg with text, bold titles etc so it's readable.

However I've also got a 'recent news' block linking to the articles on my main page showing the first 100-200 words of each article.

The trouble is that the recent news block does not seem to interpret html for some reason and so my news headlines are something like:

Recent News - Endorphin 2.5 Released

<strong>endorphin 2.5 out now! New price: $9,495.</strong><br /><strong> </strong><img src="http://www.naturalmotion.com/images/2.5_01ss.jpg" alt=" " /><br /><br />NaturalMotion Ltd ...

Which clearly is a mess!

How can I either get it to use html in blocks or just to display the text?

2
showcase17
Re: html in news 1.43 blocks?
  • 2005/11/23 10:49

  • showcase17

  • Not too shy to talk

  • Posts: 190

  • Since: 2005/1/6 0


Try using tables in the news module...
The newsmodule is known for having problems with HTML, haven't sen a solution yet though.
- To Explore and Discover -

3
defwind77
Re: html in news 1.43 blocks?
  • 2005/11/23 11:14

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


what do you mean use tables?

4
showcase17
Re: html in news 1.43 blocks?
  • 2005/11/23 20:55

  • showcase17

  • Not too shy to talk

  • Posts: 190

  • Since: 2005/1/6 0


I'm sorry should have been more clear...
The newsmodule is having problems with HTML. I wanted to use tables in the newsmodule but that got screwed up. So what I wanted to say: try using tables if you want to see how this news module screwes up HTML.
- To Explore and Discover -

5
defwind77
Re: html in news 1.43 blocks?
  • 2005/11/23 22:08

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


heh! oh I see! Well that's a pain in the arse! Oh well - does anyone know if news is a module that's actively updated? I'm pondering moving to article or smartsection or something like that instead?

Any advice/recommendations?

Basically I'd like something as close to the way www.bbc.co.uk presents news articles...

6
Tefnut
Re: html in news 1.43 blocks?
  • 2005/12/23 9:53

  • Tefnut

  • Just popping in

  • Posts: 36

  • Since: 2004/9/13


same problem here...

7
davidl2
Re: html in news 1.43 blocks?
  • 2005/12/23 9:56

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Quote:

defwind77 wrote:does anyone know if news is a module that's actively updated?


yes

8
Tefnut
Re: html in news 1.43 blocks?
  • 2005/12/23 10:51

  • Tefnut

  • Just popping in

  • Posts: 36

  • Since: 2004/9/13


solution found..


edit file modules/news/blocks/news_top.php

search string "teaser"

replase the TWO line:
$news['teaser'] = xoops_substr(strip_tags($story->hometext()), 0, $options[3]+3);

to
$news['teaser'] = xoops_substr($story->hometext(), 0, $options[3]+3);

or
$news['teaser'] = $story->hometext();

all works fine!!

Login

Who's Online

166 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 166


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