Hi
I have edited the coding of
Simple Image Gallery PRO so that the gallery would look better.
in the jwsigpro.php from line 332
if (file_exists($mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).".".$format) && filemtime ($mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).".".$format) + $cache_expire_time * 60 > time()) {
$html .= $leftcomment.'<img alt="'.$clickopen.'" title="'.$clickopen.'" src="'.$mosConfig_live_site.$tempfolder.md5($_images_dir_.$name).".".$format.'" />'.$rightcomment;
} else {
$fromname = $mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a];
$toname = $mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).".".$format;
$toname_live = $mosConfig_live_site.$tempfolder.md5($_images_dir_.$name).".".$format;
$result = $this->makeThumb( $fromname, $toname, $image_type, $_quality_, $_width_final_, $_height_final_);
if($result)
$html .=$leftcomment.'<img alt="'.$clickopen.'" title="'.$clickopen.'" src="'.$toname_live.'" />'.$rightcomment;
else
$html .='<span>Error creating thumbnail!</span>';
} |
Ive changed it so it wouldn't use the <img> output but a <div>
Ive got this idea after seeing the
www.contextes.org/index.php?option=com_content&task=blogcategory&id=54&Itemid=90
Page
they did the same.
Ive changed everything so it would look the same (with the same class)
if (file_exists($mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).".".$format) && filemtime ($mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).".".$format) + $cache_expire_time * 60 > time()) {
$html .= $leftcomment.'<div class="thumb_size" title="asd'.$clickopen.'" style="background-image: url('.$mosConfig_live_site.$tempfolder.md5($_images_dir_.$name).".".$format.')" ></div>'.$rightcomment;
} else {
$fromname = $mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a];
$toname = $mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).".".$format;
$toname_live = $mosConfig_live_site.$tempfolder.md5($_images_dir_.$name).".".$format;
$result = $this->makeThumb( $fromname, $toname, $image_type, $_quality_, $_width_final_, $_height_final_);
if($result)
$html .=$leftcomment.'<div class="thumb_size" title="'.$clickopen.'" style="background-image: url('.$toname_live.')" ></div>'.$rightcomment;
else
$html .='<span>Error creating thumbnail!</span>';
} |
but it crashes some times when you open the menu again
it doesn't display all of the pictures in FireFox it closes the <a> link before the <div>
this is the website that i work on right now:
www.m-four.org/our-work/test
if you cant make the error appear it looks like this:
www.m-four.org/images/stories/error.jpg
it doesn't happen in the website
www.contextes.org/index.php?option=com_content&task=blogcategory&id=54&Itemid=90
maybe they corrected the problem but i cant find a solution.
Please HELLP