With the risk of being repetitive I have started to look into this problem and I also have to state that I in any way or form are a php programmer!
But I think I might have found a problem to the “ugly front page problem” also to the orphan tags problem as well.
In the helper.php file in both the mod_janews_fp and the mod_janews we have a function called
replaceImage() in this function we have this code in line 44-50.
$regex1 = "/<img.*/>/";
$row->introtext = preg_replace( $regex1, '', $row->introtext );
$row->introtext = trim($row->introtext);
$row->introtext1 = strip_tags($row->introtext);
if ($maxchars && strlen ($row->introtext) > $maxchars) {
$row->introtext1 = substr ($row->introtext1, 0, $maxchars) . "...";
In the first version of Teline II the lines:
//$row->introtext1 = strip_tags($row->introtext);
and
//$row->introtext1 = strip_tags($row->introtext);
vas enabled but in later versions they are remed out with //
Of course I tried to remove the // to enable the strip_tags() function but no success. I probably need to do something else.
If we could have this enabled (working) it would probably save us from editors that insist on using h1, BR and li tags at the beginning of an article (above the read more) and our front page would look really neat not to mention that the w3c evaluator would love us.
Any php expert that could get this to work?
Bosse