forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: ejgladwin on July 13, 2005, 12:44:05 pm

Title: More space between footer and end of page when displaying image
Post by: ejgladwin on July 13, 2005, 12:44:05 pm
Hello,

I've noticed that there is less space between the end of a page and the footer when displaying an image than on all the other pages (i.e. the main index page, album pages, etc..).

I've had a look and it seems that on all the pages there is a line which reads

<img src="images/spacer.gif" width="1" height="17" /><br />

between the end of the last table and the start of the footer.  However, this line isn't there when displaying an image, meaning that there is no space between the "leave a comment" box and my footer.

Could somebody tell me how I can insert that line so I can have the same gap when displaying an image as I do on all the other pages?  I had a look in displayimage.php but can't see where I would need to add that line.  Thanks in advance for any help!

Edward ~

http://photos.edgladwin.com/ - Edward Gladwin's Photo Gallery
Title: Re: More space between footer and end of page when displaying image
Post by: ejgladwin on July 13, 2005, 10:07:46 pm
Solved it myself :)
Title: Re: More space between footer and end of page when displaying image
Post by: kegobeer on July 14, 2005, 02:41:48 am
How about giving back to the community and explaining what you did?  You may help others in the same predicament.
Title: Re: More space between footer and end of page when displaying image
Post by: ejgladwin on July 14, 2005, 01:58:02 pm
In theme.php I added the following line to the end of function theme_display_image (after all the code for displaying the image, voting, comments, etc.):

Code: [Select]
echo "<img src='images/spacer.gif' width='1' height='17' /><br />";
And in displayimage.php I changed the end of function slideshow() from

Code: [Select]
endtable();
pagefooter();

To this:

Code: [Select]
endtable();
echo "<img src='images/spacer.gif' width='1' height='17' /><br />";
pagefooter();