coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: ericsj on November 30, 2004, 06:14:03 PM

Title: Removing Page Header from displayimage.php pages?? Help!
Post by: ericsj on November 30, 2004, 06:14:03 PM
Hopefully this question can be answered quick and easy:

I want to remove the page header from the displayimage.php page that comes up when you click on a thumbnail.  I want to be able to have intermediate images sized 700x525, and be entirely visible upon first loading the page in a 1024x768 resolution.  To do this I want to remove the page header.

Current layout:

- Page Header -
- Bread Crumbs -
- Image Navigation Menu -
- Image -
- Rate this Image -
- File Information -
- Add Comment -
- Footer -

Desired layout:

- Bread Crumbs -
- Image Navigation Menu -
- Image -
- etc, etc, etc. -

This would fit the image on the page perfectly.  Is there a way to remove the header on just this page, and leave it in place on the main page?

I was hoping there's just a way to make the pageheader(...) function conditional -- the condtion being that the page calling it *isn't* displayimage.php.  Removing the call to pageheader *does* remove the header, but I lose the theme styles and it's pretty ugly.  I must be close though, right?  Right track. ...  .yes? .  .no?

Even a point in the right direction would be appreciated.  Thanks!!
Title: Re: Removing Page Header from displayimage.php pages?? Help!
Post by: Joachim Müller on December 02, 2004, 10:27:47 AM
urm, not what I'd request, but the function pageheader is called twice in displayimage.php, you could try commenting it out and insert a custom function instead that doesn't output the navigation, but does the rest the function pageheader usually does.

Joachim