Site in read-only mode
This site is now read-only following the release of MyBB 1.8 and the new mods site.
If you are looking for MyBB 1.8 mods please click here to visit the new mods site.
You can continue to download submissions for MyBB 1.6 and earlier here, however new submissions will only be accepted via the new mods site.
Inventory Shop
1.1.x series of the Inventory Shop.
Inventory Shop ModVersion: 1.1.0
Release Status: Stable
Contributions From: CraKteR, Christian, and Mike
I'd like to note that, due to me not having time to rifle through support requests in a single thread, I am moving support for this plugin to my site.
While, I will still provide support here at MyBB, priority support will be given to those that post on my site.
I'm doing this so that I can better organize the different things that people post. Support, Bug Reports, Suggestions, etc.
Features
Six Preset Shops
Weapon Shop
Armor Shop
Helmet Shop
Boot Shop
Accessory Shop
Element Shop
Eighty Two Preset Items
I'm not gonna list them. ;)
User Interface
Money For New Posts
Money For New Threads
Money For Registering
Ability To Sell Items
Administration
Edit Users Money
Edit Users Items
Edit Amount Given for Posts/Threads/Registering
Add / Edit / Delete Shops
Add / Edit / Delete Items
Change Currency Name and Symbol
Various Information
Everything is contained within the plugin, so there is no need to edit the core files.
Due to the vast amount of changes to the database and file structure and the changes between MyBB 1.1.x and 1.2.x, it is impossible to upgrade from Inventory Shop 1.0.1, sorry.
Translations
Turkish
Italiano
*** UPGRADE INSTRUCTIONS FOR 1.1.0 RC2 TO 1.1.0 ***
View the Second Post in the release thread for a patch file.
*** UPGRADE INSTRUCTIONS FOR 1.1.0 RC1 TO 1.1.0 RC2 ***
Upload all files to the right places, as per usual.
Open the shop_donate template and replace it's entire contents, with this:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->inv_shop}
- {$lang->donate}</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="{$theme['borderwidth']}"
cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr><td class="thead"
colspan="3"><strong>{$lang->donate}</td></tr>
</thead>
<tbody>
<tr>
<td class="tcat" style="width:100%" colspan="3"><span
class="smalltext"><strong>{$lang->donate_to_user}</td>
</tr>
<tr>
<td class="trow1" style="width: 100%">
<form action="shop.php?do=do_donate" method="post">
<input type="hidden" name="source" value="{$source}" />
<input type="hidden" name="dest" value="{$dest}" />
<input type="hidden" name="thread" value="{$thread}" />
<input type="hidden" name="post" value="{$post}" />
<input type="text"
class="textbox" name="money" />
<input type="submit" class="button" name="go"
value="{$lang->donate}" />
</form>
</td>
</tr>
</tbody>
</table>
{$copyright}
{$footer}
</body>
</html>
*** UPGRADE INSTRUCTIONS FOR GAMMA 2 TO RELEASE CANDIDATE 1
***
Overwrite all the Gamma 2 files with the Release Candidate 1 files, and
you're done.
*** UPGRADE INSTRUCTIONS FOR GAMMA 1 TO GAMMA 2
***
Simply upload all of the files in the archive. Do NOT
deactivate the plugin at any time, you will lose your data.
Add the following setting via Admin CP -> Add New Setting:
Setting Title: Money System
Description: Which money system would you like to use? (MyPS requires
labrocca's MyPS Plugin)
Setting Name: moneysystem
Setting Type:
select
money=Built-In Money System
myps=MyPS
Value: money
Display Order: 7
Group: inv_shop
And you should be fully upgraded!
*** UPGRADE INSTRUCTIONS FOR BETA 3 TO GAMMA 1
***
Here are the instructions for doing a complete upgrade straight from Beta 3
to Gamma 1.
Upload all of the files in the Gamma 1 archive, including the Plugin and
Language files.
Make the following template modifications:
Open the shop_index template and replace its entire contents with this:
<html>
<head>
<title>{$mybb->settings['bbname']} -
{$lang->inv_shop}</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="{$theme['borderwidth']}"
cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr><td class="thead"
colspan="2"><strong>{$lang->avail_shops}</td></tr>
</thead>
<tbody>
{$shop_bits}
</tbody>
</table>
{$copyright}
{$footer}
</body>
</html>
Save the template.
Open the shop_itembits template and replace its entire contents with
this:
<tr>
<td class="{$altbg}"><a
href="shop.php?do=buy&iid={$item['iid']}&price={$item['price']}&shop={$item['shop']}">{$item['name']}</a></td>
<td class="{$altbg}">{$price}</td>
<td class="{$altbg}">{$item['description']}</td>
</tr>
Save the template.
Open the shop_shopbits template and replace its entire contents with
this:
<tr>
<td class="{$altbg}"><span class="smalltext">
<a
href="shop.php?do=shop&sid={$shop['sid']}"><b><i>{$shop['shop_templatename']}</i></b></a></span></td>
<td class="{$altbg}"><span
class="smalltext"><strong>{$shop['shop_desc']}</strong></span></td>
</tr>
Save the template.
Open the shop_template template and replace its entire contents with
this:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->inv_shop}
- {$s['shop_templatename']}</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="{$theme['borderwidth']}"
cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr><td class="thead"
colspan="3"><strong>{$lang->avail_items}</td></tr>
</thead>
<tbody>
<tr>
<td class="trow1" style="width:100%" colspan="3"><span
class="smalltext"><strong>{$mybb->settings['currency_name']}:
{$mybb->user['money']}{$current}</td>
</tr>
<tr>
<td class="tcat" style="width:15%"><span
class="smalltext"><strong>{$lang->name}</strong></span></td>
<td class="tcat"><span
class="smalltext"><strong>{$lang->price}</strong></span></td>
<td class="tcat"><span
class="smalltext"><strong>{$lang->desc}</strong></span></td>
</tr>
{$item_bits}
</tbody>
</table>
{$copyright}
{$footer}
</body>
</html>
Save the Template.
Open the usercp_nav_shop template and replace it's entire contens with
this:
<tr>
<td class="tcat"><span
class="smalltext"><strong>{$lang->inv_shop}</strong></span></td></tr>
<tr>
<td class="trow1">
<ul class="usercpnav">
{$mybb->user['money']}
<li><a
href="shop.php">{$lang->enter_shop}</a></li>
</ul>
</td>
</tr>
Save the Template.
Create a new template in "Global Templates" and call it shop_donate
Put the following code in it.
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->inv_shop}
- {$lang->donate}</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="{$theme['borderwidth']}"
cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr><td class="thead"
colspan="3"><strong>{$lang->donate}</td></tr>
</thead>
<tbody>
<tr>
<td class="tcat" style="width:100%" colspan="3"><span
class="smalltext"><strong>{$lang->donate_to_user}</td>
</tr>
<tr>
<td class="trow1" style="width="100%">
<form action="shop.php?do=do_donate" method="post">
<input type="hidden" name="source" value="{$source}" />
<input type="hidden" name="dest" value="{$dest}" />
<input type="hidden" name="thread" value="{$thread}" />
<input type="hidden" name="post" value="{$post}" />
<input type="text"
class="textbox" name="money" />
<input type="submit" class="button" name="go"
value="{$lang->donate}" />
</form>
</td>
</tr>
</tbody>
</table>
{$copyright}
{$footer}
</body>
</html>
Optional Modifications
Here are a few modifications I couldn't get working without needing to edit
the core files so I've put them here for you to chose whether to add them
or not.
In the User CP the usercp_nav_shop template is not cached, and I couldn't
figure out a way to cache in the plugin, so simply find in usercp.php:
$templatelist .= ",usercp_nav_messenger,usercp_nav_changename,usercp_nav_profile,usercp_nav_misc,usercp_usergroups_leader_usergroup,usercp_usergroups_leader,usercp_currentavatar,usercp_reputation";
And replace it with:
$templatelist .= ",usercp_nav_messenger,usercp_nav_changename,usercp_nav_profile,usercp_nav_misc,usercp_usergroups_leader_usergroup,usercp_usergroups_leader,usercp_currentavatar,usercp_reputation,usercp_nav_shop";