Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12375
Latest: scuzzy
New This Month: 2
New This Week: 1
New Today: 0
Stats
Total Posts: 40218
Total Topics: 7083
Most Online Today: 113
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 3140 times)

0 Members and 1 Guest are viewing this topic.

Offline Diego Andrés

  • Newbie
  • *
  • Posts: 39
  • 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: 15109
    • 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: 39
  • 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: 15109
    • 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
4312 Views
Last post May 26, 2007, 11:18:48 pm
by SMFHacks
7 Replies
3204 Views
Last post February 01, 2016, 10:17:55 pm
by Puppeteer
1 Replies
879 Views
Last post September 14, 2017, 10:58:51 am
by SMFHacks
1 Replies
832 Views
Last post March 22, 2018, 10:47:27 am
by SMFHacks
4 Replies
1306 Views
Last post June 05, 2019, 04:02:28 am
by ajac63

+- Recent Topics

Download System Lite by Rock Lee
June 03, 2020, 07:34:24 pm

Font question by SMFHacks
May 27, 2020, 08:15:26 am

Error message with latest SMF 2.1 Github build by Hatshepsut
May 25, 2020, 01:43:26 am

smfblog not working on 2.0.17 by tech9
May 20, 2020, 01:44:34 pm

Copyright removal by stbc
May 18, 2020, 01:27:57 am

Mod Verified User i can't square the image by Rock Lee
May 07, 2020, 07:56:10 pm

SMF4Mobile 2.0 released for SMF 2.0.x by SMFHacks
May 06, 2020, 12:13:14 pm

SMF Social Login Pro - Discontinued? by Nicole
May 02, 2020, 05:47:04 pm

Likes by SMFHacks
April 30, 2020, 09:50:35 pm

Upgrade Issue - by SMFHacks
April 28, 2020, 12:40:13 pm

Powered by EzPortal