My photolog isn’t integrated with WP at all, it’s just integrated with my site design. Was that you looking for index.phps on my site earlier? The index actually really doesn’t do anything except call albums.php, so here is my albums.php source.
Thread Starter
Anonymous
It was me, thank you so much for letting me look at this. I guess I misspoke when I said integrated, I guess continuity is the real word here. Again, thanks!
Matt, that is so cool. A valid (nearly, except for those unfortunate unescaped ampersands) Gallery. I’ll be stashing that away on my local testing server for the next time I revisit Gallery ( something I seem to do every six months). Thanks for sharing it.
Anonymous, for me the best route towards getting a consistent photo gallery set up (I haven’t done it with Gallery and WP, but have with MT and PhotoStack, but the principles apply) would be to think of the WP functions as extra tags. There is no reason you can’t use your regular WP template and plug your photo gallery scripting into it replacing the WP stuff.
This is a advanced way of doing this. you should be familiar with coding to get this done. I’ll help if I can but I am assuming that you are familiar with coding and PHP (which most of you are but… 😛 )
I created two include files that essentially wrap around the gallery. I edited the template files for the header and footer of the different section (found in the html_wrap dir) this works fabulously. I also edited the essential files like album to include the start of the WP wrap.
<?php /* Don't remove these lines, they call the b2 function files ! */
$blog = 1;
require_once('../wordpress/wp-blog-header.php');
//require_once($abspath.'wp-links/links.php');
// not on by default: require_once($abspath...
This is in a separate wp_header.php file in the gallery dir. It only includes up to the “<body>” tag. I got rid of the header stuff that gallery has to make this work.
Once this was done I was able to add all the WP functions that I use with the rest of the site in the gallery too.