Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorlrd
    • CommentTimeAug 7th 2008
     
    Hi,

    I want plogger to be able to take a gallery ive created (an "album" i.e. a bunch of thumnails) and plonk it into the page i want.

    For example, say i have a page called birds.php i want to be able to create a "Birds" album and then make plogger insert the thumnails for that album into my page birds.php. And i want to do it for many pages on my site. So i might have the birds.php page which has the bird thumnails, and a page called dogs.php which i can tell plogger to insert the dog album thumnails into. Etc.

    Can plogger do this?

    I just purchased the photo gallery script from php4script.com for $25. It can do it. But the script itself doesn't create the thumnails how i want them to be, like plogger creates them, and it doesnt do a few other things which plogger does, which i need.

    So can plogger do this? And if not? Would it be hard/expensive to pay someone to add this functionality to plogger?
    •  
      CommentAuthorsidtheduck
    • CommentTimeAug 7th 2008
     
    Hi lrd,

    Yes this should be possible to do, although you'll have to either customize a theme more or use custom SQL statements. But a couple of questions first.
    1. Are your page layouts different for each animal, or are the similar with different text and images? i.e. birds.php vs. dogs.php
    2. When you are displaying the thumbnails, do you want a link back to the full gallery or links to the larger images? Or do you just want to display the thumbnails on their own?
    3. Are you comfortable with HTML or CSS and customizing a theme by yourself (with our help of course ;) )?
    4. If you are pulling the thumbnails into an external page, it will be easier to do this if you manually code in where the thumbnails will be pulled. If you want it to assume which album you are talking about based on the name of the album, that can be done as well but will take more coding.
    5. Do you have a link to your existing site so we can help figure out any coding issues?

    That's all the questions I have for now. Let us know!
    • CommentAuthorlrd1
    • CommentTimeAug 7th 2008
     
    Hi sidtheduck,

    this is lrd, the original poster. I forgot my password for my last a/c and must have mispelled my email address when i sign up so could not retrieve my password.

    Basically, my site is about dogs.

    So there is a page for each of 170+ dog breeds.

    So, for example, i have a page about the Chihuahua, Labrador, Dalmatian, etc, etc.

    At the bottom of each breed page i want to display thumbnails of pictures of the breed. So on the Chihuahua page there will be thumbnails at the bottom of the page of Chihuahua photos. I will have a head "More Chihuahua photos" and i want the thumbnails displayed directly under that heading.

    When someone clicks on the thumbnail it should open the page showing the full-sized picture. The page template for the full sized picture needs to be customized so that it only displays the full-sized picture of the thumbnail. I don't want comments, or extra links, or anything else.

    I am an expert at HTML/CSS. I know how to create a .php page. I understand how php pages are dynamic. I know how to use include php files in my sites. But i do not understand any php code other than that.

    If someone can tell me how to make the thumbnails appear on the bottom of one of the dog breed pages - i.e. how to make the Chihuahua thumbnails appear under the heading "Chihuahua photos" on the Chihuahua page chihuahua.php - i think i could figure out the rest from there.

    Thanks! Hope you can help...
    • CommentAuthorlrd1
    • CommentTimeAug 7th 2008
     
    Answers to your questions (may have already answered them in the prev post, but will answer again below to be thourough)

    1. The same. I dont see how this matters though since if the thumnails can be inserted into any page by adding a line of code to that page, what does it matter? But when the thumnail itself is clicked it the page template that shows the thumnail can be standard/the same.

    2. Link to the full size image.

    3. Yes. But i dont think this is a HTML/CSS issue for me. I more need to know how to get plogger to write the thumnails to a certain page. E.g. make the chihuahua thumnails appear at the bottom of the page chihuahua.php. And do make the bulldog thumnails appear at bottom of the bulldog.php page. Etc, etc. I can fiddle with the html/css of the template files, what i just mentioned is my main problem.

    4. Yes, i CAN manually code in where the thumnails will be pulled. I can physically open the page chihuahua.php in my HTML editor and place the php code you give me into the page so that the thumnails from that Chihuahua album appear in that page. Each page chihuahua.php, bulldog.php, dalmatian.php will pull its respective thumnails into the page. And like i said i will manually open each page (chihuahua.php, bulldog.php, dalmatian.php etc) in a text editor and place the code you give me into the page so it pulls the thumbnails in.

    5. No, site isnt live yet. But i think you can just tell me what to do based on all the info i gave you above - if, in fact, it can be done.

    Thanks a lot for your help!!
    •  
      CommentAuthorsidtheduck
    • CommentTimeAug 7th 2008
     
    Posted By: lrd1
    1. The same. I dont see how this matters though since if the thumnails can be inserted into any page by adding a line of code to that page, what does it matter? But when the thumnail itself is clicked it the page template that shows the thumnail can be standard/the same.
    I was just wondering if you really wanted to pull the images into existing pages or if you instead wanted to create a Plogger theme based on your existing site. Both ways will work since the site layout will remain the same for each type of dog.

    If the former, you will need to customize a theme to get it down to bare bones in order to make it integrate well with your site (just a stripped down version of the default theme would probably work nicely). Then you will have to manually hard code each page to pull in the correct album thumbnails.

    If the latter, you could then set up a separate album for each dog (i.e. Dalmations, Chihuahua, etc.) and use the "Description" for the album to add all your content for that dog breed, etc. Then everything would work well (you would just pull out the breadcrumbs so you couldn't go back, etc.). You could link directly to the album (if you use a menu or something) and you could actually have the menu dynamically created so if you add a new album for a new dog breed, the menu link would automatically show up.

    Posted By: lrd12. Link to the full size image.
    This can definitely be done. You'll just have to modify the 'picture.php' file in the theme you are using to allow a back button or something (which can be done easily if you use a custom Plogger theme.

    Posted By: lrd13. Yes. But i dont think this is a HTML/CSS issue for me. I more need to know how to get plogger to write the thumnails to a certain page. E.g. make the chihuahua thumnails appear at the bottom of the page chihuahua.php. And do make the bulldog thumnails appear at bottom of the bulldog.php page. Etc, etc. I can fiddle with the html/css of the template files, what i just mentioned is my main problem.
    Yep, I was just making sure that you would be comfortable with us making suggestions for you to work on it rather than take the time to do it ourselves (I don't have a ton of free time for that sort of thing).

    Posted By: lrd14. Yes, i CAN manually code in where the thumnails will be pulled. I can physically open the page chihuahua.php in my HTML editor and place the php code you give me into the page so that the thumnails from that Chihuahua album appear in that page. Each page chihuahua.php, bulldog.php, dalmatian.php will pull its respective thumnails into the page. And like i said i will manually open each page (chihuahua.php, bulldog.php, dalmatian.php etc) in a text editor and place the code you give me into the page so it pulls the thumbnails in.
    Cool, but think about which option you would prefer in #1 above.

    Posted By: lrd15. No, site isnt live yet. But i think you can just tell me what to do based on all the info i gave you above - if, in fact, it can be done.
    That's fine. I was just trying to get a feel for the layout before I recommended one way or the other. If it were me, I would maybe do the custom Plogger theme (a little more time up front probably, but much easier to maintain and update later on).

    Let me know! :D
    • CommentAuthorlrd1
    • CommentTimeAug 7th 2008
     
    So how do i actually make a certain set of thumbnails appear in a page. For example, lets say i have created an album which contains 5 chihuahua photos. How do i get those 5 chihuahua photo thumnails to appear where i want them to appear on my page chihuahua.php?

    Thanks!!

    Also, do you have skype? i can pay you for your time?
    • CommentAuthorlrd1
    • CommentTimeAug 7th 2008 edited
     
    You said "If the former, you will need to customize a theme to get it down to bare bones in order to make it integrate well with your site (just a stripped down version of the default theme would probably work nicely). Then you will have to manually hard code each page to pull in the correct album thumbnails."

    Great! So how do i do this sidtheduck? I can customize the theme to get it down to barebones, that should be easy for me. But how do i manually hand-code each page to pull in the correct album thumbnails? What is the code i need to do this? And where do i put it? etc

    I am to much of a noob at php to figure this out myself. If you could give me some cope+paste php code which i can add to my page which will pull the thumnails into the page i would be very grateful. That is pretty much what i need.

    If its complicated i can pay you for your time to figure it out and give me the code so i can do.

    To do it using PHP4Script.com's photo gallery script they gave me this code: echo $gaz_gallery->show(); $gaz_gallery->gazgal = 78;

    I simply past this code into the page (where 78 = the gallery ID to pull into the page) and it pulls the gallery/thumnails (in this case gallery 78) into the page.

    How do i do it with Plogger though? What php code do i need to put into the page to tell it to pull a specified album (group of thumnails) into the page?

    Thanks a lot for your help!
    •  
      CommentAuthorsidtheduck
    • CommentTimeAug 7th 2008 edited
     
    You would include the code right before you enter "the_gallery()".

    Like this:
    <?php require("gallery.php"); ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>

    <?php the_gallery_head(); ?>

    </head>
    <body>

    <?php
    if ($GLOBALS['plogger_level'] != "picture") {
    $GLOBALS['plogger_level'] = "album";
    $GLOBALS['plogger_id'] = 78;
    }
    the_gallery();
    ?>

    </body>
    </html>


    That should pull in album 78 and allow you to click to the larger picture.
    Let us know if you have any other issues!
    • CommentAuthortreebonker
    • CommentTimeAug 19th 2008
     
    Not the OP, but I've installed the latest trunk and it doesn't seem to work for me.
    The album page loads correctly but displays an error message instead of the img thumbnails:

    No Images
    Sorry, but there are no images in this album yet.

    Any clues? :/
    •  
      CommentAuthorsidtheduck
    • CommentTimeAug 19th 2008 edited
     
    I noticed this too, treebonker, as I was helping out lrd1 (I had the latest installed on my machine as well).

    The reason this happens is the structure changed slightly to make the 404 errors work (the function plogger_init() moved to the gallery.php/plogger.php file instead of the header for each theme file).

    To get this to work, try this (slightly edited from the above example):
    <?php
    require("gallery.php");
    if ($GLOBALS['plogger_level'] != "picture") {
    $GLOBALS['plogger_level'] = "album";
    $GLOBALS['plogger_id'] = 78;
    plogger_init();
    }
    ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>

    <?php the_gallery_head(); ?>

    </head>
    <body>

    <?php the_gallery(); ?>

    </body>
    </html>
    • CommentAuthortreebonker
    • CommentTimeAug 19th 2008 edited
     
    Beautiful, works great. : )

    Plogger > Zenphoto
    • CommentAuthortreebonker
    • CommentTimeAug 19th 2008 edited
     
    edit)
    One minor issue. Clicking on the breadcrum links won't take me to the parent collection/collections.
    •  
      CommentAuthorsidtheduck
    • CommentTimeAug 19th 2008 edited
     
    so you only want the gallery to "start" on that album, but still allow visitors to navigate the whole gallery, correct?

    The only quick way I could think of doing this is using a session variable like so:
    if (!isset($_GET['level']) && !isset($_SESSION['check'])) {
    $GLOBALS['plogger_level'] = "album";
    $GLOBALS['plogger_id'] = 78;
    plogger_init();
    $_SESSION['check'] = true;
    }
    Thankful People: lrd1
    • CommentAuthortreebonker
    • CommentTimeAug 19th 2008 edited
     
    Yes, only because the breadcrum is there and would like to avoid non-functioning links for the user. Tried the new code but it directs me to the gallery collections page and not the specified album id. Rats! :D