Hide download button

Phoca Download - download manager
0zz1
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 03 Oct 2010, 15:09

Hide download button

Post by 0zz1 »

hi all,

i have weird questions... can i hide the download link from the frontend?

I mean i love the com_ but the preview have all i want already... and there is also download button there! so then I would not need to add the pdf to 2 places on backend...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hide download button

Post by Jan »

Hi, there is no parameter for this, but you can hide it directly in the code or if you are using your layout design, then you will not add teh download button to this layout.

to edit the file:
components/com_phocadownload/views/category/tmpl/default_files.php

Jan
If you find Phoca extensions useful, please support the project
0zz1
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 03 Oct 2010, 15:09

Re: Hide download button

Post by 0zz1 »

Hi Jan,

there is no default_files.php however i looked for the default.php but could not find away to disable it.... am i looking at a wrong file? thanks.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hide download button

Post by Jan »

Hi, you should upgrade to latest version.

in some old version, the info is stored in default.php - you can find the part for download buttons there.
If you find Phoca extensions useful, please support the project
0zz1
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 03 Oct 2010, 15:09

Re: Hide download button

Post by 0zz1 »

im on the latest version (for joomla 1.5) that is 1.3.9

ill keep on looking... from the default.php
0zz1
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 03 Oct 2010, 15:09

Re: Hide download button

Post by 0zz1 »

found it... i just removed this
323-328 and works nicely now...
// DOWNLOAD
$downloadOutput .= '<div class="pddownload'.$this->tmpl['button_style'].'"><div>';
$downloadOutput .= $linkDownloadB;
$downloadOutput .= JText::_('Download');
$downloadOutput .= $linkDownloadE;
$downloadOutput .= '</div></div>';
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hide download button

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply