My Blogs Gallery or: How I Learned to Stop Worrying and Love Gallery

Ok, I get quite a few emails asking how Ive managed to integrate my gallery using Gallery with the design of my blog in WordPress. Unfortunately when I first did the integration I never took any notes of what I did and when I update the design now I tend to do a quick search and replace but I shall attempt to explain what I did so as to get you started. Unlikely as it seems, it isnt that complicated and is infact easier using the WP1.5 template theme than with 1.2. It is also easier with Mallows system of files where the header navigation is in a separate file from all the html head tag stuff. In fact, you might like to set your files up like that to get the upmost from gallery and keep it simple. Disclaimer: As I did do this a while ago I cannot guarantee following this to the letter will work, and you will have to get your hands dirty with php. Also, this is with Gallery version 1.4.4-rc-1 though I suspect the theory works with most. Ok, onwards and upwards: In the main gallery viewing files (such as albums.php, search.php, view_photo.php etc. Best If you choose yourself which ones you want to apply your style to, for instance I dont apply it to the single image) you need to add a link to your css file. If you look through the files you should see something like < ?php common_header() ;?> - the usual link to your css goes after that (and any links to .js files also) mine looks like this Next: Go into html_wrap and again open any files you wish to make your style and in the header section you need to include any opening divs and also php include your navigation header in the correct place for you. My section in the file is thusley;
< ?php include("/path/to/wp13/wp-content/themes/sflwa3/topbanner.php"); ?>
Then do the same in the footer part, again I add something like; < ?php include("/usr/home/somefool/public_html/wp13/wp-content/themes/sflwa3/footer.php"); ?> If youve done this using my 'trial n error', 'hit n miss' (Patent Pending) system then Like me youll be adding code, refreshing, adding code, refreshing, adding code, refreshing, etc etc until it works. Well, *good luck!*
t