G2 importer with User Homes

sbradshaw

Joined: 2011-05-26
Posts: 5
Posted: Thu, 2011-05-26 07:06

We're a K-12 school who uses (and empties) our G2 install annually. Usually we just have users sign up (we authenticate against LDAP) and have the User Homes module create the home album.

This year, we want student albums grouped together, with their home album nested under their graduation year.

Our ideal: bulk import. We could even run a bulk import for each year level, changing the "default" home location in User Homes between each import.

We're looking for a coder to make this happen. We're open to ideas/suggestions about what will make this do-able. Basically, we're looking for something to make this structure without us having to log in 1800 times or move user "home" albums.

If you're interested, please drop me a line.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2011-05-26 11:21

w/ G2 this could have been easy from the start.
Create an album "2011" and set the User Albums module to create new albums under that "2011" album.
Next year create a new "2012" album and change the User Albums module to create new under that.

And since the world is supposed to end in Dec. 2012 no need to go any further :)

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
sbradshaw

Joined: 2011-05-26
Posts: 5
Posted: Thu, 2011-05-26 12:37

Thanks for the idea, Suprsidr.... I may not have explained well!

We're looking to have all 140 grade 5 kids have their home album in the "grade 5" album, all 160 Grade 6 kids with their home album in the "grade 6" album, and so on. If we could batch create with something that played nicely with User Homes, this could work (12 different imports for 12 different grades....)

Does that make sense? We're looking to have homes by their grade, not the current year.

Have you (1) seen any import scripts that work well, and (2) work with User Homes?

Cheers,
Sheldon

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2011-05-26 13:00
 
sbradshaw

Joined: 2011-05-26
Posts: 5
Posted: Thu, 2011-05-26 13:18

Nope - G2. We're doing another year with G2 before even considering a move....

We like the functionality of the User Homes module - we just need to bulk import rather than a "drip-feed" model of account creation.

Cheers,
Sheldon.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2011-05-26 13:23

I'm not aware of a G2 module "User Homes" got a link?

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
sbradshaw

Joined: 2011-05-26
Posts: 5
Posted: Thu, 2011-05-26 13:36

Sorry - User Albums.... http://codex.gallery2.org/Gallery2:Modules:useralbum

From the description:
This module automates the creation of an album for each user and is thus very useful for community sites. You can do all the things this module does without this module, but creating an album for each user, setting the correct permissions, etc takes a lot of time if done step by step. And in addition, users will see a "Your Album" link on each page as well.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2011-05-26 13:58

Creating the kind of automation to where a new user gets put not only into the correct year album, but also the correct grade would require a change to the registration module as well as the User Albums module.
The registration module would need to gather grade/year info and the user albums module would have to use that info to place the user into the correct album.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
sbradshaw

Joined: 2011-05-26
Posts: 5
Posted: Thu, 2011-05-26 14:06

yup - that's why we were wondering if there was any way of modding the User Album plugin. We set the home location manually, do an import. Manually change the home location, do another import..... repeat! Use the great functionality of the User Album plugin, but feed it from a csv rather than typing it in.

Long shot, but thought it worth asking.

Thanks for your advice - it's appreciated.

S.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2011-05-26 14:24

I have some experience w/ the User Albums module.
We modded ours to create sub-albums and clone default content to these albums. Basically it would replicate a "template" album.
http://www.flashyourweb.com/filemgmt/index.php?id=35

I'm sure your mod would not be that difficult.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2