programmatically add gallery to album
-
I am going to implement a routine to batch-import a lot of galleries from a CSV file in a format like this:
/path-of-folder/;Title of The Gallery;#AlbumID (numeric)
First: it recall nggAdmin::import_gallery()
Second: it set gallery title with a simple SQL query
Third: it add gallery (suppose we have the $gallery_id) to specified album ($gallery_id)It was difficult to me to write this third point because of my low knowledge of ngg_album/sortorder field.
Can anyone help me with this function?
function add_to_album( $galleryID , $albumID )
{
????
}
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘programmatically add gallery to album’ is closed to new replies.