Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Phoca Gallery - image gallery extension
schlogo
Phoca Enthusiast
Posts: 51 Joined: 03 Sep 2008, 16:45
Contact:
Post
by schlogo » 12 Sep 2009, 00:19
Hello
I ve been looking at the source code of my website s gallery, it appears that large images opened in lightboxes avec an empty alt, even if they have a title and a description ... Would someone has an idea on how to fix that ? I d also like to add the title attribute
Tks
Code: Select all
<img alt="" src="/images/phocagallery/hockey/thumbs/phoca_thumb_l_marc-andre-fleury.jpg"/>
Jan
Phoca Hero
Posts: 49297 Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:
Post
by Jan » 12 Sep 2009, 20:26
Hi, which method of detail view do you use?
schlogo
Phoca Enthusiast
Posts: 51 Joined: 03 Sep 2008, 16:45
Contact:
Post
by schlogo » 14 Sep 2009, 19:30
hello
i am using the modal box, i ve tested it with the other options, still empty :-/
tks for your help
Jan
Phoca Hero
Posts: 49297 Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:
Post
by Jan » 15 Sep 2009, 17:05
Hi, this you can change it it:
\components\com_phocagallery\views\detail\tmpl\default.php
schlogo
Phoca Enthusiast
Posts: 51 Joined: 03 Sep 2008, 16:45
Contact:
Post
by schlogo » 15 Sep 2009, 17:16
hello
tks for your answer, i ve been looking into this file already, here s what i find , i see no reference to the alt
Code: Select all
<div id="image-box" style="width:<?php echo $this->item->realimagewidth;?>px;"><a href="#" onclick="<?php echo $this->tmpl['detailwindowclose']; ?>"><?php echo JHTML::_( 'image.site', $this->item->linkthumbnailpath, ''); ?></a><?php
$titleDesc = '';
if ($this->tmpl['displaytitleindescription'] == 1) {
$titleDesc .= $this->item->title;
if ($this->item->description != '' && $titleDesc != '') {
$titleDesc .= ' - ';
}
}
schlogo
Phoca Enthusiast
Posts: 51 Joined: 03 Sep 2008, 16:45
Contact:
Post
by schlogo » 18 Sep 2009, 06:10
does anyone sees this problem or am i alone on this?
Jan
Phoca Hero
Posts: 49297 Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:
Post
by Jan » 24 Sep 2009, 15:03
Hi, here:
Code: Select all
JHTML::_( 'image.site', $this->item->linkthumbnailpath, '')
to:
Code: Select all
JHTML::_( 'image.site', $this->item->linkthumbnailpath, 'alt')
Jan
schlogo
Phoca Enthusiast
Posts: 51 Joined: 03 Sep 2008, 16:45
Contact:
Post
by schlogo » 27 Sep 2009, 04:41
hello
when i do this modification; the image does not appear anymore :-/
in the source code; the code is modified like this
src="/altimages/phocagallery/
alt is inserterd before the directory name
Jan
Phoca Hero
Posts: 49297 Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:
Post
by Jan » 01 Oct 2009, 22:53
Hi, try to see the documentation of joomla methods so you exactly know which parameters should be added to JHTML method: JHTML::_( 'image.site' ...
Jan
schlogo
Phoca Enthusiast
Posts: 51 Joined: 03 Sep 2008, 16:45
Contact:
Post
by schlogo » 02 Oct 2009, 04:05
ok i thought it was a parameter from the gallery, i am going to look into this
tks
Jan wrote: Hi, try to see the documentation of joomla methods so you exactly know which parameters should be added to JHTML method: JHTML::_( 'image.site' ...
Jan