[Solved]: Conditional custom_header contents [Solved]: Conditional custom_header contents
 

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]

Main Menu

[Solved]: Conditional custom_header contents

Started by mala, March 19, 2008, 02:03:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mala

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
Andreas

Nibbler

Post the contents of your custom header file.

mala

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

It is just that, the image.
Andreas

Nibbler

Change to


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


mala

Thanks and thanks for the classy igames theme.
Andreas