Files Download

Hey guys,

 

Quick question.  In the view file page is there a way to have the "view file" area a link to download?  Currently it is only in the action menu, but I would also like it to be on the icon.  After running a quick beta, that is one of the bigger complaints I recieved.

 

Thanks

 

Chris

Quote · 27 Sep 2010

Sure its pretty easy..

backup then open the modules' BxFilesPageView.php

after:

$aUnit = array(

add:

'moduleUrl' => BX_DOL_URL_ROOT . $this->oConfig->getBaseUri(),
'fileUri' => $this->aFileInfo['medUri'],
'file_type' => '_blank',

save and close.

&& the modules base template view_unit.html

beside __fileTitle__

add:

<a href="javascript:void;" onclick="window.open('__moduleUrl__download/__fileUri__', '__file_type__', 'width=500,height=380,menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no')">download</a>

with this new info you should be able to add your own language key if you need it....you can test it before you try it here(new window):

http://darrenpowless.com/test/m/files/view/crossdomain

Have fun!

I have video tutorials to help you mrpowless.com
Quote · 27 Sep 2010

Perfect!

 

Thanks a ton.

 

Now if only I could figure out how to create folders within groups and events (pics, videos, files etc...)

Quote · 27 Sep 2010

Hi guys,

i've followed the instructions of Mrpowless and now the link is visible near the title. But the problem is that when i click onto the link it opens a popup box with written inside "access denied"!!!

What's the problem???

tanks a lot

Manu

Quote · 7 Oct 2010

sounds like your permissions for the user is not set.  Allow file downloads in the user permissions from the admin panel.

Quote · 9 Oct 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.