Page 2 of 2

Re: Jcoment plugin and group access

Posted: 01 Mar 2013, 08:56
by juansolos
Hi,
i was working on 2 directions
-modify the jcomment phocagallery plugin to take into consideration the access level
-modify the phocagallery image module (which take into consideration the access level yet)to show image classified by Jcomment date
i think i have found solution in the Jcomment plugin.

In the file components/com_jcomments/plugins/com_phocagallery_images.plugin.php :
line 20
replace

Code: Select all

$query = 'SELECT a.id, a.title '
by

Code: Select all

$query = 'SELECT a.id, a.title, c.access '
and in line 35
replace

Code: Select all

info->access = 0;
by

Code: Select all

info->access = $row->access;
It will add the access level of the category in the Jcomment field access.
But previous comments stay with the access level in 0 (public access), it must be modify by another way. It isn't a problem in my case.

This solution seems to work. I suppose this modification must be done in the phocagallery category Jcomment plugin to (i dont use comment of a category only on image)

Juansolos

Re: Jcoment plugin and group access

Posted: 02 Mar 2013, 00:01
by Jan
Hi, thank you for the guide.
Jan