169
« on: April 17, 2005, 05:19:57 AM »
Hi Vano,
I did install your mode Multilang support for any text. Everything works fine, but I would like to use also for Simple News Publishing and that’s why I have changed the code in news.php (see below)
$site_template->register_vars(array(
"news_title" => "<b>".multilang($news_row[$i]['news_title'])."</b>".sprintf($lang['news_posted_by'], $news_row[$i]['user_name'], format_date($config['date_format']." ".$config['time_format'], $news_row[$i]['news_date'])),
"news_text" =>multilang(format_text($news_row[$i]['news_text'], ((isset($config['news_html']))?$config['news_html']:0), 0, ((isset($config['news_bbcode']))?$config['news_bbcode']:1), ((isset($config['news_bbcodeimg']))?$config['news_bbcodeimg']:1))),
"admin_links" => $admin_links,
));
mode multilang works, but bbcode and html code stopped working. It appears as text only. Where did I make the mistake? Could someone please help me out so I can get them both working (bbcode and htmlcode)???
Thanks!