In a previous topic
http://forum.coppermine-gallery.net/index.php/topic,51265.0.html
nibbler explained to me how to make disappear the CUSTOM_HEADER in the image view level.
I would like to do something similar with the CUSTOM_FOOTER only that this time I want it to disappear everywhere
except in the starting page, like the anycontent which I use for a different reason.
More generally (I hope this will not be considered as a multiposting) can we test (and how) where we are in the views
of the gallery?
Our gallery is in http://sikinos.unige.ch/NOB
There is a mod posted for multiple anycontents. If you want to use the custom footer then the code wil be something like
if (defined('INDEX_PHP') && !defined('THUMBNAILS_PHP') && empty($_GET['cat'])){
}
Each file sets a constant at the start, you can check that or something like $PHP_SELF for the filename.
OK. It works. Also thanks for the tip (I will end up by learning php)!
Sorry. I answered too fast. In fact the solution you gave does not work fully.
It works until we arrive at the thumbnail view and then the footer appears again.
In your post
http://forum.coppermine-gallery.net/index.php/topic,51265.0.html
you told me how to test for image view, so the only thing thats left is the thumbnail view.
If you have a fast solution I would be thankful.
I updated the code above. Try now.
OK. This time it really works. In case somebody else needs the full line, here it is
if (defined('INDEX_PHP') && !defined('THUMBNAILS_PHP') && empty($_GET['cat']) && !defined('DISPLAYIMAGE_PHP')) {
}