Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12399
Latest: tssycnlys01
New This Month: 5
New This Week: 0
New Today: 0
Stats
Total Posts: 39914
Total Topics: 7026
Most Online Today: 65
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 42
Total: 42

Author Topic: Having two or more files  (Read 2894 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: 14965
    • 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: 14965
    • 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
4234 Views
Last post May 26, 2007, 11:18:48 pm
by SMFHacks
7 Replies
3021 Views
Last post February 01, 2016, 10:17:55 pm
by Puppeteer
1 Replies
750 Views
Last post September 14, 2017, 10:58:51 am
by SMFHacks
1 Replies
708 Views
Last post March 22, 2018, 10:47:27 am
by SMFHacks
4 Replies
915 Views
Last post June 05, 2019, 04:02:28 am
by ajac63

+- Recent Topics

PHP error by SMFHacks
Today at 03:55:24 pm

Message Editor Pro Issues by SMFHacks
November 06, 2019, 09:58:33 pm

most popular categories doesnt work by fussilet
November 02, 2019, 02:51:42 pm

Change colors of Halloween theme by SMFHacks
October 24, 2019, 11:44:59 am

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

Powered by EzPortal