Hi Dari,
Thanks for the help, works great. Here is the code for anyone else interested. the right blocks are displayed for the albums and the thumbnail pages but not when viewing the full image.
You just ned to add a check for the module name before the code so translated it would be:- If $index equals 1 or $name equals "gallery" then display right blocks.
PHP: › <?php function themefooter() {
global $index, $name;
if (($index == 1) || ($name == "gallery"))
{
echo "</td><td><img src=\"themes/fiapple/images/pixel.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td><td valign=\"top\" width=\"150\">\n";
blocks(right);
} ?>