Automatically create folders for new user

Phoca Gallery - image gallery extension
pasha4ur
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 31 Oct 2011, 13:30

Automatically create folders for new user

Post by pasha4ur »

Hello

I want to create a multi-blogs. PhocaGallery be used as a gallery. Now I use 2.7.4 vers

There is a problem in that users can create galleries category in the main directory. Accordingly, there is a problem with grouping of categories and folders.

Needs to be done so that would be the first time a user logs into the control panel user PhocaGallery default it created:
- A subcategory in the main category: "users/$ login";
- The user's folder in the the home folder: "images/phocagallery/$userid"?
As a result, the user can create categories and subcategories only in its category.

I look forward to your help.

Thank you!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48752
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Automatically create folders for new user

Post by Jan »

Hi, search this forum, there are similar posts. The creation of folder while user is registering needs to be customized on Joomla! login code, because registering or logging does not run any part of Phoca Gallery so this cannot be done in Phoca Gallery :-(

Jan
If you find Phoca extensions useful, please support the project
pasha4ur
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 31 Oct 2011, 13:30

Re: Automatically create folders for new user

Post by pasha4ur »

Hello
Thank you for your answer.

I found how automate create a folder for user by ID. Through editor JCE. But I didn't found how make that Phoca's gallery will use it for uploading image for current user in the folder by his id
pasha4ur
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 31 Oct 2011, 13:30

Re: Automatically create folders for new user

Post by pasha4ur »

:)
Post Reply