Page 2 of 2

Re: Phoca image module and groupe access

Posted: 18 Jan 2013, 15:24
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.

Re: Phoca image module and groupe access

Posted: 20 Jan 2013, 20:19
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.

Re: Phoca image module and groupe access

Posted: 21 Jan 2013, 13:28
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?

Re: Phoca image module and groupe access

Posted: 21 Jan 2013, 21:00
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

Re: Phoca image module and groupe access

Posted: 21 Jan 2013, 21:35
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

Re: Phoca image module and groupe access

Posted: 23 Jan 2013, 12:35
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

Re: Phoca image module and groupe access

Posted: 27 Jan 2013, 18:29
by Jan
Hi, unfortunatelly I don't have any expeirences with the inside code of jcomments :-(

Jan

Re: Phoca image module and groupe access

Posted: 31 Jan 2013, 11:49
by juansolos
Hi,
so bad for Jcommment plugin
But thank you again for the image module upgrade.

Re: Phoca image module and groupe access

Posted: 14 Feb 2013, 13:01
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