now i found the script in the template-functions.php file.
when i this script import in my page then i see a white site
Why? The script is still ok?
this is "my" script
<?php
/**
* Prints out latest comments for images and albums
*
* @param int $number how many comments you want.
* @param string $shorten the number of characters to shorten the comment display
* @param string $type "all" for all latest comments of all images and albums
* "image" for the lastest comments of one specific image
* "album" for the latest comments of one specific album
* @param int $itemID the ID of the element to get the comments for if $type != "all"
*/
function printLatestComments($number='20', $shorten='123',$type="all",$itemID="") {
if(getOption('mod_rewrite')) {
$albumpath = "/"; $imagepath = "/"; $modrewritesuffix = getOption('mod_rewrite_image_suffix');
} else {
$albumpath = "/index.php?album="; $imagepath = "&image="; $modrewritesuffix = "";
}
$comments = getLatestComments($number,$type,$itemID);
echo "<ul id=\"showlatestcomments\">\n";
foreach ($comments as $comment) {
if($comment['anon'] === "0") {
$author = " ".gettext("by")." ".$comment['name'];
} else {
$author = "";
}
$album = $comment['folder'];
if($comment['type'] != "albums" AND $comment['type'] != "news" AND $comment['type'] != "pages") { // check if not comments on albums or Zenpage items
$imagetag = $imagepath.$comment['filename'].$modrewritesuffix;
} else {
$imagetag = "";
}
$date = $comment['date'];
$albumtitle = $comment['albumtitle'];
if ($comment['title'] == "") $title = $image; else $title = get_language_string($comment['title']);
$website = $comment['website'];
$shortcomment = truncate_string($comment['comment'], $shorten);
if(!empty($title)) {
$title = ": ".$title;
}
echo "
[*]<a>".$albumtitle.$title.$author."</a>\n";
echo "<span class=\"commentbody\">".$shortcomment."</span>
";
}
echo "\n";
}
?>