Bugs

From SMFShopWiki

Jump to: navigation, search

Listed below are all the known bugs in SMFShop 3.0. As of 21st January 2007, all but one of these bugs have been fixed in the SMFShop package, so you don't need to do anything. If you downloaded SMFShop 3.0 within the first few days it came out (and are experiencing any of these problems), the fixes are below:

Contents

[edit] Blank section in "Manage Permissions"

Fixed on 19th January 2007
Problem: In the "Manage Permissions" section of the admin panel, the last item in the "SMFShop" section is supposed to say "Trade Centre", but is blank.
Solution: In Themes/default/languages/ManagePermissions.english.php, find:

  1. $txt['permissionname_shop_bank'] = 'Bank';
  2. $txt['permissionname_shop_bank'] = 'Trade Centre';

Replace with:

  1. $txt['permissionname_shop_bank'] = 'Bank';
  2. $txt['permissionname_shop_trade'] = 'Trade Centre';

[edit] Incorrect username shown when sending money to someone

Fixed on 19th January 2007
Problem: When you send money to someone, it says your username in the message ("xx credits successfully sent to [your username]"), rather than the name of the user you're sending money to.
Solution: Open Sources/Shop/Shop-Send.php, and find:

  1. $context['shop_buy_message'] = sprintf($txt['shop_successfull_send'], formatMoney($amount), $context['user']['name']);

Replace with:

  1. $context['shop_buy_message'] = sprintf($txt['shop_successfull_send'], formatMoney($amount), $moneyTo);

[edit] "View Inventory" link doesn't work

Fixed on 21st January 2007
Problem: When you click on the "View Inventory" link next to a member's post, a message like "Error - this member does not exist!" will come up. However, viewing their inventory via the "View Other Members' Inventory" section in SMFShop will work fine.
Solution: Open Sources/shop/Shop-Inventory.php, and find:

  1. $_POST['member'] = strtr($_POST['member'], array('\\"' => '"'));
  2. preg_match_all('~"([^"]+)"~', $_POST['member'], $matches);
  3. $members = array_unique(array_merge($matches[1], explode(',', preg_replace('~"([^"]+)"~', '', $_POST['member']))));

Replace with:

  1. $_REQUEST['member'] = strtr($_REQUEST['member'], array('\\"' => '"'));
  2. preg_match_all('~"([^"]+)"~', $_REQUEST['member'], $matches);
  3. $members = array_unique(array_merge($matches[1], explode(',', preg_replace('~"([^"]+)"~', '', $_REQUEST['member']))));

[edit] Stealing doesn't work

Problem: When you try to steal from someone, it will always fail, even if the probability is set to 100%.
Solution: A fix is available at http://www.daniel15.com/forum/index.php/topic,559.0.html

Personal tools