Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: More space between footer and end of page when displaying image  (Read 3212 times)

0 Members and 1 Guest are viewing this topic.

ejgladwin

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 21
    • Edward Gladwin's Photo Gallery

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
« Last Edit: July 13, 2005, 10:12:36 pm by Nibbler »
Logged

ejgladwin

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 21
    • Edward Gladwin's Photo Gallery
Re: More space between footer and end of page when displaying image
« Reply #1 on: July 13, 2005, 10:07:46 pm »

Solved it myself :)
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: More space between footer and end of page when displaying image
« Reply #2 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.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

ejgladwin

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 21
    • Edward Gladwin's Photo Gallery
Re: More space between footer and end of page when displaying image
« Reply #3 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();
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.