Phoca Gallery Button change

Phoca Gallery modules - modules for Phoca Gallery extension
Draconferris
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 13 Feb 2015, 13:24

Phoca Gallery Button change

Post by Draconferris »

Hi!

I'm using your great plugin on a site, and I need to change something:

If the use the PG Button, in the the code list all of the images. We have TONS of images on the page, so we want, the user see only own images and galleries. We made changes in the ..../components/com_phocagallery/views/phocagallerylinkimg/view.htmpl.php.
The dropdown list is fine with just the users galleries, but the cude still list ALL of the images.
What I need to change to list JUST the user own pictures before he/she click to the dropdown list?

I hope you understand my problem.

Thx, Dracon.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery Button change

Post by Jan »

Hi, I think, you need to customize the SQL - to load only images which are assigned to user (not sure which method you are using, if filtering per category)?
Just try to see the user view in frontend and its model, you can see which sql queries and filtering are used for displaying user's categories and images.


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