Trouble with disabling picture information Trouble with disabling picture information
 

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

Trouble with disabling picture information

Started by Faeriecrack, January 19, 2005, 04:44:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Faeriecrack

I'm attempting to disable picture information permanently.

I've read all the previous posts and I've followed the directions.

I've gone into Config and set my File Information Visibility Default to 'No'

I'm using the Kubrick theme that I've modified to fit my site.

I've commented out the offending code, including the  'detail' link and the 'comments' link.

It all looks right when I view it (both as an admin and a user, in Firefox and IE), yet when I scroll down, all the File Information appears below my image. I've even attempted to delete cache in both browsers and it still shows up.

Here's the code (it looks a bit messy because I only wanted some of the links commented out)

<p class="postmetadata graybox">
<small>
You are currently viewing {PIC_POS}.  <!-- You can  review additional <a href="javascript:;" onClick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}">details</a> about this photo, --> Watch a <a href="{SLIDESHOW_TGT}" title="{SLIDESHOW_TITLE}">slideshow </a>of all photos in <a href="{THUMB_TGT}" title="{THUMB_TITLE}">this album</a>, or send an <a href="{ECARD_TGT}" title="{ECARD_TITLE}">eCard</a>  of this photo. <!-- , or you can <a href="#respond">leave comments</a> about this photo. -->
</small>
</p>



Here's a link to my site so you can see what's going on:
http://www.alexisfeldmandesign.com/gallery/displayimage.php?album=5&pos=3

Any help would be greatly appreciated.

Thanks in advance!

jmc

Hi!
To completely remove the picinfo stuff, comment it out in the english.php language file (in the displayimage.php section). The url info can also be removed by commenting out the relevant section in displayimage.php itself.
HTH! ;D
John Mc
I'm trying hard... at least!

Casper

and of course, you could just remove the link from the image navigation bar, and with it set to not display in config, visitors won't be able to see it.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Armstrong

Hey everyone,

I too am trying to remove the Picture Information from my kubrick theme. I have searched this board from top to bottom and found many variations to the solution, however none that work when I try it. I've tried commenting out what i think is the information section in the DisplayImage.php page, however every time i test it there is an error. Is there any chance someone could show the exact text that i need to comment out for this to work?

Thanks very much for your help in advance.
-Armstrong

Coppermine Version 1.3.X

Armstrong

Could anyone please help me with this issue. Either if you've fixed it or know how to. Thank you

Joachim Müller

edit themes/kubrick/theme.php, findYou are currently viewing {PIC_POS}.  You can review additional <a href="javascript:;" onClick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}">details</a> about this photo, enjoy a <a href="{SLIDESHOW_TGT}" title="{SLIDESHOW_TITLE}">slideshow </a>of all photos in <a href="{THUMB_TGT}" title="{THUMB_TITLE}">this album</a>, send an <a href="{ECARD_TGT}" title="{ECARD_TITLE}">eCard</a> to someone based on this photo, or you can <a href="#respond">leave comments</a> about this photo.and replace withYou are currently viewing {PIC_POS}.  You can <!--review additional <a href="javascript:;" onClick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}">details</a> about this photo,--> enjoy a <a href="{SLIDESHOW_TGT}" title="{SLIDESHOW_TITLE}">slideshow </a>of all photos in <a href="{THUMB_TGT}" title="{THUMB_TITLE}">this album</a>, send an <a href="{ECARD_TGT}" title="{ECARD_TITLE}">eCard</a> to someone based on this photo, or you can <a href="#respond">leave comments</a> about this photo.

Armstrong

First off, thank you for the reply.

however, upon changing the code you gave me, it results with this error message:

QuoteParse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/.waldorf/fripo1/website.com/Coppermine/themes/kubrick/theme.php on line 751

any suggestions on this?

Joachim Müller

what's line 751 for you?
Attach your version of theme.php to your reply (using "Additional options"). Rename it to theme.php.txt before attaching it.

kegobeer

Instead of commenting the code, just remove it.

You are currently viewing {PIC_POS}.  You can enjoy a <a href="{SLIDESHOW_TGT}" title="{SLIDESHOW_TITLE}">slideshow </a>of all photos in <a href="{THUMB_TGT}" title="{THUMB_TITLE}">this album</a>, send an <a href="{ECARD_TGT}" title="{ECARD_TITLE}">eCard</a> to someone based on this photo, or you can <a href="#respond">leave comments</a> about this photo.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Armstrong

I have attached Theme.php.txt

For quick reference: Line 751 just includes "<head>"

please let me know your thoughts. I will also try removing the text suggested by kegobeer

Armstrong


Joachim Müller

did you try kegobeer's suggestion? What was the result?

Armstrong

Hey,

Sorry for the delay. I believe I attempted that suggestion and received an error...however i was going to try it again to see what happens but i am unsure which file to delete that out from.

Any idea from the file i posted?

still stumped

Thanks,
Armstrong

Stramm

yeah, that bug drove me nuts too... but easy to find when you check the generated html and trce it back

in theme.php find
         echo "<div id=\"picinfo\" style=\"display: $picinfo;\">\n";
         $picinfo = isset($HTTP_COOKIE_VARS['picinfo']) ? $HTTP_COOKIE_VARS['picinfo'] : ($CONFIG['display_pic_info'] ? 'block' : 'none');


and just switch the lines (line 2 should become 1)

Armstrong

Wow...I had tried that a million times, but this time it worked.

Thanks everyone for your help...this issue has been solved

-Armstrong

Joachim Müller

Quote from: Stramm on August 18, 2005, 04:58:59 PM
yeah, that bug drove me nuts too...
I don't understand: in what theme (and what version of coppermine) is the order of those two lines reversed? Is this an actual bug you discovered?

Stramm

that's a bug in the Kubrick theme. I know there are some more but don't remember exactly where. Mainly lil html problems