[Solved]: testing on which view we are [Solved]: testing on which view we are
 

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]: testing on which view we are

Started by mala, March 27, 2008, 12:34:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mala

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

Andreas

Nibbler

#1
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.

mala

OK. It works. Also thanks  for the tip (I will end up by learning php)!
Andreas

mala

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.

Andreas

Nibbler


mala

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')) {

}



Andreas