A new gallery manager : Album
-
- New Member
- Posts: 6
- Joined: Fri Mar 09, 2007 9:39 pm
Re: A new gallery manager : Album
I love this module, but I have something of an interesting problem.
I have page with two albums displayed on it. The first one has 7 pictures, the second one has 14 pictures, however, when I click on the first image in the first album on the page, it shows the "image count" as: 8 of 14. If I click on the first image in the second album, it shows the "image count" as: 15 of 28. Very bizarre math for a page that has only 21 pictures.
Anyone have any idea on why this might be doing that?
Thanks in advance for any help.
Dawn
I have page with two albums displayed on it. The first one has 7 pictures, the second one has 14 pictures, however, when I click on the first image in the first album on the page, it shows the "image count" as: 8 of 14. If I click on the first image in the second album, it shows the "image count" as: 15 of 28. Very bizarre math for a page that has only 21 pictures.
Anyone have any idea on why this might be doing that?
Thanks in advance for any help.
Dawn
Using: Version 1.0.5 of CMS Made Simple
Re: A new gallery manager : Album
If anyone is interested, I've made a nice little hack that will add the lightbox effect (greyout) from album to work with any individual image chosen from FCKeditor. Does not have to be from your album.
Not an actual module, but a quick hack modifying 2 files.
http://dev.cmsmadesimple.org/projects/image-effects/
Not an actual module, but a quick hack modifying 2 files.
http://dev.cmsmadesimple.org/projects/image-effects/
Re: A new gallery manager : Album
Where is this Album CSS that I am supposed to attach to the template used for this module?
I have three albums selected and there is a huge gap between he first and second galleries that I have to scroll down to see its icon. The distance from second to third is fine.
Very nice module BTW. I just incorporated Slimbox .js and Mootools. Now I am trying to get the album listing and the thumbnails stylized.
I have three albums selected and there is a huge gap between he first and second galleries that I have to scroll down to see its icon. The distance from second to third is fine.
Very nice module BTW. I just incorporated Slimbox .js and Mootools. Now I am trying to get the album listing and the thumbnails stylized.
Re: A new gallery manager : Album
I'm having a strange problem with the Album module? Example is here:
http://jmweb.nl/klanten/ruud/home/
I've just installed CMSMS for this client, it's v1.0.6 and right after installation I got Album out of the repository, version 0.9.2. I've edited nothing, and the mask is set succesfully to 002 as well. But now double slashes are showing in the URL's?
http://jmweb.nl/klanten/ruud//album-1/12//
What can be wrong? Thanks for any input.
http://jmweb.nl/klanten/ruud/home/
I've just installed CMSMS for this client, it's v1.0.6 and right after installation I got Album out of the repository, version 0.9.2. I've edited nothing, and the mask is set succesfully to 002 as well. But now double slashes are showing in the URL's?
http://jmweb.nl/klanten/ruud//album-1/12//
What can be wrong? Thanks for any input.
Re: A new gallery manager : Album
Actually if you load the thickbox js in your template and have the css for it attached, then just adding a class of thickbox to your image link will do the trick. Also use the title attribute - which shows on the picture.
Even easier using TinyMCE, add .thickbox to the css and then it appears in the link dialog class drop down. Add it to the link , pop in a title and there your go.
I think thickbox, especially in its latest guise has numerous advantages over other systems. It seems to be much more accessible with very good keyboard controls and works, after a fashion, even if JS is turned off.
Just my thoughts...
Russ
Even easier using TinyMCE, add .thickbox to the css and then it appears in the link dialog class drop down. Add it to the link , pop in a title and there your go.
I think thickbox, especially in its latest guise has numerous advantages over other systems. It seems to be much more accessible with very good keyboard controls and works, after a fashion, even if JS is turned off.
Just my thoughts...
Russ
Re: A new gallery manager : Album
What template are you using, I had this but can't for the life of me think how I fixed it. I think it was template based hence the question, I know I sent the wrong template to Elijah for the Thickbox - next prev one, and I can post a corrected one if required.amygdela wrote: ... I've just installed CMSMS for this client, it's v1.0.6 and right after installation I got Album out of the repository, version 0.9.2. I've edited nothing, and the mask is set succesfully to 002 as well. But now double slashes are showing in the URL's...
What can be wrong? Thanks for any input.
Russ
Re: A new gallery manager : Album
I don't want thickbox, it doesn't fit in this design. I just want simple navigation structure through my images
I just use the Default template for my Album.
//EDIT
This is getting weirder and weirder
Now after changing to the imageGallery template, the second double slashes are gone, but the first ones persist and now when I click on a thumbnail Im redirected to the adminpanel 
http://jmweb.nl/klanten/ruud/
Again, what can be wrong? This is getting weird

//EDIT
This is getting weirder and weirder


http://jmweb.nl/klanten/ruud/
Again, what can be wrong? This is getting weird

Last edited by amygdela on Wed May 23, 2007 11:01 am, edited 1 time in total.
Re: A new gallery manager : Album
No problems, you can of course use any template you like
I was just pointing out it might have been this. Also check your config to see if there are extra '/'

Re: A new gallery manager : Album
I've checked all template files and even moved the temp site to another server, but still a weird problem persists: When clicking on a thumb, Im redirected to the adminpanel...?
I just see the whole gallery within the adminpanel??
http://ep2up.com/jasper/upload/1179919719.jpg
http://ep2.nl/dev/ruud/index.php?
I tried switching off the pretty URL's but that wasn't helpful.
Paths in my config file:
[php]
#-------------
#Path Settings
#-------------
#Document root as seen from the webserver. No slash at the end
#e.g. http://blah.com
$config['root_url'] = 'http://ep2.nl/dev/ruud';
#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = '/var/www/vhosts/ep2.nl/httpdocs/dev/ruud';
#Name of the admin directory
$config['admin_dir'] = 'admin';
#Where do previews get stored temporarily? It defaults to tmp/cache.
$config['previews_path'] = '/var/www/vhosts/ep2.nl/httpdocs/dev/ruud/tmp/cache';
#Where are uploaded files put? This defaults to uploads.
$config['uploads_path'] = '/var/www/vhosts/ep2.nl/httpdocs/dev/ruud/uploads';
#Where is the url to this uploads directory?
$config['uploads_url'] = 'http://ep2.nl/dev/ruud/uploads';
[/php]
I'm lost here. Can you please help me out here? What could gone wrong?

http://ep2up.com/jasper/upload/1179919719.jpg
http://ep2.nl/dev/ruud/index.php?
I tried switching off the pretty URL's but that wasn't helpful.
Paths in my config file:
[php]
#-------------
#Path Settings
#-------------
#Document root as seen from the webserver. No slash at the end
#e.g. http://blah.com
$config['root_url'] = 'http://ep2.nl/dev/ruud';
#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = '/var/www/vhosts/ep2.nl/httpdocs/dev/ruud';
#Name of the admin directory
$config['admin_dir'] = 'admin';
#Where do previews get stored temporarily? It defaults to tmp/cache.
$config['previews_path'] = '/var/www/vhosts/ep2.nl/httpdocs/dev/ruud/tmp/cache';
#Where are uploaded files put? This defaults to uploads.
$config['uploads_path'] = '/var/www/vhosts/ep2.nl/httpdocs/dev/ruud/uploads';
#Where is the url to this uploads directory?
$config['uploads_url'] = 'http://ep2.nl/dev/ruud/uploads';
[/php]
I'm lost here. Can you please help me out here? What could gone wrong?
Last edited by amygdela on Wed May 23, 2007 11:28 am, edited 1 time in total.
Re: A new gallery manager : Album
hi
i saw that the thumbnail is linked to admin/index.php... so something is wrong with the path. did you change the template?
i saw that the thumbnail is linked to admin/index.php... so something is wrong with the path. did you change the template?
Re: A new gallery manager : Album
Indeed it looks like the path is going mad. Amygdela can you list the template you are using.
Re: A new gallery manager : Album
it's just the untouched version of 'default':
And I haven't changed anything? I just downloaded v1.0.6, installed Album right after installation and now I'm having this strange problem...
Code: Select all
{* Include JS files. You can move this to the head of your page template if you want *}
<!--Thickbox ThickBoxWithPrev-Next stuff-->
<__script__ type="text/javascript" src="modules/Album/templates/db/js/jquery.js"></__script>
<__script__ type="text/javascript" src="modules/Album/templates/db/js/thickbox.js"></__script>
{if $pictureid !=0}
{* Big Picture *}
<div style="text-align:center">
<p class="bigpicturecaption"><strong>{$picture->name}</strong><br />
{$picture->comment}<br />
<span class="bigpicturenav">
{if $link.picture.previous}<a href="{$link.picture.previous}" title="Previous picture">< Previous</a>{/if}
<span class= "albumpicturecount">( Picture {$picturenumber}/{$picturecount} )</span>
{if $link.picture.next}<a href="{$link.picture.next}" title="Next picture">Next ></a></span>{/if}
</p>
<img src="{$picture->picture}" alt="{$picture->name} - {$picture->comment}" title="{$picture->name} - {$picture->comment}" />
</div>
{/if}
{* Album List *}
{if !$album}
<ul class="albumlist">
{foreach from=$albums item=album}
<li class="thumb">
<a href="{$album->link}">
<img src="{$album->thumbnail}" alt="{$album->name}" title="{$album->name} - {$album->comment}"{$album->autothumbnailsize} /></a>
<p class="albumname">{$album->name}<br />
<span class="albumpicturecount">({$album->picturecount} images)</span><br />
<span class="albumcomment">{$album->comment}</span></p>
</li>
{/foreach}
</ul>
{else}
{* Photo List *}
<p><span class="noprint">Click on a thumbnail to view a larger image. Click anywhere on the larger image or use the 'Esc' (escape) key to close it. Use the 'next' and 'previous' links or the '<' or '>' (more than/less than keys) to navigate the larger images. <br/>{if $returnlink}<a href="{$returnlink}">Return to the album index page</a>{/if}</span></p>
{if $pagecount>1}
<p class="albumnav">
<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>
</p>
{/if}
<h3>{$album->name}</h3>
{$album->comment}
<ul class="picturelist">
{foreach from=$pictures item=picturesrow}
{foreach from=$picturesrow item=onepicture}
<li class="thumb"><a href="{$onepicture->picture}" rel="{$album->name}" class="thickbox" title="{$onepicture->name} - {$onepicture->comment}"> <img src="{$onepicture->thumbnail}" alt="{$onepicture->name} - {$onepicture->comment}" title="{$onepicture->name} - {$onepicture->comment}"{$onepicture->autothumbnailsize} /></a>
</li>
{if ($onepicture->number==$picturenumber and !$picture)}{assign var=picture value=$onepicture}{/if}
{/foreach}
{/foreach}
</ul>
{if $picturecount==0}No image{/if}
{/if}
{if $picture->id>0}
{/if}
<div style="clear:both"></div>
- Elijah Lofgren
- Power Poster
- Posts: 811
- Joined: Mon Apr 24, 2006 1:01 am
- Location: Deatsville, AL
Re: A new gallery manager : Album
Strange. It seems the links are being created to go to the Admin Panel.amygdela wrote: I've checked all template files and even moved the temp site to another server, but still a weird problem persists: When clicking on a thumb, Im redirected to the adminpanel...?I just see the whole gallery within the adminpanel??
Try going to the Album Options tab and unchecking the box next to "Use Inline Links". I wonder why the inline links would point to the Admin Panel.
Hope this helps,
Elijah
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. 

Re: A new gallery manager : Album
After fiddling with it for a while I've decided to delete the entire installation and install v1.1rc2. Now a new problem is here, my thumbnails are created, but linked to incorrect?
http://ep2.nl/dev/ruud/
There's an extra piece of URL sticked before each thumbnail link? I've already checked my <base href but that's correct and here's the .htaccess:
When I view the images within the ImageManager, the thumbnail links are like this:
http://ep2.nl/dev/ruudhttp://ep2.nl/dev ... b_1015.jpg
That part before the second 'http://' shouldn't be there at all?
If you need access to see for your self, just login with ruud and pass velden
http://ep2.nl/dev/ruud/
There's an extra piece of URL sticked before each thumbnail link? I've already checked my <base href but that's correct and here's the .htaccess:
Code: Select all
Options +FollowSymLinks
RewriteEngine on
# RewriteBase /dev/ruud/
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
http://ep2.nl/dev/ruudhttp://ep2.nl/dev ... b_1015.jpg
That part before the second 'http://' shouldn't be there at all?
If you need access to see for your self, just login with ruud and pass velden
- Elijah Lofgren
- Power Poster
- Posts: 811
- Joined: Mon Apr 24, 2006 1:01 am
- Location: Deatsville, AL
Re: A new gallery manager : Album
Double check your $config['image_uploads_url'] setting in config.php.
I remember a problem with that in 1.1 svn, but I thought it was fixed.
Hope this helps,
Elijah
I remember a problem with that in 1.1 svn, but I thought it was fixed.
Hope this helps,
Elijah
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. 
