Improvement Small thumbnails in edit view of images

illovo
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 06 Nov 2012, 06:07

Improvement Small thumbnails in edit view of images

Post by illovo »

Joomla 2.5.7, Phoca gallery 3.2.2, Small thumbnails in edit view of images, "Enlarge Image" fails
Hello,
BE -> Components -> Phoca Gallery -> Images
Open an image in edit view. The Thumbnail is very small (50x50). So I searched for a way to integrate a modal link to enlarge it in a popup.
When I searched through the source code of the page I found this:

Code: Select all

<div style="float:right;margin:5px;"><img src="http://blahblah.de/images/phocagallery/up0011/thumbs/phoca_thumb_s_yoyo_camp_004.jpg?imagesid=9a1fdd97b100fea1bf14b1a73c737967" width="50" height="50" alt="Enlarge Image" /></a></div>
Pls. see the closing A tag that's not opened. And this alt="Enlarge Image" in IMG.

In administrator/components/com_phocagallery/views/phocagalleryimg/tmpl/edit.php I found these lines (around line 65), where the closing A tag occurs. $imgLink is defined but never used in this file (edit.php).

Code: Select all

$imgLink = PhocaGalleryFileThumbnail::getThumbnailName($this->item->filename, 'large');
<img src="'.JURI::root().$this->item->linkthumbnailpath.'?imagesid='.md5(uniqid(time())).'" width="'.$correctImageRes['width'].'" height="'.$correctImageRes['height'].'" alt="'.JText::_('COM_PHOCAGALLERY_ENLARGE_IMAGE').'" />'
.'</a>';
I changed the lines like this to have a modal popup when I click on the thumbnail in edit view:

Code: Select all

$imgLink = PhocaGalleryFileThumbnail::getThumbnailName($this->item->filename, 'large');
#illovo ghsvs Modal-Link 11/2012:
echo '<a class="modal" href="/'.$imgLink->rel.'"><img src="'.JURI::root().$this->item->linkthumbnailpath.'?imagesid='.md5(uniqid(time())).'" width="'.$correctImageRes['width'].'" height="'.$correctImageRes['height'].'" alt="'.JText::_('COM_PHOCAGALLERY_ENLARGE_IMAGE').'" />'
.'</a>';
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48416
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Improvement Small thumbnails in edit view of images

Post by Jan »

Hi, there is no such feature, the image is only displayed for the info (so the user is sure he/she modify the right image) the popup is not loaded there - to not overload the system (load on every place the whole "popup code", etc.)

Anyway, added to feature request list (either displaying medium image or making the popup) Will be great if other users can add idea which method to select.

Thank you, Jan
If you find Phoca extensions useful, please support the project
Post Reply