Bank Interest

From SMFShopWiki

Revision as of 03:04, 15 March 2010 by 66.223.143.129 (Talk)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

SMFShop's bank has customisable interest (basically, it gives the user interest depending on how long their money is in the bank). However, to get the interest working, you need to create a cron job. This assumes that you have cPanel access

First, go into your cPanel. On the right-hand side, underneath 'Subdomain Stats', there should be a 'Cron Jobs' icon. Click it.

Then, click on 'Standard' to go to the standard cron configuration page.

Next, type the command in to the box. The command to use is: /usr/bin/php -q /home/[username]/public_html/[forum]/Sources/shop/dointerest.php > /home/[username]/public_html/[forum]/interest_log.htm

Replace [username] with your cPanel username, and [forum] with the directory your forum is installed into. Then, tell it to run the command every day, by clicking '0' under 'Minutes', '0=12 AM/Midnight' under 'Hours', 'Every Day', 'Every Month', and 'Every Weekday'
Then, save the changes. Your bank interest should now be working (please wait 24 hours for it to start taking effect).