Phoca Gallery for Joomla 1.6 and ACL

Phoca Gallery - image gallery extension
pmoore
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 06 May 2011, 07:53

Phoca Gallery for Joomla 1.6 and ACL

Post by pmoore »

Hi there i installed RC5 and noticed that when creating categories, Phoca gallery does not take advantage of Joomla 1.6 Groups or ACL?

We all waited for this functionality from Joomla itself, what would be the point if the components do not enable you to use this feature?

Is this something that will enabled before the Final Release?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49198
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery for Joomla 1.6 and ACL

Post by Jan »

Hi, sorry I don't understand, in category edit you can set:

Access (where the ACL groups are listed) like you can set it in Joomla! articles?

Then because mostly a category belongs to one user, you can set 3 different rights for users directly:

access (this is additional access to standard ACL of Joomla!), upload and delete rights - so in fact delete and upload right is set for individual users because mostly (feature wanted by user) a gallery (category) belongs to one user not to some groups
We all waited for this functionality from Joomla itself, what would be the point if the components do not enable you to use this feature?
Anyway new ACL in Joomla! is most critized feature because users doe not understand it and it is very confusing for them (many settings on many places), so for now I don't understand what you mean with "we all waited"? (Anyway 2 - I hope people will undersand the ACL soon because Andrew has made it very proffesionally and very systematic)

Please let me know what you exactly mean with: "Phoca gallery does not take advantage of Joomla 1.6 Groups or ACL" ... so I can take a look at it, but please be aware the addition rights for individual users is a featuer wanted by users and mixing a lot of different rights systems (menu link, category users, category groups, etc. can take a lot of resource of server :-( so developer must look at the performance too)

Anyway3 - the backend is fully new - Joomla! 1.6 ACL rules are included, see e.g. code for category:

Code: Select all

require_once JPATH_COMPONENT.DS.'helpers'.DS.'phocagallerycs.php';

		$state	= $this->get('State');
		$canDo	= PhocaGalleryCsHelper::getActions($state->get('filter.category_id'));
		
		JToolBarHelper::title( JText::_( 'COM_PHOCAGALLERY_CATEGORIES' ), 'category.png' );
		if ($canDo->get('core.create')) {
			JToolBarHelper::addNew('phocagalleryc.add','JTOOLBAR_NEW');
		}
		if ($canDo->get('core.edit')) {
			JToolBarHelper::editList('phocagalleryc.edit','JTOOLBAR_EDIT');
		}
		if ($canDo->get('core.edit.state')) {

			JToolBarHelper::divider();
			JToolBarHelper::custom('phocagallerycs.publish', 'publish.png', 'publish_f2.png','JTOOLBAR_PUBLISH', true);
			JToolBarHelper::custom('phocagallerycs.unpublish', 'unpublish.png', 'unpublish_f2.png', 'JTOOLBAR_UNPUBLISH', true);
			JToolBarHelper::custom( 'phocagallerycs.approve', 'approve.png', '', 'COM_PHOCAGALLERY_APPROVE' , true);
			JToolBarHelper::custom( 'phocagallerycs.disapprove', 'disapprove.png', '',  'COM_PHOCAGALLERY_NOT_APPROVE' , true);
			JToolBarHelper::custom('phocagallerycs.cooliris', 'cooliris.png', '',  'COM_PHOCAGALLERY_COOLIRIS' , true);
		}

		if ($canDo->get('core.delete')) {
			JToolBarHelper::deleteList( JText::_( 'COM_PHOCAGALLERY_WARNING_DELETE_ITEMS' ), 'phocagallerycs.delete', 'COM_PHOCAGALLERY_DELETE');
		}
		JToolBarHelper::divider();
		JToolBarHelper::help( 'screen.phocagallery', true );


Thank you, Jan
If you find Phoca extensions useful, please support the project
Post Reply