Welcome Guest, Not a member yet? Register   Sign In
Downloading Files from Front End Using Expression Engine Core
#1

[eluser]Shiju S S[/eluser]
1. Install Module Download Module

2. Click Download Module and add files to be downloaded. The permission as All will not work, we have to teak the module code, which is given later.

3. Go to Content - Publish / Edit and select your channel.

4. Another Tab Downloads will be added to your entry now. Select the file to be downloaded.

5. Create template:
Code:
{exp:channel:entries channel="products" orderby="title" sort="asc"}
   <h2 class="underline">{title} - {entry_id}</h2>
   {exp:download:entries entry_id="{entry_id}"}
   <a href="{file_download}">{file_title}</a>
   {/exp:download:entries}
  {/exp:channel:entries}

6. You will be able to see the links in the front at this stage. But clicking on the link will not initiate downloads. a little tweak here.

7. Go to system/expressionengine/thirdparty/downloads folder and open the file mod.download.php

8. Go to Line number 163, either comment it or use appropriate logig:
Code:
/*if ( ! in_array('all', $allowed) && ! in_array($group_id, $allowed))
   {
    return $this->EE->output->show_user_error('general', $this->EE->lang->line('no_permission'));
   }*/
#2

[eluser]TheFuzzy0ne[/eluser]
Thanks...

Errr... You realise this is the "CodeIgniter" forum, right? Wink
#3

[eluser]Shiju S S[/eluser]
Oh is there another place for EE, didn't know that.
#4

[eluser]TheFuzzy0ne[/eluser]
Please see [url="http://ellislab.com/forums/"]here[/url]. There's a forum for EE1 and EE2. Smile




Theme © iAndrew 2016 - Forum software by © MyBB