Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 195
Total: 195

Author Topic: How to remove $maxdownloadsperday  (Read 4604 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: 16436
    • 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
3068 Views
Last post January 24, 2012, 01:05:36 pm
by SMFHacks
1 Replies
3635 Views
Last post June 10, 2012, 09:44:06 am
by SMFHacks
8 Replies
3974 Views
Last post November 21, 2012, 01:31:48 pm
by SMFHacks
3 Replies
2848 Views
Last post February 08, 2015, 11:19:21 pm
by SMFHacks
1 Replies
1146 Views
Last post March 10, 2022, 12:59:22 pm
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

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

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal