MyBB.de Forum

Normale Version: Inventory Shop
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Seiten: 1 2
Eine neue Erweiterung wurde veröffentlicht: Inventory Shop

Zitat:Inventory Shop Mod
Version: 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. Wink

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:

Code:
<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:

Code:
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:

Code:
<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:

Code:
<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:

Code:
<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:

Code:
<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:

Code:
<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.
Code:
<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:
Code:
$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:
Code:
$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"; 
Sry wenn es Falsche Subform ist

Also ich habe das Plugin Inventory Shop rein gemacht bei mir ins Board aber wenn ich es Akti will kommt das:

Code:
MySQL error: 1060
Duplicate column name 'money'
Query: ALTER TABLE `mybb_users` ADD `money` INT( 10 ) NOT NULL DEFAULT '150' AFTER `postnum`;
Dieser Fehler entsteht, da es die Spalte "money" in der mybb_user-Tabelle schon gibt, also gibt es eine Dublikat-Warnung.
Ich schätze diese Spalte ist noch von einer früheren Version oder einer misslungenen Deaktivierung übrig geblieben.

Logge dich in dein PHPMyAdmin (oder die MySQL-Oberfläche die du benutzt) ein, suche die mybb_user-Tabelle und in der Strukturdarstellung das Feld "money" (wird wohl ganz unten zu finden sein) löschen.
Nach dieser Prozedur müsstest du das Plugin wieder reaktivieren können

Sollten noch weiterhin solche Fehler auftauchen, wirst du wohl nicht drum herum kommen, sämtliche Spalten zu löschen, die während der Deaktivierung des Plugins nicht gelöscht wurden.

(s. Tidus' Beitrag)
Führe folgende Befehle in deiner SQL Datenbank aus:

PHP-Code:
ALTER TABLE `mybb_usersDROP `money`;
ALTER TABLE `mybb_usersDROP `weapon`;
ALTER TABLE `mybb_usersDROP `armor`;
ALTER TABLE `mybb_usersDROP `helmet`;
ALTER TABLE `mybb_usersDROP `boots`;
ALTER TABLE `mybb_usersDROP `acc`;
ALTER TABLE `mybb_usersDROP `element`;
DROP TABLE `mybb_shop`
DROP TABLE `mybb_shops`
DELETE FROM mybb_templates WHERE title='shop_itembits' 

Müsste so gehen.

Gruß, Tidus
Habe das Gemacht was Dragon gesagt hat (Es ging).
Ist es möglich das die gekauften Sachen im Userprofil angezeigt werden?

MfG n00by2k
Scheint ja eine schwere Frage zu sein...

Habe das Plugin jetzt mal auf meinem Testforum laufen und da wird es nicht im Userprofil Angezeigt...

mfg n00by
Ich bekomme diese Fehlermeldung:

Zitat:Warning: require() [function.require]: Unable to access ./inc/class_shop.php in /home/feuer112/domains/xxx.de/public_html/shop.php on line 24

Warning: require(./inc/class_shop.php) [function.require]: failed to open stream: No such file or directory in /home/feuer112/domains/xxx.de/public_html/shop.php on line 24

Fatal error: require() [function.require]: Failed opening required './inc/class_shop.php' (include_path='.:/usr/local/lib/php') in /home/feuer112/domains/xxx.de/public_html/shop.php on line 24
Es fehlt wohl die Datei "/inc/class_shop.php".
!! Hallo Community !!

Ich habe auf der seite http://mods.mybboard.net/view/inventory-shop
ein Inventory Shop gesehn..
Und den würde ich gern in mein Forum mit eibaun,
aber leider passen die Versionen net zusammen
Da diese version auf *Version: 1.1.0* und mein Forum
auf v1.4...
Wäre es vllt möglich ein Inventory Shop für die Version 1.4
zu erstellen?

Vieln dank fürs Lesen...
lg
DarK
Seiten: 1 2