Page 11 of 21

Re: A new gallery manager : Album

Posted: Tue Jun 06, 2006 4:41 pm
by Russ
Well done Elijah on all the good work ;-)
Maybe some problems?
1. I downloaded the latest Album from SVN and uninstalled the old version and then re-installed the new one which of course failed. Changed the version requirements so it would work with 0.13 final. Recreated two albums, CD Covers and Metal Photos
I have an album index page...
http://localhost/cms/cmsmodules/album/

In it is {cms_module module="album"}

This lists two albums which show links to
http://localhost/cms/cmsmodules/album/album-1/
http://localhost/cms/cmsmodules/album/album-2/

I can click on either album to open the gallery? But end up at either
http://localhost/cms/cmsmodules/album/album-1/
or
http://localhost/cms/cmsmodules/album/album-2/

Which is the same page with no images at all? Am I missing something or is something else updated in the CMS SVN that is required for this too work?

Would it not be better to use the calling page and the album name (lower case and spaces removed)?
e.g.
http://localhost/cms/cmsmodules/album/cdcovers/
http://localhost/cms/cmsmodules/album/metalphotos/

and then
http://localhost/cms/cmsmodules/album/cdcovers/1/
http://localhost/cms/cmsmodules/album/cdcovers/2/
etc. for each image


The same could apply to news, but with categories and date? Or perhaps just date and article, I'm not sure how people do it normally for news?

2. You are inserting JavaScript into the page?





Not sure if this is a good idea. It makes more sense to me to tell users and let them include it by default - you can use the code for more than just this! If you do want to do it like this then please give an option to turn off inserting the javascript - so we can do it manually if we like :) Which one of the many files is this in?

Russ

Re: A new gallery manager : Album

Posted: Wed Jun 07, 2006 12:51 am
by Dr.CSS
Hi Russ
have you ever used the ImageGallery tag?
i'm having a little trouble with a slight modification i've done to it, thread...
http://forum.cmsmadesimple.org/index.ph ... 059.0.html

Re: A new gallery manager : Album

Posted: Wed Jun 07, 2006 9:01 am
by Russ
Sorry Elijah, reference:
2. You are inserting JavaScript into the page?





Not sure if this is a good idea. It makes more sense to me to tell users and let them include it by default - you can use the code for more than just this! If you do want to do it like this then please give an option to turn off inserting the javascript - so we can do it manually if we like Smiley Which one of the many files is this in?
I see you are putting it in the smarty template - very good idea !

Russ

Re: A new gallery manager : Album

Posted: Wed Jun 07, 2006 9:51 pm
by Mesmer
Would be great if Album has the option to add a watermark to each picture.

Re: A new gallery manager : Album

Posted: Thu Jun 08, 2006 11:55 pm
by Elijah Lofgren
zsero wrote: How can I get the files via SVN?
devforge http method gives error, and svn client (tortoise svn) says "error * REPORT failed on ..."
If you were just using the command line in Linux the command would be:
I've never used TortoiseSVN, but looking at this page: http://tortoisesvn.sourceforge.net/docs ... 05s03.html
It looks like you just do the following:
Select a directory in windows explorer where you want to place your working copy. Right click to pop up the context menu and select the command TortoiseSVN → Checkout...
Then in the URL of repository try putting this:
Hope this helps.

Re: A new gallery manager : Album

Posted: Fri Jun 09, 2006 1:06 pm
by zsero
I've tried TortoiseSVN and RapidSVN and the usage is plain simple, but each time I try to do a checkout it replies:
Error 400 bad request.

Re: A new gallery manager : Album

Posted: Fri Jun 09, 2006 1:41 pm
by zsero
I tried it from another location behind another firewall and it works there. I don't know if it's connected to forge's SVN system or not.

Re: A new gallery manager : Album

Posted: Mon Jun 12, 2006 10:25 am
by Russ
Russ wrote: Well done Elijah on all the good work ;-)
Maybe some problems?
1. I downloaded the latest Album from SVN and uninstalled the old version and then re-installed the new one which of course failed. Changed the version requirements so it would work with 0.13 final. Recreated two albums, CD Covers and Metal Photos
I have an album index page...
http://localhost/cms/cmsmodules/album/

In it is {cms_module module="album"}

This lists two albums which show links to
http://localhost/cms/cmsmodules/album/album-1/
http://localhost/cms/cmsmodules/album/album-2/

I can click on either album to open the gallery? But end up at either
http://localhost/cms/cmsmodules/album/album-1/
or
http://localhost/cms/cmsmodules/album/album-2/

Which is the same page with no images at all? Am I missing something or is something else updated in the CMS SVN that is required for this too work?

Would it not be better to use the calling page and the album name (lower case and spaces removed)?
e.g.
http://localhost/cms/cmsmodules/album/cdcovers/
http://localhost/cms/cmsmodules/album/metalphotos/

and then
http://localhost/cms/cmsmodules/album/cdcovers/1/
http://localhost/cms/cmsmodules/album/cdcovers/2/
etc. for each image


The same could apply to news, but with categories and date? Or perhaps just date and article, I'm not sure how people do it normally for news?....
Elijah, did you have any thoughts on my previous post?

Russ

Re: A new gallery manager : Album

Posted: Mon Jun 12, 2006 2:57 pm
by Elijah Lofgren
Russ wrote: Well done Elijah on all the good work ;-)
Thanks.
Russ wrote: Maybe some problems?
1. I downloaded the latest Album from SVN and uninstalled the old version and then re-installed the new one which of course failed. Changed the version requirements so it would work with 0.13 final. Recreated two albums, CD Covers and Metal Photos
I have an album index page...
http://localhost/cms/cmsmodules/album/

In it is {cms_module module="album"}

This lists two albums which show links to
http://localhost/cms/cmsmodules/album/album-1/
http://localhost/cms/cmsmodules/album/album-2/

I can click on either album to open the gallery? But end up at either
http://localhost/cms/cmsmodules/album/album-1/
or
http://localhost/cms/cmsmodules/album/album-2/

Which is the same page with no images at all? Am I missing something or is something else updated in the CMS SVN that is required for this too work?
Hmm... Latest SVN works fine for me. It also worked for greg. I'd try updating to the latest SVN again and see if it still doesn't work. Also I would try uninstalling and reinstalling Album. Also make sure you have your .htaccess file set up like the one here:
http://wiki.cmsmadesimple.org/index.php ... retty_URLs

Russ wrote: Would it not be better to use the calling page and the album name (lower case and spaces removed)?
e.g.
http://localhost/cms/cmsmodules/album/cdcovers/
http://localhost/cms/cmsmodules/album/metalphotos/

and then
http://localhost/cms/cmsmodules/album/cdcovers/1/
http://localhost/cms/cmsmodules/album/cdcovers/2/
etc. for each image


The same could apply to news, but with categories and date? Or perhaps just date and article, I'm not sure how people do it normally for news?
I think the current URL format is as good as its going to get. I can't find an easy way to get them much nicer. I'll likely never get around to improving the News URLs. Feel free to submit patches if you come up with a way to give Album better URLs, I just don't have the time to try making them any better right now.

Re: A new gallery manager : Album

Posted: Sat Jun 17, 2006 6:29 am
by tonyg
God_Zilla wrote: If you want the picture to popup without toolbars and scrollbars. Insert this code instead
picture}" onclick="window.open(this.href, '', 'height=650,width=850,left=50,top=50,screenX=50,screenY=50'); return false" target=_blank  href="window.open(this.href)">thumbnail}" alt="" border="1">
Work perfect for me.
Hi, I can't get this to work for some reason. I changed both references in lib.defaulttemplate.php, but I am still getting the same thumbnail behaviours. Look at my galleries below:

http://www.brisbanebikers.com/cms/index ... _club_2005
http://www.brisbanebikers.com/cms/index ... cruze_2005

Both are set up the same way (embedded in a content page). But both behave differently. And both annoy me. I'd like to just see the thumbnails and pop up into a new stripped window (preferable tailoired to the image dimensions) to view the image.

Any help appreciated,

TonyG

PS: My template now looks like this:

Code: Select all

<?php
$this->SetTemplate('default','
{if $returnlink}<br /><a href="{$returnlink}">Back</a>{/if}
{if !$album}
<table>
	{foreach from=$albums item=album}
	<tr style="height:100px;vertical-align:middle">
		<td style="border:1px solid #ECECEC;width:100px;text-align:center">
			<a href="{$album->link}"><img src="{$album->thumbnail}" alt="{$album->name}" /></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}

<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->picture}" onclick="window.open(this.href, '', 'height=650,width=850,left=50,top=50,screenX=50,screenY=50'); return false" target=_blank  href="window.open(this.href)"><img src="{$onepicture->thumbnail}" alt="" border="1"></a>

		</td>
		{if ($onepicture->number==$picturenumber and !$picture)}{assign var=picture value=$onepicture}{/if}
		{/foreach}
	</tr>
	{/foreach}
</table>

{if $picturecount==0}No image{/if}
{/if}

{if $picture->id>0}
<br />
<a href="{$link.picture.first}" title="first picture"><< </a>
{if $link.picture.previous}<a href="{$link.picture.previous}" title="previous picture">< </a>{/if}
picture {$picturenumber}/{$picturecount}
{if $link.picture.next}<a href="{$link.picture.next}" title="next picture"> ></a>{/if}
<a href="{$link.picture.last}" title="last picture"> >></a>
<br />
<img src="{$picture->picture}" alt="{$picture->name}" />
<h3>{$picture->name}</h3>
<div>{$picture->comment}</div>
{/if}
');

$this->SetTemplate('separate_thumbnails','
{if !$album}
{if $returnlink}<br /><a href="{$returnlink}">Back</a>{/if}
<table>
	{foreach from=$albums item=album}
	<tr style="height:100px;vertical-align:middle">
		<td style="border:1px solid #ECECEC;width:100px;text-align:center">
			<a href="{$album->link}"><img src="{$album->thumbnail}" alt="{$album->name}" /></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>

{elseif $pictureid != 0}
<p><a href="{$albumbacklink}">Back to thumbnails</a></p>
<br />
<a href="{$link.picture.first}" title="first picture"><< </a>
{if $link.picture.previous}<a href="{$link.picture.previous}" title="previous picture">< </a>{/if}
picture {$picturenumber}/{$picturecount}
{if $link.picture.next}<a href="{$link.picture.next}" title="next picture"> ></a>{/if}
<a href="{$link.picture.last}" title="last picture"> >></a>
<br />
<img src="{$picture->picture}" alt="{$picture->name}" />
<h3>{$picture->name}</h3>
<div>{$picture->comment}</div>
{else}
<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->picture}" onclick="window.open(this.href, '', 'height=650,width=850,left=50,top=50,screenX=50,screenY=50'); return false" target=_blank  href="window.open(this.href)"><img src="{$onepicture->thumbnail}" alt="" border="1"></a>
		</td>
		{if ($onepicture->number==$picturenumber and !$picture)}{assign var=picture value=$onepicture}{/if}
		{/foreach}
	</tr>
	{/foreach}
</table>

{if $picturecount==0}No image{/if}
{/if}
');

?>

Re: A new gallery manager : Album

Posted: Sat Jun 17, 2006 6:48 pm
by Elijah Lofgren
tonyg wrote: ... I'd like to just see the thumbnails and pop up into a new stripped window (preferable tailoired to the image dimensions) to view the image.
I have just released Album 0.5.0 which includes a template called "Pats-ImageGallery". That template should do what you are wanting.
You can download Album 0.5.0 from here: http://dev.cmsmadesimple.org/frs/?group ... ase_id=500

Re: A new gallery manager : Album

Posted: Sun Jun 18, 2006 1:49 pm
by Greg
Elijah is there a way to 'Upgrade' the Templates from one version to the next?

I just upgraded from 0.5.0-svn to 0.5.0 (which added 'Pats-ImageGallery" template).

The version changes on the 'Modules' page but the new templates don't show up on the 'Templates' page on the Photo Album management screens. They show up if I do an 'uninstall' 'install' of the module but then I have to rebuild all the albums.

BTW Great job on this Module!!

Re: A new gallery manager : Album

Posted: Mon Jun 19, 2006 4:03 am
by Elijah Lofgren
Greg wrote: Elijah is there a way to 'Upgrade' the Templates from one version to the next?
Not yet, but I'll hopefully eventually add the ability to restore the default templates: http://dev.cmsmadesimple.org/tracker/in ... 7&atid=728

In the meantime you can just copy the content of a ".tpl" file located in modules/Album/templates/db to a new Album template.
Greg wrote: BTW Great job on this Module!!
Thanks.  :)

Re: A new gallery manager : Album

Posted: Mon Jun 19, 2006 7:29 am
by tonyg
Elijah Lofgren wrote:
tonyg wrote: ... I'd like to just see the thumbnails and pop up into a new stripped window (preferable tailoired to the image dimensions) to view the image.
I have just released Album 0.5.0 which includes a template called "Pats-ImageGallery". That template should do what you are wanting.
You can download Album 0.5.0 from here: http://dev.cmsmadesimple.org/frs/?group ... ase_id=500
Hi Elijah

What is the XML file for ... and do I need it?

Tony

Re: A new gallery manager : Album

Posted: Mon Jun 19, 2006 2:46 pm
by Elijah Lofgren
tonyg wrote: What is the XML file for ... and do I need it?
You can optionally use the XML file to install the Album module instead of unpacking and uploading the contents of the .tar.gz file. The downside of this is that on some webservers you won't be able to modify the files in modules/Album because they will be owned by the web server user and not you, this makes patching Album files difficult.
I've added a note about this to: http://wiki.cmsmadesimple.org/index.php ... ns/Modules