Page 1 of 1

closing "/" when using filelist 1.2.8 release

Posted: Wed 20. Sep 2006, 21:50
by cyrano
Hi all,

i found aout rendering in XHTML mode i get errors in validating img tag is not closing with end "/".

right?

found out in folder"include/inc_front/content" the file "cnt7.article.inc.php",
line 72-99 and changed it (see bold one: adding a space and a / )
now runs well :-)
$file_name = html_specialchars($file_row["f_name"]);
$file_tmp = '<tr><td><img src="img/icons/small_'.extimg($file_row["f_ext"]).'" border="0" alt="" />';
$file_tmp .= spacer(3,1).'</td><td'.$file_class1.'>';
$file_tmp .= '<a href="download.php?'.$file_row["f_hash"].'" title="'.$file_name.'" ';
$file_tmp .= 'target="_blank">'.$file_name.'</a></td><td align="right"'.$file_class2.'>&nbsp;'.fsizelong($file_row["f_size"])."</td></tr>\n";

if(isset($file_text[$key]) && trim($file_text[$key]) != '') {
$file_tmp .= '<tr><td>'.spacer(1,1).'</td><td'.$file_class3.' colspan="2">'.$file_text[$key]."</td></tr>\n";
}
$fxc[$key] = $file_tmp;

}
}
}
mysql_free_result($file_result);
}
}

$fxc = array_diff($fxc, array(''));
$file_tmp = implode('<tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="3" border="0" /></td></tr>'."\n", $fxc);

if($file_tmp != '') {
$CNT_TMP .= '<table border="0" cellspacing="0" cellpadding="0">';
$CNT_TMP .= "\n" . $file_tmp . "</table>";
}
}

?>

Posted: Thu 21. Sep 2006, 10:29
by Oliver Georgi
Yes maybe - not all content parts are patched yet.

Oliver