Auto keyword on upload Auto keyword on upload
 

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 keyword on upload

Started by skidpics, September 29, 2007, 05:55:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

skidpics

How do you code auto keywords based on the album you are uploading to instead of having to enter them?

skidpics

In the upload.php, could you not change the following:

Quote// Create thumbnail and intermediate image and add the image into the DB
$result = add_picture($album, $filepath, $picture_name, 0,$title, $caption, $keywords, $user1, $user2, $user3, $user4, $category, $raw_ip, $hdr_ip, $movie_wd, $movie_ht);

to:

Quote// Create thumbnail and intermediate image and add the image into the DB
            $result = add_picture($album, $filepath, $picture_name, 0,$title, $caption, $album, $user1, $user2, $user3, $user4, $category, $raw_ip, $hdr_ip, $movie_wd, $movie_ht);

Which will in turn put the album name automatically into the keyword variable within the database?

I am getting a point here with this.  I replied to a previous thread but forgot where it was about having multiple albums for a single image. The only way I see how to do this is use the keyword variable for the album name..  .. In default, the default keyword will be the current album you are uploading to..  then you can add additional 'keywords' based only on the current albums you have to join them together.  What do you think?

skidpics

Well, I give up - What is the variable name in upload.php that passes on the album title?  I used $alb_cat, but it passes on member name and title of Album, which is almost correct..

skidpics

How do you change this to capture the keyword as album name?

array($lang_upload_php['keywords'], 'keywords', 0, 255, 1),

or is it this entry?

$keywords = addslashes($_POST['keywords']);

skidpics


skidpics

Not alot of readers.  Anyone have any suggestions?

Joachim Müller

Usually, if nobody answers, nobody knows the answer. Or nobody wants to answer. No use bumping frequently.