Page 1 of 2
Album module version question
Posted: Mon Apr 22, 2013 9:12 am
by jasnick
Using CMSMS 1.11.5 and Album version 1.10.1 php = 5.3
Cannot get album to open and show thumbnails of images.
Using default template, {Album}on page and {Album action='metadata'} in page Options/meta data box. I have changed the size of the thumbnails to a larger size in Site Admin, but shouldn't have thought that would make any difference. In the Gallery admin, the thumbnails certainly look a bigger size its just that they won't open from the thumbnail on the gallery page. Also, the thumbnail on the gallery page looks the small default size.
On another site, using CMSMS 1.11.4 and Album 1.10-beta2 - no problems!
Same setup.
What am I missing here?
Thanks
Re: Album module version question
Posted: Mon Apr 22, 2013 4:27 pm
by iceman688
I am having the exact same issue.
CMSMS 1.10.3
Album version 1.10.1
Error on site page when I click on any album is
"Warning: Parameter albumid is not known by module Album dropped in /home//web/lib/misc.functions.php on line 1590"
Re: Album module version question
Posted: Tue Apr 23, 2013 6:54 am
by jasnick
Iceman688 - was hoping this post would be a solution
As we are using different CMSMS versions, it must be the Album version?
1.10-beta2 is perfectly fine on another of my sites.
Re: Album module version question
Posted: Tue Apr 23, 2013 6:59 am
by Jo Morg
Yep, there is an issue with Album version 1.10.1, and it will be solved soon AFAIK. In the meanwhile, if you can, revert back to beta.
Re: Album module version question
Posted: Tue Apr 23, 2013 7:07 am
by jasnick
Thank Jo - hope its soon! At least I know now its not ME doing something wrong!
Re: Album module version question
Posted: Wed Apr 24, 2013 6:15 pm
by iceman688
Thanks Jo,
The new version fixed issue however I have an album with 32 images and since update the images fail to wrap at 5 and I have one long string of pictures across site. Any ideas????
Tony
Re: Album module version question
Posted: Wed Apr 24, 2013 6:20 pm
by iceman688
Also Jo,
seems to still be some issues with this module...
Warning: Parameter pictureid is not known by module Album dropped in /home/web/lib/misc.functions.php on line 1590
Tony
Re: Album module version question
Posted: Wed Apr 24, 2013 9:20 pm
by Dr.CSS
@iceman688
I would need to see the site to tell why it's not giving you 5 across, there is a new style sheet for Album links...
Jo Morg has been helping me, the last beta version wasn't cleaning parameters etc., but it seems it's still not quite finished/fixed...
Re: Album module version question
Posted: Wed Apr 24, 2013 9:59 pm
by Dr.CSS
A new version is available, please let me know if it works...
http://dev.cmsmadesimple.org/project/files/167
Re: Album module version question
Posted: Wed Apr 24, 2013 10:11 pm
by iceman688
Re: Album module version question
Posted: Wed Apr 24, 2013 10:22 pm
by iceman688
10.3 fixed last parameter issue.
Thanx both of you. It does not address wrap issue. I am using tables template with changes made to support site colors and navigation so if you can see why wrap is missing now would help.
Tony
Re: Album module version question
Posted: Wed Apr 24, 2013 11:58 pm
by Dr.CSS
I'm not sure what the HTML looked like before but it is a table with 1 tr full of TDs....
<table>
<tr style="height:100px;vertical-align:middle"> (1 of these)
<td style="border:1px solid #ECECEC;width:100px;text-align:center">img</td> lots of these
You could try this which only gives you 4 across, notice your TR is only 100px high...
td {
float: left;
margin: 0 10px 10px;
}
Re: Album module version question
Posted: Thu Apr 25, 2013 6:35 pm
by iceman688
This is current:
{* Include JS files. You can move this to the head of your page template if you want *}
<__script__ language="javascript" type="text/javascript" src="modules/Album/templates/db/js/SMRcode.js"></__script>
{if $picture->id>0}
<br />
<a href="{$link.picture.first}" title="first picture">First Picture</a>
{if $link.picture.previous}<a href="{$link.picture.previous}" title="previous picture">Previous</a>{/if}
| picture {$picturenumber}/{$picturecount} |
{if $link.picture.next}<a href="{$link.picture.next}" title="next picture">Next</a>{/if}
<a href="{$link.picture.last}" title="last picture"></a>
<br />
<a href="" onmouseover="SMR_setLink(this);" target="_blank"><img src="{$picture->picture}" alt="{$picture->name|escape:'html'} - {$picture->comment|escape:'html'}" onload="SMR_resize(this, {$max_image_size});" title="{$picture->name|escape:'html'} - {$picture->comment|escape:'html'}" /></a>
<div>{$picture->comment}</div>
{/if}
{if !$album}
<table>
{foreach from=$albums item=album}
<tr style="height:100px;vertical-align:middle; color:#008000;">
<td style="border:1px solid #ECECEC;width:100px;text-align:center">
<a href="{$album->link}"><img src="{$album->thumbnail}" alt="{$album->name|escape:'html'}" /></a>
</td>
<td style="border:none;width:500px;text-align:left">
{$album->name} <em>({$album->picturecount} images)</em><br />
{$album->comment}
</td>
</tr>
{/foreach}
</table>
{else}
{if $returnlink}<p><a href="{$returnlink}">Back</a></p>{/if}
{if $album->comment}<p>{$album->comment}</p>{/if}
<table>
{if $pagecount>1}
<caption style="text-align:center">
<a href="{$link.page.first}" title="first page"><< </a>
{if $link.page.previous}<a href="{$link.page.previous}" title="previous page">< </a>{/if}
page {$pagenumber}/{$pagecount}
{if $link.page.next}<a href="{$link.page.next}" title="next page"> ></a>{/if}
<a href="{$link.page.last}" title="last page"> >></a>
</caption>
{/if}
{foreach from=$pictures item=picturesrow}
<tr style="height:100px;vertical-align:middle">
{foreach from=$picturesrow item=onepicture}
<td style="border:1px solid #ECECEC;width:100px;text-align:center">
<a href="{$onepicture->link}"> <img src="{$onepicture->thumbnail}" alt="{$onepicture->thumbnail}" /> </a>
</td>
{if ($onepicture->number==$picturenumber and !$picture)}{assign var=picture value=$onepicture}{/if}
{/foreach}
</tr>
{/foreach}
</table>
{if $picturecount==0}No image{/if}
Re: Album module version question
Posted: Thu Apr 25, 2013 9:24 pm
by Dr.CSS
I would change this...
<tr style="height:100px;vertical-align:middle">
<tr style="vertical-align:middle;"> all style calls need ; at the end
Then use the CSS I showed to get them to float left...
Re: Album module version question
Posted: Sat Apr 27, 2013 1:08 am
by iceman688
Thanks Mark,
I tried to edit but didnt have any luck. Guess I missed something.
Maybe you could tag lines that need edit as all mine are failing to wrap. At this point I would even settle for vertical row of single thumbs as horizontal just isnt gonna cut it.
Tony