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
only registed can download, it's possible?
-
bamby974
- Phoca Member

- Posts: 11
- Joined: 24 Feb 2009, 07:30
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: only registed can download, it's possible?
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
Jan
If you find Phoca extensions useful, please support the project
-
bamby974
- Phoca Member

- Posts: 11
- Joined: 24 Feb 2009, 07:30
Re: Yes that possible !
É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
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
- caro84g
- Phoca Hero

- Posts: 1369
- Joined: 11 Feb 2008, 17:52
- Location: Holland
- Contact:
Re: only registed can download, it's possible?
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
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
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)