forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: MothBox on March 06, 2005, 09:23:07 pm

Title: Hidding additional details?
Post by: MothBox on March 06, 2005, 09:23:07 pm
I've noticed that at the top of every photo in my gallery there is a box:

Quote
You are currently viewing FILE 1/40. You can review additional details about this photo, enjoy a slideshow of all photos in this album, send an eCard to someone based on this photo, or you can leave comments about this photo.

The additional details are already on display automatically, so when you click on the "additional details" on that top comment box it hides them, and then shows them again when clicked.

I want them to be hidden until you click that link rather than them being shown already - I don't think the people who look at my site actually look at them, so I'd rather they were hidden by default until someone clicks that link.

How do I do this?
Title: Re: Hidding additional details?
Post by: Nibbler on March 06, 2005, 09:26:23 pm
Maybe the config option ' File information is visible by default' is what you need.
Title: Re: Hidding additional details?
Post by: MothBox on March 07, 2005, 10:29:40 pm
I've ticked that no!
Title: Re: Hidding additional details?
Post by: Tranz on March 07, 2005, 10:46:49 pm
It's an issue with your theme. If you view the gallery in Classic, the file info does not display.
Title: Re: Hidding additional details?
Post by: MothBox on March 08, 2005, 02:15:11 pm
Any idea how I can sort it out in the theme?  I'm using Kubrick.
Title: Re: Hidding additional details?
Post by: Joachim Müller on March 08, 2005, 02:47:20 pm
the kubrick theme that comes as a download for coppermine does not display the anomaly you're experiencing as far as I can see, so it must be something you did with the theme (see the demo page with kubrick theme (http://coppermine.sourceforge.net/demo/?theme=kubrick)). To find out abot the differences between your version of the kubrick theme and the "official" one, get a fresh copy of it and use a diff viewer (Winmerge (http://winmerge.sourceforge.net/) recommended).

Joachim
Title: Re: Hidding additional details?
Post by: MothBox on March 09, 2005, 06:33:43 pm
Erm... it does:

http://coppermine.sourceforge.net/demo/displayimage.php?album=5&pos=2

Look... it shows the details underneath the picture.  Thats what I want rid of.
Title: Re: Hidding additional details?
Post by: Tranz on March 09, 2005, 06:36:31 pm
If you click on details in the line in the paragraph:
"You can review additional details..."

File info will go away.
Title: Re: Hidding additional details?
Post by: MothBox on March 10, 2005, 10:59:04 am
^ I know that... but I want it to be hidden by default.
Title: Re: Hidding additional details?
Post by: Tranz on March 10, 2005, 11:24:38 am
That's in config.
Title: Re: Hidding additional details?
Post by: MothBox on March 11, 2005, 06:01:57 pm
I've already changed it in config and it doesn't seem to have any difference.  Can I change the setting manually in a php file or whatever?
Title: Re: Hidding additional details?
Post by: Nibbler on March 11, 2005, 06:19:17 pm
[removed]

kubrick seems to have some code misplaced, move

Code: [Select]
    $picinfo = isset($HTTP_COOKIE_VARS['picinfo']) ? $HTTP_COOKIE_VARS['picinfo'] : ($CONFIG['display_pic_info'] ? 'block' : 'none');
to just before

Code: [Select]
echo "<div id=\"picinfo\" style=\"display: $picinfo;\">\n";
in theme.php
Title: Re: Hidding additional details?
Post by: MothBox on March 11, 2005, 06:25:12 pm
Yep, changing the coding worked.  Thanks.
Title: Re: Hidding additional details?
Post by: Joachim Müller on March 14, 2005, 09:08:15 am
Applied fix to theme that is available in download section, see http://forum.coppermine-gallery.net/index.php?topic=13514.msg73772#msg73772

Joachim