Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12347
Latest: JessielGonzalez2
New This Month: 11
New This Week: 1
New Today: 0
Stats
Total Posts: 39779
Total Topics: 7005
Most Online Today: 102
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 29
Total: 29

Author Topic: Having two or more files  (Read 2732 times)

0 Members and 1 Guest are viewing this topic.

Offline Diego Andrés

  • Newbie
  • *
  • Posts: 36
  • SMF lover
    • View Profile
    • SMF Tricks
Having two or more files
« on: September 08, 2014, 08:14:39 pm »
When you have more than one file in a download, it comes the "More files" thing, or whatever don't remember the name of that   :P
Anyway, there's a small problem while downloading secondary files..

I made a fix a few months ago.

I don't remember how is supose to be the original code, but here's my edit:

Code: [Select]
<a href="' . $scripturl . '?action=downloads;sa=downfile&fileid=' . $row['ID_FILE'] . '&id=', $context['downloads_file']['ID_FILE'], ';t=' . time() . '">
I just leave how should be the link of additional downloads, because I have custom code and I can't figure how it was.

To find that part, search for // Show additional file downloads

Regards

SMF Tricks - Free & Premium Themes for SMF.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14903
    • View Profile
Re: Having two or more files
« Reply #1 on: September 08, 2014, 09:28:38 pm »
I am not seeing that issue in SMF 2.0.x with the latest downloads pro version.
Your code adds that part '&id=', $context['downloads_file']['ID_FILE'],
But that isn't required when I am looking at the code since we get the id based on the fileid passed.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Diego Andrés

  • Newbie
  • *
  • Posts: 36
  • SMF lover
    • View Profile
    • SMF Tricks
Re: Having two or more files
« Reply #2 on: September 08, 2014, 09:50:19 pm »
Weird cause I was getting a db error while downloading.
Maybe I forgot to say that this only happen to regular users?

SMF Tricks - Free & Premium Themes for SMF.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14903
    • View Profile
Re: Having two or more files
« Reply #3 on: September 09, 2014, 08:38:50 am »
tired last night as guest and normal user could not recreate the issue on the view download page
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
4153 Views
Last post May 26, 2007, 11:18:48 pm
by SMFHacks
7 Replies
2816 Views
Last post February 01, 2016, 10:17:55 pm
by Puppeteer
1 Replies
651 Views
Last post September 14, 2017, 10:58:51 am
by SMFHacks
1 Replies
596 Views
Last post March 22, 2018, 10:47:27 am
by SMFHacks
4 Replies
245 Views
Last post June 05, 2019, 04:02:28 am
by ajac63

+- Recent Topics

Update by SMFHacks
June 19, 2019, 10:58:25 am

About Comments Approval by ajac63
June 12, 2019, 07:48:52 pm

Pretty Urls extras by SMFHacks
June 06, 2019, 12:14:53 pm

About using chmod to secure files by ajac63
June 05, 2019, 04:02:28 am

Bulk upload image problem by SMFHacks
June 01, 2019, 07:24:00 pm

About Watermark Options by ajac63
May 30, 2019, 05:25:39 pm

Why PayPal only by ajac63
May 30, 2019, 04:20:47 pm

Seller ToU not showing by ajac63
May 29, 2019, 01:59:24 am

Not happy by ajac63
May 28, 2019, 06:37:58 pm

About Number of Images for Basic Ad by ajac63
May 26, 2019, 10:33:46 pm

Powered by EzPortal