Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 22, 2013, 10:56:25 am

Login with username, password and session length
Members
Total Members: 10766
Latest: Heater Sajid
Stats
Total Posts: 32381
Total Topics: 5479
Online Today: 67
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 50
Total: 51
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: $txt['downloads_txt_day_limit'] = ?  (Read 575 times)
ApplianceJunk
Sr. Member
****
Offline Offline

Posts: 410



View Profile WWW
« on: May 25, 2012, 09:42:09 am »

When a member reaches their daily download limit they see this message.

Quote
You have reached your free download daily limit of 6

I would like to add some text after the number 6.

I searched all files for $txt['downloads_txt_day_limit'] and found this in Downloads2.php

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, false);
else
return true;

}

I'm thinking this is were it gets the number to display at the end of the sentence and were I need to add text if I want it to display after the number.

Is that correct?

If so could you give me a example of were I would add any additional text.

I'm thinking I would echo the text at the very end, but I'm not really sure about the whole thing at this point.

Thanks,
Logged

SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10998


View Profile
« Reply #1 on: May 25, 2012, 10:28:14 am »

That's the place you would do
Code:
fatal_error($txt['downloads_txt_day_limit'] .  $maxdownloadsperday . ' your extra text here', false);
Logged
ApplianceJunk
Sr. Member
****
Offline Offline

Posts: 410



View Profile WWW
« Reply #2 on: May 25, 2012, 10:52:25 am »

That works great!
Thanks for the speedy reply!
Logged

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

Recent
[Today at 10:44:26 am]

[Today at 03:03:31 am]

[May 21, 2013, 03:27:16 pm]

[May 21, 2013, 02:11:10 pm]

[May 21, 2013, 01:18:58 pm]

[May 21, 2013, 12:22:02 am]

[May 21, 2013, 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]
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.449 seconds with 20 queries.