Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 21, 2013, 08:44:26 pm

Login with username, password and session length
Members
Total Members: 10764
Latest: ozzie4x4
Stats
Total Posts: 32371
Total Topics: 5478
Online Today: 70
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 44
Total: 45
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: How to remove $maxdownloadsperday  (Read 1617 times)
ApplianceJunk
Sr. Member
****
Offline Offline

Posts: 410



View Profile WWW
« on: July 28, 2012, 10:38:23 pm »

So when a member reaches the max number of downloads per day this see this message on our site.

Quote
You have exceeded your maximum free downloads per day of 1
Need to download another service manual today? Contact Us with the title of the service manual you want to download.

In Sources/Downloads2.php I found this code.

Code:
//$totalRow = $smcFunc['db_fetch_assoc']($dbresult);
$totalRow['total'] = mysql_num_rows($dbresult);
if ($totalRow['total'] >= $maxdownloadsperday)
fatal_error($txt['downloads_txt_day_limit'] .  $maxdownloadsperday . ' <br/>Need to download another service manual today? <a href="http://appliancejunk.com/forums/index.php?action=contact"><font color="#D97B33"><b>Contact Us</b></font></a> with the title of the service manual you want to download.', false);

I'm trying to edit the code so when they get the massage that they reached the max number of download they don't see the number. In the above example it shows 1.

I have tried removing $maxdownloadsperday out of the code, but get errors.

Could you tell me what to edit so the number for daily down limit is not shown to them?

Thanks,

Logged

SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10995


View Profile
« Reply #1 on: July 28, 2012, 10:47:14 pm »

Change to just this
Code:
fatal_error($txt['downloads_txt_day_limit'] .  ' <br/>Need to download another service manual today? <a href="http://appliancejunk.com/forums/index.php?action=contact"><font color="#D97B33"><b>Contact Us</b></font></a> with the title of the service manual you want to download.', false);
Logged
ApplianceJunk
Sr. Member
****
Offline Offline

Posts: 410



View Profile WWW
« Reply #2 on: July 29, 2012, 09:58:33 am »

Thanks,
Logged

Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 03:27:16 pm]

[Today at 02:20:35 pm]

[Today at 02:11:10 pm]

[Today at 01:18:58 pm]

[Today at 12:22:02 am]

[Today at 12:20:41 am]

[May 19, 2013, 11:13:02 pm]

[May 19, 2013, 08:18:27 pm]

[May 19, 2013, 07:03:27 am]

[May 16, 2013, 10:13:46 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.336 seconds with 19 queries.