Hi, in the index I like to show a part of the image_description but only 50 chars of all the description, I copy the last images function to create a new last images of a specified categorie, for that categorie i like to show in the thumb the image_description, im trying adding this code in the function:
$text_len = 50;
$text = $row['image_description'];
if (strlen($text) > $text_len) {
$text = substr($text, 0, $text_len)." ...";
}
and this template var
$site_template->register_vars(array(
"image_desccut" => format_text($text, $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments'], 1, 0)));
but it doesn work, can someone help me please?!?!?!
thank you!!