Disable download

Phoca Download - download manager
PowerJoe
Phoca Member
Phoca Member
Posts: 37
Joined: 03 Sep 2015, 19:00

Disable download

Post by PowerJoe »

Hi guys,

I'd like to disable the download option. I work with PDF formats and I want users to not be able to download the pdf's.
I know how to disable the download button but I'd like to have the download option etc in modal view and/or new tab aswell.

Is this possible? If so, how?

I'm looking for a quick reply.

Joe
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Disable download

Post by Jan »

Hi, for now there is no such option, so this needs to be customized:

1) disable it per CSS - display:none style for whole button
2) or directly in the html code:

components/com_phocadownload/views/category/tmpl/ ...

Jan
If you find Phoca extensions useful, please support the project
PowerJoe
Phoca Member
Phoca Member
Posts: 37
Joined: 03 Sep 2015, 19:00

Re: Disable download

Post by PowerJoe »

Hi Jan,

Thanks for the quick reply.
Yes concerning CSS/HTML I know what to do.

The thing that gets me stuck is the blue div within the modal view of a PDF which gives you the option to print/download etc.
I need that to be removed.

Any idea how?

Joe
christine
Phoca Hero
Phoca Hero
Posts: 2857
Joined: 28 Nov 2010, 17:20

Re: Disable download

Post by christine »

Hi Joe,

Try this:
div.pddownloadrc {
display:none;
}
kind regards, Christine
PowerJoe
Phoca Member
Phoca Member
Posts: 37
Joined: 03 Sep 2015, 19:00

Re: Disable download

Post by PowerJoe »

Hi Christine,

I know that. This is not the problem. The problem is in the modal view. You get this blue area where you can print and download and some more functions.
This needs to go.

Joe
christine
Phoca Hero
Phoca Hero
Posts: 2857
Joined: 28 Nov 2010, 17:20

Re: Disable download

Post by christine »

Hi Joe,

may be there?

com_phocadownload_site_views_category_view.html.php

Code: Select all

$this->t['buttonpr']->set('modal', true);
			$this->t['buttonpr']->set('methodname', 'modal-button');
kind regards, Christine
PowerJoe
Phoca Member
Phoca Member
Posts: 37
Joined: 03 Sep 2015, 19:00

Re: Disable download

Post by PowerJoe »

No that didn't work for me Christine..
Post Reply