” rel=”bookmark” title=”Permanent Link to “>
{/code}
Upload this new falbum.php file to your theme directory in the server.
Please remember that there are two different falbum.php files in two different locations. So, pleaes do not confuse with one another.
instllation_directory/wp-content/plugins/falbum/falbum.php
instllation_directory/wp-content/themes/theme_name/falbum.php
We have created the second one from our theme’s index.php file.
Step Seven: Check the output
Go to your website, refresh it twice and click on the thumbnail of any flirkr image.
So, you are done. Huh?
Integrating a complete gallery in wordpress
Well. You may want to keep a single page as your album home and in that page you may want to keep some Flirkr photos in thumbnail so that it looks gallery homepage. Fine!
Now let us see how we can do this.
Step One: Read the above part “Integrating a small gallery in wordpress”
Check the above part thoroughly since you will need the knowledge from the above part titled as Integrating a small gallery in wordpress. Since many things are common, I have avoid the repeated description.
Step Two: create a file and link it to wordpress
First of all, create a file and link it with wordpress. You can follow my another article to do this. The another article is here:
http://www.tanzilo.com/2008/11/02/wordpress-how-to-add-and-link-static-or-custom-pages/
Step Three: add the album code to your page
You can add photos in several ways. For example, if you want to add latest or recent 8 photos, add the following code.
{code type=PHP}
show_recent(8); ?>
{/code}
If you want to show 8 random Flickr photos, add code like this:
{code type=PHP}
show_random(8); ?>
{/code}
You will find more details on how to customize your page in the following link:
http://www.randombyte.net/wiki/falbum/functions_and_variables
Step Four: Customize CSS coding for custom look
Remember that each thumbnail photo will be placed in a list element. So, if this is the PHP code where we place the album:
{code type=PHP}
require_once(ABSPATH.'/wp-content/plugins/falbum/falbum.php');
global $falbum;
echo $falbum->show_recent(6);
?>
{/code}
Here is the CSS to make them looking like a thumbnail gallery:
{code type=CSS}
#footerFlickrPhotos
{
width:323px; margin:23px 0px 0px 48px; float:left;
}
#footerFlickrPhotos UL
{
margin:0px; padding:0px;
}
#footerFlickrPhotos LI
{
list-style:none; float:left; margin:0px; padding:0px;
background:none;
}
#footerFlickrPhotos IMG
{
width:75px; height:75px; border:#FFFFFF 2px solid;
float:left; margin:5px 15px 10px 0px;
}
{/code}
Next, the bigger photo and all other things like next, previous buttons and tags etc will be displayed in a DIV element named as content.
{code type=CSS}
#content
{
width:580px;
}
#content A
{
color:#0B4B93; text-decoration:none;
}
#content A:hover
{
text-decoration:underline;
}
{/code}
Step Five: Check your site
Now you are done! Go to your site, refresh the site twice and check you album.
So, we are done!
These following two links will be helpful and you can visit them for more information:
http://www.randombyte.net/wiki/falbum/functions_and_variables
http://www.randombyte.net/wiki/falbum/incorporating_falbum_into_your_own_theme
Thank you for reading.