Create more than one category/subcategory from frontend

Phoca Gallery - image gallery extension
Dirk67
Phoca Member
Phoca Member
Posts: 45
Joined: 13 May 2009, 14:53

Create more than one category/subcategory from frontend

Post 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 ?
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: Create more than one category/subcategory from frontend

Post by caro84g »

You're correct. A user can create only one category from frontend.
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
Dirk67
Phoca Member
Phoca Member
Posts: 45
Joined: 13 May 2009, 14:53

Re: Create more than one category/subcategory from frontend

Post 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) ?
amtoft
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 04 Jun 2009, 09:38

Re: Create more than one category/subcategory from frontend

Post 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
MAGIo
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 27 Feb 2008, 22:09

Re: Create more than one category/subcategory from frontend

Post by MAGIo »

That is one of my problems, too. Is there any other possibility to permit more rights?
Dirk67
Phoca Member
Phoca Member
Posts: 45
Joined: 13 May 2009, 14:53

Re: Create more than one category/subcategory from frontend

Post by Dirk67 »

will this be in 2.5.0 release ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Create more than one category/subcategory from frontend

Post 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
If you find Phoca extensions useful, please support the project
User avatar
era
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 25 May 2009, 23:56
Contact:

Re: Create more than one category/subcategory from frontend

Post 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:
Dirk67
Phoca Member
Phoca Member
Posts: 45
Joined: 13 May 2009, 14:53

Re: Create more than one category/subcategory from frontend

Post 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
Last edited by Dirk67 on 19 Jun 2009, 08:28, edited 2 times in total.
Dirk67
Phoca Member
Phoca Member
Posts: 45
Joined: 13 May 2009, 14:53

Re: Create more than one category/subcategory from frontend

Post 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
Post Reply