Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Suzie Q

Pages: [1]
1
General SMFShop Discussion / SMFShop Manual Interest
« on: December 16, 2010, 07:13:55 pm »
The SA Shop mod seems to be almost the same as smf shop. It has a few extra functions like adding bank interest manually with a button click but I cant get it to work with smfshop.

Anyone know how I can do this?

2
Coding / SMFShop Manual Interest
« on: December 05, 2010, 10:21:44 pm »
Can someone tell me what code I need to put into a clickable button to update all bank savers by a percentage of their saved amounts ie. the interest.

Ive tried fiddling with the following with no joy.

Quote
<?php
/**********************************************\
| SMFSHOP (Shop MOD for Simple Machines Forum) |
|         (c) 2005 DanSoft Australia           |
|      http://www.dansoftaustralia.net/        |
\**********************************************/

//File: dointerest.php
//      The file to add interest to member's bank

//VERSION: 1.31 (Build 7)
//DATE: 10th December 2005

include("https://localhost/SMF/SSI.php");
   
$interest_rate = $modSettings['shopInterest'] / 100;
db_query("UPDATE {$db_prefix}members
      SET moneyBank = moneyBank + (moneyBank*{$interest_rate})", __FILE__, __LINE__);
   
echo "Interest added at ".date("d/m/Y h:i:s A");
?>


Thanks

SMF Shop3.1.6.1 SMF2.0

3
General SMFShop Discussion / RandomMoney.php ERROR
« on: December 04, 2010, 02:38:39 am »
When anyone buys 'Random Money' (Get a random amount of money, between -190 and 190!) I am almost consistently getting this error regardless of how much money each user has to their credit or how much I edit the amount one can win or lose.

Fatal error: Function name must be a string in /home/suzie/public_html/forum/Sources/shop/items/RandomMoney.php on line 83

This is the code at line 83 in RandomMoney.php:
$row = $smfFunc['db_fetch_assoc']($result);

Anyone know why Im getting this error or what I can do to fix it?

SMF 2 RC4 - Default Curve

Thanks.

Pages: [1]