Auto insert description field for uploads Auto insert description field for uploads
 

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

Auto insert description field for uploads

Started by skidpics, December 31, 2007, 06:31:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

skidpics

For upload approvals, there is the form box to multiple delete all files if wanted.. 

How can one adapt a main description box, with a 'checkbox' that will apply that to all images, and automatically insert the main box's information in all boxes?



Joachim Müller


Hein Traag

Nice idea skidpics and i see you point but it wil have to be coded as it is not standard in cpg. So either you whip up some php code to do this or someone else with time to spare can help out.

Cheers
Hein

skidpics

thanks.  in my spare time, I will look into it.  If I have any luck, I will post my results...


skidpics

What is the variable that hold the description value in the editpics.php script?

caption, or caption1 or captionLabel?  I believe it is caption, correct?

$data = array(
 
        array($captionLabel, 'caption', 2, $CONFIG['max_img_desc_length']),

With some research.  It appears I am going to have to wrap this around some javascript.  I already have a rought script that copies one value to another once the checkbox is checked, but I have to figure out how to wrap it into the caption form in order to change it..  Might also alter the following from the file:

Quote
<td width="20%" align="center">
     <span class="admin_menu">
     <input type="checkbox" name="del_commentsAll" onclick="selectAll(this,'del_comments');"   class="checkbox"reset_votesAll" id="del_commentsAll" />
     <label for="del_commentsAll" class="clickable_option">{$lang_editpics_php['del_all_comm']}</label>
     </span>
</td>

in order to move it into a text box and copy the results back to the caption array..?
Will keep posting some results, once I make some headway...