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.
Phoca image module and groupe access
-
- Phoca Member
- Posts: 30
- Joined: 24 Feb 2011, 00:13
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca image module and groupe access
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 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
-
- Phoca Member
- Posts: 30
- Joined: 24 Feb 2011, 00:13
Re: Phoca image module and groupe access
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?
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?
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca image module and groupe access
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
Jan
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca image module and groupe access
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
https://www.phoca.cz/download/category/8 ... age-module
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 30
- Joined: 24 Feb 2011, 00:13
Re: Phoca image module and groupe access
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
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
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca image module and groupe access
Hi, unfortunatelly I don't have any expeirences with the inside code of jcomments
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 30
- Joined: 24 Feb 2011, 00:13
Re: Phoca image module and groupe access
Hi,
so bad for Jcommment plugin
But thank you again for the image module upgrade.
so bad for Jcommment plugin
But thank you again for the image module upgrade.
-
- Phoca Member
- Posts: 30
- Joined: 24 Feb 2011, 00:13
Re: Phoca image module and groupe access
Hi,
is it a way to add categories selection access in this jcomment plugin query :
i am trying to add something using your image module modification with no success
and
in the jcomment plugin query with no success.
Any idea
Thank
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();
Code: Select all
$userACLArray = implode( ',',$user->authorisedLevels());
Code: Select all
AND c.access IN ('. $userACLArray.')';
Any idea
Thank