Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12387
Latest: Altha
New This Month: 11
New This Week: 3
New Today: 0
Stats
Total Posts: 39888
Total Topics: 7022
Most Online Today: 78
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 66
Total: 66

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

0 Members and 1 Guest are viewing this topic.

Offline Diego Andrés

  • Newbie
  • *
  • Posts: 38
  • 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: 14953
    • 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: 38
  • 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: 14953
    • 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
4223 Views
Last post May 26, 2007, 11:18:48 pm
by SMFHacks
7 Replies
2989 Views
Last post February 01, 2016, 10:17:55 pm
by Puppeteer
1 Replies
741 Views
Last post September 14, 2017, 10:58:51 am
by SMFHacks
1 Replies
694 Views
Last post March 22, 2018, 10:47:27 am
by SMFHacks
4 Replies
845 Views
Last post June 05, 2019, 04:02:28 am
by ajac63

+- Recent Topics

prettyurls - TroubleShooting.wiki by Rock Lee
October 10, 2019, 11:37:09 am

Some issues with adding and editing a listing by ajac63
October 07, 2019, 04:16:40 am

Problem update 1.1.21 to 2.0.15 by Rock Lee
October 06, 2019, 06:09:16 pm

[Mod]SMF 2.0.x PHP 7.2 Support by sah62
October 04, 2019, 01:46:00 pm

Ideas by shuban
October 03, 2019, 10:19:06 pm

How to space icons and multiple reacts? by shadav
October 03, 2019, 04:20:07 pm

PrettyUrls SEO Pro by Rock Lee
October 01, 2019, 09:09:38 am

How to get search preciser by SMFHacks
September 23, 2019, 10:09:56 am

How to AVOID SEO Hit when Implementing PrettyURLs by SMFHacks
September 12, 2019, 08:50:42 pm

theme by SMFHacks
September 12, 2019, 07:10:51 am

Powered by EzPortal