Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 230
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 186
Total: 186

Author Topic: How to remove $maxdownloadsperday  (Read 4613 times)

0 Members and 1 Guest are viewing this topic.

Offline ApplianceJunk

  • Sr. Member
  • ****
  • Posts: 432
    • View Profile
    • ApplianceJunk.com
How to remove $maxdownloadsperday
« 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: [Select]
//$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,


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: How to remove $maxdownloadsperday
« Reply #1 on: July 28, 2012, 10:47:14 pm »
Change to just this
Code: [Select]
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);
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 ApplianceJunk

  • Sr. Member
  • ****
  • Posts: 432
    • View Profile
    • ApplianceJunk.com
Re: How to remove $maxdownloadsperday
« Reply #2 on: July 29, 2012, 09:58:33 am »
Thanks,

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
3088 Views
Last post January 24, 2012, 01:05:36 pm
by SMFHacks
1 Replies
3655 Views
Last post June 10, 2012, 09:44:06 am
by SMFHacks
8 Replies
3983 Views
Last post November 21, 2012, 01:31:48 pm
by SMFHacks
3 Replies
2859 Views
Last post February 08, 2015, 11:19:21 pm
by SMFHacks
1 Replies
1187 Views
Last post March 10, 2022, 12:59:22 pm
by SMFHacks

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal