change the displayed "file informations" change the displayed "file informations"
 

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

change the displayed "file informations"

Started by philippefx, August 12, 2010, 02:33:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

philippefx

Hi,

When selecting "Hide/show file informations", some informations appears.

I would like to select what appears here, to show only : the full photo link's URL and the file name. And thus don't show anything else.

How can I do that ?


Thank you !

philippe

Leonard Will

There was a plugin for 1.4.x called "display fields" which allowed you to specify which fields were displayed. It does not seem to be available yet for 1.5.x, but I hope that it will be converted.

In the meantime I achieved this by modifying the function at ** Section <<<theme_html_picinfo>>> in my custom theme.php by inserting an "if" clause so that only the fields specified would print. I have custom fields named "Photographer", "Copyright owner" and "Date of picture". In place of

$html .= sprintf($template, $key, $value);

I now have

if (($key == 'Photographer') or ($key == 'Copyright owner') or ($key == 'Date of picture'))
{
$html .= sprintf($template, $key, $value);
}


Me400

Hi

I´m so stupid that I can´t find how to post a new post so I "reply" to this one which is the most close to the subject.

I´ve made 4 custom fields for image description. Yes, I added also information for each of the 4 fields.
However how to I made the informatino to show up under the thumbnails?
Today it looks like this:
Thumbnail
picture file name
views
stars
votes

Where shall I go, and which box shall I tick or leave open to make all 4 rows of custom fields to be diplayed?
Many thanks, stupid Me400.



Me400


Hey there,

I told you all that I´m a stupid newbie. That wasn´t even a joke.
Your statement didn´t answer my question "how to post a message" but than+s for that info anyway.
I still can´t find a bottom for to make a NEW topic. Like: "Send" "Post" etc???? 
Anyone out there understanding my dilemma and can guard me out from where I am right now
and then I might get an answer for my 2 nd question which was:

How to make "the 4 custom fields for image description visible"?

I´m so proud of myself that I´ve managed to integrate gallery 1.5.6 into my site
http://oddstamps.com/Free-Stamp-Catalogue.php
where you can see that the 4 fields doesn´t appear but the rest of the file info
and I can´t figure out why depend less reading all info and ticking and un-ticking all boxes.

I´m a nice guy and do not double-post nor cross-post only keep my topic within the closest posted related topic
but it would be nice to be able to start a new topic and hopefully I will get some response for my second question as well.

Wishing you all nice weekend
Cheers

philippefx

Quote from: Leonard Will on August 14, 2010, 10:38:54 PM
There was a plugin for 1.4.x called "display fields" which allowed you to specify which fields were displayed. It does not seem to be available yet for 1.5.x, but I hope that it will be converted.

In the meantime I achieved this by modifying the function at ** Section <<<theme_html_picinfo>>> in my custom theme.php by inserting an "if" clause so that only the fields specified would print. I have custom fields named "Photographer", "Copyright owner" and "Date of picture". In place of

$html .= sprintf($template, $key, $value);

I now have

if (($key == 'Photographer') or ($key == 'Copyright owner') or ($key == 'Date of picture'))
{
$html .= sprintf($template, $key, $value);
}



There was no "theme_html_picinfo" in my template, but I just copy this function from the "samples" theme directory.

And it works. Formidable. Thank you.


(BTW, could a mod remove the 3 upper off-topic messages ? Thanks !)

papukaija

Quote from: Me400 on August 16, 2010, 12:20:07 AM
Your statement didn´t answer my question "how to post a message" but than+s for that info anyway.
My reply wasn't supposed to answer your question.

Quote from: Me400 on August 16, 2010, 12:20:07 AM
I still can´t find a bottom for to make a NEW topic. Like: "Send" "Post" etc????
Try this link for a new topic in cpg 1.5.x miscellaneous sub-board. The "new topic" button should be above "Last post" field, if not wait for a dev/moderator to see your question (but be aware, this isn't SMF's support board).

Quote from: Me400 on August 16, 2010, 12:20:07 AM
Anyone out there understanding my dilemma and can guard me out from where I am right now
and then I might get an answer for my 2 nd question which was:

How to make "the 4 custom fields for image description visible"?
Btw, your question is answered at least partly, in the docs (but as you should know, reading the docs is part of board rules).

Me400


Hi

Many thanks for to guard me to the right places.
I´ll study the docs again before making a new post.
For a newbie ::) it hasn´t been easy, however The Gallery is just so good that I just have to get it right.

Again, thank you very much - I´m learning.

Cheers