Page 18 of 21

Re: A new gallery manager : Album

Posted: Wed Jan 03, 2007 6:53 am
by Dr.CSS
If you go to the first link... it uses the album template I posted in Album but if I try to put it in a newer Album, newer than 0.2.0 it won't work...

thanks...

[EDIT: I'll try that] thanks... again...

Thanks it works now... I have to put it in it's own div as #main has calls for ul li margins...

Here's the CSS for it...

#gallery {
  padding:0;
  margin:0;
  list-style-type:none;
  overflow:hidden;
  width:655px;
  height:320px;
  boder:1px solid #888;
  background:#fff url(windows/win_back.gif);
  }
#gallery li {
  float:left;
  }

#cssphoto{clear:both}
#cssphoto ul#gallery {margin-left:30px}

#cssphoto ul#gallery li {
  margin:0px;
  }


#gallery li a {
  display:block;
  height:320px;
  width:30px;
  float:left;
  text-decoration:none;
  border-bottom:1px solid #fff;
  cursor:default;
  }
#gallery li a img {
  width:30px;
  height:320px;
  border:0;
  }
#gallery li a:hover {
  background:#eee;
  width:389px;
  }
#gallery li a:hover img {
  width:389px;
  }

EDIT: again... this works... http://multiintech.com/CMSMSDemo/

Re: A new gallery manager : Album

Posted: Wed Jan 03, 2007 1:02 pm
by MichaelK
I install this new version but there's no Greybox template in it.  :-\


I just now the lightbox and when I click on a thumbnail it works perfect but I get a javascipt error.

Error:
regel 51
teken: 7
fout: 'wich' is empy or no object
Code: 0

Re: A new gallery manager : Album

Posted: Wed Jan 03, 2007 4:21 pm
by Elijah Lofgren
MichaelK wrote: I install this new version but there's no Greybox template in it.  :-\
The greybox template is called "default.tpl".
Just do this:
1. Go to Content » Photo Albums
2. Click on the "File Templates" tab.
3. Click on Import template next to "default.tpl"
4. Change the name to "greybox"
5. Click submit.
6. Change your album to use the newly imported greybox template. :)

MichaelK wrote: I just now the lightbox and when I click on a thumbnail it works perfect but I get a javascipt error.

Error:
regel 51
teken: 7
fout: 'wich' is empy or no object
Code: 0
I can't seem to reproduce this problem. I have lightbox here and it works fine in Firefox 2 and IE 6: http://www.elijahlofgren.com/pictures/west-africa/

Do you have a URL where I could see the error?

Re: A new gallery manager : Album

Posted: Sat Jan 06, 2007 1:43 pm
by tille
Hi,

Ijust started with cmsms and wanted an album gallery and after seeing some examples i tried the album module with greybox because it looks amazing, but i seem to have some problems setting up my albums.

I get the link to the album ok, i get the thumbnails, but when I click on one of the thumbnails I can't get my larger picture to show correctly! Its always somewhere down below and when you scroll to the bottom you can see some of it. I've allready searched through the forum and tried several things but nothing seems to help ... I would really appreciate if you could give me some pointers!

Here's my link : http://www.top-spin.be/cmsms/index.php?page=foto-album

Thanx

Re: A new gallery manager : Album

Posted: Sat Jan 06, 2007 3:00 pm
by Greg
The stylesheet 'Album Template Stylesheet' needs to be associated with the template you are using for the album.
Goto 'Layout' - 'Stylesheets' then click the CSS icon to the right of the 'Album Template Stylesheet'
Looks like the stylesheet should be associated with the 'Left simple navigation + 1 column' template for your web site.
Find 'Left simple navigation + 1 column' in the dropdown list then click the 'Attach to this template' button.
If you are using other templates with this same stylesheet you will have to select them in the dropdown and 'attach' them as well.

Re: A new gallery manager : Album

Posted: Sat Jan 06, 2007 5:22 pm
by tille
Greg,

Thanks for the help. My album looks much better right now!

Re: A new gallery manager : Album

Posted: Thu Jan 11, 2007 8:12 pm
by dignity
Great module!
One Question:
Is there any posibility to include
Album name in to Title of a page?

PS. sorry for my english.

Re: A new gallery manager : Album

Posted: Thu Jan 11, 2007 9:28 pm
by Elijah Lofgren
dignity wrote: Great module!
One Question:
Is there any posibility to include
Album name in to Title of a page?

PS. sorry for my english.
Yes, I plan to add that possibility into the next version of Album (probably will be out sometime in Summer after I get back from college).

In the meantime....

Using the latest released version of Album...

1. Open modules/Album/classes/module/class.Album.php
2. Find this:

Code: Select all

function GetAlbum ($albumid)
{
	$albums = $this->GetAlbums($albumid);

	return $albums[0];
}
3. After it add this:

Code: Select all

    /**
     * Automatically inserts the Album title
     * Code adapted from the News module
     */		
	function ContentPostRender(&$content)
	{
		global $gCms;
		$config =& $gCms->GetConfig();

		// Insert the Album title
		$text = ' '.$this->AlbumTitle;
		if (function_exists('str_ireplace'))
		{
			$content = str_ireplace('</title>', $text.'</title>', $content);
		}
		else
		{
			$content = eregi_replace('<\/title>', $text.'</title>', $content);
		}
	
	}
4. Find this:

Code: Select all

$album->name = $row['album_name'];
5. After it add:

Code: Select all

$this->AlbumTitle = $album->name;
(Filed as FR: http://dev.cmsmadesimple.org/tracker/in ... 7&atid=728 )

Hope this helps,

Elijah

Re: A new gallery manager : Album

Posted: Thu Jan 11, 2007 9:38 pm
by dignity
Wow great!

thanks for the guide!!

Respect!

Re: A new gallery manager : Album

Posted: Fri Jan 12, 2007 8:27 am
by dignity
Elijah!
Your guide helps a lot!
but i have made small changes:

after

Code: Select all

function GetAlbum ($albumid)
{
	$albums = $this->GetAlbums($albumid);

	return $albums[0];
}
I added

Code: Select all

 /**
     * Automatically inserts the Album title
     * Code adapted from the News module
     */		
	function ContentPostRender(&$content)
	{
            if(isset($this->AlbumTitle)){
		global $gCms;
		$config =& $gCms->GetConfig();

		// Insert the Album title
		$text = ' : '.$this->AlbumTitle;
		if (function_exists('str_ireplace'))
		{
			$content = str_ireplace('</title>', $text.'</title>', $content);
		}
		else
		{
			$content = eregi_replace('<\/title>', $text.'</title>', $content);
		}
	        }
	}
And second changes i've made to action.default.php
After line

Code: Select all

$album = &$albums[$currentalbum];

I added

Code: Select all

$this->AlbumTitle = $album->name;
Works like a charm!
check it at
http://www.concertsphoto.com/index.php/gallery/concerts
sorry it is not yet correct multilang.

Re: A new gallery manager : Album

Posted: Sun Jan 21, 2007 3:52 pm
by Vasuuna
Hi there!
I really hope you guys could help me with a problem I have:
When I click a thumbnail, the big picture is being displayed above my whole Layout. ( I also tried to attach the Album Template Stylesheet to my Layout-Template, but this doesn't work either). Even by using a standard Layout Template the big Picture is being displayed above. Here's the link to my page: http://vasuuna.va.funpic.de/omg/index.php?page=pix

hope you can help me n' sorry for my very bad English ;)

Re: A new gallery manager : Album

Posted: Sun Jan 21, 2007 5:19 pm
by Dr.CSS
You have no style sheets/CSS attached to this template...

And errors...
http://validator.w3.org/check?verbose=1 ... e%3Ddrinks

Re: A new gallery manager : Album

Posted: Thu Feb 08, 2007 12:45 pm
by Mel04
Hi, i am new at CMSMS, everything works perfectly, also album (thanx for the great module!!)
The only problem i have with album is that when i use the upload function in album, he makes a image and a thumb, but when you click on the file (also on my local site) it gives a:

Forbidden
You don't have permission to access /cms/uploads/images/image.jpg


I dont know why it does that, when i use the image uploader inside of CMSMS it works perfectly  ???......i also checked the file permissions (CHMOD 767) What am i doing wrong??

Re: A new gallery manager : Album

Posted: Thu Feb 08, 2007 5:32 pm
by Mel04
??? and now all of a sudden.....it stopped making thumbs....arrrgggg ???

Re: A new gallery manager : Album

Posted: Mon Mar 05, 2007 6:25 pm
by StoneCut
This is a great gallery, I installed this on my XAMP yesterday. Thanks for that. I'm enjoying the default greybox theme most, really. I'm a bit bummed about the javascript warnings, however. I use Web Developer Extension for Firefox and I see tons of warnings about the javascripts. I might be a bit anal since they are only warnings but none of my other pages that I made with this excellent CMS show any warnings. One of these warnings is even in the CSS and leads to me to believe that certain functionality will not work like "filter"

Code: Select all

filter:alpha(opacity=60)
I had a look at other sites that use the prototype.js for whatever purpose and most of them seem to show similar results (even with the "filter" issue), so this is not a module issue or anything. I just wanted to bring it to attention and say thanks at the same time.