Page 1 of 1

only registed can download, it's possible?

Posted: 17 Mar 2009, 15:14
by bamby974
hello

can you to help me please , i need this:
all users can see all photos, but only registed can download, it's possible?

thanks a lot

Re: only registed can download, it's possible?

Posted: 19 Mar 2009, 13:18
by Jan
Hi, there is no such option, but you can use e.g. Phoca Download too, there you can set that the file can be downloadable only by registered...

Jan

Re: Yes that possible !

Posted: 28 Mar 2009, 11:21
by bamby974
Éditer : com_phocagallery/views/category/view.html.php


remplacer ligne 370 le pavé

// PARAMS- Display or hide name, icon detail link
$tmpl['displayname'] = $params->get( 'display_name', 1);
$tmpl['displayicondetail'] = $params->get( 'display_icon_detail', 1 );


if ($user->aid > 0) {
$tmpl['registered'] = true;
$tmpl['displayicondownload'] = $params->get( 'display_icon_download', 0 );
}

$tmpl['displayiconfolder'] = $params->get( 'display_icon_folder', 0 );
$tmpl['displayiconvm'] = $params->get( 'display_icon_vm', 0 );
$tmpl['fontsizename'] = $params->get( 'font_size_name', 12 );
$tmpl['charlengthname'] = $params->get( 'char_length_name', 15);
$display_phoca_info = $params->get( 'display_phoca_info', 1 );
$tmpl['displayicongeo'] = $params->get( 'display_icon_geotagging', 0 );// Check the category
$tmpl['displayicongeoimage'] = $params->get( 'display_icon_geotagging', 0 );// Check the image
$tmpl['displaycamerainfo'] = $params->get( 'display_camera_info', 0 );

$tmpl['phocainfocode'] = PhocaGalleryHelper::getPhocaInfoCode((int)$display _phoca_info);



Amicalement Bamby

Re: only registed can download, it's possible?

Posted: 30 Mar 2009, 16:10
by caro84g
Hi,

thank you very much.

It's just not clear to me if I have to add or to replace some lines of code, 'cause you wrote in French.

Could you, or someone else clear that up (or translate the whole message to English)?

Regards, Carolien