Welcome, Guest. Please login or register.
Did you miss your activation email?

 
Advanced search

18667 Posts in 5537 Topics- by 9349 Members - Latest Member: wilf7col

May 25, 2013, 12:10:02 PM
JOOM::GALLERY::FORUMArchivePonyGallery MLFrontendfrontend - upload pics in the user's own category only
Pages: [1]
Print
Author Topic: frontend - upload pics in the user's own category only  (Read 3430 times)
0 Members and 1 Guest are viewing this topic.
flerd
Newbie
*
Offline Offline

Posts: 3


View Profile
« on: September 26, 2008, 08:51:35 PM »

Hi all,

i don't know it is a bug or not, but i tried to set joomgalery that my users from the frontend would be able to upload pics only in their own categroies. But on the frontend when a registered user uploads a picture he can do this in all categories which are created by any user.

I found the solution:
build:
JOOMGALLERY_BETA_1_BUILD_20080914.zip

file:
joom.userpanel.php

search for this:
Code:
$query="SELECT cid as value, IF(owner IS NOT NULL,CONCAT(name,' (user)'),name) as text
             FROM #__joomgallery_catg
             WHERE owner IS NOT NULL";

change to this:
Code:
$query="SELECT cid as value, IF(owner IS NOT NULL,CONCAT(name,' (user)'),name) as text
             FROM #__joomgallery_catg
             WHERE owner = $my->id";

in this way the user can only upload in his/her own category from the frontend.

i'm not expert in php but this works for me, and caused no problem.

i hope it helps to someone.

flerd
« Last Edit: October 02, 2008, 04:29:46 PM by flerd » Logged
denzel2364
Full Member
***
Offline Offline

Posts: 100



View Profile WWW
« Reply #1 on: September 26, 2008, 09:56:09 PM »

Thank you for your contribution
Logged
aHa
Developer-Team
Hero Member
*****
Offline Offline

Posts: 990


View Profile WWW
« Reply #2 on: September 27, 2008, 09:41:09 AM »

Hi,
Bug or feature Smile
Right, actually it is intended, that user can create categories and all user can upload their pictures in all user generated categories and categories marked in backend for user upload.
For example you are at an event and create one category and other users who visited this event too can upload their pictures without creating a new category.

But we can discuss this..

Regards
Andreas
Logged
flerd
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #3 on: September 27, 2008, 10:15:47 AM »

Hi aHa,

i see what you mean, and it is a good feature ;)

But i think some users will need "my way" ;) ... so maybe in the stable release there could be an option for this in admin panel, and we can turn this feature on/off ;)

Thank you for your work, joomgallery is one of the best writen component ever (easy to install, easy to admin, work as a charm, ect.)

flerd
Logged
aHa
Developer-Team
Hero Member
*****
Offline Offline

Posts: 990


View Profile WWW
« Reply #4 on: September 27, 2008, 11:08:20 AM »

Hi,
thank you for the commendation  Smile

Yes, sometimes it's better to let the siteadmins decide ...
We will see..

Regards
Andreas
Logged
Supernatural
Newbie
*
Offline Offline

Posts: 10


View Profile
« Reply #5 on: December 12, 2008, 02:08:14 PM »

hi, i have one quiestion. Is it possible to show ONLY user created categories in this menu?
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic

Bad Behavior has blocked 844 access attempts in the last 7 days.

maternal