Hi all !! Phoca gallery is, so far, the best gallery component for joomla, but i found a missed feature...
Can i get a download button only for registered users? cause i want to put a lot of pictures, and want also fidelize them let them get the best size...
Could this be possible?...
Sorry for my poor english. Thanks in advance
Regards form Spain
Download button only for registered users
-
- Phoca Newbie
- Posts: 3
- Joined: 19 Feb 2009, 12:55
- caro84g
- Phoca Hero
- Posts: 1369
- Joined: 11 Feb 2008, 17:52
- Location: Holland
- Contact:
Re: Download button only for registered users
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
Backup before you do any major change to your website (and test first)
-
- Phoca Newbie
- Posts: 3
- Joined: 19 Feb 2009, 12:55
Re: Download button only for registered users
Oh!! i'm so sorry. Let's go to put it in the correct place...
Thanks Caroline
Thanks Caroline
- Jan
- Phoca Hero
- Posts: 48416
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Download button only for registered users
Hi, the download link only displays the original image (which can be displayed independent to if you are logged in or not logged in) so if you want to add e.g. some image only for registered users, it is better to add there some external link to download e.g. zip which will have the required images...
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 6
- Joined: 30 Nov 2012, 14:43
Re: Download button only for registered users
Hi finito, have you found a way to do it?finito wrote:Hi all !! Phoca gallery is, so far, the best gallery component for joomla, but i found a missed feature...
Can i get a download button only for registered users? cause i want to put a lot of pictures, and want also fidelize them let them get the best size...
Could this be possible?...
Sorry for my poor english. Thanks in advance
Regards form Spain
-
- Phoca Newbie
- Posts: 6
- Joined: 30 Nov 2012, 14:43
Re: Download button only for registered users
I did it.
go to components\com_phocagallery\views\category\tmpl\download_images.php and add after
this code
and close braces before
go to components\com_phocagallery\views\category\tmpl\download_images.php and add after
Code: Select all
if ($value->displayicondownload > 0) {
Code: Select all
$user =& JFactory::getUser();
if($user->get('guest') == 0){
Code: Select all
// ICON GEO