I saw that you were back on the board and wanted to ask you if you noticed the problem with the rendering of code such as , [PHP] etc.?
If that problem could be fixed it would really make my day - or year even!

/Kvist
Kvist wrote:Hi Erich
I saw that you were back on the board and wanted to ask you if you noticed the problem with the rendering of code such as , [PHP] etc.?
If that problem could be fixed it would really make my day - or year even!![]()
/Kvist
Am I being stupid if I ask whicht file he's referring to and that the text in line 482 originally is? (Never comprehended the line numbers - I guess you have to have a special editor whereas I use notepad.)Replace line 482 (v1.0.6) with
Kode:
return str_replace("<br /><br />", "<br />", html_parser(render_PHPcode($listing)));
In notepad:Kvist wrote:I guess you have to have a special editor whereas I use notepad.)
/Kvist
VERY handy information - thanks!DeXXus wrote:In notepad:Kvist wrote:I guess you have to have a special editor whereas I use notepad.)
/Kvist
CTRL + G = goto line
Code: Select all
$content["all"] = preg_replace('/\{TEASER_EX:(.*?):(.*?):(.*?):(.*?):(.*?):(.*?):(.*?)\}/ie', 'get_teaser_ex_content("$1", "$2", "$3", "$4", "$5", "$6", "$7", "", -1, "", $db);', $content["all"]);
Code: Select all
$content["all"] = preg_replace('/\{TEASER_EX:(.*?):(.*?):(.*?):(.*?):(.*?):(.*?):(.*?):(.*?):(.*?):(.*?)\}/ie', 'get_teaser_ex_content("$1", "$2", "$3", "$4", "$5", "$6", "$7", "$8", "$9", "$10", $db);', $content["all"]);
Code: Select all
$tmpl = render_cnt_date($tmpl, $article_list[$key]["article_created"], "CREATEDATE");
Code: Select all
$tmpl = render_cnt_date($tmpl, $article_list[$key]["article_date"]);
Code: Select all
function render_cnt_date($text='', $date, $tag='DATE') {
// render date by replacing placeholder tags by value
//$language="EN", $format="Y/m/d", $date_now=0
$text = preg_replace('/\{'.$tag.':(.*?):(.*)\}/ie', 'international_date_format("$2","$1","'.$date.'")', $text);
$text = preg_replace('/\{'.$tag.':(.*?)\}/ie', 'date("$1",'.$date.')', $text);
return $text;
}