View original image size

Phoca Gallery - image gallery extension
arvendal
Phoca Member
Phoca Member
Posts: 13
Joined: 27 Oct 2008, 12:09

View original image size

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49279
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: View original image size

Post 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 ...
If you find Phoca extensions useful, please support the project
arvendal
Phoca Member
Phoca Member
Posts: 13
Joined: 27 Oct 2008, 12:09

Re: View original image size

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49279
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: View original image size

Post 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>';
?>
If you find Phoca extensions useful, please support the project
arvendal
Phoca Member
Phoca Member
Posts: 13
Joined: 27 Oct 2008, 12:09

Re: View original image size

Post by arvendal »

Great!

Works exactly the way I want. Thanks!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49279
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: View original image size

Post by Jan »

:wink:
If you find Phoca extensions useful, please support the project
Post Reply