Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Changing "File Information" on a photo page  (Read 4504 times)

0 Members and 1 Guest are viewing this topic.

HDLLC

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 15
    • Hughes Design LLC
Changing "File Information" on a photo page
« on: August 16, 2004, 12:25:50 am »

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
Logged

skybax

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 180
    • SKYBAX Communications
Re: Changing "File Information" on a photo page
« Reply #1 on: August 16, 2004, 02:46:59 am »

Open displayimage.php to remove "displayed" field find:
Code: [Select]
// 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:
Code: [Select]
// 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)
« Last Edit: August 16, 2004, 04:24:23 pm by skybax »
Logged
(http://www.skybax.com/hotImage/post_footer.gif)
Don't contact me for support over PM or email unless I requested you to do so. Instead: post on the proper board.

HDLLC

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 15
    • Hughes Design LLC
Re: Changing "File Information" on a photo page
« Reply #2 on: August 16, 2004, 03:52:51 am »

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
Logged

Nibbler

  • Guest
Re: Changing "File Information" on a photo page
« Reply #3 on: August 16, 2004, 03:58:11 am »

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.
Logged

HDLLC

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 15
    • Hughes Design LLC
Re: Changing "File Information" on a photo page
« Reply #4 on: August 16, 2004, 04:05:16 am »

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
Logged

Nibbler

  • Guest
Re: Changing "File Information" on a photo page
« Reply #5 on: August 16, 2004, 04:13:38 am »

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

skybax

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 180
    • SKYBAX Communications
Re: Changing "File Information" on a photo page
« Reply #6 on: August 16, 2004, 04:27:49 am »

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 :)
Logged
(http://www.skybax.com/hotImage/post_footer.gif)
Don't contact me for support over PM or email unless I requested you to do so. Instead: post on the proper board.

HDLLC

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 15
    • Hughes Design LLC
Re: Changing "File Information" on a photo page
« Reply #7 on: August 16, 2004, 04:30:08 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Changing "File Information" on a photo page
« Reply #8 on: August 16, 2004, 08:39:06 am »

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
Logged

HDLLC

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 15
    • Hughes Design LLC
Re: Changing "File Information" on a photo page
« Reply #9 on: August 16, 2004, 01:31:25 pm »

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.
« Last Edit: August 16, 2004, 01:41:58 pm by HDLLC »
Logged

HDLLC

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 15
    • Hughes Design LLC
Re: Changing "File Information" on a photo page
« Reply #10 on: August 16, 2004, 01:57:23 pm »

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
Logged

Nibbler

  • Guest
Re: Changing "File Information" on a photo page
« Reply #11 on: August 16, 2004, 04:06:45 pm »

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

HDLLC

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 15
    • Hughes Design LLC
Re: Changing "File Information" on a photo page
« Reply #12 on: August 17, 2004, 04:05:56 am »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.