Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
June 19, 2013, 01:16:13 am

Login with username, password and session length
Members
Total Members: 10807
Latest: GoldDigger1950
Stats
Total Posts: 32558
Total Topics: 5507
Online Today: 42
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 36
Total: 36
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: $txt['downloads_txt_day_limit'] = ?  (Read 610 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: 11051


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
[June 18, 2013, 05:22:14 pm]

[June 18, 2013, 07:27:33 am]

[June 18, 2013, 06:10:04 am]

[June 17, 2013, 12:27:50 pm]

[June 16, 2013, 08:17:21 pm]

[June 16, 2013, 07:29:04 am]

[June 15, 2013, 08:34:38 pm]

[June 14, 2013, 10:28:18 pm]

[June 13, 2013, 11:00:52 pm]

[June 12, 2013, 03:37:47 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.365 seconds with 20 queries.