Page 1 of 1

View original image size

Posted: 30 Oct 2008, 16:42
by arvendal
Hi,
I was looking for answers on how the visitor may view the original image size in a popup window when browsing category view with swap images mode.

I found a couple of threads in the forum, but the answers did not exactly provide a solution that I want. The suggested solution was to use the download link, and that would be fine, but it creates a popup with a transparent grey information on how to download the image. If I close this information, I close the whole popup window.
  • Is there a way to view the picture undisturbed by greyish information fields?
  • The download popup window works best if all the images have the same size. Is there a workaround for images with different sizes?
  • Is it possible to have the main image clickable, i e when clicking main image in a category view the original (and larger) image will popup?

Re: View original image size

Posted: 30 Oct 2008, 23:28
by Jan
main image clickabel - I think no, because of the swap javascript :-(

greyish information fields - sorry I don't understand

workaround for images with different sizes - thumnails in detail view have the same size (but it can be changed in parameters) Higslide JS or Shadowbox can display different detail size ...

Re: View original image size

Posted: 31 Oct 2008, 10:27
by arvendal
Hi,

thanks for your quick reply.

This is the greyish area that I would like to remove:
Phoca-popup.jpg
Is it possible to do something about it?

Re: View original image size

Posted: 31 Oct 2008, 18:30
by Jan
components\com_phocagallery\views\detail\tmpl\default_download.php

leave only this code in this file:

<?php defined('_JEXEC') or die('Restricted access');

Code: Select all

echo '<div style="overflow:scroll;width:'.$this->tmpl['boxlargewidth'].'px;height:'.$this->tmpl['boxlargeheight'].'px;margin:0px;padding:0px;">' . JHTML::_( 'image.site', $this->file->filenameno, 'images/phocagallery/') . '</div>';
?>

Re: View original image size

Posted: 01 Nov 2008, 11:28
by arvendal
Great!

Works exactly the way I want. Thanks!

Re: View original image size

Posted: 02 Nov 2008, 20:46
by Jan
:wink: