Is it possible to use one image file for several albums? Is it possible to use one image file for several albums?
 

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

Is it possible to use one image file for several albums?

Started by forbesmillphoto, February 08, 2006, 07:47:42 AM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

forbesmillphoto

I would like to create several different albums (i.e. California, San Francisco, Coastlines).  I will have several images that will be placed into more than one album.  Is there a way to point to a single image file from multiple albums?  I would like to avoid uploading multiple versions of the same image.

Thanks,
Dan
<a href="http://www.forbesmillphoto.com">Forbes Mill Photo</A>

Nibbler

If you use 1.4 then you can use Album keywords to have the same pic in multiple albums.

skidpics

Quote from: Nibbler on February 08, 2006, 07:57:10 AM
If you use 1.4 then you can use Album keywords to have the same pic in multiple albums.
So the easiest way would be...:

Let's say you make only keywords based on the albums you have created...  How can you make each album load the images that are contained within that album AND associated with the same keyword instead of searching for it? This would mean that you have a set amount of keywords without allowing users to add unless you add another album, and allow users to pick 'additional categories' (keywords)  based on a dropdown list of keywords..  Hmm

This might be another feature request, but I am not sure..  my apologies if so.

Joachim Müller

Set the keywords field to "disabled" for non-admins. This way, users can only add keywords from the list and can not enter keywords at will.

skidpics

Quote from: GauGau on October 01, 2007, 07:20:15 AM
Set the keywords field to "disabled" for non-admins. This way, users can only add keywords from the list and can not enter keywords at will.

I reviewed the docs, but cannot find to place where you can disable for non-admins..  I do see Enable clickable keywords in search, but I don't think that is it...I have been knows to be wrong though..

I did however find this:
Show number of linked files
If you use album keywords to display images/files in more than one album, enabling this option will display additional information for the album stats: if an album doesn't only contain "regular" files, but files linked via the "album keyword" option as well, the number of linked files will be displayed separately like this "3 files, last one added on Oct 07, 2004, 3 linked files, 6 files total".


Joachim Müller

You will have to edit the corresponding file's code. Not being described in the docs. Edit upload.php, find    // Create a text box.
    echo <<<EOT
        <tr>
            <td width="40%" class="tableb">
                        $text  $ordinal
        </td>
        <td width="60%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="$name" maxlength="$max_length" value="$default" class="textinput" id="$name" />
                </td>
        </tr>

EOT;
and replace with    // Create a text box.
    if ($name == 'keywords') {
      $disabled = 'disabled="disabled"';
    } else {
      $disabled = '';
    }
    echo <<<EOT
        <tr>
            <td width="40%" class="tableb">
                        $text  $ordinal
        </td>
        <td width="60%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="$name" maxlength="$max_length" value="$default" class="textinput" id="$name" $disabled />
                </td>
        </tr>

EOT;


This is not related to "general discussion" though, but a clear support request for cpg1.4.x. Therefor moving this thread accordingly.

skidpics

Got that part fixed!  Thanks!

Where is the support thread where I may continue this discussion?  I have one more question about it..  as to how can I pass the album name selected into this keyword variable by default..