Author Topic: Installation problem?  (Read 2817 times)

Offline blitzchic

Installation problem?
« on: October 22, 2006, 11:53:45 am »
Hi guys, I have just recently installed the new SMFShop (for the first time) but there is no-where in Admin Centre for me to be able to change any settings? Nothing shows up in the Mainenaince section .. any ideas?

Offline Daniel15

Re: Installation problem?
« Reply #1 on: October 22, 2006, 11:57:46 am »
Hmmmm... Check your Sources/Subs.php for a SMFShop section.
If there's not one, then here's how to fix the problem:
Open Sources/Subs.php, and find:

validateSession
();


Add before:

//Begin SMFShop code
	
loadLanguage('Shop');
        if (
allowedTo('shop_admin'))
	
    
$context['admin_areas']['shop'] = array (
	
	
    
'title' => $txt['shop_admin'],
	
	
    
'areas' => array(
 
	
	
	
    
'shop_general' => "<a href='$scripturl?action=shop_general'>{$txt['shop_admin_general']}</a>",
	
	
	
    
'shop_inventory' => "<a href='$scripturl?action=shop_inventory'>{$txt['shop_admin_inventory']}</a>",
                
'shop_items' => $txt['shop_admin_items'],
	
	
	
	
	
'shop_items_edit' => "|--- <a href='$scripturl?action=shop_items_edit'>{$txt['shop_admin_items_addedit']}</a>",
	
	
	
	
	
'shop_restock' => "|--- <a href='$scripturl?action=shop_restock'>{$txt['shop_admin_restock']}</a>",

	
	
	
	
'shop_usergroup' => "<a href='$scripturl?action=shop_usergroup'>{$txt['shop_admin_usergroup']}</a>",
	
	
    ) 
	
    );
	
//End SMFShop code


Hope this helps you :)

Offline blitzchic

Re: Installation problem?
« Reply #2 on: October 22, 2006, 05:00:35 pm »
Thanks for the quick response Daniel :D

There is that code there in the subs.php .. I checked it, and its the same ..

Offline Daniel15

Re: Installation problem?
« Reply #3 on: October 27, 2006, 07:06:26 pm »
Hmmm... Try accessing [yourforum]/index.php?action=shop_general, and see if that works.