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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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