Adding photos via Gallery2 API to gallery embeded with Drupal
Nexus7
Joined: 2007-06-06
Posts: 5 |
Posted: Thu, 2007-09-06 15:13 |
I'm writing script for import photos from flickr. It recieves flickr photo id via ajax and uploads photo to gallery. I have problems with adding photo to DB. I'm initializing gallery via GalleryEmbed::init($params), $gallery object created succesfuly, all required fields are filled. Then I get photo from flickr, upoad it to server (tmp file are really created). Further code below: <code> GalleryCoreApi::releaseLocks($lock); $lock = GalleryCoreApi::acquireWriteLock($newItem->getId()); $newItem->setKeywords($tags); print_r($newItem); GalleryCoreApi::releaseLocks($lock); @unlink($tmpFile); <code> galleryPhotoItem object is printed with all required fields - id, owner, parentId etc. There no error messages in $ret. But there any data are stored to DB May be problem is in save() method, but script doesn't terminates... Help me resolving this problem plz...
|
|
Posts: 32509
- topic moved to the drupal integration forums.
- did you notice g2's flickr import module? downloads -> user contributions. i guess its name is gallery2flickr.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 5
gallery2flickr is not stable (as for me) and I need absolutely different interface... My code is based on this module