 |
 |
 |
 |
 |
| Author |
Message |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
Preview images |
|
I added a little bit to images.mdu to show a preview image for every picture.
Change this:
 |  | $insert = '<a href="{imagepath}'.($config_use_images_uf == 'yes' ? '/'.$user.'/' : '/').$file.'"><img src="{imagepath}'.(file_exists($folder.'/thumbs/'.$file) ? '/'.$user.'/thumbs/' : '/').$file.'" alt="" border="0" '.$info[3].'></a>';
$insert = ($area ? '<a href="javascript:insertimage(\''.htmlspecialchars($insert).'\')">'.$echo['insert'].'</a>' : ' ');
?>
<tr <?=cute_that(); ?> align="center">
<td height="17"><a href="<?=$config_path_image_upload.'/'.$file; ?>"><?=$file; ?></a>
<?=($area ? '<td>'.$insert : ''); ?>
<td><?=(file_exists($folder.'/thumbs/'.$file) ? '<a href="'.$config_path_image_upload.'/thumbs/'.$file.'">'.$echo['thumb'].'</a>' : $echo['thumb']); ?>
<td><a href="?mod=images&action=rename&image=<?=$file.$query_string; ?>" onclick="if (ren=window.prompt('', '<?=$file; ?>')){window.location.href=this.href+'&name='+ren;}return false;"><?=$echo['rename']; ?></a>
<td><a href="javascript:confirmDelete('?mod=images&action=remove&image=<?=$file.$query_string; ?>')"><?=$echo['remove']; ?></a>
<td><?=$info[0]?>x<?=$info[1]?> <?=formatsize(filesize($folder.'/'.$file)); ?> |
to this:
 |  | if ($config_use_images_uf == 'yes') {
$insert = '<a href="{imagepath}/'.$user.'/'.$file.'"><img src="{imagepath}'.(file_exists($folder.'/thumbs/'.$file) ? '/'.$user.'/thumbs/' : '/'.$user.'/').$file.'" alt="" border="0" '.$info[3].'></a>';
}
else {
$insert = '<a href="{imagepath}/'.$file.'"><img src="{imagepath}'.(file_exists($folder.'/thumbs/'.$file) ? '/thumbs/' : '/').$file.'" alt="" border="0" '.$info[3].'></a>';
}
$insert = ($area ? '<a href="javascript:insertimage(\''.htmlspecialchars($insert).'\')">'.$echo['insert'].'</a>' : ' ');
?>
<tr <?=cute_that(); ?> align="center">
<td><a target="_blank" title="Open picture in new window" href="<?=$config_path_image_upload.'/'.$file; ?>"><?=(file_exists($folder.'/thumbs/'.$file) ? '<img height="50" border="0" src="'.$config_path_image_upload.'/thumbs/'.$file.'" />' : '<img height="50" border="0" src="'.$config_path_image_upload.'/'.$file.'" />')?></a>
<td><a href="<?=$config_path_image_upload.'/'.$file; ?>"><?=$file; ?></a>
<?=($area ? '<td>'.$insert : ''); ?>
<td><?=(file_exists($folder.'/thumbs/'.$file) ? '<a href="'.$config_path_image_upload.'/thumbs/'.$file.'">'.$echo['thumb'].'</a>' : $echo['thumb']); ?>
<td><a href="?mod=images&action=rename&image=<?=$file.$query_string; ?>" onclick="if (ren=window.prompt('', '<?=$file; ?>')){window.location.href=this.href+'&name='+ren;}return false;"><?=$echo['rename']; ?></a>
<td><a href="javascript:confirmDelete('?mod=images&action=remove&image=<?=$file.$query_string; ?>')"><?=$echo['remove']; ?></a>
<td><?=$info[0]?>x<?=$info[1]?>
<td><?=formatsize(filesize($folder.'/'.$file)); ?> |
Or get it with the latest CuteNews.RU version.
|
|
| Thu Oct 20, 2005 1:20 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|