forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: HDLLC on August 16, 2004, 12:25:50 am

Title: Changing "File Information" on a photo page
Post by: HDLLC 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
Title: Re: Changing "File Information" on a photo page
Post by: skybax 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)
Title: Re: Changing "File Information" on a photo page
Post by: HDLLC 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
Title: Re: Changing "File Information" on a photo page
Post by: Nibbler 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.
Title: Re: Changing "File Information" on a photo page
Post by: HDLLC 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
Title: Re: Changing "File Information" on a photo page
Post by: Nibbler 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']);
Title: Re: Changing "File Information" on a photo page
Post by: skybax 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 :)
Title: Re: Changing "File Information" on a photo page
Post by: HDLLC 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
Title: Re: Changing "File Information" on a photo page
Post by: Joachim Müller 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
Title: Re: Changing "File Information" on a photo page
Post by: HDLLC 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.
Title: Re: Changing "File Information" on a photo page
Post by: HDLLC 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
Title: Re: Changing "File Information" on a photo page
Post by: Nibbler 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
Title: Re: Changing "File Information" on a photo page
Post by: HDLLC 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