SimplePortal
Development => Bugs => Fixed or Bogus Bugs => Topic started by: hcfwesker on October 22, 2012, 10:41:40 AM
-
SMF Version: 2.0.2
SP Version: 2.3.5
Sources/PortalBlocks.php
The "Top Member Stats" Block has 3 drop down options for SAshop. None of these worked when testing until I found an issue with the required file path these were calling for.
'sa_shop_money' => array(
'enabled' => file_exists($sourcedir . 'shop2/Shop.php'),
'sa_shop_trades' => array(
'enabled' => file_exists($sourcedir . 'shop2/Shop.php') && !empty($modSettings['shop_Enable_Stats']),
'sa_shop_purchase' => array(
'enabled' => file_exists($sourcedir . 'shop2/Shop.php') && !empty($modSettings['shop_Enable_Stats']),
where each line has ($sourcedir . 'shop2/Shop.php') it should be ($sourcedir . '/shop2/Shop.php')
the slash missing before the /shop2/ folder is breaking the path and not finding the SAshop MOD even when it is already installed on the forum.
-
I guess whole "Top Member Stats" block needs to be updated, a while ago there was detected outdated code for Advanced Rep System, now missing slash in Shop code.
The same thing is also missing in Casino stats:
'enabled' => file_exists($sourcedir . 'casino/Casino.php'),
replace with
'enabled' => file_exists($sourcedir . '/casino/Casino.php'),
-
Fixed for the upcoming version.