also ... hab im moment nich viel zeit daher hier mal schnell meine Lösung:
Code
function wpicasa_archivethumb($content){
global $id, $wpicasa, $post;
if(!empty($post->post_password)){//if there's a password
if(stripslashes($_COOKIE['wp-postpass_'.COOKIEHASH]) != $post->post_password){
return $content;
}
}
if(!is_single()){
if(get_post_meta($id, 'wpicasa_imagearray',true)){
$wpicasa = new WPicasa($id);//wpicasa only automaticcaly called on a single post
$thumbs = wpicasa_get_thumbnails(false,get_settings('wpicasa_archivethumbsperpost'));
$albumlink= get_permalink();
$total = wpicasa_get_photo_count();
$label = ($total > 1 || $total != 0) ? 'Fotos' : 'Foto' ;
if($thumbs) $thumbs .= "
<a href=\"$albumlink\"/>$total $label »</a>
";
if($thumbs) $content = "$thumbs\n$content";
$content = str_replace("[*]", "", $content);
$content = str_replace("", "", $content);
}
Alles anzeigen
Hab ein bisschen in dem code gespielt und folgendes eingebaut... ich weiß es ist nicht die beste lösung, aber da die wpicasa_get_thumbnails() function noch anderswo genutz wird, hab ich mir gedacht das ist eine 'quick'n'dirty' version ;)
bin ziemlich zu frieden und hab bis jetzt noch keine geschwindigkeitseinbuße gehabt... aber nunja, wie gesagt, modifizieren auf eigenen gefahr
[/code]