A new gallery manager : Album

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Mesmer

Re: A new gallery manager : Album

Post by Mesmer »

is there a way to add a comments option to the pictures?
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am
Location: Deatsville, AL

Re: A new gallery manager : Album

Post by Elijah Lofgren »

Mesmer wrote: is there a way to add a comments option to the pictures?
I'll try and see (if it works it will require the SVN versions of CMSMS and the Comments module).
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. :)
Mesmer

Re: A new gallery manager : Album

Post by Mesmer »

Elijah Lofgren wrote:
Mesmer wrote: is there a way to add a comments option to the pictures?
I'll try and see (if it works it will require the SVN versions of CMSMS and the Comments module).
Tanks. If it works Album is definitely the best 'Simple' gallery solution.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: A new gallery manager : Album

Post by Dr.CSS »

You can add Comments in the Album interface,,

    mark
Mesmer

Re: A new gallery manager : Album

Post by Mesmer »

maksbud wrote: You can add Comments in the Album interface,,

    mark
would you explain this a little bit more?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: A new gallery manager : Album

Post by Dr.CSS »

when you create an Album the pictures show up in the album interface as thumbs in rows across the bottom of them are little pictures first on left, looks like mountains, is for changing the big picture related to that thumb, next is small mountains, for changing the thumb related to the big picture, then pad and pencil that is for adding comments to the picture, that is seen when someone views the picture big style in the album, when you clik the pad & paper you get an edit window with the name of the pic. in the top box like apple.jpg you can name it , 'whatever' without the .jpg, under that is bigger edit window, this is where you add a comment, can be long or short message about pic., example page  http://www.multiintech.com/index.php?page=dam_album_mod i've moved the words to the top of the pictures, if you clik on the food or vacation album, then the first pic. in them, you will see comments above pic., the left/right arrows are for moving the order the img. show up in album, the blue barrel is for delete.

    HTH
          mark
Mesmer

Re: A new gallery manager : Album

Post by Mesmer »

Thanks for your reply.

I'm afraid I didn't make myself clear. What I'm searching for is the option for visitors of my site to leave a comment to a picture. Like the comments feature you have at the bottom of your album but then for each picture.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: A new gallery manager : Album

Post by Dr.CSS »

oops sorry for the lengthy tut., my album is a hack on the original album and comments, which leaves me no other way to display it, i can show you how i did it and maybe you can change it to suit your needs, as it is mine will let you leave a comment but it will show up under the list of albums and all the way thru the gallery, not just for a particular img. i put part of the into the template for the album, main template looks like,,

     

  {content}
         
     
   

   
     
       
    {cms_module module="comments" notify="gallery@multiintech.com" spamprotect=1  emailfield="1" websitefield="1"}

the other template fills this in,
 
 


comments template like this,,


{$addacomment}
       
     

{foreach from=$items item=entry}
     
       




{if $entry->author_email}
author_email|escape:"hexentity"}">{$entry->comment_author}
{else}
{$entry->comment_author}
{/if}
{if $entry->author_website}(author_website}" target="_blank">{$entry->author_website}){/if}

{$entry->date}

{$entry->comment_data}
       
       
     

{/foreach}



       
     
     
       

{$startform}
{$notify}
{$spamprotectfld}
{$image}


the stuff in between is in the album like,,

{if $albumcount>0}

     

  My Mod of Dams Album

       
     

       


{foreach from=$albums item=album}


{$album->name}

{$album->comment}

link}"> thumbnail}" />

{/foreach}

 


{else}
{if $returnlink}Return To Albums{/if}

{if $pagecount>0}

{if $link.page.previous}Previous Page {/if}
page {$pagenumber} of {$pagecount}
{if $link.page.next}Next Page  {/if}

{/if}
{foreach from=$pictures item=picturesrow}

{foreach from=$picturesrow item=onepicture}

link}"> thumbnail}" />

{/foreach}

{/foreach}


     
 
 
     
       
  Click for Large Image

       
     
       

{if $picturecount==0}No image{/if}
{/if}
{if $picture->id>0}

{if $link.picture.previous}Prev.   {/if}
Picture {$picturenumber}/{$picturecount}
{if $link.picture.next}   Next {/if}



{$picture->name}
{$picture->comment}
picture}" target="_blank"/>picture}" >
{/if}

blue is my addition, looks kind of stange but it works, tried to do the same thing for news to make a blog but it's not working yet, can't leave a comment just takes you back to the news/blog page,

      mark
Last edited by Dr.CSS on Wed May 10, 2006 8:15 pm, edited 1 time in total.
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am
Location: Deatsville, AL

Re: A new gallery manager : Album

Post by Elijah Lofgren »

Mesmer wrote: ...
What I'm searching for is the option for visitors of my site to leave a comment to a picture. Like the comments feature you have at the bottom of your album but then for each picture.
I just tried it out it works great to leave comments on individual pictures!  ;D

It requires the comments module version 1.6 (not released yet). You can download it from SVN here: http://dev.cmsmadesimple.org/scm/?group_id=23
An easy way to get it is to click the "Download The Nightly SVN Tree Snapshot" link on that page.

It also requires CMSMS 0.13 beta 4

Here's how to get it working:
  • Upgrade to CMSMS 0.13 beta 4 if you haven't already.
  • Upgrade the comments module to 1.6. It's not released yet, but you can get it from here: http://dev.cmsmadesimple.org/scm/?group_id=23
  • In the CMSMS Admin Panel go to "Content->Photo Albums"
  • Click on the "Templates" tab.
  • If you haven't created a custom template click on "default"
  • Scroll down the template until you come to this section:

    Code: Select all

    {if $picture->id>0}
    <br />
    <a href="{$link.picture.first}" alt="first" title="first picture"><< </a>
    {if $link.picture.previous}<a href="{$link.picture.previous}" alt="previous" title="previous picture">< </a>{/if}
    picture {$picturenumber}/{$picturecount}
    {if $link.picture.next}<a href="{$link.picture.next}" alt="next" title="next picture"> ></a>{/if}
    <a href="{$link.picture.last}" alt="last" title="last picture"> >></a>
    <br />
    <img src="{$picture->picture}" />
    <h3>{$picture->name}</h3>
    <div>{$picture->comment}</div>
    {/if}
    
    Add in this line above the "{/if}"

    Code: Select all

    {cms_module
    module='comments' modulename='Album' pageid=$picture->id}
    
    That section should now look like this:
    {if $picture->id>0}


    << 
    {if $link.picture.previous}< {/if}
    picture {$picturenumber}/{$picturecount}
    {if $link.picture.next} >{/if}
     >>


    picture}" />
    {$picture->name}
    {$picture->comment}
    {cms_module
    module='comments' modulename='Album' pageid=$picture->id}

    {/if}
  • Click "Apply"
There, now you should be able to click the "Add A Comment" link under a picture and add a comment to it.  ;)
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. :)
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: A new gallery manager : Album

Post by Dr.CSS »

OH yea you da man got it working the newest comments and CMSMS is the greatest  :D

    mark
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am
Location: Deatsville, AL

Re: A new gallery manager : Album

Post by Elijah Lofgren »

Hi dam,

As promised I have submitted a patch to make Album use clean URLs:
http://dev.cmsmadesimple.org/tracker/in ... 7&atid=727

If anyone else wants to make their module use clean URLs see here for a howto I wrote using Album as an example:
http://wiki.cmsmadesimple.org/index.php ... clean_URLs

It'd be cool if the next version of Album is patched to have clean URLs.  ;)
Thanks dam for making such a cool image gallery!  ;D
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. :)
Mesmer

Re: A new gallery manager : Album

Post by Mesmer »

Elijah Lofgren wrote: Thanks dam for making such a cool image gallery!  ;D
And thanks to you for helping in getting even better!
Last edited by Mesmer on Mon May 15, 2006 9:29 am, edited 1 time in total.
ProSam

Re: A new gallery manager : Album

Post by ProSam »

This plugin is great and very customziable. Thanks.

I'm having a bit of a problem with my template and the  Album template working together.

http://radiomisericordia.com/index.php?page=galeria
I am not able to edit the template for this page. Where is it?


http://radiomisericordia.com/index.php? ... eturnid=39
In FF the page looks perfectly right but in IE6 the content gets pushed down to lower on the page and it looks horrible. Any idea on how to fix this?

Help Please.  :(
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: A new gallery manager : Album

Post by Dr.CSS »

try the old IE hack...

#menu {
background : #DDFC4B url(images/menuBG.png) no-repeat;
width: 205px;
float: left;
margin-left : 1.7em;
display:inline;
list-style : none;
font : 10px Arial, Helvetica, sans-serif;
}

* html body #menu {
background : #DDFC4B url(images/menuBG.png) no-repeat;
width: 200px;
deleted
margin-left : 1.7em;
display:inline;
list-style : none;
font : 10px Arial, Helvetica, sans-serif;
}


#main {
background : url(images/textBG.jpg) no-repeat;
width : 513px;
float : right;
padding-top:15px;
}

* html body #main {
background : url(images/textBG.jpg) no-repeat;
width : 510px;
deleted... IE will look for the order it is on the page and put it after the menu ie. on the side next to it
padding-top:15px;
}

once you have these you can play around to get the right sizes that work... it's a start...

  HTH
        mark
ProSam

Re: A new gallery manager : Album

Post by ProSam »

Hey Mark,
Thanks for trying to help but it doesn't seem to be working. I've played around with the widths and It's not getting any better. Is there anything else I need to adjust.

Sammy
Post Reply

Return to “Modules/Add-Ons”