Is there a hook or action I can use to automatically create a gallery for all new users for each media type with a default name? Such as My Videos, My Pictures, My Docs? I want to automatically link to these media galleries from other places in the profile to “create doc” or “add video” but I can only send them to the empty gallery page if non exists. I’d like to remove that confusion and just create a single default gallery automatically for all new accounts. Please advise.
There are multiple ways to do it.
Please see an example here
I will suggest an enhancement though. Instead of using mpp_actions you should bind to the account activation action. That way, It will only run when new account gets activated instead of the each page load on user profile.
You may modify it as you please.
Hope that helps.
Here is another post you may be interested in.
The topic ‘ [Resolved] Howto: default galleries for all new users (my videos, my docs, my pictures)?’ is closed to new replies.