Page 1 of 3

Create more than one category/subcategory from frontend

Posted: 13 May 2009, 15:13
by Dirk67
Hi,
I just started with phoca gallery 2.2.4 -> I like this component very much -> it's simple and easy to use. :twisted:

I would like to enable my registered users (of the rank "author") to create categories and upload their pics from the frontend...

so far so good...
but after a user created his first category and uploaded succesfully his pics into this category,
it is NOT possible for this user to create another category or even a subcategory to his former created category (?)
(talking about frontend)

am I right ?

So I found there is a certain "coupling" of the user(-name) an his (just one) category (?)
(just one possible category per user ?)

Is this a limitation that I may overcome somehow,
or is it a kind of misunderstanding / "misconfiguration" from my side ?

Re: Create more than one category/subcategory from frontend

Posted: 13 May 2009, 18:03
by caro84g
You're correct. A user can create only one category from frontend.

Re: Create more than one category/subcategory from frontend

Posted: 13 May 2009, 18:34
by Dirk67
caro84g wrote:You're correct. A user can create only one category from frontend.
..hmmm :idea:
Is it planned to change that in future ?
or does anybody know a workaround for that (php basic knowledge) ?

Re: Create more than one category/subcategory from frontend

Posted: 04 Jun 2009, 09:41
by amtoft
Dirk67 wrote: Is it planned to change that in future ?
or does anybody know a workaround for that (php basic knowledge) ?
I would like to know this as well.
It could be very usefull.
In my PhotoClub members want to admin their own folders, and have more than just one category to upload in.

Please change :)

best regards,
amtoft

Re: Create more than one category/subcategory from frontend

Posted: 14 Jun 2009, 17:21
by MAGIo
That is one of my problems, too. Is there any other possibility to permit more rights?

Re: Create more than one category/subcategory from frontend

Posted: 18 Jun 2009, 19:17
by Dirk67
will this be in 2.5.0 release ?

Re: Create more than one category/subcategory from frontend

Posted: 18 Jun 2009, 20:24
by Jan
Hi, no, the 2.5.0 is mostly about optimization and there are prepared some functions which will be needed for this feature. This feature is not easy and will be implement step by step. The 2.5.0 is first step, where e.g. database structure was changed, new classes added, etc.

Jan

Re: Create more than one category/subcategory from frontend

Posted: 19 Jun 2009, 01:10
by era
made a small hack gallery - now users can create any number of
subcategories in the control panel user.
* had to depart from the rules and insert in /views/user/view.html.php work with the base - there was no time
* tested on Phoca Gallery 2.2.4

Can test.

Changed files:
/components/com_phocagallery/models/user.php
/components/com_phocagallery/views/user/view.html.php
/components/com_phocagallery/controller.php
/components/com_phocagallery/views/user/tmpl/default_upload.php
/components/com_phocagallery/views/user/tmpl/default_category.php
+
Added pictures files "plus" and "minus" for a tree of categories.

For use - copy files from arhive to your Joomla! root directory.
!NOTE! - if you used non-test site, please backup your files from directory
/components/com_phocagallery/


P.S> I apologize for my English :idea:

Re: Create more than one category/subcategory from frontend

Posted: 19 Jun 2009, 08:04
by Dirk67
thank you era,
that's very useful for me

I tested it,
and I found out that the user may create only one "main category" and then many subcategories to that "main category" ? (is this true ?)
Is it possible to have more than one "main category" (top level) per user ?
___________________________________________________________

where to copy the +/- images ?
+/- images are not showing up in the "user control panel"
___________________________________________________________
by the way:
there is missing an <!--[if !IE]> --> in your:
../components/com_phocagallery/views/user/tmpl/default_upload.php
--> viewtopic.php?p=21244#p21244

Re: Create more than one category/subcategory from frontend

Posted: 19 Jun 2009, 08:25
by Dirk67
sorry,
I found another thing:
with your hack it's not possible to use the multiple-java-upload in the user control panel.
(not possible for top categories and not possible for sub-categories as well)
the java uploader shows up and it starts to upload but then it breaks up and reports an error -> maybe the java uploader does not "know" the right directory where to upload the files to ?

single-file-upload is working fine in the user control panel.

But within the categories-view both work fine the single-file-upload an the multiple-java-upload