in der funktion show()
steht ungefähr das:
PHP-Code:
$max= count($inhalt);
//Deckel festlegen (max Einträge die angezeigt werden)
if ($max>$max_eintrag) $max=$max_eintrag;
ergo: die Anzahl der daten ist in der var $max gespeichert.
weiter unten wird das template gepharst:
PHP-Code:
$template=TEMPLATEPATH."gb_message.tpl";
$body=implode('',file($template));
$body=str_replace('{LFNR}',$nummer,$body);
....
füge da die zeile:
PHP-Code:
$body=str_replace('{MAX}',$max,$body);
hinzu.
schritt zwei:
im template message.tpl
musst du dann noch irgendwo die anzahl ansprechen:
etwa so:
PHP-Code:
<td>Es sind {MAX} Einträge im Gästebuch</td>
sollte es eigentlich sein.
probiert hab ich es nicht.
wennst probs hast, dann mail mir.
lf