Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Autoindex of new photos  (Read 13499 times)

0 Members and 1 Guest are viewing this topic.

maverik-svao

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Autoindex of new photos
« on: March 23, 2011, 01:12:29 pm »

Hello!
I have written a script, which can place new photos from the other site to the coppermine folder in automatic mode.
But I need a script to put this photos into a base.
So I give to this script folder name and album name (id) and it returns pids of placed images.
I tried to create it from searchnew.php, but I can't understand exactly the code of this file.
On the other hand I tried to search something close to this script in this forum, but nothing found...
Thank you for your help!

P.S. Excuse me, if my english is bad. I'm russian...
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Autoindex of new photos
« Reply #1 on: March 23, 2011, 01:22:02 pm »

I'm not sure if I understodd you correctly. You created a script that copies files from somewhere to Coppermine's albums directory and now you want to know how you can assign those files to an album?
Logged

maverik-svao

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Autoindex of new photos
« Reply #2 on: March 23, 2011, 06:14:02 pm »

Yes!
I'm looking for a script which can assign photos to albums.
Like searchnew.php, but fully automatically.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Autoindex of new photos
« Reply #3 on: March 24, 2011, 09:11:15 am »

I think your script has to do the following:
1. Scan your directory and determine which files are new and which are already assigned to albums
2. POST the needed data to searchnew.php
Logged

maverik-svao

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Autoindex of new photos
« Reply #4 on: March 25, 2011, 07:17:50 pm »

Yes! Should I write it myself, or there is anything already wrote?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Autoindex of new photos
« Reply #5 on: March 26, 2011, 09:49:10 am »

Afaik such a script doesn't exist yet.
Logged

maverik-svao

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Autoindex of new photos
« Reply #6 on: March 30, 2011, 06:30:46 pm »

Thank you!
I'll write it myself!
Logged
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 20 queries.