A new photo album manager : Gallery

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: A new photo album manager : Gallery

Post by Jos »

step by step:

1) create a new template "topgallery". this can be a copy of the one you normally use and delete the things you dont want to see in the top level gallery.

2) go to the backend of the top level gallery (the place you can set the title and comment etc)

3) specify which template this top level gallery should use. Set it to "topgallery"
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: A new photo album manager : Gallery

Post by nicmare »

ah, allright sorry. i got it now. i thought a way much complicate ;-).

Jos, how can i access the big image of the cover of a gallery? can't find that in the wiki :(.
i want to make another *overview*template with the gallery title and one big (cover) image.

in {$images} i just can find
[thumb] => uploads/images/GalleryThumbs/7-6.jpg
but the path to that big image would be great!
Last edited by nicmare on Wed Jun 16, 2010 4:35 pm, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: A new photo album manager : Gallery

Post by Jos »

For a "album-cover" the big picture is not available. You can create a template with "large" thumbs  ;)
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: A new photo album manager : Gallery

Post by nicmare »

haha, what a nice walkaround! this fills out my needs! thank you very much. be excited! currently i am developing a nice small pictures website with a very special feature :-). i will post it at the end of next week!
before i forget it: please add features:
1. quality of thumbnails (looks bad at big thumbnails ;-))
2. renaming templates (is currently impossible?!)
it does not work when i try it in cms_module_gallery_templateprops

thank you :D
Last edited by nicmare on Thu Jun 17, 2010 4:42 pm, edited 1 time in total.
User avatar
Tetsuo
Forum Members
Forum Members
Posts: 58
Joined: Wed Aug 19, 2009 12:00 pm
Location: UK

Re: A new photo album manager : Gallery

Post by Tetsuo »

Excellent work with this module, Jos :) I've started to play around with it today, and I'm very impressed with it's ease of use. I can't believe it's only a recent project, it looks like it's one of the oldest plugins around with all it's features.

But anyway, of course, I have a question ;)

What I want to know is how is it possible to have 2 or more instances of Gallery on the same page? Then each of these Galleries will be pulling in images from 2 or more different sets of images. Is this possible?

I am using my own custom template (thank you for implementing this feature, very useful) and my own JS plugin (I am a Mootools dev, so I have my own preferences!). You can see it here:
http://213.175.206.16/~tyrepark/index.php?page=gallery

How do I duplicate my foreach statement so that I can have two Galleries on the page? Presumable I will need to specify a different image directory somewhere so that they are unique? I hope it's possible :(

Here is the main part of my custom template:

Code: Select all

{foreach from=$images item=image}
			<li>
			{if $image->isdir}
				<a href="{$image->file}"><span>{$image->title}</span><img src="{$image->thumb}" alt="{$image->title}" class="thumb" /></a>
				{else}
				<a class="item" href="{$image->file}"><span>{$image->title}</span><img src="{$image->thumb}" alt="{$image->title}" class="thumb" /></a>
			{/if}
			</li>
		{/foreach}
Thanks for your time.
User avatar
Tetsuo
Forum Members
Forum Members
Posts: 58
Joined: Wed Aug 19, 2009 12:00 pm
Location: UK

Re: A new photo album manager : Gallery

Post by Tetsuo »

OK, it looks like I've figured this out now, I should have read the documentation more!

Code: Select all

{Gallery dir="gallery02"}
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: A new photo album manager : Gallery

Post by nicmare »

some offtopic hint to share with the community because i was looking for formating the date of the gallery. and i found nothing here. maybe someone helps it how to format the date. you simple use a smarty modifier:
{$image->filedate|date_format:"%d. %B %Y"} and you get 17. June 2010 (german format)
find your specifications in the smarty docs
User avatar
Tetsuo
Forum Members
Forum Members
Posts: 58
Joined: Wed Aug 19, 2009 12:00 pm
Location: UK

Re: A new photo album manager : Gallery

Post by Tetsuo »

Is is possible in the Gallery in the CMS to either:

Increase the length of the Title field to more characters (it seems to be limited to 100)?
Have a 2nd Title field of some sort, similar to the Comments field and have this pulled into the outputted HTML too?
Have the Comments field output it's content to HTML?
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: A new photo album manager : Gallery

Post by Jos »

Tetsuo wrote: Is is possible in the Gallery in the CMS to either:

Increase the length of the Title field to more characters (it seems to be limited to 100)?
Yes, you can change the fieldsettings in the database (with e.g. phpMyAdmin)
Tetsuo wrote:Have a 2nd Title field of some sort, similar to the Comments field and have this pulled into the outputted HTML too?
No, not without hacking the code
Tetsuo wrote: Have the Comments field output it's content to HTML?
The image commentsfield is a plain textfield which can contain anything you want. Setting a single parameter in the code can change it to a field with WYSIWYG-editor. This will however completely destroy the compact view of the backend gallery page.
The way you output it is up to the gallery-template you use, and you can adjust it to your own needs.

Better use the album module if you want an overload of fields per image
Last edited by Jos on Wed Jun 23, 2010 11:46 am, edited 1 time in total.
User avatar
Tetsuo
Forum Members
Forum Members
Posts: 58
Joined: Wed Aug 19, 2009 12:00 pm
Location: UK

Re: A new photo album manager : Gallery

Post by Tetsuo »

Thanks Jos. To be clear, all of these are related to the Image/Title/Comment/Date/Album Cover etc.. fields, not gallerytitle, gallerycomment etc.
Jos wrote:
Tetsuo wrote: Is is possible in the Gallery in the CMS to either:

Increase the length of the Title field to more characters (it seems to be limited to 100)?
Yes, you can change the fieldsettings in the database (with e.g. phpMyAdmin)

Is there a way to do this via a paremeter on the front-end, anywhere in the code? I was thinking something like {$image->title charlength="200"}
Tetsuo wrote:Have a 2nd Title field of some sort, similar to the Comments field and have this pulled into the outputted HTML too?
No, not without hacking the code
Tetsuo wrote: Have the Comments field output it's content to HTML?
The image commentsfield is a plain textfield which can contain anything you want. Setting a single parameter in the code can change it to a field with WYSIWYG-editor. This will however completely destroy the compact view of the backend gallery page.
The way you output it is up to the gallery-template you use, and you can adjust it to your own needs.

I actually meant the Comment box next to the images themselves, as mentioned above. Is this possible?

Better use the album module if you want an overload of fields per image
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: A new photo album manager : Gallery

Post by Jos »

Tetsuo wrote: Thanks Jos. To be clear, all of these are related to the Image/Title/Comment/Date/Album Cover etc.. fields, not gallerytitle, gallerycomment etc.
That's how I understood (and answered) it also  :)

The image titlefield is of type VARCHAR(255) so it should be able to hold 255 characters. If you want more, you can set it to type TEXT.
User avatar
Tetsuo
Forum Members
Forum Members
Posts: 58
Joined: Wed Aug 19, 2009 12:00 pm
Location: UK

Re: A new photo album manager : Gallery

Post by Tetsuo »

Jos wrote:
Tetsuo wrote: Thanks Jos. To be clear, all of these are related to the Image/Title/Comment/Date/Album Cover etc.. fields, not gallerytitle, gallerycomment etc.
That's how I understood (and answered) it also  :)

The image titlefield is of type VARCHAR(255) so it should be able to hold 255 characters. If you want more, you can set it to type TEXT.

Thanks :) Could you please tell me how to do that (in the CMS or templates)?
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: A new photo album manager : Gallery

Post by nicmare »

you have to go in your mysql database. i.e. with phpmyadmin! but you have to be experienced and careful!
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: A new photo album manager : Gallery

Post by nicmare »

i am wondering what happens when i move one existing gallery from one folder to another (silbing) folder thru ftp mode? does everyhing is going to work properly? the idea is having some functionality of "categories". i want to sort my albums by time/year. therefore i wanted to start creating folders of 2009, 2010 and archive. so when one album gets outdated, i want to move it to archive folder. is this going to work?
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: A new photo album manager : Gallery

Post by Jos »

It will work, but you will lose all imagetitles and comments!

You better use the move-function that is built in the Gallery module  8)
Locked

Return to “Modules/Add-Ons”