1
gooloomoo
The Random news in right block doesn't support html?
  • 2006/10/18 20:43

  • gooloomoo

  • Not too shy to talk

  • Posts: 110

  • Since: 2006/6/27


I use xk editor as default for News 1.44, it works fine. But after I post a news the Random news in right block(I put it there) show the html code instead of the correct content.
I tried recent news in right block, it shows the right thing.
Please help.

2
hervet
Re: The Random news in right block doesn't support html?
  • 2006/11/23 7:41

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


All the html codes from all the blocs of the News module are removed.
It's voluntary to avoid problems when you use teaser

3
Kellymac
Re: The Random news in right block doesn't support html?
  • 2007/3/8 3:00

  • Kellymac

  • Just popping in

  • Posts: 41

  • Since: 2006/2/1 1


Is there a hack to make html work in random news block?

4
hervet
Re: The Random news in right block doesn't support html?
  • 2007/3/8 6:53

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


In the block's code, remove all the strip_tags() functions

5
Kellymac
Re: The Random news in right block doesn't support html?
  • 2007/3/9 2:56

  • Kellymac

  • Just popping in

  • Posts: 41

  • Since: 2006/2/1 1


Do I change this in news_randomnews.php ?


if ($options[3] > 0) {
$news['teaser'] = xoops_substr(strip_tags($myts->displayTarea($story->hometext)), 0, $options[3]+3);
$news['infotips'] = '';
}


I tried taking out strip_tags but that didn't work.

Do I have to take it out of all blocks php files?

I'm bangin' my head.

Please help.

Thanks!

Login

Who's Online

160 user(s) are online (50 user(s) are browsing Support Forums)


Members: 0


Guests: 160


more...

Donat-O-Meter

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

Latest GitHub Commits