How Automatically be the owner of its categorie in front end

Phoca Gallery - image gallery extension
bbjordan
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 12 May 2009, 14:42

How Automatically be the owner of its categorie in front end

Post by bbjordan »

Hello

How do users register for the first time, and creates a categorie, are the only ones to see the fotos they have downloaded automatically ?

NB I know how to change the permissions on each categorie manually but I want her to be automatic when a user is registered.

Thank you
bbjordan
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 12 May 2009, 14:42

SOLV: How Automatically be the owner of its categorie in fro

Post by bbjordan »

I find a part of the reponse in viewtopic.php?f=1&t=3819

Edit line 734 of components/com_phocagallery/controller.php

Change:

$post['access'] = 0;

to

$post['access'] = 1;


and 738

change

$post['params'] = 'accessuserid=-1;'
//'accessuserid='.$user->id.';'
to

$post['params'] = //'accessuserid=-1;'
'accessuserid='.$user->id.';'
Post Reply