Thanx for this mod... Just this tiny question:
I've already added this part:
if (strlen($text) > $text_len)
{
$text = substr($text, 0, $text_len)."...";
}
with this one below...
if (strlen($row['image_name']) > 19)
{
$row['image_name'] = substr($row['image_name'], 0, 19)."...";
}
With that, the image-title is not so long (in this case 19) and fits to the size of my thumb.
Update: I guess it's not the best version, but I've found a solution. Open thumbnail_bit.html in the template-order and replace {image_name} with
<?
$shortname = "{image_name}";
if (strlen($shortname) > 19)
{
$shortname = substr($shortname, 0, 19)."...";
}
echo $shortname;
?>
...to limit it to 19 signs.
But still need support with:NOW I'd like to delete the
<br /> which are included sometimes, if an user made a
"word wrap". But the following code doesn't work (Below line 77 in the index.php, where
$text = $row['comment_text']; is shown)
$text = str_replace("<br />","",$text);
Any ideas, what I made wrong?
Something else: How to avoid double-posts? So that max. one thumb appears (in the home.html), when 2 or more comments are in one photo?