Alright, so far I've come to these results:
- The problem doesn't exist with a fresh install of CMSMS 1.0.8 and Album 0.9.2 - at least not on my Webaccount which is on an Apache machine with PHP4. Sorry, again an edit: It does exist. It didn't when I forgot to attach the motiongallery.js to my template.
- There is a javascript work-around, but it has a negative effect on the way images are loaded. I don't even know if it is correct javascript, btw. Anyway, here's my attempt:
Code: Select all
/*
Look for:
{*CMotion gallery with thumbnail list*}
...
<a href="{$onepicture->link}" title="{$onepicture->name} | {$picture->comment}" onclick="document.getElementById('maincmotionpic').setAttribute('src', '{$onepicture->picture}').setAtrribute('width';return false;">
<img src="{$onepicture->thumbnail}" alt="{$onepicture->name}"/>
</a>
...
in your Album Module template.
Add code to the onclick-parameter so that it looks like this:
*/
onclick="document.getElementById('maincmotionpic').setAttribute('src', '{$onepicture->picture}').setAtrribute('width', '{$onepicture->width}').setAtrribute('height','{$onepicture->height});return false;"
/*
Altogether, your thumbnail area should look like this:
*/
{*CMotion gallery with thumbnail list*}
<div id="motioncontainer" style="position:relative;overflow:hidden;">
<div id="motiongallery" style="position:absolute;left:0;top:0;white-space: nowrap;">
<div id="trueContainer">
{foreach from=$pictures item=picturesrow}
{foreach from=$picturesrow item=onepicture}
<a href="{$onepicture->link}" title="{$onepicture->name} | {$picture->comment}" onclick="document.getElementById('maincmotionpic').setAttribute('src', '{$onepicture->picture}').setAtrribute('width', '{$onepicture->width}').setAtrribute('height','{$onepicture->height});return false;"> <img src="{$onepicture->thumbnail}" alt="{$onepicture->name}"/></a>
{if ($onepicture->number==$picturenumber and !$picture)}{assign var=picture value=$onepicture}{/if}
{/foreach}
{/foreach}
</div>
</div>
</div>
The bad news about it: All set.Attribute-parameters are executed one after the other which makes the whole page flip upwards for a second before it is displayed correctly. If you can get a hold of a javascript expert, you'll sure get some better code/solution.
Anyway, upgrading the system should be the easiest way to get best results. Disclaimer: Backup, backup, backup - database and files...
See edit above. So we do need somebody better's javascript.
Regards,
Caspar