Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 01-02-2006, 09:05 PM
jharlap Offline
forum loafer
 
Join Date: Jan 2006
Location: Montreal (Quebec) Canada
Posts: 5
Copy Folder with Titles/Descriptions for PP 1.5

I've added some fairly simple functionality to the copy_folder.php addon distributed with PP1.5BETA1 so that it can read titles and descriptions from a textfile included with the directory of images. As the change is so simple (and I secretly hope that it'll make it into PP1.5 instead of the one in BETA1) I didn't change the namespace of the functions, so it's not compatible with the original copy_folder.php - so move the old one out of the way if you want to use it. If you don't include a titles.txt file in your upload directory, the behaviour is identical to the original file, so this shouldn't be a problem.

The format of the title listing file is newline separated records containing comma separated, double-quote encapsulated fields. The field order is filename, title, description. It's very easy to make this kind of file in a text editor or (possibly even easier) in a spreadsheet package (OpenOffice, gnumeric, Excel, etc).

Hope it saves someone some time - I know it did for me ;)
Suggestions/comments are welcome, of course...

Cheers,
Jon
Reply With Quote
  #2  
Old 01-02-2006, 09:30 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
Link
http://www.pixelpost.org/v1/index.ph...ds&details=143
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #3  
Old 08-28-2006, 07:26 AM
a2xm Offline
forum loafer
 
Join Date: Jun 2005
Location: Jakarta - Indonesia
Posts: 2
Send a message via MSN to a2xm Send a message via Yahoo to a2xm
Hi,

I got these error while trying to use it:
Quote:
Warning: opendir(../photoblog/images/New/): failed to open dir: No such file or directory in /home/a2xmcom/domains/a2xm.com/public_html/photoblog/addons/copy_folder.php on line 63

Warning: asort() expects parameter 1 to be array, null given in /home/a2xmcom/domains/a2xm.com/public_html/photoblog/addons/copy_folder.php on line 232

Warning: reset(): Passed variable is not an array or object in /home/a2xmcom/domains/a2xm.com/public_html/photoblog/addons/copy_folder.php on line 233

Warning: Variable passed to each() is not an array or object in /home/a2xmcom/domains/a2xm.com/public_html/photoblog/addons/copy_folder.php on line 234
and no images are copy to the database. I've the images in a subfolder inside image folder. Any helps would be thanksfull...

cheers,
a2xm
Reply With Quote
  #4  
Old 08-30-2006, 12:06 AM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
Try to use absolute paths like /home/account_name/dir_with_images
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 05:10 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs