Log in Register FAQ Memberlist Search Welcome to RCF - New Forum Index
alt : test.swf
Welcome to RCF - New
4fx3.gif 
Contact the Webmasters of RCFContact   Invite a friend to Join usRecommend   Chat in IRCChat   EZ Template Change OptionEZStyle   Listen to Internet Radio while you browse...iRadio   See your private message.Login for PMs   Important LinksLinks
Member Website LinksWeb Links   Play/View our GamesGames   Register.Register
calendar_open_closeCalendar 
Please help! lol!
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: Previous  1, 2, 3  Next
Welcome to RCF - New Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Re: Please help! lol!
PostPosted: 01/14/2009 3:33 AM Reply with quote
Sparrow
Angelface777
Sparrow
Posts 11
Word Cnt. 2,995
BDay N/A
Sign N/A
Joined: Jan 10, 2009
Local time: 2:52 AM
blank.gif
OMG! it was there i was using notepad! and i used the Cpanel one!

One more if you don't mind!

do you know how to add a picture in the shop_inventory instead of a link?

like this?


and make it look like that and the "$"!
cat1

Code:
<?php
/********************************************************************* ******
 *                            shop_inventory.php
 *                            -------------------
 *   Version              : 3.0.6
 *   website              : http://www.zarath.com
 *
 ********************************************************************* ******/

/********************************************************************* ******
 *
 *   copyright (C) 2002-2006  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
 *
 ********************************************************************* ******/

define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.' . $phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management

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); }


//
// Register Global Variables
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 Global Variables
//

//start of shop list page
if ( $action == 'shoplist' )
{
   if ( isset($HTTP_GET_VARS['shop']) || isset($HTTP_POST_VARS['shop']) ) { $shop = ( isset($HTTP_POST_VARS['shop']) ) ? intval($HTTP_POST_VARS['shop']) : intval($HTTP_GET_VARS['shop']); }
   else { $shop = ''; }

   $sql = "SELECT *
      FROM " . SHOP_TABLE . "
      WHERE id = $shop";
   if ( !($result = $db->sql_query($sql)) )
   {
      message_die(GENERAL_MESSAGE, 'SQL Error selecting shop information!');
   }
   $row = $db->sql_fetchrow($result);

   if ( ($db->sql_numrows($result) < 1) || (strtolower($row['shoptype']) == 'admin_only') )
   {
      message_die(GENERAL_MESSAGE, $lang['shop_doesnt_exist']);
   }

   if ( empty($row['template']) )
   {
      $template->set_filenames(array(
         'body' => 'shop/shop_list_body.tpl')
      );
   }
   else
   {
      $template->set_filenames(array(
         'body' => 'shop/' . $row['template'])
      );
   }

   $sql = "SELECT *
      FROM " . SHOP_ITEMS_TABLE . "
      WHERE shop = '" . str_replace("'", "''", $row['shopname']) . "'
      ORDER BY " . $board_config['shop_orderby'];
   if ( !($result = $db->sql_query($sql)) )
   {
      message_die(GENERAL_MESSAGE, 'Fatal Error<br />' . $sql);
   }
   $sql_count = $db->sql_numrows($result);

   for ($i = 0; $i < $sql_count; $i++)
   {
      $row2 = $db->sql_fetchrow($result);
      $rownum = ( $i % 2 ) ? "row1" : "row2";

      $template->assign_block_vars('listrow', array(
         'ROW_CLASS' => $rownum,

         'NAME' => $row2['name'],
         'SDESC' => $row2['sdesc'],
         'SOLD' => $row2['sold'],
         'STOCK' => $row2['stock'],
         'COST' => $row2['cost'],

         'URL' => append_sid('shop_inventory.'.$phpEx.'?action=displayitem&item='.$row2[ 'id']))
      );
   }

   $page_title = stripslashes($row['shopname']);
   $shoplocation = ' -> <a href="'.append_sid('shop.'.$phpEx).'" class="nav">' . $lang['shop_list'] . '</a> -> <a href="' . append_sid('shop_inventory.'.$phpEx.'?action=shoplist&shop=' . $row['id']) . '" class="nav">' . str_replace("s's", "s'", stripslashes($row['shopname'])) . ' ' . $lang['inventory'] . '</a>';

   // Start gender vars
   $template->assign_vars(array(
      'SHOPPERSONAL' => $personal,
      'SHOPLOCATION' => $shoplocation,

      'NPC_NAME' => $row['shop_owner'],

      'INVENTORY_LINK' => append_sid("shop.$phpEx?action=inventory&searchid=".$userdata['user_id ']),
      'USER_POINTS' => $userdata['user_points'],
      'POINTS_NAME' => $board_config['points_name'],

      'L_SHOP_TITLE' => stripslashes($row['shopname']),
      'L_ITEM_NAME' => $lang['name'],
      'L_S_DESC' => $lang['item_s_desc'],
      'L_SOLD' => $lang['item_sold'],
      'L_LEFT' => $lang['item_left'],
      'L_COST' => $lang['item_cost'],
      'L_ITEM_INFO' => $lang['shop_item_info'],
      'L_PERSONAL_INFO' => $lang['shop_personal_info'],
      'L_INVENTORY' => $lang['shop_your_inv']
   ));
   $template->assign_block_vars('', array());
}

//start of item info page
elseif ( $action == 'displayitem' )
{
   if ( isset($HTTP_GET_VARS['item']) || isset($HTTP_POST_VARS['item']) ) { $item = ( isset($HTTP_POST_VARS['item']) ) ? intval($HTTP_POST_VARS['item']) : intval($HTTP_GET_VARS['item']); }
   else { message_die(GENERAL_MESSAGE, 'No Item Selected!'); }
   
   //make sure item exists & shop is not a special/admin shop
   $sql = "SELECT *
      FROM " . SHOP_ITEMS_TABLE . "
      WHERE id = $item
      ORDER BY `id`";
   if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, 'Fatal Error<br />' . $sql); }
   if ($db->sql_numrows($result) < 1) { message_die(GENERAL_MESSAGE, $lang['no_item_exists']); }
   $row = $db->sql_fetchrow($result);

   $sql = "SELECT *
      FROM " . SHOP_TABLE . "
      WHERE shopname = '" . str_replace("'", "''", $row['shop']) . "'
         AND shoptype <> 'special'
         AND shoptype <> 'admin_only'";
   if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, 'Fatal Error<br />' . $sql); }
   if ( !($db->sql_numrows($result)) ) { message_die(GENERAL_MESSAGE, $lang['item_protected']); }
   else { $sirow = $db->sql_fetchrow($result); }
   //end check on item exists

   if ( empty($sirow['item_template']) )
   {
      $template->set_filenames(array(
         'body' => 'shop/shop_item_body.tpl')
      );
   }
   else
   {
      $template->set_filenames(array(
         'body' => 'shop/' . $sirow['item_template'])
      );
   }

   #
   # Check for singular item shops (limited to 1 of each item)
   # "Magic" is specific to certain forums. This will be updated in next version to a setting.
   #
   $sql = "SELECT *
      FROM " . USER_ITEMS_TABLE . "
      WHERE item_id = {$row['id']}
         AND user_id = {$userdata['user_id']}
         AND worn = 0";
   if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, 'Fatal Error'); }
   $count = $db->sql_numrows($result);

   if ( $sirow['type'] == 'magic' && $count )
   {
      $template->assign_block_vars('switch_has_spell', array(
         'IGNORE_HTML_START' => '<!--',
         'IGNORE_HTML_END' => '// -->'
      ));
   }

   #
   # End check
   #
   if ( $count )
   {
      $useritemamount = $count;
      $sellbuy = "sell";
   }

   if (file_exists("shop/images/".$row['name'].".jpg")) { $itemfilext = "jpg"; }
   elseif (file_exists("shop/images/".$row['name'].".png")) { $itemfilext = "png"; }
   else { $itemfilext = "gif"; }


   if ( ($board_config['multibuys'] == "on") && ($useritemamount > 0) )
   {
      $template->assign_block_vars('switch_multi_items', array(
         'NAME' => $row['name'],

         'BUY_URL' => append_sid('shop_bs.'.$phpEx.'?action=buy&item='.$row['id'], true),
         'SELL_URL' => append_sid('shop_bs.'.$phpEx.'?action=sell&item='.$row['id'], true)

      ));
   }
   elseif ( ($board_config['multibuys'] == 'off') || ($useritemamount < 1) )
   {
      if ( !isset($useritemamount) )
      {
         $useritemamount = 0;
         $sellbuy = "buy";
      }

      $template->assign_block_vars('switch_multi_ops', array(
         'NAME' => $row['name'],
         'ACTION' => ucfirst($sellbuy),

         'URL' => append_sid('shop_bs.' . $phpEx . '?action=' . $sellbuy . '&item=' . $row['id'], true)
      ));

      if ( $sellbuy == 'buy' )
      {
         $template->assign_block_vars('switch_multi_ops_buy', array());
      }
      else
      {
         $template->assign_block_vars('switch_multi_ops_sell', array());
      }
   }
   $title = $lang['shop_item_info'] . ' ' . $row['name'];
   $page_title = $lang['shop_item_info'] . ' ' . $row['name'];
   $shoplocation = ' -> <a href="'.append_sid('shop.'.$phpEx, true).'" class="nav">' . $lang['shop_list'] . '</a> -> <a href="'.append_sid('shop_inventory.'.$phpEx.'?action=shoplist&shop='.$ sirow['id'], true).'" class="nav">' .$row['shop'] . ' ' . $lang['inventory'] . '</a> -> <a href="'.append_sid('shop_inventory.'.$phpEx.'?action=displayitem&item= '.$row['id'], true).'" class="nav">' . $row['name'] . ' ' . $lang['information'] . '</a>';

   $template->assign_vars(array(
      'USER_AMOUNT' => $useritemamount,
      'ITEM_COST' => $row['cost'],
      'ITEM_STOCK' => $row['stock'],
      'ITEM_LDESC' => $row['ldesc'],
      'ITEM_NAME' => $row['name'],
      'FILE_EXT' => $itemfilext,

      'USER_POINTS' => $userdata['user_points'],
      'POINTS_NAME' => $board_config['points_name'],
      'USER_INVENTORY' => append_sid("shop.$phpEx?action=inventory&searchid=" . $userdata['user_id']),
      'NPC_NAME' => $sirow['shop_owner'],

      'SHOPLOCATION' => $shoplocation,

      'L_BUY' => $lang['buy'],
      'L_SELL' => $lang['sell'],
      'L_SHOP_TITLE' => $title,
      'L_ICON' => $lang['icon'],
      'L_ITEM_NAME' => $lang['name'],
      'L_DESCRIPTION' => $lang['item_desc'],
      'L_STOCK' => $lang['item_stock'],
      'L_COST' => $lang['item_cost'],
      'L_OWNED' => $lang['owned'],
      'L_INVENTORY' => $lang['shop_your_inv'],
      'L_PERSONAL_INFO' => $lang['shop_personal_info'],
   ));
   $template->assign_block_vars('', array());

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

//
// Start output of page
//
include($phpbb_root_path . 'includes/page_header.' . $phpEx);

//
// Generate the page
//
$template->pparse('body');

include($phpbb_root_path . 'includes/page_tail.' . $phpEx);

?>



^^^^^^^^
(Not yet!)



Edit: It says in the admin side:

Quote:
Fatal Error!
Table '******_phpbb2.phpbb_nulavatar_settings' doesn't exist


Here is my stats:

Code:
cPanel Version             11.24.4-RELEASE
cPanel Build                33245
Theme   x3
Apache version             2.2.11 (Unix)
PHP version                   5.2.8
MySQL version              5.0.67-community
Architecture                  i686
Operating system          Linux
Dedicated Ip Address    17*.***.***.**
Path to sendmail   /usr/sbin/sendmail
Path to PERL            /usr/bin/perl
Kernel version           2.6.28
Back to Top
View user's profile Find all posts by Angelface777 Send private message  
Re: Please help! lol!
PostPosted: 01/14/2009 3:52 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30756
Word Cnt. 2,628,677
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 3:52 AM
Location: St Pete, FL
peace.gif
Angelface777 wrote:
OMG! it was there i was using notepad! and i used the Cpanel one!

I prefer 1st Page 2000 for my text editor.  You can download and try it if you want...

Angelface777 wrote:
One more if you don't mind!

do you know how to add a picture in the shop_inventory instead of a link?

like this?


and make it look like that and the "$"!
cat1

Code:
<?php
/********************************************************************* ******
 *                            shop_inventory.php
 *                            -------------------
 *   Version              : 3.0.6
 *   website              : http://www.zarath.com
 *
 ********************************************************************* ******/

/********************************************************************* ******
 *
 *   copyright (C) 2002-2006  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
 *
 ********************************************************************* ******/

define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.' . $phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management

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); }


//
// Register Global Variables
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 Global Variables
//

//start of shop list page
if ( $action == 'shoplist' )
{
   if ( isset($HTTP_GET_VARS['shop']) || isset($HTTP_POST_VARS['shop']) ) { $shop = ( isset($HTTP_POST_VARS['shop']) ) ? intval($HTTP_POST_VARS['shop']) : intval($HTTP_GET_VARS['shop']); }
   else { $shop = ''; }

   $sql = "SELECT *
      FROM " . SHOP_TABLE . "
      WHERE id = $shop";
   if ( !($result = $db->sql_query($sql)) )
   {
      message_die(GENERAL_MESSAGE, 'SQL Error selecting shop information!');
   }
   $row = $db->sql_fetchrow($result);

   if ( ($db->sql_numrows($result) < 1) || (strtolower($row['shoptype']) == 'admin_only') )
   {
      message_die(GENERAL_MESSAGE, $lang['shop_doesnt_exist']);
   }

   if ( empty($row['template']) )
   {
      $template->set_filenames(array(
         'body' => 'shop/shop_list_body.tpl')
      );
   }
   else
   {
      $template->set_filenames(array(
         'body' => 'shop/' . $row['template'])
      );
   }

   $sql = "SELECT *
      FROM " . SHOP_ITEMS_TABLE . "
      WHERE shop = '" . str_replace("'", "''", $row['shopname']) . "'
      ORDER BY " . $board_config['shop_orderby'];
   if ( !($result = $db->sql_query($sql)) )
   {
      message_die(GENERAL_MESSAGE, 'Fatal Error<br />' . $sql);
   }
   $sql_count = $db->sql_numrows($result);

   for ($i = 0; $i < $sql_count; $i++)
   {
      $row2 = $db->sql_fetchrow($result);
      $rownum = ( $i % 2 ) ? "row1" : "row2";

      $template->assign_block_vars('listrow', array(
         'ROW_CLASS' => $rownum,

         'NAME' => $row2['name'],
         'SDESC' => $row2['sdesc'],
         'SOLD' => $row2['sold'],
         'STOCK' => $row2['stock'],
         'COST' => $row2['cost'],

         'URL' => append_sid('shop_inventory.'.$phpEx.'?action=displayitem&item='.$row2[ 'id']))
      );
   }

   $page_title = stripslashes($row['shopname']);
   $shoplocation = ' -> <a href="'.append_sid('shop.'.$phpEx).'" class="nav">' . $lang['shop_list'] . '</a> -> <a href="' . append_sid('shop_inventory.'.$phpEx.'?action=shoplist&shop=' . $row['id']) . '" class="nav">' . str_replace("s's", "s'", stripslashes($row['shopname'])) . ' ' . $lang['inventory'] . '</a>';

   // Start gender vars
   $template->assign_vars(array(
      'SHOPPERSONAL' => $personal,
      'SHOPLOCATION' => $shoplocation,

      'NPC_NAME' => $row['shop_owner'],

      'INVENTORY_LINK' => append_sid("shop.$phpEx?action=inventory&searchid=".$userdata['user_id ']),
      'USER_POINTS' => $userdata['user_points'],
      'POINTS_NAME' => $board_config['points_name'],

      'L_SHOP_TITLE' => stripslashes($row['shopname']),
      'L_ITEM_NAME' => $lang['name'],
      'L_S_DESC' => $lang['item_s_desc'],
      'L_SOLD' => $lang['item_sold'],
      'L_LEFT' => $lang['item_left'],
      'L_COST' => $lang['item_cost'],
      'L_ITEM_INFO' => $lang['shop_item_info'],
      'L_PERSONAL_INFO' => $lang['shop_personal_info'],
      'L_INVENTORY' => $lang['shop_your_inv']
   ));
   $template->assign_block_vars('', array());
}

//start of item info page
elseif ( $action == 'displayitem' )
{
   if ( isset($HTTP_GET_VARS['item']) || isset($HTTP_POST_VARS['item']) ) { $item = ( isset($HTTP_POST_VARS['item']) ) ? intval($HTTP_POST_VARS['item']) : intval($HTTP_GET_VARS['item']); }
   else { message_die(GENERAL_MESSAGE, 'No Item Selected!'); }
   
   //make sure item exists & shop is not a special/admin shop
   $sql = "SELECT *
      FROM " . SHOP_ITEMS_TABLE . "
      WHERE id = $item
      ORDER BY `id`";
   if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, 'Fatal Error<br />' . $sql); }
   if ($db->sql_numrows($result) < 1) { message_die(GENERAL_MESSAGE, $lang['no_item_exists']); }
   $row = $db->sql_fetchrow($result);

   $sql = "SELECT *
      FROM " . SHOP_TABLE . "
      WHERE shopname = '" . str_replace("'", "''", $row['shop']) . "'
         AND shoptype <> 'special'
         AND shoptype <> 'admin_only'";
   if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, 'Fatal Error<br />' . $sql); }
   if ( !($db->sql_numrows($result)) ) { message_die(GENERAL_MESSAGE, $lang['item_protected']); }
   else { $sirow = $db->sql_fetchrow($result); }
   //end check on item exists

   if ( empty($sirow['item_template']) )
   {
      $template->set_filenames(array(
         'body' => 'shop/shop_item_body.tpl')
      );
   }
   else
   {
      $template->set_filenames(array(
         'body' => 'shop/' . $sirow['item_template'])
      );
   }

   #
   # Check for singular item shops (limited to 1 of each item)
   # "Magic" is specific to certain forums. This will be updated in next version to a setting.
   #
   $sql = "SELECT *
      FROM " . USER_ITEMS_TABLE . "
      WHERE item_id = {$row['id']}
         AND user_id = {$userdata['user_id']}
         AND worn = 0";
   if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, 'Fatal Error'); }
   $count = $db->sql_numrows($result);

   if ( $sirow['type'] == 'magic' && $count )
   {
      $template->assign_block_vars('switch_has_spell', array(
         'IGNORE_HTML_START' => '<!--',
         'IGNORE_HTML_END' => '// -->'
      ));
   }

   #
   # End check
   #
   if ( $count )
   {
      $useritemamount = $count;
      $sellbuy = "sell";
   }

   if (file_exists("shop/images/".$row['name'].".jpg")) { $itemfilext = "jpg"; }
   elseif (file_exists("shop/images/".$row['name'].".png")) { $itemfilext = "png"; }
   else { $itemfilext = "gif"; }


   if ( ($board_config['multibuys'] == "on") && ($useritemamount > 0) )
   {
      $template->assign_block_vars('switch_multi_items', array(
         'NAME' => $row['name'],

         'BUY_URL' => append_sid('shop_bs.'.$phpEx.'?action=buy&item='.$row['id'], true),
         'SELL_URL' => append_sid('shop_bs.'.$phpEx.'?action=sell&item='.$row['id'], true)

      ));
   }
   elseif ( ($board_config['multibuys'] == 'off') || ($useritemamount < 1) )
   {
      if ( !isset($useritemamount) )
      {
         $useritemamount = 0;
         $sellbuy = "buy";
      }

      $template->assign_block_vars('switch_multi_ops', array(
         'NAME' => $row['name'],
         'ACTION' => ucfirst($sellbuy),

         'URL' => append_sid('shop_bs.' . $phpEx . '?action=' . $sellbuy . '&item=' . $row['id'], true)
      ));

      if ( $sellbuy == 'buy' )
      {
         $template->assign_block_vars('switch_multi_ops_buy', array());
      }
      else
      {
         $template->assign_block_vars('switch_multi_ops_sell', array());
      }
   }
   $title = $lang['shop_item_info'] . ' ' . $row['name'];
   $page_title = $lang['shop_item_info'] . ' ' . $row['name'];
   $shoplocation = ' -> <a href="'.append_sid('shop.'.$phpEx, true).'" class="nav">' . $lang['shop_list'] . '</a> -> <a href="'.append_sid('shop_inventory.'.$phpEx.'?action=shoplist&shop='.$ sirow['id'], true).'" class="nav">' .$row['shop'] . ' ' . $lang['inventory'] . '</a> -> <a href="'.append_sid('shop_inventory.'.$phpEx.'?action=displayitem&item= '.$row['id'], true).'" class="nav">' . $row['name'] . ' ' . $lang['information'] . '</a>';

   $template->assign_vars(array(
      'USER_AMOUNT' => $useritemamount,
      'ITEM_COST' => $row['cost'],
      'ITEM_STOCK' => $row['stock'],
      'ITEM_LDESC' => $row['ldesc'],
      'ITEM_NAME' => $row['name'],
      'FILE_EXT' => $itemfilext,

      'USER_POINTS' => $userdata['user_points'],
      'POINTS_NAME' => $board_config['points_name'],
      'USER_INVENTORY' => append_sid("shop.$phpEx?action=inventory&searchid=" . $userdata['user_id']),
      'NPC_NAME' => $sirow['shop_owner'],

      'SHOPLOCATION' => $shoplocation,

      'L_BUY' => $lang['buy'],
      'L_SELL' => $lang['sell'],
      'L_SHOP_TITLE' => $title,
      'L_ICON' => $lang['icon'],
      'L_ITEM_NAME' => $lang['name'],
      'L_DESCRIPTION' => $lang['item_desc'],
      'L_STOCK' => $lang['item_stock'],
      'L_COST' => $lang['item_cost'],
      'L_OWNED' => $lang['owned'],
      'L_INVENTORY' => $lang['shop_your_inv'],
      'L_PERSONAL_INFO' => $lang['shop_personal_info'],
   ));
   $template->assign_block_vars('', array());

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

//
// Start output of page
//
include($phpbb_root_path . 'includes/page_header.' . $phpEx);

//
// Generate the page
//
$template->pparse('body');

include($phpbb_root_path . 'includes/page_tail.' . $phpEx);

?>

I'm not sure if this is what you want, but I created this for several others who complained about not being able to see the shop item in the inventory.  Try this and see if this is what you had in mind:

shop_mod_icon_add_inventory.zip

Angelface777 wrote:

^^^^^^^^
(Not yet!)

Edit: It says in the admin side:

Quote:
Fatal Error!
Table '******_phpbb2.phpbb_nulavatar_settings' doesn't exist


Here is my stats:

Code:
cPanel Version             11.24.4-RELEASE
cPanel Build                33245
Theme   x3
Apache version             2.2.11 (Unix)
PHP version                   5.2.8
MySQL version              5.0.67-community
Architecture                  i686
Operating system          Linux
Dedicated Ip Address    17*.***.***.**
Path to sendmail   /usr/sbin/sendmail
Path to PERL            /usr/bin/perl
Kernel version           2.6.28

Check to make sure that the phpbb_nulavatar_settings table exists in your database.  You should be able to do that in phpMyAdmin.  If it doesn't exist, you can go ahead and rerun the nulavatar_install.php file again...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Please help! lol!
PostPosted: 01/14/2009 1:46 PM Reply with quote
Sparrow
Angelface777
Sparrow
Posts 11
Word Cnt. 2,995
BDay N/A
Sign N/A
Joined: Jan 10, 2009
Local time: 2:52 AM
blank.gif
It worked! phpbb_nulavatar_userchars was missing!  Thanks!  Heart

How do you run the shop_mod_icon_add_inventory.zip? (text)
Back to Top
View user's profile Find all posts by Angelface777 Send private message  
Re: Please help! lol!
PostPosted: 01/14/2009 4:32 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30756
Word Cnt. 2,628,677
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 3:52 AM
Location: St Pete, FL
peace.gif
The easiest way to install it is with EasyMod.  Do you have that installed?  If you don't use EM, you will have to manually modify your files following the instructions in this MOD script...

Based on your screenshot above, I'm not convinced it is going to work for you.  The MOD may have evolved since I wrote this add-on for it.  I believe that the Shop Item List Icon Add-on would work with any 3.0.x version of the Shop MOD.  What version did you install???

If you are installing this using EM, simply extract the file maintaining the directory structure, then upload the icon_add_inventory folder and it's contents to the admin/mods folder.  Then install it normally using EM...

If you plan to install this manually, you will have to install it into two separate files, more if you have alternative templates.  This is a small MOD so it shouldn't take you long if you plan to install it manually but I strongly recommend using EM whenever possible...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Please help! lol!
PostPosted: 01/15/2009 3:17 PM Reply with quote
Sparrow
Angelface777
Sparrow
Posts 11
Word Cnt. 2,995
BDay N/A
Sign N/A
Joined: Jan 10, 2009
Local time: 2:52 AM
blank.gif
I have Shop Mod  3.0.6

Edit: i got it!
Back to Top
View user's profile Find all posts by Angelface777 Send private message  
Re: Please help! lol!
PostPosted: 01/15/2009 3:37 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30756
Word Cnt. 2,628,677
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 3:52 AM
Location: St Pete, FL
peace.gif
Good.  Did that do what you hoped it would do???

dontknow
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Please help! lol!
PostPosted: 01/15/2009 5:02 PM Reply with quote
Sparrow
Angelface777
Sparrow
Posts 11
Word Cnt. 2,995
BDay N/A
Sign N/A
Joined: Jan 10, 2009
Local time: 2:52 AM
blank.gif
Ah.. not really i wanted grouped and only says buy now..

Like this:
http://www.target.com/Capris-Girls-Clothing-Shoes-Kids/b/ref=sc_fe_l_1 /185-7009367-6167746?ie=UTF8&node=15993481

Where it says View Details change it to buy now!
Back to Top
View user's profile Find all posts by Angelface777 Send private message  
Re: Please help! lol!
PostPosted: 01/15/2009 8:46 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30756
Word Cnt. 2,628,677
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 3:52 AM
Location: St Pete, FL
peace.gif
Can you give me a link to your Shop Inventory page?  I have forgotten what it looks like.  We don't have any use for it here, so it is not installed...

dontknow
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Please help! lol!
PostPosted: 01/15/2009 9:16 PM Reply with quote
Sparrow
Angelface777
Sparrow
Posts 11
Word Cnt. 2,995
BDay N/A
Sign N/A
Joined: Jan 10, 2009
Local time: 2:52 AM
blank.gif
I did installed! I thought it would look at that.

http://www.mydavvie.com/shop_inventory.php?action=shoplist&shop=1 Mywebsite!
Back to Top
View user's profile Find all posts by Angelface777 Send private message  
Re: Please help! lol!
PostPosted: 01/15/2009 10:17 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30756
Word Cnt. 2,628,677
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 3:52 AM
Location: St Pete, FL
peace.gif
To get the inventory page to look like this:



there would need to be some pretty extensive code changes in your inventory template and php files.  Have you talked to the author of the Shop MOD to see if he would be willing to do this?  It would be easy for him to do this since he is intimate with the code.  I have worked with Zarath over at Area 51 and have found him to be a very helpful and friendly guy.  If he can't or won't help, I could probably help you, but it may have to wait.  I need to get another project completed that I have promised for someone else.  I had planned on finishing it this past weekend, but our server problems diverted my attention away from it...

Ask Zarath if he can help redesign the layout and see what he says.  Let me know his response...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - New Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: Previous  1, 2, 3  Next
Page 2 of 3


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group
  ImageShack  
  Putfile  
  TinyURL  
  CommonDreams  
  Log in  

Page generation time: 0.4014s (PHP: 85% - SQL: 15%) - SQL queries: 61 - GZIP enabled - Debug on