RandomByte :: Forum :: Wiki
 
Table of Contents

Info

Note: This guide is very rough, and not well tested. It's heavily based upon plaintxtblog.

Code

Create the following file within the beautiful-day-2.0 theme directory:

  • falbum.php

falbum.php

 
<?php
//Hack to set WP page id
$page_id = null; //Change this to match your sites WP page id of new Photos page
 
global $wp_query;
global $post;
if ($page_id != null) {
  $post->ID = $page_id;
  $wp_query->is_home = false;
  $wp_query->is_page = true;
  $wp_query->queried_object->ID = $page_id;
  $wp_query->queried_object_id = $page_id;
}
 
?>
 
<?php get_header(); ?>
 
<?php /* Remove or comment out the below line after to finding the Photos page page_id */
if ($page_id == null) { echo '<h2>page_id = '.$post->ID.'</h2>'; }
?>
 
<script type="text/javascript" src="<?php echo get_settings('siteurl'); ?>/wp-content/plugins/falbum/res/falbum.js"></script>
<script type="text/javascript" src="<?php echo get_settings('siteurl'); ?>/wp-content/plugins/falbum/res/overlib.js"></script>
 
<?php if ($falbum->can_edit == true) { ?>
  <script type="text/javascript" src="<?php echo get_settings('siteurl'); ?>/wp-content/plugins/falbum/res/prototype.js"></script>
<?php } ?>
 
	<div class="main">		
 
		<div class="content">
 
    	            <?php $falbum->show_photos(); ?>
 
		</div>
 
		<?php get_sidebar(); ?>
 
		<div class="clearer"><span></span></div>
	</div>
<?php get_footer(); ?>

To edit CSS, simply edit wp-content/plugins/falbum/styles/default/falbum.css

 
falbum/beautiful_day_2.0.txt · Last modified: 2008/04/09 22:26 by 71.43.45.24
 
Recent changes RSS feed Creative Commons License