jDownloadsownloads.com



Author Topic: Display direct downalod link to file  (Read 2975 times)

0 Members and 1 Guest are viewing this topic.

Offline electronic

  • Newbie
  • *
  • Posts: 6
Display direct downalod link to file
« on: 07.01.2014 13:42:36 »
Hello,

I'm using jdownloads content plugin to display downloads in Joomla articles. Can you tell how to display full path to the file instead of jdownlods generated link? Now I get http://www.vu.lt/leidyba/lt/component/jdownloads/finish/128/1273, but I want to display full path to file -  http://www.vu.lt/leidyba/lt/documents/1.pdf.

For our websites it very important to show correct patch to the file.

Can anybody tell me how to change it?  Any ideas how to crack the code?

Regards,
Arminas Grigonis

Offline electronic

  • Newbie
  • *
  • Posts: 6
Re: Display direct downalod link to file
« Reply #1 on: 08.01.2014 06:37:26 »
i manage to do it myself.

i have changed:
$jd_titel_link = jd_SefRel('index.php?option=com_jdownloads&Itemid='.$cat_itemid.'&view=finish&catid='.$p_Frow->cat_id.'&cid='.$p_Frow->file_id);
to
$jd_titel_link = $jDFPlive_site.$jlistConfigM['files.uploaddir']."/".$crows[0]->cat_dir."/".$jd_filename;

Offline Arno

  • Administrator
  • ***
  • Posts: 12.234
    • jDownloads.com
Re: Display direct downalod link to file
« Reply #2 on: 08.01.2014 11:42:47 »
Hi,
for the component can you use the option in config, to send the file not via php script. I think, when you use this, it is also used with the plugin. But i am not sure.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!