Changing "File Information" on a photo page Changing "File Information" on a photo page
 

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

Changing "File Information" on a photo page

Started by HDLLC, August 16, 2004, 12:25:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

HDLLC

Wondering how you can change what is displayed in the "File Information" under a photo...?

Specifically, I'd like to remove the "Displayed" field altogether as well as changing the name of "Favorites" to "Lightbox"  (and the corresponding type of "add to favorites" to "add to lightbox").

I'd also like to change the information to something static in the "dimensions" information...

Thanks in advance for any information!

--Jeff

skybax

#1
Open displayimage.php to remove "displayed" field find:

// just to open up the code block
$info[$lang_picinfo['Displayed']] = sprintf($lang_display_image_php['views'], $CURRENT_PIC_DATA['hits']);
// just to open up the code block


and just comment it out or remove it (php commenting means putting // in front of the line, in case you didn't know).

To change Favorite to Lightbox search for $lang_picinfo in your lang (english.php ) file.

And I'm not really sure what you mean by static, but if you want you can modify and add the line in your lang file and then modify:

// just to open up the code block
    $info[$lang_picinfo['Dimensions']] = sprintf($lang_display_image_php['size'], $CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight']);
// just to open up the code block


Hope this is helpful.

-T  8)
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.skybax.com%2FhotImage%2Fpost_footer.gif&hash=338b65c57a59f0b06311094e697c87794e43d945)
Don't contact me for support over PM or email unless I requested you to do so. Instead: post on the proper board.

HDLLC

Thanks for the reply - but problems...

I cannot see, in either of my browsers (safari and IE 5) any of the code you reference in your post...

Can you send to me in an email?

Thanks in advance!

--Jeff

Nibbler

You need to download the php file from your server, modify it in a simple text editor like notepad and then re-upload it to your server.

HDLLC

Sorry...  Did not clarify...  I can get those files, but I cannot see his response and directions as to how to fix the problem.  His second reference to "Code" in his reply to me here, on these forums - shows nothing in my browser windows...

Without that, I can't follow his directions as to how I can fix.

Thanks!

--Jeff

Nibbler

$info[$lang_picinfo['Dimensions']] = sprintf($lang_display_image_php['size'], $CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight']);

skybax

For the pages that I specified, you need to open the pages that you uploaded to your server during the install, in a txt/code editor (like notpad or dreamweaver....) Then search for the text i'm talking about - downloading them through IE will only display the html code that php processes... make sense?

-T :)
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.skybax.com%2FhotImage%2Fpost_footer.gif&hash=338b65c57a59f0b06311094e697c87794e43d945)
Don't contact me for support over PM or email unless I requested you to do so. Instead: post on the proper board.

HDLLC

Thanks-  I think Nibbler gave me what I needed... I actually could not read your post...
The code was not displaying for me, for whatever reason...

Thanks fellas!

--Jeff

Joachim Müller

Could you post a screenshot how the posting looks like for you on a mac? Maybe we need to edit the css of our forum to let mac users see code blocks.

GauGau

HDLLC

#9
Thanks again for the help!

Here is the screenshot...  (I cannot scroll up and down - no bars/arrows and nothing showing....)
Hindsight - I could have probably looked at the source of the page...

Thanks!

--Jeff

One note: GauGau - you just posted a reply to me on another thread...  I can read those snippets just fine.
I think it only impacts one-liners...  The snippets that contain multiple lines of code seem to display ok.

HDLLC

I fixed the portions of naming "favorites" to "lightbox" - but cannot seem to locate the line of code:

$info[$lang_picinfo['Dimensions']] = sprintf($lang_display_image_php['size'], $CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight']);

I am doing a "find" in BBEdit -  nothing...  Not even grabbling chunks/pieces of the above, doing a copy/paste and find...

Any ideas...

Thanks in advance!

--Jeff

Nibbler

It is line 302 in the 1.3.1 release, 303 in the 1.3.0 release, and 260 in 1.2.1

HDLLC

Thanks a ton guys!  Sure appreciate the help!
It works!

...now, just a couple of tweaks I need to do on my end (graphical) and I'm ready!

Thanks again!

--Jeff