Author Topic: SMFShop Inventory Post Modification  (Read 96798 times)

Offline Cao

Re: SMFShop Inventory Post Modification
« Reply #105 on: May 23, 2010, 11:28:43 am »
Yes, Upadate it to 2.0 RC2  and RC3

Offline ina

Re: SMFShop Inventory Post Modification
« Reply #106 on: June 03, 2010, 08:54:33 am »
Hi,
I tried to install this mod. At first it was working but then I had to upgrade the forum and when I tried to re-install it, it keeps on giving me an error saying

Quote
Duplicate entry 'ShopIpDis' for key 'PRIMARY'
File: /.../Packages/temp/dbInstall.php
Line: 14

Does anyone know how to fix this?

Thanks  :)

Offline Killer Uchiha

Re: SMFShop Inventory Post Modification
« Reply #107 on: June 17, 2010, 06:15:13 am »
please could you upgrade to 2.0 rc3? This mod is very good thanks

Offline jabisi

Re: SMFShop Inventory Post Modification
« Reply #108 on: July 24, 2010, 12:46:29 am »
please upgrade this mod to rc3 please and i do not know why people have this mod installed in smf rc3 now. Fro example.

Quote
http://kekomundo.com/foro/index.php?topic=32536.0

This forum is smf rc3 and already do this change.
Help me....

Offline Forero

Re: SMFShop Inventory Post Modification
« Reply #109 on: August 13, 2010, 04:23:12 am »
Fatal error: Call to undefined function db_query() in public_html/Packages/temp/dbInstall.php on line 9

please can upgrade this to SMF 2.0 RC3 T.T

Offline Aimee

Re: SMFShop Inventory Post Modification
« Reply #110 on: August 18, 2010, 03:04:46 am »
Awww its not compatable with 2.0 RC3 yet is it!  Please can you upgrade it as I love this mod!

Offline pilladoll

Re: SMFShop Inventory Post Modification
« Reply #111 on: October 08, 2010, 03:41:04 am »
Installed and Working!!

well, most of my users speaks spanish, so i made a traduction. Hope you find it useful. Just copy on /Themes/default/languages/Modifications.YOUR_LAUNGUAGE.php:

Code: [Select]
// Shop Inventory Post Mod by Pilla
$txt['shop_ip_display'] = 'Mostrar en el Post el Inventario?';
$txt['shop_ip_display_max'] = 'Cantidad máxima de objetos del inventario a mostrar*';
$txt['shop_ip_display_max_tip'] = '*Se recomienda no exceder los 20 objetos';
$txt['shop_ip_position'] = 'Localización de la Muestra de Inventario en el Post';
$txt['shop_ip_position_postbit'] = 'Cuadro de Perfil';
$txt['shop_ip_position_sig'] = 'Firma';
$txt['shop_admin_shop_IPM'] = 'Muestra de Inventario en el Post';
$txt['shop_admin_IPM'] = 'Configurar la Muestra de Inventario en el Post';
$txt['shop_ip_admin_title'] = 'Configurar Muestra de Inventario en el Post';
$txt['shop_ip_display_yes'] = 'Sí';
$txt['shop_ip_display_no'] ='No';


Offline DTeK

Re: SMFShop Inventory Post Modification
« Reply #112 on: October 23, 2010, 10:00:25 pm »
Would someone please help me install index.php and load.php? I am having problems. :( I can't really work out how to use install.xml and those are the two files that didn't install through the package manager. I really need this mod.

1.    Execute Modification    ./Sources/Load.php    Test failed
2.    Execute Modification    ./index.php    Test failed
3.    Execute Modification    ./Sources/Subs.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Shop.english.php    Test successful
6.    Execute Modification    ./Sources/shop/ShopAdmin.php    Test successful
7.    Execute Modification    ./Themes/default/ShopAdmin.template.php    Test successful
8.    Execute Modification    ./Themes/default/Display.template.php    Test successful
9.    Execute Code    dbInstall.php
« Last Edit: October 27, 2010, 08:26:09 am by DTeK »

Offline hcfwesker

Re: SMFShop Inventory Post Modification
« Reply #113 on: December 05, 2010, 08:57:48 pm »
Are you sure you're using smf shop version 3?

Here are the edits

Sources/Load.php

Find
Code: [Select]
// Begin SMFShop MOD Version New Version
'money' => $profile['money'],
// End SMFShop MOD

Replace with
Code: [Select]
// Begin SMFShop MOD Version New Version
'money' => $profile['money'],
// End SMFShop MOD
//BEGIN SMFShop IPM
'shopitems' => $profile['shopitems']['shopitems'],
//END SMFShop IPM


Find
Code: [Select]
// What a monstrous array..
Add Before
Code: [Select]
//BEGIN SMFShop IPM
//Set variable for LIMIT amount
$row = 0;
$max = $modSettings['ShopIpDisMax'];
//Begin database query
$request3 = db_query("
SELECT it.desc, it.image, it.category, inv.id
FROM {$db_prefix}shop_inventory AS inv, {$db_prefix}shop_items AS it
WHERE inv.ownerid = {$profile['ID_MEMBER']} AND inv.itemid = it.id
LIMIT $max", __FILE__, __LINE__);

//Start with an empty array
$profile['shopitems']['shopitems'] = array();

//Loop through all items
while ($row = mysql_fetch_assoc($request3))
{
// Add item to the array
$profile['shopitems']['shopitems'][] = array(
'image' => $row['image'],
'desc' => $row['desc'],
);
}

mysql_free_result($request3);
//END SMFShop IPM


And, your index.php

Find
Code: [Select]
// End SMFShop code
);

Add Before
Code: [Select]
//BEGIN SMFShop IPM
'shop_IPM' => array('shop/ShopAdmin.php', 'ShopIPM'),
//END SMFShop IPM




I recommend using this package parser, when you're not sure of edits to make

http://resourcez.biz/PackageParser/


Hope that helps.







Offline k12onos

Re: SMFShop Inventory Post Modification
« Reply #114 on: June 25, 2011, 12:06:06 am »
Is this mod still supported? does it work with the latest SMF version? this mod is really neat, I hope it's still supported  I want to install it in SMF 2.0 but i'm afraid it will mess things up :(

Offline Aleks972

Re: SMFShop Inventory Post Modification
« Reply #115 on: July 01, 2011, 11:58:20 pm »
Hello!
Please update it to SMF 2.0 RC3  :-\
SMF 2.0 RC3