Hi,
im trying to use Multilanguage BB code on news. I edited the news.php and now it works on short news text, but I don't know how to edit it to work on whole news (on thext when you click read more).
This is the part of code that works (I added 2nd row)
$news_news = preg_replace("/<!?--\s*pagebreak\s*-->/i", "", ($data['news_breaks'] == "y" ? nl2br(stripslashes($data['news_news'])) : stripslashes($data['news_news'])));
$news_news = "".parseubb($data['news_news'], "english")."\n";
This is the part with extended (whole) news text, and I don't know how to edit it to get it work.
$news_news = preg_split("/<!?--\s*pagebreak\s*-->/i", $data['news_breaks'] == "y" ? nl2br(stripslashes($data['news_extended'] ? $data['news_extended'] : $data['news_news'])) : stripslashes($data['news_extended'] ? $data['news_extended'] : $data['news_news']));
//$news_news = "".parseubb($data['news_extended'], "english")."\n";
$pagecount = count($news_news);
Edited by MiChAeLoKGB on 07-02-2013 07:50
Sorry for my English.
Im from Slovakia 
|