Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Preview images

 
Reply to topic    Forum Index » General feedback View previous topic
View next topic
Preview images
Author Message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Preview images Reply with quote
I added a little bit to images.mdu to show a preview image for every picture.



Change this:

Code:
       $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>' : '&nbsp;');

?>



 <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&amp;action=rename&amp;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&amp;action=remove&amp;image=<?=$file.$query_string; ?>')"><?=$echo['remove']; ?></a>

  <td><?=$info[0]?>x<?=$info[1]?> <?=formatsize(filesize($folder.'/'.$file)); ?>




to this:

Code:
       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>' : '&nbsp;');

?>



 <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&amp;action=rename&amp;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&amp;action=remove&amp;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 View user's profile Send private message
Guest








Please login to hide the ads.

Display posts from previous:    
Reply to topic    Forum Index » General feedback All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
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



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.