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>
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>';
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>';