Download button only for registered users

finito
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Feb 2009, 12:55

Download button only for registered users

Post by finito »

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
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: Download button only for registered users

Post by caro84g »

Hi,

read this topic: viewtopic.php?f=11&t=3171

Regards, Carolien
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)
finito
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Feb 2009, 12:55

Re: Download button only for registered users

Post by finito »

Oh!! i'm so sorry. Let's go to put it in the correct place...
Thanks Caroline
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48416
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Download button only for registered users

Post by Jan »

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
If you find Phoca extensions useful, please support the project
kemin
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 30 Nov 2012, 14:43

Re: Download button only for registered users

Post by kemin »

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
Hi finito, have you found a way to do it?
kemin
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 30 Nov 2012, 14:43

Re: Download button only for registered users

Post by kemin »

I did it.

go to components\com_phocagallery\views\category\tmpl\download_images.php and add after

Code: Select all

if ($value->displayicondownload > 0) {
this code

Code: Select all

$user =& JFactory::getUser();
if($user->get('guest') == 0){
and close braces before

Code: Select all

// ICON GEO
Post Reply