Before updating the FAlbum files:
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; ?>
<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).
<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>
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'); ?>
<?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 } ?>