Phoca image module and groupe access

Phoca Gallery modules - modules for Phoca Gallery extension
juansolos
Phoca Member
Phoca Member
Posts: 30
Joined: 24 Feb 2011, 00:13

Re: Phoca image module and groupe access

Post by juansolos »

Hi
thanks jan.

Phoca gallery used Joomla 2.5 access level (that's nice and useful), but the module and plugin associated doesn't.

In front end, i have created several image modules, shown to each access level. It solves the problem but i have to add each new category to each module.
For the plugin (jcomment), i cant do the same idea, so people can see comments from unauthorized categories and hnows there is several access level.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca image module and groupe access

Post by Jan »

Hi, sorry I don't understand.

If you have some image which is not accessible in Phoca Gallery, then it is not accessible per module too.
If you find Phoca extensions useful, please support the project
juansolos
Phoca Member
Phoca Member
Posts: 30
Joined: 24 Feb 2011, 00:13

Re: Phoca image module and groupe access

Post by juansolos »

Hi,
indeed the images (not accessible in phoca gallery) are not accessible per the module too.
But the module shows it and if you click on it, you have a message "not authorized ..." and it is normal.
It is the only problem i have found.

That's why i have created several modules for the several groups. And i have to add new category(ies) to the modules configuration each time.

Do you anderstand what i am trying to say?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca image module and groupe access

Post by Jan »

Hi, yes, now I understand, I will release new version of the Phoca Gallery Image module, where the access will be set for categories which are not accessible.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca image module and groupe access

Post by Jan »

Hi, try to download and test the version 3.2.3 and let me know:
https://www.phoca.cz/download/category/8 ... age-module
Jan
If you find Phoca extensions useful, please support the project
juansolos
Phoca Member
Phoca Member
Posts: 30
Joined: 24 Feb 2011, 00:13

Re: Phoca image module and groupe access

Post by juansolos »

Hi Jan,
it seems to be perfect.
Very good job.
The module uses the joomla access level.

Maybe i could ask you to do the same for the jcomment plugin.

Juansolos
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca image module and groupe access

Post by Jan »

Hi, unfortunatelly I don't have any expeirences with the inside code of jcomments :-(

Jan
If you find Phoca extensions useful, please support the project
juansolos
Phoca Member
Phoca Member
Posts: 30
Joined: 24 Feb 2011, 00:13

Re: Phoca image module and groupe access

Post by juansolos »

Hi,
so bad for Jcommment plugin
But thank you again for the image module upgrade.
juansolos
Phoca Member
Phoca Member
Posts: 30
Joined: 24 Feb 2011, 00:13

Re: Phoca image module and groupe access

Post by juansolos »

Hi,
is it a way to add categories selection access in this jcomment plugin query :

Code: Select all

$query = 'SELECT a.id, a.title '
			.' , CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(\':\', c.id, c.alias) ELSE c.id END as catslug'
			.' , CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(\':\', a.id, a.alias) ELSE a.id END as slug'
			.' FROM #__phocagallery AS a'
			.' LEFT JOIN #__phocagallery_categories AS c ON c.id = a.catid'
			.' WHERE a.id = '. $id
			;
		$db->setQuery($query);
		$row = $db->loadObject();
i am trying to add something using your image module modification with no success

Code: Select all

$userACLArray = implode( ',',$user->authorisedLevels());
and

Code: Select all

AND c.access IN ('. $userACLArray.')';
in the jcomment plugin query with no success.

Any idea

Thank
Post Reply