- Posts: 22
COMMUNITY FORUM
- Forum
- Commercial Joomla Extensions & Templates
- Simple Image Gallery PRO
- Performance Problems In Multi-Page Content Items
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.
Performance Problems In Multi-Page Content Items
- Oleksiy Shevchukevych
-
Topic Author
- Offline
- Junior Member
It took me a while to figure out that Simple Image Gallery PRO creates performance problems when I use it in multipage content item.
I have content item splitted up into 17 pages. Each page contains 2 galleries and every gallery consists of just one image. The total number of such-one page galleries is 35. Given such a setup I'm having 2 problems:
1) It takes extremely long to access any of content item's subpage (around 14 seconds)
2) When I access any of content item's subpage using IE, web site's template just drops
You can access multi-page content item I'm having problems with using this URL:
www.boxingcoachmike.com/index.php?option=com_content&task=view&id=8&Itemid=10000
If I remove all galleries from this multi-page content item everything works just fine.
Thanks
Cheetah
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Oleksiy Shevchukevych
-
Topic Author
- Offline
- Junior Member
- Posts: 22
Thanks
Cheetah
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
// create thumbnails
if (file_exists($tempfolder.md5($_images_dir_.$name).$format) && filemtime ($tempfolder.md5($_images_dir_.$name).$format) + $cache_expire_time * 60 > time()) {
$html .= $leftcomment.'<img alt="'.$clickopen.'" title="'.$clickopen.'" src="'.$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 = 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>';
}
with this:
// create thumbnails
$toname = $mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).".".$format;
$toname_live = $mosConfig_live_site.$tempfolder.md5($_images_dir_.$name).".".$format;
if (file_exists($toname) && (filemtime ($toname) + $cache_expire_time * 60 > time())) {
$html .= $leftcomment.'<img alt="'.$clickopen.'" title="'.$clickopen.'" src="'.$toname_live.'" />'.$rightcomment;
} else {
$fromname = $mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a];
$result = 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>';
}
}
Let me know...
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Oleksiy Shevchukevych
-
Topic Author
- Offline
- Junior Member
- Posts: 22
Thanks, it helped. Problem #1 is gone. Although problem #2 still exists. i.e. in IE template drops and I'm getting some javascript errors. In Firefox everything is fine.
Thanks
Oleksiy
Please Log in or Create an account to join the conversation.
- Oleksiy Shevchukevych
-
Topic Author
- Offline
- Junior Member
- Posts: 22
Cheetah
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
<!--[if lte IE 7]>
<link href="http://www.boxingcoachmike.com/templates/rt_sporticus_v2/css/template_ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if lte IE 6]>
<link href="http://www.boxingcoachmike.com/templates/rt_sporticus_v2/css/template_ie.css" rel="stylesheet" type="text/css" />
<![endif]-->
with this:
<!--[if IE 7]>
<link href="http://www.boxingcoachmike.com/templates/rt_sporticus_v2/css/template_ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if lte IE 6]>
<link href="http://www.boxingcoachmike.com/templates/rt_sporticus_v2/css/template_ie.css" rel="stylesheet" type="text/css" />
<![endif]-->
Perhaps the 2 stylesheets conflicted. Notice that the change is on the first "if" statement. Get back to me...
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Oleksiy Shevchukevych
-
Topic Author
- Offline
- Junior Member
- Posts: 22
As for slownes, I have noticed that it's slow only when first request is made after a while. Any subsequent request is much faster. Probably thubnails get regenerated that's why it's taking so long
Thanks
Cheetah
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Oleksiy Shevchukevych
-
Topic Author
- Offline
- Junior Member
- Posts: 22
Thanks
Cheetah
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Oleksiy Shevchukevych
-
Topic Author
- Offline
- Junior Member
- Posts: 22
Cheetah
Please Log in or Create an account to join the conversation.
- Oleksiy Shevchukevych
-
Topic Author
- Offline
- Junior Member
- Posts: 22
<style type="text/css" media="all">#sigid0.sig .sig_cont {width:360px;height:290px;}</style>
<style type="text/css" media="all">#sigid1.sig .sig_cont {width:360px;height:290px;}</style>
<style type="text/css" media="all">#sigid2.sig .sig_cont {width:360px;height:290px;}</style>
............
<style type="text/css" media="all">#sigid33.sig .sig_cont {width:243px;height:360px;}</style>
<style type="text/css" media="all">#sigid34.sig .sig_cont {width:470px;height:358px;}</style>
I think it's a bug in your mambot. Each sigid corresponds to one gallery. So in case of multi-page content item you should not output all sigids for every subpage. I.e the first sub page (www.boxingcoachmike.com/index.php?option=com_content&task=view&id=8&Itemid=10000) should have just these sigids defined:
<style type="text/css" media="all">#sigid0.sig .sig_cont {width:360px;height:290px;}</style>
<style type="text/css" media="all">#sigid1.sig .sig_cont {width:360px;height:290px;}</style>
Please, let me know if you are going to fix it or if you can think of any work around.
Thanks
Cheetah
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Then if you don't set the dimensions on all 20 galleries (!) but a few, then you won't get these issues in IE. Just a thought...
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Oleksiy Shevchukevych
-
Topic Author
- Offline
- Junior Member
- Posts: 22
Cheetah
Please Log in or Create an account to join the conversation.
- Oleksiy Shevchukevych
-
Topic Author
- Offline
- Junior Member
- Posts: 22
Thanks
Cheetah
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
If you remove them, then you will not be able to control dimensions on a per gallery basis. ;)
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Oleksiy Shevchukevych
-
Topic Author
- Offline
- Junior Member
- Posts: 22
<style type="text/css" media="all">#sigid0.sig .sig_cont {width:360px;height:290px;}</style>
<style type="text/css" media="all">#sigid1.sig .sig_cont {width:360px;height:290px;}</style>
<style type="text/css" media="all">#sigid2.sig .sig_cont {width:360px;height:290px;}</style>
............
<style type="text/css" media="all">#sigid33.sig .sig_cont {width:243px;height:360px;}</style>
<style type="text/css" media="all">#sigid34.sig .sig_cont {width:470px;height:358px;}</style>
, it should be this:
<style type="text/css" media="all">
#sigid0.sig .sig_cont {width:360px;height:290px;}
#sigid1.sig .sig_cont {width:360px;height:290px;}
#sigid2.sig .sig_cont {width:360px;height:290px;}
............
#sigid33.sig .sig_cont {width:243px;height:360px;}
#sigid34.sig .sig_cont {width:470px;height:358px;}
</style>
Can you provide a fix? It's really critical for me to get it working.
Thanks
Cheetah
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
- User visits page
- Page starts to render
- When "joomla" finds a plugin/mambot tag it processes it until the content item is rendered.
Now, each time the plugin tags are processed, this <style> tag is written. And it is written all over again, depending on how many plugin tags you have on your page. The css/js file calls are the same, they do not change. So we can tell joomla, "start the plugin processing, but if you find the SAME occurrence again, do not redisplay the css/js calls". Unfortunately, we cannot do the same for the <style> tags, in the way you mention. Cause the processing is done serially.
tags processed, style tag written
tags processed, style tag written
...
tags processed, style tag written
You cannot wrap all of them in <style>...</style>.
It's the way plugins work, which is what I told you in one of my messages earlier.
I can help you hack the plugin to not show the <style> tags at all. But you will not be able to add galleries with custom dimensions.
Let me know.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Oleksiy Shevchukevych
-
Topic Author
- Offline
- Junior Member
- Posts: 22
www.boxingcoachmike.com/index.php?option=com_content&task=view&id=8&Itemid=10000
In Firefox it looks just fine. If you can help to shrink outer bound bar to the size of thubnail so it looks in IE the same way as in Firefox, it would be great. I can send you my current plugin_jw_sigpro.php if you like
Thanks
Cheetah
Please Log in or Create an account to join the conversation.
- Forum
- Commercial Joomla Extensions & Templates
- Simple Image Gallery PRO
- Performance Problems In Multi-Page Content Items