Category only for registered users

Phoca Gallery - image gallery extension
lanfan
Phoca Member
Phoca Member
Posts: 14
Joined: 04 Jan 2008, 00:04

Love these new featu

Post by lanfan »

Love these new features but is it possible to hide the folder thumbnail on categories that requires priviledge? (But not on public or allowed)

That would be really neat... and ofcourse the image hitcounter... coming soon?

cheers, //LF
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Yes, in version 1.6.

Post by Jan »

Yes, in version 1.6.8, parameter:

Display Unaccessible Categories...
If you find Phoca extensions useful, please support the project
bitschubse
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 11 Apr 2008, 11:40

I use the new versio

Post by bitschubse »

I use the new version 1.6.8, but the parameter "Display Unaccessible Categories" takes no effect.

Any ideas?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

What does it mean it

Post by Jan »

What does it mean it takes no effect? Please be specific...

Do you have enabled it in Default Settings or in Parameter Component?

It only hide the categories in category view but the backbutton or folderbutton to this category will be displayed (must be because of tree) but user cannot access them if e.g. is not registered...

Jan
If you find Phoca extensions useful, please support the project
bitschubse
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 11 Apr 2008, 11:40

It only hide the

Post by bitschubse »

It only hide the categories in category view but the backbutton or folderbutton to this category will be displayed (must be because of tree) but user cannot access them if e.g. is not registered...

Ok, that's the reason, the folderbutton is shown.
Sorry! If I have more questions, I'll first read the manual...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Hi, it is new featur

Post by Jan »

Hi, it is new feature ... so if you don't find something in manaul, just ask or give me a feedback, I can write it there...


Jan
If you find Phoca extensions useful, please support the project
bitschubse
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 11 Apr 2008, 11:40

I made a little mod

Post by bitschubse »

I made a little mod to solve the problem, which shows random thumbnails on folderbuttons of unaccessible categories. Maybe you can add it to the next version.


Change following code in line 105 in the "components/com_phocagallery/views/category/tmpl/default.php" file:

old:
echo JHTML::_( 'image.site', $value->linkthumbnailpath, '', '', '', $value->title );

new:
if ($value->access == 0){
echo JHTML::_( 'image.site', $value->linkthumbnailpath, '', '', '', $value->title );
} else {
echo JHTML::_( 'image.site', 'components/com_phocagallery/assets/images/icon-folder-medium-images-shadow-access.pn g', '', '', '', 'Access denied!' );
}

new icon:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

This is great idea..

Post by Jan »

This is great idea...

but maybe this should we edit:

if ($value->access == 0)

because it displays the key for all users and maybe if some user is logged in and he can access the folder, it is not goot to display him the key...

The second problem, I get is:
Notice: Undefined property: stdClass::$access in ..components\com_phocagallery\views\category\tmpl\default.php on line 107

the third problem is the back button to parent category which can be for registered too...

But I take a look at it, thank you,

Jan
If you find Phoca extensions useful, please support the project
Svempa
Phoca Member
Phoca Member
Posts: 23
Joined: 25 Feb 2008, 17:00
Location: Sweden
Contact:

Hi Jan,I

Post by Svempa »

Hi Jan,

I am writing to express my admiration for your work, the new version 1.6.8 is a great step forward! I was working with another gallery solution, trying to implement my own access control system, but luckily found out about your new version in time.

My family site http://www.bankel.se (just now beginning to reach final stage) now has one open Phoca Gallery for each member, and will also have one private Phoca Gallery for each member. I also appreciate the possibility to expressly hide certain galleries when showing them all, perhaps you should mention somewhere that a semicolon is needed as separator.

If anybody wants to see this particular application of Phoca Gallery, you can log on with testare/test1 - as a guest you cannot see much of the site. This gives you publisher privileges so you can even write something on the site if you wish, essential parts are protected by my own ACL so there is really no risk ! Certain categories are open for all publishers, and of course Testare has the category DPP-test/DPP1 for private usage.

Regards,
Svempa
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Hi,Semicolon -

Post by Jan »

Hi,
Semicolon - it should appear if you go over the parameter ...

Please, upgrade to 1.7.0:

- detail images are protected too (if user add the url manually)
- private galleries are not displayed in tree (if you set the parameter not display the protected galleries)
- enable or disable displaying of protected galleries in tree module
and in random image module...

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