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: [Solved]: Conditional custom_header contents  (Read 3004 times)

0 Members and 1 Guest are viewing this topic.

mala

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
[Solved]: Conditional custom_header contents
« on: March 19, 2008, 02:03:42 pm »

Like usual I am sorry if the question has be posted before, I could not find it.

It is easier for me to describe the question on the example of my gallery in
http://sikinos.unige.ch/NOB

We are  using a slightly modified igames theme (which is pretty classy).
In the top panel there is a big static image of the sea which we absolutely want to keep.
It is in a  CUSTOM_HEADER file.
It is fine in the album list view and in the thumbnails view.
But in the image view it takes too much room obliging the user to scroll down on every picture to see
the pictures details.
Can we display the image conditionally, I mean make  it disappear every time we are in the image view situation but
reappear in the other views?

Thanks
« Last Edit: March 19, 2008, 07:09:31 pm by Nibbler »
Logged
Andreas

Nibbler

  • Guest
Re: Conditional custom_header contents
« Reply #1 on: March 19, 2008, 02:20:23 pm »

Post the contents of your custom header file.
Logged

mala

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Conditional custom_header contents
« Reply #2 on: March 19, 2008, 04:57:02 pm »

<?php
?>
<img src="/NOB/themes/NOBtheme/images/SmallSeaHeader.JPG" width="2080" height="200" border="0">
<?php
?>

It is just that, the image.
Logged
Andreas

Nibbler

  • Guest
Re: Conditional custom_header contents
« Reply #3 on: March 19, 2008, 05:23:57 pm »

Change to

Code: [Select]
<?php
if (!defined('DISPLAYIMAGE_PHP')){
    echo 
'<img src="/NOB/themes/NOBtheme/images/SmallSeaHeader.JPG" width="2080" height="200" border="0">';
}
?>

Logged

mala

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Conditional custom_header contents
« Reply #4 on: March 19, 2008, 05:43:14 pm »

Thanks and thanks for the classy igames theme.
Logged
Andreas
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.