thanx but still same problem.
i also tried this
http://www.4homepages.de/forum/index.php?topic=11401.0 picture middle is working because goes to category page. but right and left is not working. ( left = previous , right = next image)
because
next_image_url is always null
prev_image_url is always null
i changed details.php to original and next_image_url not null
so problem is this preiew hack mod
http://www.4homepages.de/forum/index.php?topic=7294.msg124362#msg124362but iwant to use this preiew hack mod because this has 5 pic not only next and previeus...
do you know same preiew hack?
or what is the problem this hack details.php? this hack is good for us but always return $next_image_file = REPLACE_EMPTY
1:
- open details.php
- search:
- öffne details.php
- suche:
$image_id_cache = array();
- before add:
- davor einfügen:
/*--- Start MOD: Photo Preview Hack, reworked by KW ------------------------- */
// Start Settings for Thumbs
$thumbsize = 0.5; // Thumb Size in %
// End Settings
$result = $site_db->query($sql);
while($row = $site_db->fetch_array($result)){
$image_preview[] = $row['image_id'];
$preview_row[$row['image_id']] = $row;
}
$lastPage = count($image_preview);
$t_template = "";
if($lastPage < 6){
$start = 0;
$end = $lastPage -1;
} elseif ($act_key == 0 || $act_key == 1){
$start = 0;
$end = 4;
} elseif ($act_key == $lastPage-1 || $act_key == $lastPage -2){
$start = $lastPage - 5;
$end = $lastPage - 1;
} else {
$start = $act_key -2;
$end = $act_key +2;
}
for($i=$start; $i<=$end; $i++){
if ($preview_row[$image_preview[$i]]['image_id'] == $image_row['image_id']) {
$t_template .= "<td class=\"preview_box_colored\">\n";
} else {
$t_template .= "<td class=\"preview_box\">\n";
}
$tag = get_thumbnail_code($preview_row[$image_preview[$i]]['image_media_file'], $preview_row[$image_preview[$i]]['image_thumb_file'], $preview_row[$image_preview[$i]]['image_id'], $cat_id, format_text(trim($preview_row[$image_preview[$i]]['image_name']), 2), $mode, 1);
$oriWidth = substr($tag, strpos($tag, "width")+7, strpos($tag, "\" height")-strlen($tag));
$oriHeight = substr($tag, strpos($tag, "height")+8, strpos($tag, " alt")-strlen($tag)-1);
$tag = str_replace('width="'.$oriWidth.'"', 'width="'.$oriWidth*$thumbsize.'"', $tag);
$tag = str_replace('height="'.$oriHeight.'"', 'height="'.$oriHeight*$thumbsize.'"', $tag);
$t_template .= $tag."<br />";
$t_template .= "<font class=\"smalltext\">".$preview_row[$image_preview[$i]]['image_name']."</font>\n</td>\n";
}
$site_template->register_vars("preview_box", $t_template);
unset($image_preview);
unset($t_template);
/*--- End MOD: Photo Preview Hack, reworked by KW --------------------------- */
Help please. i want to use 5 or 7 pic tumbail below . and also use click big picture and next image