decoding galvin

Technology

Flickr Gallery in WordPress 1.5

July 6, 2005 by Galvin Tan in Technology with 40 Comments


Flickr Gallery plugin for WordPress 1.5 is yet the best photo gallery plugins so far. If you already have an account with Flickr, you can just simply integrate it into WordPress. Flickr is an online photo management and sharing application. If you don’t have an account yet, go register an account now.



If you already have an account and wish to integrate it into WordPress, here’s
an alternate way which works for me.

  1. Download Flickr gallery plugin from www.worrad.com and extract the compressed files.
  2. Read the README file. Then edit the flickr-gallery.php file and replace the settings for your own server.
  3. Once done, upload flickr-gallery.php to your wp-content/plugins/ directory and activate the plugin via your WP admin console.
  4. Copy your index.php file (NOTE: copy the index.php file which is from this /wp-content/themes/default/ directory and not the one in the root) and then rename it gallery.php.
    (NOTE: The index.php you copied is from your current theme which is active.)
  5. Now edit gallery.php and replace everything between

    <div id="content"> … </div>

    with

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

    This section may vary depending of the theme you are using. So you really need to look carefully through the codings. If you’re using the default theme, the gallery.php file will look like this :

    <?php get_header(); ?>

    <div id="content" class="narrowcolumn">

    <?php flickr_show_photos($_GET[‘album’], $_GET[‘photo’]); ?>

    < /div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    If you using some other theme, this is an example of my gallery.php. You DO NOT have to follow mine.

    <?php get_header(); ?>

    <?php get_sidebar(); ?>

    <div id="content">

    <?php rounded_div("top", "", "");?>
    < ?php rounded_div(); ?>

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

    <?php rounded_div("bottom", "", ""); ?>

    <?php get_footer(); ?>

    </div>

  6. Upload the gallery.php file back into your /wp-content/themes/default/ directory.
  7. Next, you need to create a second gallery.php file. Copy index.php from your root directory (where you install your WordPress), and rename it to gallery.php. Edit this second gallery.php. The content of this file should be :

    <?php

    $_SERVER[‘PATH_INFO’] = ”;

    require(‘./wp-blog-header.php’);

    include(TEMPLATEPATH . "/gallery.php");

    ?>

  8. Upload the second gallery.php file to your root directory. Follow the rest of the included README to set up the Cascading Style Sheets(CSS) and make your gallery look good.
  9. Make sure that you edit your flickr-gallery.php correctly, else you’re bound to face with problems. Good luck trying!

For more guideline, try www.worrad.com and Ryan.



Related Posts with Thumbnails


Tagged , ,

Share this post:

About Galvin Tan

A creative professional and social media junkie, Galvin Tan has been blogging since 2005 and he writes about everything from food to gadget. An avid fan of football and loves playing foosball and basketball. For latest updates, follow him @galvintan on Twitter.

View all posts by Galvin Tan →

Related Posts

Facebook comments:

Trackbacks

  1. […] By galvin | July 6th, 2005 Spent 2 nights trying to install Flickr Gallery plugin in my WordPress site and yet I still face with problems. Finally I got it done and now I ca […]

  2. slots says:

    slots

    Check these: wheel of fortune meat craps slots slot machines .

  3. casino download

    Check these: best casino casino download .

  4. poker says:

    poker

    Check these: even poker empire poker blind support texas holdem poker .

  5. casino slot says:

    casino slot

    Check these: casino slot best online casino casino poker rules casino download .

  6. keno says:

    keno

    Check these: casino bonus railbirds online keno online casino bonus tell online keno .

  7. best casino says:

    best casino

    Check these: best casino play casino equity virtual casino best online casino .

  8. party poker room

    Check these: party poker .

  9. roulette wheel

    Check these: door roulette wheel play roulette street casino roulette juice roulette online .

  10. phentermine says:

    phentermine…

    anomalously?reaped scorching?dainty,lewdly phentermine http://urlcutter.com/375phentermine

  11. Download Ringtones…

    Download ringtones ringtones all types of ringtones supports customizable ringtones including well known brands such as nokia ericsson or motorola but also siemens audiovox samsung download free ringtones….

  12. Polyphonic Ringtones…

    Polyphonic ringtones and midi poly tones for nokia sony ericsson motorola panasonic samsung sharp siemens neonode sagem polyphonic ringtones polyphonic ringtones all categories. Logogo offers polyphonic ringtones….

  13. Motorolla Ringtones…

    Mobileringtones has the biggest variety and most popular song collection for your cell phone. Pick your ring tone from every possible field of music hits….

  14. forex broker says:

    forex broker…

    top forex broker in the business…

  15. life insurance…

    get some life insurance today…

  16. term life insurance…

    get some term life insurance today…

  17. Buy Satellite Tv…

    wowo this is superb site i like it keep it up…

  18. Government Loans…

    […]Financing your future. Saint mary’s university. Government loans and grant programs. Government of canada student assistance program. Full time students questions student aid offices in east[…]…

  19. Bingo says:

    Bingo

    Bingo

  20. Gala Bingo says:

    Gala Bingo

    Gala Bingo

Our Sponsors
Post Calendar
July 2005
M T W T F S S
« Jun   Aug »
 123
45678910
11121314151617
18192021222324
25262728293031
Follow Me on Imotiv.ly
LIKE IT!
Latest Comment