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
Category only for registered users
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Yes, in version 1.6.
Yes, in version 1.6.8, parameter:
Display Unaccessible Categories...
Display Unaccessible Categories...
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 11 Apr 2008, 11:40
I use the new versio
I use the new version 1.6.8, but the parameter "Display Unaccessible Categories" takes no effect.
Any ideas?
Any ideas?
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
What does it mean it
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
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
-
- Phoca Newbie
- Posts: 3
- Joined: 11 Apr 2008, 11:40
It only hide the
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...
Ok, that's the reason, the folderbutton is shown.
Sorry! If I have more questions, I'll first read the manual...
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Hi, it is new featur
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 11 Apr 2008, 11:40
I made a little mod
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:
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:
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
This is great idea..
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
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
-
- Phoca Member
- Posts: 23
- Joined: 25 Feb 2008, 17:00
- Location: Sweden
- Contact:
Hi Jan,I
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
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
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Hi,Semicolon -
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
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