How to get blog main album id?

How to get blog main album id?

Postby kouaa-blog on Thu Nov 29, 2012 10:22 am

Hello,

I try to add a simple image upload plugin in tinymce (http://justboil.me/tinymce-images-plugin/) because it is reaaly fater and simpliest than ressource upload. But I'd like image to be upload in the main album id of the blog.

What I need to include and which function I must used to get the main album ID of the parent blog?

Thanks
kouaa-blog
 
Posts: 174
Joined: Wed Nov 09, 2005 1:56 pm
Location: France

Re: How to get blog main album id?

Postby jondaley on Mon Dec 17, 2012 10:53 pm

You need to create a GalleryAlbums object, and then call:
function getUserAlbums( $ownerId )

If I recall correctly, the "ownerId" parameter is the blogId, and not the userId, as might be guessed.
jondaley
Lifetype Expert
 
Posts: 6169
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch


Return to Other Problems

cron