WordPress.org

Ready to get started?Download WordPress

Forums

Simple PHP Gallery & WordPress 1.5 (79 posts)

  1. amanzi
    Member
    Posted 9 years ago #

    Does anyone have any advice on how to get Simple PHP Gallery - http://relativelyabsolute.com/spg/ working in WordPress 15.? I've tried creating template files but am getting stuck as I know very little about php..
    Thanks - Stuart

  2. amanzi
    Member
    Posted 9 years ago #

    I should mention too, that I would like to integrate it into the new Kubrick default theme.

    On a similar topic, how can I create a static page in the Kubric theme? Before I could just copy and edit the index.php page and link to it, but it seems a bit more complicated now.

    Thanks - Stuart.

  3. amanzi
    Member
    Posted 9 years ago #

    OK, so I found the new "Manage Pages" feature and have created some extra pages, but how can I edit those pages to include php or extra html?

    Thanks,

    Stuart.

  4. mr1973
    Member
    Posted 9 years ago #

    i suggest creating the gallery folder in /*yourinstalldir*/gallery
    then copy all spg files into that folder and manually modify the sp_index.php file to meat up with your template.

    at least that´s what i did ;)
    see http://www.mx4.info/devblog/gallery

    only prob is that my gallery link doesnt show up whith wp_list_pages. so i´ve hardcoded the navigation in header.php.

  5. damon
    Member
    Posted 9 years ago #

    Yea best way to do it is to just add your code to sp_index.php and copy the css from the gallery into your theme css file. I've included a simple php gallery template with my Obsidian theme, you coulld download that to see what code needs to be added. It's not hard once you see how it's done.

    http://www.scottdot.org/index.php?page_id=13

  6. SlackeR
    Member
    Posted 9 years ago #

    does SPG auto populate the image relevant to the size of WP? if I have an image size of 1024x768 will SPG autofit it to the WP page layout?

  7. damon
    Member
    Posted 9 years ago #

    yes it will, you can set thumbnail size, then max size for the next image, then when u clickon thatimage, it will open seperatly full size

  8. shaynesweeney
    Member
    Posted 9 years ago #

    Well, I guess I was inspired.

    I just wrote a 3 step tutorial, that is VERY easy to follow with detailed instructions so you don't get lost.

    In 3 steps you can integrate this gallery in to your existing WordPress theme, with no knowledge of coding, whatsoever.

    It is also adaptable to blogs that hve dynamically changing themes.

    Check it out:

    http://www.shaynesweeney.com/wordpress/?p=11

  9. amanzi
    Member
    Posted 9 years ago #

    THANKS!

    Thanks for the help guys.

  10. amanzi
    Member
    Posted 9 years ago #

    special thanks to shaynesweeney for your tutorial - I've updated my site now (http://stuart.amanzi.co.nz) to include the photo gallery. I also created a Page in WordPress to point to 'photo-gallery' and made my gallery folder the same name so the Pages link works.

  11. userx
    Member
    Posted 9 years ago #

    I've been following htis thread and I have to give major kudos to shaynesweeney for the tut. It was a great walk-through.

    I was wondering if any of you could point me in the right direction on another issue with SPG? I'm on a host that doesn't allow htaccess, which isn't a problem with SPG except that the directive to make sp-index the defulat index is done in the htacess. Where exactly can I hard code sp-index as the defult index? Or, can you?

  12. SlackeR
    Member
    Posted 9 years ago #

    Great job shaynesweeney... just one problem though I'm not really good xhtml and php... how can we show the pages something like this http://www.mx4.info/devblog/gallery/folder/Family/2005_Various

  13. alekone
    Member
    Posted 9 years ago #

    I used the modified sp_index.php, and the gallery loads the template, but table width is not working! take a look at it

    http://www.gelatimotel.com/wp-gal/sp_index.php
    http://www.gelatimotel.com/

    it isn't a theme fault, I tryed many themes and it happens anyway.
    thanks!
    ale

  14. SlackeR
    Member
    Posted 9 years ago #

    mr1973's gallery shows up good.. only if there were a preview thumbnail then that would make it complete

  15. alekone
    Member
    Posted 9 years ago #

    (sorry, it was a theme problem: using kubrick it works)

  16. milkphish
    Member
    Posted 9 years ago #

    Excellent tutorial, shaynesweeney ! I read through it and had my gallery up in just a few minutes after changing a few settings by reading the readme.txt.

    Thanks lots!
    ---===---- gayle
    http://www.bughaw.com/wp-gallery/

  17. SlackeR
    Member
    Posted 9 years ago #

    anyone figured out how to make the images not go vertical?

  18. userx
    Member
    Posted 9 years ago #

    ...or how to make the sp-index the default without htaccess?

  19. SlackeR
    Member
    Posted 9 years ago #

    there is a new update... shaynesweeney just emailed me.. there is a new version for this plugin/hack folks.. download it again. just one error when you view the image (after you click on the thumbnail) the right column goes below..

  20. SlackeR
    Member
    Posted 9 years ago #

    Anyone found a way yet?

  21. userx
    Member
    Posted 9 years ago #

    I'm having the same issue as SlackeR. I finally figured out the htaccess ( Ijust did away with the breadcrumbs all together) but am having a hell of a time figuring out why my side bar is pushed too far to the right in VIEWIMAGE (after you click the thumbnail):

    http://www.progressiveink.com/photos/sp_index.php?file=./Family/DSC00013.jpg

    And in IE the sidebar only appears below the left content (FireFox is of course just fine....damn IE.

    If any of you WP/CSS gurus can point me in the right direct, I would be very thankful (I have tried everything). I don't want to have to go to CSS forums for help w/ WP...it is a communal thing, right?

  22. Lance Willett
    Member
    Posted 9 years ago #

    join the club. my sidebar get pushed down quite a bit :/

  23. userx
    Member
    Posted 9 years ago #

    it's contagious ... anyone have a fix?

  24. rekkid
    Member
    Posted 9 years ago #

    Mine too... I think the probably is something in the CSS... I havent played around with it yet, but the div that's in the getFile call (either in the sp_index or in sp_helper_functions) isnt happy with the sidebar. I'm running a float:left sidebar and I put the get_sidebar call at the top right under the get_header, like the theme calls for, and everything but the page where you get the single image views fine. I havent had time to really dive into all the CSS but I'm guess imagewrap might have a positioning issue.

    here is my example

  25. userx
    Member
    Posted 9 years ago #

    there's a fix now at: http://www.shaynesweeney.com/wordpress/?p=11

    shaynesweeney updated the sp_index.php file in the tut...

    It all works grea tnow ... thank God for people who know how their way around the details...

    Thanks shaynesweeney

  26. Lance Willett
    Member
    Posted 9 years ago #

    no luck that was the one i accually used

  27. Lance Willett
    Member
    Posted 9 years ago #

  28. userx
    Member
    Posted 9 years ago #

    Mine actually works perfect in FireFox - but I deleted the <?php get_sidebar(); ?> found near the bottom of the sp_index.php file and ran it without it....my sidebar is just dropped too low in IE...can't figure it out.

  29. Lance Willett
    Member
    Posted 9 years ago #

    yeah I might have to do that also. is there another plugin that is simple like this one?

  30. userx
    Member
    Posted 9 years ago #

    I should have been more clear.... my sidebar actually still appears after I deleted the <?php get_sidebar(); ?>

    http://www.progressiveink.com/photos/sp_index.php?file=./Family/DSC00014.jpg

    I think it appears becuase it is actually called in the them's footer...so the sp_index.php was actually forcing a call twice - at least for me. So after I deleted <?php get_sidebar(); ?> the sidebar actually appears perfect in FF. IE is another story - the side bar is hung up underneath my left content

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.