RandomByte :: Forum :: Wiki
Writing /home/ecornell/wiki_data/meta/falbum/installation_instructions.meta failed
 

WordPress 1.5 / 2.+ Installation Instructions

  • Extract the files to the /wp-content/plugins/ directory.
    • Note: The files must be located within a new directory name falbum …/wp-content/plugins/falbum/falbum.php
  • Activate the plugin via your WP admin console. Options → FAlbum… or when viewing your dashboard there is a button called plugins and you can activate there as well.
  • Complete the two Initial Setup steps to allow FAlbum to access your Flickr account
  • Update the Setup information and press Update Options

Updating from a previous version

Before updating the FAlbum files:

  • Deactivate your current FAblum plugin
  • On the server delete the previous falbum directory in …/wp-content/plugins/

Other Pages Setup

In order to use FAlbum calls within other pages, the Enable globally option on the FAlbum admin page must be set to true. This will setup the $falbum object and include the FAlbum style information on every call.

Then for each page that you want to use a FAlbum method, add the following line before the first call:

<?php global $falbum; ?>

Common Custom Code

Random Photos Block

<h2>Random Photos</h2>
<ul><li>
	<?php echo $falbum->show_random(4,'',1,'s');?>
</li></ul>

1.how many pictures;
2.tag(s): flickr format(space seperated)
3.style: 0=“li” seperated, anything else is drop shadow with “div”
4.you can choose the size between: 's' (small), 't', 'm'=medium, 'e' and 'o' (original size).

Recent Photos Block

<h2>
	<a href="<?php echo $falbum->create_url("show/recent"); ?>" title="View all recent photos">Recent Photos</a>
</h2>
<ul><li>
	<?php echo $falbum->show_recent(4,1,'s');?>
</li></ul>

Recent Photos Block Widget

Install and activate for instance http://ottodestruct.com/wpstuff/execphp.zip (a widget that allows php to be executed)

Put this code in the body of the widget:

<br />
<?php 
global $falbum;
echo $falbum->show_random(4,'',1,'s');
?>

Page Title

<?php if ($falbum->is_album_page()) { ?>
 
	  <title><?php echo $falbum->get_page_title(); ?></title>
 
  <?php } else { ?>
 
	  <title><?php wp_title(''); ?> <?php if (is_author()) { echo $author_name; } ?> <?php if ( !(is_404()) && (is_single()) or (is_page()) or (is_archive()) ) { ?> at <? } ?> <?php bloginfo('name'); ?></title>
 
  <?php } ?>
 
falbum/installation_instructions.txt · Last modified: 2008/09/23 12:40 (external edit)
 
Recent changes RSS feed Creative Commons License