Starter Pack Issue


  -----  
Author Message

Raine Dragon
Member

Tue Jun 10, 2008 12:48 am   Post subject: Starter Pack Issue
I was looking through the Starter Pack mod on this site, and the installation file refers to admin/admin_shop.php

However, that file doesn't seem to contain any of the bits of code that the installation file wants me to find... Is it just not compatible with this version of Shop Mod? I see some of these code bits in other Shop files in the admin folder, but I wasn't sure if that was significant or not.

Shop Mod Version: 3.1.0
Starter Pack Version: 1.0.1


Here is the code for my: admin/admin_shop.php

Code:

<?php

/***************************************************************************

 *                             admin_shop.php

 *                            -------------------

 *   Version              : 3.1.0

 *   website              : http://www.zarath.com

 *

 ***************************************************************************/



/***************************************************************************

 *

 *   copyright (C) 2002-2007  Zarath

 *

 *   This program is free software; you can redistribute it and/or

 *   modify it under the terms of the GNU General Public License

 *   as published by the Free Software Foundation; either version 2

 *   of the License, or (at your option) any later version.

 *

 *   This program is distributed in the hope that it will be useful,

 *   but WITHOUT ANY WARRANTY; without even the implied warranty of

 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

 *   GNU General Public License for more details.

 *

 *   http://www.gnu.org/copyleft/gpl.html

 *

 ***************************************************************************/


// These two lines control the display on the left //
if ( !empty($setmodules) )
{
   define('SHOP_MAIN', 1);
   require('shop_nav.' . $phpEx);

   return;
}
define('IN_PHPBB', 1);



//

// Let's set the root dir for phpBB

//

$phpbb_root_path = '../';

require($phpbb_root_path . 'extension.inc');

require('pagestart.' . $phpEx);
if (!(@include($phpbb_root_path . 'language/lang_' . $userdata['user_lang'] . '/lang_shop.' . $phpEx))) { include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_shop.' . $phpEx); }

// Include this file to for nav menu
require('shop_nav.' . $phpEx);


// Begin output

$template->set_filenames(array(

   'body' => 'admin/shop_index_body.tpl')
);


// Addon SQL
$sql = "SELECT *
   FROM " . SHOP_ADDONS;
if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, 'Unable to find info for shop addons'); }
if ( $db->sql_numrows($result) )
{
   $template->assign_block_vars('switch_shop_addons', array());
}

while ( $row = $db->sql_fetchrow($result) )
{
   $template->assign_block_Vars('list_index_addons', array(
      'ADDON_URL' => append_sid($row['addon_url']),
      'ADDON_NAME' => ( isset($lang[$row['addon_display']]) ? $lang[$row['addon_display']] : $row['addon_display'] ),
      'ADDON_DESCRIPTION' => ( isset($lang[$row['addon_display'] . '_desc']) ? $lang[$row['addon_display'] . '_desc'] : $row['addon_description'] )
   ));
}


$template->assign_vars(array(

   'U_SHOP_CONFIG' => append_sid("shop_config.$phpEx"),
   'U_SHOP_EDIT' => append_sid("shop_edit.$phpEx"),
   'U_SHOP_ITEMS' => append_sid("shop_items.$phpEx"),
   'U_SHOP_USERS' => append_sid("shop_users.$phpEx"),

   'L_SHOP_CONFIG' => $lang['ashop_shop_config'],
   'L_SHOP_EDIT' => $lang['ashop_i_editor'],
   'L_SHOP_ITEMS' => $lang['ashop_item_editor'],
   'L_SHOP_USERS' => $lang['ashop_user_editor'],

   'L_CONFIG_DESC' => $lang['ashop_config_desc'],
   'L_EDIT_DESC' => $lang['ashop_edit_desc'],
   'L_ITEMS_DESC' => $lang['ashop_items_desc'],
   'L_USERS_DESC' => $lang['ashop_users_desc'],

   'L_TITLE' => $lang['ashop_main_area'],
   'L_SHOP_ADDONS' => $lang['ashop_shop_addons']
));



//

// Generate the page

//

$template->pparse('body');



include('page_footer_admin.' . $phpEx);



?>


And here are the starter pack installation parts I can't do:

Code:


#
#-----[ FIND ]------------------------------------------
#

if ( isset($HTTP_GET_VARS['action']) || isset($HTTP_POST_VARS['action']) ) { $action = ( isset($HTTP_POST_VARS['action']) ) ? $HTTP_POST_VARS['action'] : $HTTP_GET_VARS['action']; }
else { $action = ''; }
//end check

#
#-----[ AFTER, ADD ]------------------------------------------
#

//------------------------------------------------------------------------------
// Starter Pack- Begin Code Alteration
//
require_once($phpbb_root_path . 'mods/shopaddons/startpack.' . $phpEx);
//
// Starter Pack3 - End Code Alteration
//------------------------------------------------------------------------------

#
#-----[ FIND ]------------------------------------------
#

   // Select Variables

#
#-----[ BEFORE, ADD ]------------------------------------------
#

//------------------------------------------------------------------------------
// Starter Pack - Begin Code Alteration
//
   $sp_admin->show_entry();
//
// Starter Pack - End Code Alteration
//------------------------------------------------------------------------------

#
#-----[ FIND ]------------------------------------------
#

else { message_die(GENERAL_MESSAGE, $lang['invalid_command']); }

#
#-----[ BEFORE, ADD ]------------------------------------------
#

//------------------------------------------------------------------------------
// Starter Pack - Begin Code Alteration
//
elseif ( $action == 'starter' )
{
   $sp_admin->show_admin();
}
//
// Starter Pack - End Code Alteration
//------------------------------------------------------------------------------

 

Thoul
Administrator

Tue Jun 10, 2008 1:00 pm   Post subject: Re: Starter Pack Issue
Yeah, I'm afraid the Starter Pack is just not compatible with that version of the Shop mod, sorry.
 

Page 1 of 1
Display posts from previous: