Closed GoogleCodeExporter closed 8 years ago
If you want I can write the code for these new methods myself, and you would
just review and incorporate my changes in xmlrpc.php. Please let me know.
Original comment by v...@alloyphoto.com
on 5 Jan 2012 at 4:47
Yes, that would be great. Just add it as patch or file, I will look into it
Original comment by alex.cologne
on 5 Jan 2012 at 6:33
Alex, attached is the updated xmlrpc.php file. I also needed to make a minor
change in the ngg_db.php file so the find_gallery() method also returns the
number of pictures in the gallery:
insert on line #195 (after line $gallery->galdesc =
stripslashes($gallery->galdesc);):
$gallery->counter = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) as counter
FROM $wpdb->nggpictures WHERE galleryid = %d", $id) );
Original comment by v...@alloyphoto.com
on 5 Jan 2012 at 5:18
Forgot to mention - I put a question mark next to version numbers (e.g. @since
1.9.1?) because I don't know what version you are planning to include these
changes into.
Other than that, I ran some tests, and the added methods work fine.
Attached is the xmlrpc.file.
Original comment by v...@alloyphoto.com
on 5 Jan 2012 at 5:22
Attachments:
Looks good, will add this during the weekend
Original comment by alex.cologne
on 5 Jan 2012 at 6:26
Perfect, fixed in r1056
Original comment by alex.cologne
on 7 Jan 2012 at 2:26
Original issue reported on code.google.com by
v...@alloyphoto.com
on 5 Jan 2012 at 4:44