Advertisement:

Author Topic: Download System 2.0! (With TP Downloads Import Tool) Updated for SMF 2.0!  (Read 314222 times)

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,387
    • smfhacks on Facebook
    • @createaforum on Twitter
    • SMF For Free
Does it happen for all downloads? Or just a specific one.

Does adding working? But it disappears just on edit?
SMF For Free -Free SMF Forum hosting.
SMFHacks.com -  Paid Modifications for SMF

Latest Mod:
EzPortal - A Portal System for SMF
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline Costa

  • SMF Hero
  • ******
  • Posts: 2,973
  • Gender: Male
    • hmfscosta on Facebook
    • Costa Web
Today I add a download with description, when I go to the download page the description disappear. This also happen when I edit old downloads. The download file it's ok, but the description is gone. So, if I edit any download, the description disappear. If I add new downloads and write some description, after send the download, the description disappear.
Hugo "Costa" Fernandes
Estou disponível para trabalhos remunerados!
Costa Web | Todos os meus pensamentos e truques sobre SMF.

Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora. - Vê aqui a razão

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

Offline Mareid

  • Semi-Newbie
  • *
  • Posts: 80
I installed the mod apparently correctly.  But I can't figure out how to create categories (there doesn't seem to be any way in the mod to do so) and I can't figure out how or where to upload the files I want to show as downloadable.  I know I'm missing something but I 'm not all that familiar with mods, so apologies in advance

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,387
    • smfhacks on Facebook
    • @createaforum on Twitter
    • SMF For Free
To add categories go to the downloads menu item. There should be a link on that page to add a category.
SMF For Free -Free SMF Forum hosting.
SMFHacks.com -  Paid Modifications for SMF

Latest Mod:
EzPortal - A Portal System for SMF
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Online JTVaughn

  • Semi-Newbie
  • *
  • Posts: 50
Tried searching but couldn't find an answer.

Is there a way to have the upload and the Direct Link both be the actual file?

i.e. instead of ?action=downloads;sa=downfile&id=1 it's www.etc.co.uk/forum/downloads/filename.pdf

Offline Arantor

  • SMF Legend
  • *
  • Posts: 50,786
    • wedgebook on Facebook
That is strongly not recommended. There is a reason why direct file access is not provided: security.

Online JTVaughn

  • Semi-Newbie
  • *
  • Posts: 50
I see. But is it possible? The uploaded files will all be the same file type, and all are meant to be publicly available.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,387
    • smfhacks on Facebook
    • @createaforum on Twitter
    • SMF For Free
Yeah you can do but would require editing of the source of the downloads system.
SMF For Free -Free SMF Forum hosting.
SMFHacks.com -  Paid Modifications for SMF

Latest Mod:
EzPortal - A Portal System for SMF
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 4,219
  • Gender: Male
  • SMF Themes & Design.
    • idesign360 on Facebook
    • @idesign360 on Twitter
    • idesign360.com/
vb, I'm using a script that in order to download a file, the user has to tweet before activating the download button.

I use this line for the specific download inside the <script> tags:

Code: [Select]
' . $scripturl . '?action=downloads;sa=downfile&id=', $context['downloads_file']['ID_FILE'], '
It works at it should but it throws a undefined error: 'downloads_file' due to php and js don't mix.

What would be the alternative to this line?
Code: [Select]
', $context['downloads_file']['ID_FILE'], '
I search thru your files but everything seems to use that line.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,387
    • smfhacks on Facebook
    • @createaforum on Twitter
    • SMF For Free
Do you have $context['downloads_file'] loaded on the page with that script? And $context defined as a global
$context['downloads_file'] comes from a mysql call that loads the row for that file ID
SMF For Free -Free SMF Forum hosting.
SMFHacks.com -  Paid Modifications for SMF

Latest Mod:
EzPortal - A Portal System for SMF
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 4,219
  • Gender: Male
  • SMF Themes & Design.
    • idesign360 on Facebook
    • @idesign360 on Twitter
    • idesign360.com/
Do you have $context['downloads_file'] loaded on the page with that script? And $context defined as a global
$context['downloads_file'] comes from a mysql call that loads the row for that file ID

This is my script in index.template
Code: [Select]
<script type="text/javascript">
$(document).ready(function(){

// Using our tweetAction plugin. For a complete list with supported
// parameters, refer to http://dev.twitter.com/pages/intents#tweet-intent

$("#tweetLink").tweetAction({
text: "Download Professional SMF Themes. Free and Premium.",
url: "http://idesign360.com",
via: "idesign360",
related: "idesign360"
},function(){

// When the user closes the pop-up window:

$("a.downloadButton")
.addClass("active")
.attr("href", "' . $scripturl . '?action=downloads;sa=downfile&id=', $context['downloads_file']['ID_FILE'], '");

});

});
</script>

downloads_file is throwing a undifined.  cant use globals on js  :o

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,387
    • smfhacks on Facebook
    • @createaforum on Twitter
    • SMF For Free
Is it a specific download you want or any? Any reason the code is on every page and not the just the downloads page?
SMF For Free -Free SMF Forum hosting.
SMFHacks.com -  Paid Modifications for SMF

Latest Mod:
EzPortal - A Portal System for SMF
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 4,219
  • Gender: Male
  • SMF Themes & Design.
    • idesign360 on Facebook
    • @idesign360 on Twitter
    • idesign360.com/
Is it a specific download you want or any? Any reason the code is on every page and not the just the downloads page?

No reason at all. I didnt thought of that.  Ill try it.

Its for all downloads.

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 4,219
  • Gender: Male
  • SMF Themes & Design.
    • idesign360 on Facebook
    • @idesign360 on Twitter
    • idesign360.com/
OMG. Why i didnt thought of that. That worked. No errors.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,387
    • smfhacks on Facebook
    • @createaforum on Twitter
    • SMF For Free
Glad that was able to work!
SMF For Free -Free SMF Forum hosting.
SMFHacks.com -  Paid Modifications for SMF

Latest Mod:
EzPortal - A Portal System for SMF
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline TLOVeritas

  • Semi-Newbie
  • *
  • Posts: 12
Are there any plans to add multiple mirrors to this mod? That'd be really useful/helpful.

Offline Arantor

  • SMF Legend
  • *
  • Posts: 50,786
    • wedgebook on Facebook
How exactly would it upload to mirrors?

Offline TLOVeritas

  • Semi-Newbie
  • *
  • Posts: 12
Not upload, just link to.

Though if you wanted it to, uploading via FTP to mirrors would be nice.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,387
    • smfhacks on Facebook
    • @createaforum on Twitter
    • SMF For Free
Multiple links could be possible. Either in the description.
I do support multiple uploads in one download in the pro edition.
SMF For Free -Free SMF Forum hosting.
SMFHacks.com -  Paid Modifications for SMF

Latest Mod:
EzPortal - A Portal System for SMF
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store