WordPress.org

Ready to get started?Download WordPress

Forums

Flickr Gallery 0.7 and 1.5?? (20 posts)

  1. RedSkunk
    Member
    Posted 9 years ago #

    I've been finangling with the thing for a few hours now, to no avail. First, I began by following the instructions found here to a T - as best as I could with the added wrenches that 1.5 throws in.

    I kept getting php errors, saying that it couldn't find the php includes, the header, the searchform.php, and the footer. I must have tried every single combination of moves, I had photos.php in my root folder, my /blog, it's own folder, the template folder, etcetera.

    After hitting this wall, I tried to use 1.5's static pages, and insert the one line of code that seems needed -

    <?php flickr_show_photos($_GET['album'], $_GET['photo'], $_GET['page']); ?>

    Into a static page. For this, I downloaded RunPHP, installed it, etcetera.

    Finally, I've gotten it so that it shows a blank page. Personally, I find this to be a step up from errors, but who knows why it's happening. Currently in my static page, I have the following:

    <script type="text/javascript" src="<?php echo get_settings('siteurl'); ?>/annimg.js"></script>

    <?php flickr_show_photos($_GET['album'], $_GET['photo'], $_GET['page']); ?>

    The javascript and that bit of code has been worrying me, it wasn't even mentioned in the readme that came with Flickr Gallery 0.7.

    Any thoughts people? I really want to go the Flickr route. Thanks in advance!

  2. anthonymcg
    Member
    Posted 9 years ago #

    I haven't done it with pages but I created a gallery.php file with the following:

    <?php require('./wp-blog-header.php');
    get_header(); ?>
    <div id="content" class="narrowcolumn">

    <?php flickr_show_photos($_GET['album'], $_GET['photo'], $_GET['page']); ?>

    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    and it works just fine.

  3. RedSkunk
    Member
    Posted 9 years ago #

    I'm getting an error, that I had been seeing before:

    Warning: Invalid argument supplied for foreach() in /home/whitema/public_html/blog/wp-content/plugins/flickr-gallery.php on line 78

    http://whitemaleconsumer.com/blog/photos.php

  4. RedSkunk
    Member
    Posted 9 years ago #

    wtf? I just sat back down, refreshed one last time, and... it's now working....

    bleh.. Meh... Thanks though, apparently just switching from includes to 'get_'s solved it all. Strange.

  5. iand
    Member
    Posted 9 years ago #

    I've managed to get the plugin running with pages ok using the code mentioned in the first post. However the thumbnail styling is off. See: http://the-way-to-the-centre.org.uk/blog/gallery?album=4120

    taking clear: left out of .flickr-thumbnail makes them show in a vertical list, but I have no idea how to stop them stepping diagonally like they are at the moment. Though once they hit the second row works fine. Anybody?

  6. JohnM
    Member
    Posted 9 years ago #

    You should check your gallery.php for some messy break tags, just after the insertion of the jpg`s from flickr....and your comment script, tried to tell you on your blog.

    JohnM.

  7. iand
    Member
    Posted 9 years ago #

    Thanks John, you got Spaminated :) Looks like the linebreaks were appearing beacause I was putting the code in the 'write' area of the page and using index.php. Now I have the code in gallery.php and all is good. Thanks again.

  8. SlackeR
    Member
    Posted 9 years ago #

    Is there anyway to disable the comment link for that... I mean just show the image and the caption?

  9. mi327
    Member
    Posted 9 years ago #

    The flickr photos link to my original website and not the flickr gallery like other examples I've seen what am I doing wrong? I followed the instructions but did not add anything except for teh flickr_cache file.

    http://shortforstephen.com/index.php/albums/

  10. iand
    Member
    Posted 9 years ago #

    That happened to me when I got the URL_ROOT path incorrect. Try droping the last trailing slash.

  11. mstecker
    Member
    Posted 9 years ago #

    I got it working on my site with pages, it shows the main list of galleries but when you click on the galleries they go to blank pages. My suspicion is that it's somewhere in the .htaccess file. Here's how I have mine setup...

    in the "Photos" Page:
    <phpcode><?php flickr_show_photos($_GET['album'], $_GET['photo'], $_GET['page']); ?></phpcode>

    in the .htaccess file:
    RewriteRule ^(photos)/?(album|page)?/?([_0-9a-z-]+)?/?(photo|page)?/?([_0-9a-z-]+)?/?(page)?/?([0-9]+)?/?$ /index.php?pagename=$1&page=$2&$1=$2&$3=$4&$5=$6 [QSA]

  12. lemoned
    Member
    Posted 8 years ago #

    i also have no luck running this plugin with my blog. it seems like dreamhost is giving me a hard time? any dreamhost user are currently running it with no problem? if so, can you please tell me how you did it? i would be much arppreciated

  13. ryangrant
    Member
    Posted 8 years ago #

    i am using this plug-in and it is working great for me. see http://www.ryangrant.net. the friendly URI's were giving me trouble, so i decided against using them, also the EXIF data hasn't been working (only interferring), but always more experimenting to do. make sure you have the right folder set up to be writable and the correct path to php on your server.

  14. lemoned
    Member
    Posted 8 years ago #

    cheers ryan for the help.
    just incase anyone are interested (dreamhost user). if you are still figuring out a solutions for the flickr-gallery plugin and happens to be a dreamhsot user or any host that has disable their fopen function. here is the upgraded or modified version of flickr-gallery written by nick. i have this plugin working perfectly now. cheers

  15. m4c3w4n
    Member
    Posted 8 years ago #

    Just finished getting my gallery, which uses Flickr Gallery 0.7, configured on a fresh install of WordPress 1.5.1

    Per anthonymcg's post above I set my gallery.php in the root directory using the code he posted.

    EXIF was set to false also & don't forget to create flickr-cache folder in wp-content folder

    Set it up as a page also by adding a template name to wp-content/themes/default/gallery.php
    as such:

    <?php
    /*
    Template Name: Gallery
    */
    ?>

    The went to create pages from the admin panel and choose Gallery from the template choices.

  16. kingfunkmaster
    Member
    Posted 8 years ago #

    Can someone please post a mirror of the Flickr Gallery 0.7 plugin ?
    The worrad.com site seems to be down as far as I can tell, and there is no mirror of this plugin available anywhere i can see...

    Any help would be appreciated.

  17. Dextro
    Member
    Posted 8 years ago #

    The website is apparantly back online.

  18. RedSkunk
    Member
    Posted 8 years ago #

    I never got it working afterall, and eventually gave up, but sometime when I have some time, I'm going to try again with all of your replies.

    Then I'll have to buy a Flickr account so that I can have more than three categories. Oh bother.

  19. Pietel
    Member
    Posted 8 years ago #

    Is there anybody that fixed the bugs in Flickr Galery 0.7 and is offering a flickr-gallery.php that makes a good chance for a clean install?

  20. bitterben
    Member
    Posted 8 years ago #

    Here's how to set up Flickr Gallery 0.7 and WP 1.5.1. Let me know (via my own comments) if there are problems with this method.

Topic Closed

This topic has been closed to new replies.

About this Topic