New(ish) module: user homes
Glooper
Joined: 2005-09-21
Posts: 225 |
![]() |
Download from Gallery Modules. Just done a new version of the user homes module. The old functionality is there but I've also added stuff to the "add Gallery" dialog... so that when you add a new gallery you can choose to make that gallery private and give new user details. That will create the gallery, create a user and group.. give permissions so that only the new user can view the gallery and then set the gallery to be the new users user-home! *phew*.. it's simpler than what it sounds, honest! You will need the latest experimental code to use this as bharat has kindly pushed some required changes into it. Ben Benjamin Albert Smith - Photography |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
Ben, I've create a wiki page about it. If you make more updates, please replace your zip link in your post above or update that page Feel free to update the wiki page with any other information you feel like it needs. I've only used an earlier version of your module and it's been awhile. http://codex.gallery2.org/Gallery3:Modules:user_homes Thanks |
|
Shemo725
Joined: 2008-04-18
Posts: 424 |
![]() |
glooper, nice mod. is there a way to set permissions for the user homes, also? basically, if I have a user say "x", I want "x" to be able to add and edit his/her album, but I do not want "x" to be able to add/edit photos/videos in other albums. |
|
Glooper
Joined: 2005-09-21
Posts: 225 |
![]() |
Currently this is not done automatically through user-homes.. but you can use the normal permissions dialog to allow a user to edit his or her album. Ben Benjamin Albert Smith - Photography |
|
Glooper
Joined: 2005-09-21
Posts: 225 |
![]() |
Cheers Nivekiam... I'll make sure to update the page if I do another release Ben Benjamin Albert Smith - Photography |
|
Shemo725
Joined: 2008-04-18
Posts: 424 |
![]() |
Glooper wrote:
Currently this is not done automatically through user-homes.. but you can use the normal permissions dialog to allow a user to edit his or her album. that can't be done at a user level, can it? I thought permissions were for an entire album in gallery 3..am I wrong? also, it appears there may be a bug with your module..check out this thread: |
|
engineer
Joined: 2005-09-13
Posts: 84 |
![]() |
I installed a fresh gallery3 as well as some modules. I found that new album can't be created even if log in as admin. Here is the error log: 2010-07-05 03:43:43 -07:00 --- error: Kohana_Exception [ 42 ]: Invalid method group called in Item_Model After disable the user home module, 'add a album' works. |
|
offensichtlich
Joined: 2010-08-13
Posts: 9 |
![]() |
Confirming engineer. 2010-08-14 10:58:29 -07:00 --- error: Kohana_Exception [ 42 ]: Invalid method group called in Item_Model Deactivating user_homes helped resolving the issue. |
|
Glooper
Joined: 2005-09-21
Posts: 225 |
![]() |
Hi, cheers for the bug info. I've not updated this module for RC2 yet so this is probably the problem. Will have a look this week sometime. Cheers Benjamin Albert Smith - Photography |
|
vangel
Joined: 2009-12-13
Posts: 20 |
![]() |
very interested in this. Ok so I got the register module , its a bit buggy but works ok. I then installed user homes. It dint break anything but it seems to have no effect. My register module has groups set to something like "members". I am hoping your module will work the same way as the G2 one. I installed everything less than 4 hours ago. RC2 and modules from GIT repo. Things that would complete this + register module together maybe. 1. We can set a parent album where user homes will be created (it can be changed i supposed without affecting existing homes) just like G2. Like a rollover I currently use in one G2 site. 3. last but not the least -> default permissions Sorry i am not an impressive coder i can fix small bugs in scripts at most and take very very long to figure things out ^^ But I am ready to pitch in 75$ from me for this to be done plus help with end user testing. I was reading one contest wiki page but it seems its for G2. I am serious. I have set my 75$ aside, anyone else wants to pitch in? If anyone from ops can tell me how i can officially do this please tell me thanks. Love G3, great work, i am a fan again after 4 years. Will be posting in my blog a review on G3 soon. |
|
vangel
Joined: 2009-12-13
Posts: 20 |
![]() |
i know 75$ is not much but thats all i got now. but dont worry ill keep increasing as i get mo cash. ;) Now I think this can be achieved by some sort of batch script too. I see code has something like events. I am thinking can it be like this. can someone give me some idea on how to do this? |
|
Glooper
Joined: 2005-09-21
Posts: 225 |
![]() |
Hi Vangel, Not sure what I understand what your asking for. Probably best that you start a new thread if you asking for help on creating your own module. I expect this module would be a good starting point but it sounds like you are asking for something more specific. I don't get enough time to work on the modules I currently develop let alone some new ones ;-) Ben Benjamin Albert Smith - Photography |
|
vangel
Joined: 2009-12-13
Posts: 20 |
![]() |
Thanks Glooper. I understand , I will do a new thread later. thanks again |
|
zukeris
Joined: 2010-09-17
Posts: 5 |
![]() |
Hi, Anyone else have the same problem? |
|
Glooper
Joined: 2005-09-21
Posts: 225 |
![]() |
Fixed on my branch in github and fixed another issue I found when adding new albums. Fixed version should appear on Gallery Modules in the next day or two. I'm not 100% sure how you tell though Ben Benjamin Albert Smith - Photography |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
Glooper
Joined: 2005-09-21
Posts: 225 |
![]() |
Done.. so hopefully the changes will get pulled in the next day or two. Ben Benjamin Albert Smith - Photography |
|
crackers
Joined: 2002-10-24
Posts: 67 |
![]() |
I'm having aproblem setting the user's home album. On "create new user" I can set it to an album, however their personal one dosen't exist yet... so can set that... after I create the user and change to the proper album... it stops working altogether. This is also true when user registration is enabled. I can't change their home albums.... Any thoughts? |
|
damnfool
Joined: 2009-06-24
Posts: 16 |
![]() |
Great module but I'm having one little problem relating to being able to view movies on the iphone. When I make any edit to the gallery to play back video on the iphone (such as the edit described here http://gallery.menalto.com/node/101033) it will work fine on a non private album but not on a private album. It just can't seem to be able to access the movie clip. |
|
chamb1
Joined: 2004-12-27
Posts: 32 |
![]() |
Sounds like a great module, but I am missing something....maybe it is my config or combination of modules. Are users supposed to see a "home link" in the header? I am not seeing anything with Wind or other themes I have tried....does anyone know of any module-conflicts? |
|
chamb1
Joined: 2004-12-27
Posts: 32 |
![]() |
I figured out how to make a home link...yeah. |
|
LordZed
Joined: 2012-08-30
Posts: 9 |
![]() |
Hi! So now that this post is open again... here is my problem again I want to use user homes with chroot but it looks like it does not work. When I set the album in the user preferences and open the user settings again I can see that "none" is selected. Can someone tell me what I'm doing wrong!? |
|
JaronRH
Joined: 2010-07-28
Posts: 23 |
![]() |
Great plugin! I don't know if you take requests or not but is there any chance you could add a RESTful API hook? I'd really like to be able to get a users home gallery via the RESTful API if possible. Thanks! |
|
JaronRH
Joined: 2010-07-28
Posts: 23 |
![]() |
Nevermind - just add this to the helpers folder as user_home_rest.php You can then call "/rest/user_home" and it will return the home associated with the API key used or 1. --- <?php defined("SYSPATH") or die("No direct script access."); class user_home_rest { |
|