Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Component crashes sometimes, doesn't display all images

  • eternos
  • eternos's Avatar Topic Author
  • Offline
  • New Member
More
15 years 11 months ago #20740 by eternos
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

Please Log in or Create an account to join the conversation.

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
15 years 10 months ago #20741 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: Component crashes sometimes, doesn't display all images
Hi there!

Hmmm... I checked your site using 4 different pc and 2 different providers
but every time the page loads good with all the thumbs.

I believe the error you receive ( missing thumbs ) is caused from the loading time
of the page. It's just an opinion. I'll continue to ping to your site until I get the missing thumbs.

Thank you!

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • eternos
  • eternos's Avatar Topic Author
  • Offline
  • New Member
More
15 years 10 months ago #20742 by eternos
Hi i already fixed the error :)

well i couldn't fix the problem why does the component crash on FF so i remade the old style to look like i wanted to but i had to use the same <a><img/></a> layout.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum