WOOOHOOOO!!! Awesome Job wdm. I know you have workin workin day and night on this for a loooonnnnng time. Congrats on getting this released, it's been a blast helping test everything. This is a HUGE Improvement from the original SHOP Mod with many new features. It's only gonna get better from here. Many thanks Daniel for the concept and to all the people who've contributed to the Shop Mod and items over the years.
Awesome Job at taking this to the next level!
Having played around with this a little during the development stage I have to say you've come a long way and its very well done. A lot of sites will have a lot of fun with this. :)
YAY IT IS HERE!!!! Since I saw your comment about the shop on your points mod thread I been checking daily for it's release and now it is here! I am so excited to try this out :D
Thank you x a million for this :D :D :D
Nice mod. You should have a link to it in this topic though...
Quote from: JBlaze on June 14, 2009, 01:12:58 PM
Nice mod. You should have a link to it in this topic though...
what you mean the link n my sig ?
and hank everybody for the comments:)
Quote from: sleepy-arcade.ath.cx on June 14, 2009, 01:42:51 PM
Quote from: JBlaze on June 14, 2009, 01:12:58 PM
Nice mod. You should have a link to it in this topic though...
what you mean the link n my sig ?
and hank everybody for the comments:)
A link to the Mod on your first post here right before the description
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1794)
Quote from: mrtrc266 on June 14, 2009, 02:16:43 PM
Quote from: sleepy-arcade.ath.cx on June 14, 2009, 01:42:51 PM
Quote from: JBlaze on June 14, 2009, 01:12:58 PM
Nice mod. You should have a link to it in this topic though...
what you mean the link n my sig ?
and hank everybody for the comments:)
A link to the Mod on your first post here right before the description
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1794)
thats, and some screenshots would be nice.
any screenshot
heres a few screenie and i updated the first post with the link to mod
Upon successful steal I get this message:
Unknown column 'username' in 'where clause'
File: /home/darkvoid/public_html/Sources/shop2/items/Steal.php
Line: 89
nothing happens and item remains. If steal fails no error message.
can i see your Steal.php ? plaease
cool mod..
Plz make it for smf2 rc1-1 also
Quote from: DELHI_BOY on June 18, 2009, 01:17:57 AM
Plz make it for smf2 rc1-1 also
This is for SMF RC1-1, I have it installed on SMF RC1-1 and it works perfectly.
What exaclty is the problem? Do you get any errors, if so what are the error messages?
Quote from: THE README on June 18, 2009, 01:17:57 AM
SMF Versions supported
SMF 2.0 RC1-1 is supported by SA Shop .
Quote from: sleepy-arcade.ath.cx on June 17, 2009, 01:55:42 AM
can i see your Steal.php ? plaease
<?php
/**********************************************************************************
* SMFShop item *
***********************************************************************************
* SMFShop: Shop MOD for Simple Machines Forum *
* =============================================================================== *
* Software Version: SMFShop 3.0 (Build 12) *
* $Date:: 2007-08-04 11:56:24 +0200 (za, 04 aug 2007) $ *
* $Id:: Steal.php 125 2007-08-04 09:56:24Z daniel15 $ *
* Software by: DanSoft Australia (http://www.dansoftaustralia.net/)*
* Copyright 2005-2007 by: DanSoft Australia (http://www.dansoftaustralia.net/)*
* Support, News, Updates at: http://www.dansoftaustralia.net/ *
* *
* Forum software by: Simple Machines (http://www.simplemachines.org) *
* Copyright 2006-2007 by: Simple Machines LLC (http://www.simplemachines.org) *
* 2001-2006 by: Lewis Media (http://www.lewismedia.com) *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under *
* the terms of the provided license as published by Simple Machines LLC. *
* *
* This program is distributed in the hope that it is and will be useful, but *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY *
* or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* See the "license.txt" file for details of the Simple Machines license. *
* The latest version of the license can always be found at *
* http://www.simplemachines.org. *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');
class item_Steal extends itemTemplate
{
function getItemDetails()
{
$this->authorName = 'Daniel15';
$this->authorWeb = 'http://www.dansoftaustralia.net/';
$this->authorEmail = '[email protected]';
$this->name = 'Steal Credits';
$this->desc = 'Try to steal credits from another member!';
$this->price = 50;
$this->require_input = true;
$this->can_use_item = true;
}
function getAddInput()
{
global $item_info;
if ($item_info[1] == 0) $item_info[1] = 40;
return 'For steal, user <b>does NOT need to, and shouldn\'t</b> know the probability! It\'s more fun this way :-)<br />Probability of successful steal: <input type="text" name="info1" value="' . $item_info[1] . '" />%';
}
function getUseInput()
{
global $context, $scripturl, $settings, $txt;
return 'Steal From: <input type="text" name="stealfrom" size="50" />
<a href="' . $scripturl . '?action=findmember;input=username;quote=0;sesc=' . $context['session_id'] . '" onclick="return reqWin(this.href, 350, 400);"><img src="' . $settings['images_url'] . '/icons/assist.gif" border="0" alt="' . $txt['find_members'] . '" /> Find Member</a><br />';
}
function onUse()
{
global $db_prefix, $context, $user_info, $item_info, $smcFunc;
// Check some inputs
if (!isset($_POST['stealfrom']) || $_POST['stealfrom'] == '') die('ERROR: Please enter a username to steal from!');
// This code from PersonalMessage.php5. It trims the " characters off the membername posted,
// and then puts all names into an array
$_POST['stealfrom'] = strtr($_POST['stealfrom'], array('\\"' => '"'));
preg_match_all('~"([^"]+)"~', $_POST['stealfrom'], $matches);
$userArray = array_unique(array_merge($matches[1], explode(',', preg_replace('~"([^"]+)"~', '', $_POST['stealfrom']))));
// We only want the first memberName found
$user = $userArray[0];
// Get a random number between 0 and 100
$try = mt_rand(0, 100);
// If successful
if ($try < $item_info[1])
{
// Get stealee's (person we're stealing from) money count
$result = $smcFunc['db_query']('', "
SELECT cash
FROM {db_prefix}members
WHERE member_name = {$user}");
// If user doesn't exist
if ($smcFunc['db_num_rows']($result) == 0)
die('ERROR: The specified user doesn\'t exist!');
$row = $smcFunc['db_fetch_assoc']($result);
// Get random amount between 0 and amount of money stealee has
$steal_amount = mt_rand(0, $row['cash']);
// Take this money away from stealee...
$final_value1 = $steal_amount - $row['cash'];
updateMemberData($user, array('cash' => $final_value1));
//...and give to stealer (robber)
$final_value1 = $steal_amount + $user_info['cash'];
updateMemberData($context['user']['id'], array('cash' => $final_value1));
if ($steal_amount < 50)
return 'Steal successful, although you only stole ' . $steal_amount . '!';
else
return 'Successfully stole ' . $steal_amount . ' from ' . $user . '! It\'s their fault they don\'t have their money in the bank!';
}
else
{
// If reducing Karma doesn't work, replace
// 'karma_bad = karma_bad + 10' with 'karma_good = karma_good - 10'
updateMemberData($context['user']['id'], array('karma_bad' => (int) 10));
return 'Steal <b>unsuccessful!</b> Your Karma is now reduced by 10!';
}
}
}
?>
I should mention where I wrote 'username' in the error is the actual user name of the member. If that makes sense ;p
When i click on "Apply Mod", it show error in package.
It was 1 test failed in profile.template.php
Rest were sucessfully tested. So, i did nt installed it. Help me to install it.
@DELHI_BOY go ahead and install it the profile template error is only adding the user cash to there profile it work with out it
if you install it you can post the profile.templete.php here and i can make the edit for you
@Amun try the attached steal.php
I installed it and here profile.template.php
plz edit it for me.
try this
Thanks, No problem whatsoever !
Awesome!! I was hoping for this SMF Shop MOD for 2.0 for so long!!
In exchange, Modifications.portuguese_brazilian-utf8.php
//shop Start
$txt['whoall_shop_bank'] = 'Vendo o <a href="' . $scripturl . '?action=shop;sa=bank">Banco do Shopping</a>';
$txt['whoall_shop_gift'] = 'Enviando um <a href="' . $scripturl . '?action=shop;sa=gift">Presente</a>';
$txt['whoall_shop_inventory2'] = 'Vendo o <a href="' . $scripturl . '?action=shop;sa=inventory2">inventário</a> de algum usuário';
$txt['whoall_shop_inventory'] = 'Vendo o seu <a href="' . $scripturl . '?action=shop;sa=inventory">Inventário</a>';
$txt['whoall_shop_buy'] = 'Comprando itens no <a href="' . $scripturl . '?action=shop;sa=buy">Shopping do Fórum</a>';
$txt['whoall_shop'] = 'Vendo o <a href="' . $scripturl . '?action=shop">Shopping do Fórum</a>';
$txt['whoall_gameroom'] = 'Jogando no <a href="' . $scripturl . '?action=shop;sa=gameroom">Salão de jogos</a>';
$txt['shop_settingsm'] = 'Configurações';
$txt['MoneySettings'] = 'Créditos';
$txt['shop_admin_invent'] = 'Inventário';
$txt['itemsssss'] = 'Itens';
$txt['AddItems'] = 'Adicionar itens';
$txt['RestockItems'] = 'Repor itens';
$txt['shop_admin_catlist'] = 'Categorias';
$txt['MainSettings'] = 'Configurações';
$txt['shop_procredit'] = 'Créditos';
$txt['shop_shop2'] = 'SA Shopping';
$txt['shop_tab_main'] ='Shopping';
$txt['permissionname_view_shop'] = 'Acessar o shopping';
$txt['permissionname_view_buy'] = 'Autorizado a comprar itens';
$txt['permissionhelp_view_buy'] = 'Se o usuário é autorizado a comprar itens';
$txt['cannot_view_buy'] = 'Você não pode comprar itens.';
$txt['permissionhelp_view_shop'] = 'Se o usuário é autorizado a acessar o shopping';
$txt['cannot_view_shop'] = 'Você não pode acessar o shopping.';
$txt['permissiongroup_shop'] = 'Shopping';
$txt['permissionname_view_gameroom'] = 'Acesso ao salão de jogos';
$txt['permissionhelp_view_gameroom'] = 'Se o usuário é autorizado a acessar o salão de jogos';
$txt['cannot_view_gameroom'] = 'Você não pode acessar o salão de jogos.';
$txt['permissionname_view_trade'] = 'Acesso ao centro de trocas';
$txt['permissionhelp_view_trade'] = 'Se o usuário é autorizado a acessar o centro de trocas';
$txt['cannot_view_trade'] = 'Você não pode acessar o centro de trocas.';
$txt['permissionname_view_bank'] = 'Acesso ao banco';
$txt['permissionhelp_view_bank'] = 'Se o usuário é autorizado a acessar o banco';
$txt['cannot_view_bank'] = 'Você não pode acessar o banco.';
$txt['permissionname_view_gift'] = 'Autorizado a dar presentes';
$txt['permissionhelp_view_gift'] = 'Se o usuário é autorizado a dar presentes';
$txt['cannot_view_gift'] = 'Você não pode dar presentes.';
$txt['permissionname_view_othersinv'] = 'Autorizado a ver o inventário dos outros usuários';
$txt['permissionhelp_view_othersinv'] = 'Se o usuário é autorizado a ver o inventário dos outros usuários';
$txt['cannot_view_othersinv'] = 'Você não pode ver este inventário.';
//shop End
I believe encountered a bug/error.
When I add more than 10 itens at one category, when I click to go to second page, it goes to the second page of DEFAULT (root) category.
See for yourself the category "Camisas" (use l: simple p: machines): http://www.tigrelog.com.br/index.php?action=shop;sa=buy;cat=6
thank you for the report here the fix ill also add it to beta 5 when i release it
shop2/shop_db.php
find
// Now create the page index.
$context['page_index'] = constructPageIndex($scripturl . '?action=shop;sa=buy;sort=' . $_REQUEST['start'] . (isset($_REQUEST['desc']) ? ';desc' : ''), $_REQUEST['start'], $kittens, 10);
$context['start'] = $_REQUEST['start'];
replace with
// Now create the page index.
$context['page_index'] = constructPageIndex($scripturl . '?action=shop;sa=buy;cat='.$cat.';sort=' . $_REQUEST['start'] . (isset($_REQUEST['desc']) ? ';desc' : ''), $_REQUEST['start'], $kittens, 10);
$context['start'] = $_REQUEST['start'];
by the way is Modifications.portuguese_brazilian-utf8 one language or two different ones ? like is it Modifications.brazilian-utf8 and Modifications.portuguese-utf8 or just Modifications.portuguese_brazilian-utf8??
Thanks for the fix, but let's warn users this code is duplicated, so I changed twice...
Quote from: sleepy-arcade.ath.cx on June 19, 2009, 08:43:44 PM
by the way is Modifications.portuguese_brazilian-utf8 one language or two different ones ? like is it Modifications.brazilian-utf8 and Modifications.portuguese-utf8 or just Modifications.portuguese_brazilian-utf8??
It's one language.
SMF 1.1.x = Modifications.brazilian-utf8.php
SMF 2.0 = Modifications.portuguese_brazilian-utf8.php
Don't know why this happens on SMF 2 version, but it did.
Also, I believe this translation can be used to Modifications.portuguese-utf8.php too, since there's not a lot differences between then.
Also (part II), here's the Modifications.brazilian.php (SMF 1.1.x) and Modifications.portuguese_brazilian.php (SMF 2.0) :
//shop Start
$txt['whoall_shop_bank'] = 'Vendo o <a href="' . $scripturl . '?action=shop;sa=bank">Banco do Shopping</a>';
$txt['whoall_shop_gift'] = 'Enviando um <a href="' . $scripturl . '?action=shop;sa=gift">Presente</a>';
$txt['whoall_shop_inventory2'] = 'Vendo o <a href="' . $scripturl . '?action=shop;sa=inventory2">inventário</a> de algum usuário';
$txt['whoall_shop_inventory'] = 'Vendo o seu <a href="' . $scripturl . '?action=shop;sa=inventory">Inventário</a>';
$txt['whoall_shop_buy'] = 'Comprando itens no <a href="' . $scripturl . '?action=shop;sa=buy">Shopping do Fórum</a>';
$txt['whoall_shop'] = 'Vendo o <a href="' . $scripturl . '?action=shop">Shopping do Fórum</a>';
$txt['whoall_gameroom'] = 'Jogando no <a href="' . $scripturl . '?action=shop;sa=gameroom">Salão de jogos</a>';
$txt['shop_settingsm'] = 'Configurações';
$txt['MoneySettings'] = 'Créditos';
$txt['shop_admin_invent'] = 'Inventário';
$txt['itemsssss'] = 'Itens';
$txt['AddItems'] = 'Adicionar itens';
$txt['RestockItems'] = 'Repor itens';
$txt['shop_admin_catlist'] = 'Categorias';
$txt['MainSettings'] = 'Configurações';
$txt['shop_procredit'] = 'Créditos';
$txt['shop_shop2'] = 'SA Shopping';
$txt['shop_tab_main'] ='Shopping';
$txt['permissionname_view_shop'] = 'Acessar o shopping';
$txt['permissionname_view_buy'] = 'Autorizado a comprar itens';
$txt['permissionhelp_view_buy'] = 'Se o usuário é autorizado a comprar itens';
$txt['cannot_view_buy'] = 'Você não pode comprar itens.';
$txt['permissionhelp_view_shop'] = 'Se o usuário é autorizado a acessar o shopping';
$txt['cannot_view_shop'] = 'Você não pode acessar o shopping.';
$txt['permissiongroup_shop'] = 'Shopping';
$txt['permissionname_view_gameroom'] = 'Acesso ao salão de jogos';
$txt['permissionhelp_view_gameroom'] = 'Se o usuário é autorizado a acessar o salão de jogos';
$txt['cannot_view_gameroom'] = 'Você não pode acessar o salão de jogos.';
$txt['permissionname_view_trade'] = 'Acesso ao centro de trocas';
$txt['permissionhelp_view_trade'] = 'Se o usuário é autorizado a acessar o centro de trocas';
$txt['cannot_view_trade'] = 'Você não pode acessar o centro de trocas.';
$txt['permissionname_view_bank'] = 'Acesso ao banco';
$txt['permissionhelp_view_bank'] = 'Se o usuário é autorizado a acessar o banco';
$txt['cannot_view_bank'] = 'Você não pode acessar o banco.';
$txt['permissionname_view_gift'] = 'Autorizado a dar presentes';
$txt['permissionhelp_view_gift'] = 'Se o usuário é autorizado a dar presentes';
$txt['cannot_view_gift'] = 'Você não pode dar presentes.';
$txt['permissionname_view_othersinv'] = 'Autorizado a ver o inventário dos outros usuários';
$txt['permissionhelp_view_othersinv'] = 'Se o usuário é autorizado a ver o inventário dos outros usuários';
$txt['cannot_view_othersinv'] = 'Você não pode ver este inventário.';
//shop End
Quote from: softcore on June 20, 2009, 02:07:18 AM
Thanks for the fix, but let's warn users this code is duplicated, so I changed twice...
no only once you need change one is for the shop buy and the other is for yout inventory
Quote from: sleepy-arcade.ath.cx on June 20, 2009, 02:13:11 AM
Quote from: softcore on June 20, 2009, 02:07:18 AM
Thanks for the fix, but let's warn users this code is duplicated, so I changed twice...
no only once you need change one is for the shop buy and the other is for yout inventory
Oh man... I changed it twice, didn't noted. Okidoki, fixed now, thank you :)
SA Shop 0.3 Beta 5 Released
Right on time, lol!
Should I uninstall version 0.3 beta 4 before?
yes ;)
Sleepy, the translations are inverted.
Modifications.portuguese_brazilian-utf8.php
//shop Start
$txt['whoall_shop_bank'] = 'Vendo o <a href="' . $scripturl . '?action=shop;sa=bank">Banco do Shopping</a>';
$txt['whoall_shop_gift'] = 'Enviando um <a href="' . $scripturl . '?action=shop;sa=gift">Presente</a>';
$txt['whoall_shop_inventory2'] = 'Vendo o <a href="' . $scripturl . '?action=shop;sa=inventory2">inventário</a> de algum usuário';
$txt['whoall_shop_inventory'] = 'Vendo o seu <a href="' . $scripturl . '?action=shop;sa=inventory">Inventário</a>';
$txt['whoall_shop_buy'] = 'Comprando itens no <a href="' . $scripturl . '?action=shop;sa=buy">Shopping do Fórum</a>';
$txt['whoall_shop'] = 'Vendo o <a href="' . $scripturl . '?action=shop">Shopping do Fórum</a>';
$txt['whoall_gameroom'] = 'Jogando no <a href="' . $scripturl . '?action=shop;sa=gameroom">Salão de jogos</a>';
$txt['shop_settingsm'] = 'Configurações';
$txt['MoneySettings'] = 'Créditos';
$txt['shop_admin_invent'] = 'Inventário';
$txt['itemsssss'] = 'Itens';
$txt['AddItems'] = 'Adicionar itens';
$txt['RestockItems'] = 'Repor itens';
$txt['shop_admin_catlist'] = 'Categorias';
$txt['MainSettings'] = 'Configurações';
$txt['shop_procredit'] = 'Créditos';
$txt['shop_shop2'] = 'SA Shopping';
$txt['shop_tab_main'] ='Shopping';
$txt['permissionname_view_shop'] = 'Acessar o shopping';
$txt['permissionname_view_buy'] = 'Autorizado a comprar itens';
$txt['permissionhelp_view_buy'] = 'Se o usuário é autorizado a comprar itens';
$txt['cannot_view_buy'] = 'Você não pode comprar itens.';
$txt['permissionhelp_view_shop'] = 'Se o usuário é autorizado a acessar o shopping';
$txt['cannot_view_shop'] = 'Você não pode acessar o shopping.';
$txt['permissiongroup_shop'] = 'Shopping';
$txt['permissionname_view_gameroom'] = 'Acesso ao salão de jogos';
$txt['permissionhelp_view_gameroom'] = 'Se o usuário é autorizado a acessar o salão de jogos';
$txt['cannot_view_gameroom'] = 'Você não pode acessar o salão de jogos.';
$txt['permissionname_view_trade'] = 'Acesso ao centro de trocas';
$txt['permissionhelp_view_trade'] = 'Se o usuário é autorizado a acessar o centro de trocas';
$txt['cannot_view_trade'] = 'Você não pode acessar o centro de trocas.';
$txt['permissionname_view_bank'] = 'Acesso ao banco';
$txt['permissionhelp_view_bank'] = 'Se o usuário é autorizado a acessar o banco';
$txt['cannot_view_bank'] = 'Você não pode acessar o banco.';
$txt['permissionname_view_gift'] = 'Autorizado a dar presentes';
$txt['permissionhelp_view_gift'] = 'Se o usuário é autorizado a dar presentes';
$txt['cannot_view_gift'] = 'Você não pode dar presentes.';
$txt['permissionname_view_othersinv'] = 'Autorizado a ver o inventário dos outros usuários';
$txt['permissionhelp_view_othersinv'] = 'Se o usuário é autorizado a ver o inventário dos outros usuários';
$txt['cannot_view_othersinv'] = 'Você não pode ver este inventário.';
//shop End
Modifications.portuguese_brazilian.php
//shop Start
$txt['whoall_shop_bank'] = 'Vendo o <a href="' . $scripturl . '?action=shop;sa=bank">Banco do Shopping</a>';
$txt['whoall_shop_gift'] = 'Enviando um <a href="' . $scripturl . '?action=shop;sa=gift">Presente</a>';
$txt['whoall_shop_inventory2'] = 'Vendo o <a href="' . $scripturl . '?action=shop;sa=inventory2">inventário</a> de algum usuário';
$txt['whoall_shop_inventory'] = 'Vendo o seu <a href="' . $scripturl . '?action=shop;sa=inventory">Inventário</a>';
$txt['whoall_shop_buy'] = 'Comprando itens no <a href="' . $scripturl . '?action=shop;sa=buy">Shopping do Fórum</a>';
$txt['whoall_shop'] = 'Vendo o <a href="' . $scripturl . '?action=shop">Shopping do Fórum</a>';
$txt['whoall_gameroom'] = 'Jogando no <a href="' . $scripturl . '?action=shop;sa=gameroom">Salão de jogos</a>';
$txt['shop_settingsm'] = 'Configurações';
$txt['MoneySettings'] = 'Créditos';
$txt['shop_admin_invent'] = 'Inventário';
$txt['itemsssss'] = 'Itens';
$txt['AddItems'] = 'Adicionar itens';
$txt['RestockItems'] = 'Repor itens';
$txt['shop_admin_catlist'] = 'Categorias';
$txt['MainSettings'] = 'Configurações';
$txt['shop_procredit'] = 'Créditos';
$txt['shop_shop2'] = 'SA Shopping';
$txt['shop_tab_main'] ='Shopping';
$txt['permissionname_view_shop'] = 'Acessar o shopping';
$txt['permissionname_view_buy'] = 'Autorizado a comprar itens';
$txt['permissionhelp_view_buy'] = 'Se o usuário é autorizado a comprar itens';
$txt['cannot_view_buy'] = 'Você não pode comprar itens.';
$txt['permissionhelp_view_shop'] = 'Se o usuário é autorizado a acessar o shopping';
$txt['cannot_view_shop'] = 'Você não pode acessar o shopping.';
$txt['permissiongroup_shop'] = 'Shopping';
$txt['permissionname_view_gameroom'] = 'Acesso ao salão de jogos';
$txt['permissionhelp_view_gameroom'] = 'Se o usuário é autorizado a acessar o salão de jogos';
$txt['cannot_view_gameroom'] = 'Você não pode acessar o salão de jogos.';
$txt['permissionname_view_trade'] = 'Acesso ao centro de trocas';
$txt['permissionhelp_view_trade'] = 'Se o usuário é autorizado a acessar o centro de trocas';
$txt['cannot_view_trade'] = 'Você não pode acessar o centro de trocas.';
$txt['permissionname_view_bank'] = 'Acesso ao banco';
$txt['permissionhelp_view_bank'] = 'Se o usuário é autorizado a acessar o banco';
$txt['cannot_view_bank'] = 'Você não pode acessar o banco.';
$txt['permissionname_view_gift'] = 'Autorizado a dar presentes';
$txt['permissionhelp_view_gift'] = 'Se o usuário é autorizado a dar presentes';
$txt['cannot_view_gift'] = 'Você não pode dar presentes.';
$txt['permissionname_view_othersinv'] = 'Autorizado a ver o inventário dos outros usuários';
$txt['permissionhelp_view_othersinv'] = 'Se o usuário é autorizado a ver o inventário dos outros usuários';
$txt['cannot_view_othersinv'] = 'Você não pode ver este inventário.';
//shop End
thaks i fixed the package :)
Any chance of allowing addition and subtraction on an individual basis instead of by group?
you can do that by going to shop admin invetory enter the members name and hit enter
SA Shop 0.3 RC1 Realeased
Is there a way to let all members create their own items to sell in the shop?
i am developing user shops mod for shop have been for some time now dont know when it ready cos i have a lot on latly
i'm sorry! i've installed correctly your mod in smf 2.0 rc1.1
i found sa shop in admin panel --> setting.
but... were i found my shop on the forum?
thanks. sorry for my english!
there will be a tab up top where all the other menu items are if it not showing is there any erros in error logs?
ok. thank you, i found it! but, I thought to selling the items .....
thx.
I have a minor problem.
I am using smf 2 rc1-2
I installed the shop and everything works fine,but when I try to add items I get the following message.
ERROR: Cannot open Sources/shop/items dir!
How to fix this?
in sources directory is there a dir called shop/items?
NVM I fixed it looking at your site =].
I just had to reinstall it :).
Ofcourse I would like to know how to add stuff to the store.
Like adding buy custom title.
there is a few items overn my site i dont know if thee is one to do what you want i cant rember now lol
i sure custom title one is there by default ? could be wrong tho lol
Quote from: Sleepy Arcade on August 27, 2009, 01:58:51 PM
there is a few items overn my site i dont know if thee is one to do what you want i cant rember now lol
i sure custom title one is there by default ? could be wrong tho lol
[/quote
hi sleepy, i posted on your site but i dont think you check your posts im not sure..
but i am trying to make it, so where someone buys a item, they get the item, and a link is allowed in the item, but hidden until boughten, understand?
buy item >> unhide link
ive been trying to figure this out, but it will be a link to other sites, and i cant figure this out, can you help me plz, i added you on msn, kiefer-rules...
byby
Hi, I posted in Sleepy arcade but I figured I would post here as well. I have a weird problem with the shop. I can use it just fine. I have bought items and used them, all permisions are set right but my members can not use it. No error message shows up in log when they try.
Also noticed that the members do see that view items in thier post profile but when clicked it gives the same error: an error has occurred. You can not view shop.
i take it this is sorted now scottdb
yes and thank you.
I installed this mod today and its working great thank very much 8)
One little question has i cannot seem to find anything witch mentions about the games room, Can more games be added to this???
Hope somone can help me out on how i go about adding more games in games room.
Cheers,
Paul
When i try to use the egg members avatar item when i type username and click USE ITEM i get this
Blank/White page with "Egg is a unknown filetype"
Could you please help me fix thease items so i can use them.....
Kindest Regards
Paul
I just ran into this bug -
Fatal error: require() [function.require]: Failed opening required '/home/twitch/public_html/forum/Sources/shop2/items/ChangeUsername.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/twitch/public_html/forum/Sources/shop2/Shop.php on line 429
It happens when trying to use an item.
it saying it looking for a file the file being ChangeUsername.php is that in sources/shop2/items?
Quote from: Sleepy Arcade on September 15, 2009, 01:35:50 AM
it saying it looking for a file the file being ChangeUsername.php is that in sources/shop2/items?
Nope where do i get that file?
Edit: NVM I figured it out.
You probably already know of this bug,but I thought I would report it anyway.
The random money option when it takes money from you just changes your money amount to negative instead of taking what it was suppose to.
yup thx i knew bout that one
SA Shop 0.4 realsed added rc2 support
Quote from: Sleepy Arcade on November 10, 2009, 07:50:11 PM
SA Shop 0.4 realsed added rc2 support
Installed clean, thanks & good job
I noticed that there was a discrepancy in the subs-post.php file. For the input into the database you have {int:point}. Loaded this for RC1 and RC2 for SMF2 and you get the error of your posts. changed {int:point} to {string:point} and all is well. just FYI
realy i cant replicate this any way point is an integer not a string i think float will be better ill do sommore testing wioth that jusdtm to make sure
Quote from: Sleepy Arcade on November 13, 2009, 02:35:46 PM
realy i cant replicate this any way point is an integer not a string i think float will be better ill do sommore testing wioth that jusdtm to make sure
Yes I know its an integer...But I have tried to post with it going into the database as int and errors galore. I've been toying with the script a little...and haven't been able to figure out why the errors are there.
ok ill have to look into it
I recommend to use in Shop.template.php
die($string)
instead of
fatal_error($string,$log)
because the last one won't print an error message unless the $txt is empty or undefined. While I think you wanted the die method effect.
If you try to run or enter a disabled area you won't get the error message. But if you change it to die method then it should be exactly as you wanted.
Cheers,
Croco
yes ive noticed that mysefl but you cant use die smf dont allow it in the coding guid lines
fatal_error() should work it used to in previus version of smf idk why it ont now works in some places but not others
ie for my battle mod that uses fatal_error() if the user has no hp atk and what not and that works try going to a disalbed area and it dont lol
I checked the implementation and what they do if $txt is not defined then die($msg) otherwise just do other stuff which is logging the error in the error report. But you are passing false to not logged in error log. Hence nothing is happening. If fatal_error was working before then I see a potential bug that if the flag is false it should print the message.
Quote from: Sleepy Arcade on June 13, 2009, 06:06:35 AM
ast3r1x (http://smf.houseofsmoky.com/index.php?action=profile;u=9)Games Room Images
hey SA, I was looking at your shop mod again and I wondered what the games room part of the shop is supposed to do?
~thanks
Quote from: quiteperplexed on December 07, 2009, 10:00:59 PM
Quote from: Sleepy Arcade on June 13, 2009, 06:06:35 AM
ast3r1x (http://smf.houseofsmoky.com/index.php?action=profile;u=9)Games Room Images
hey SA, I was looking at your shop mod again and I wondered what the games room part of the shop is supposed to do?
~thanks
You need to buy a ticket to able to access it even if you are the admin.
It contains games where you can increase or lose your credits.
ah ok I see it now. Actually I thought the games pass for was for the arcade mod. I bought a pass to test it out but there are some display problems, see the text behind the HOME BUY ITEMS YOUR INVENTORY etc below
after buying
about to use item
after using item
Is this a bug?
Clean install, no errors, no other mods except SA Battle and SA shop installed
yes it a bug i will fix next week would of done it sooner but i have been to busy
no worries mate,never seen it before.
excelent shop, i will try to use it for mi web site 8)
Spanish translation
//shop Start
$txt['Shop_ver'] = 'Versión/Creditos';
$txt['whoall_shop_bank'] = 'Viendo el <a href="' . $scripturl . '?action=shop;sa=bank">Banco</a>';
$txt['whoall_shop_gift'] = 'Enviando un<a href="' . $scripturl . '?action=shop;sa=gift">Regalo</a>';
$txt['whoall_shop_inventory2'] = 'Miembros viendo el <a href="' . $scripturl . '?action=shop;sa=inventory2">Inventorio</a>';
$txt['whoall_shop_inventory'] = 'Viendo su <a href="' . $scripturl . '?action=shop;sa=inventory">Inventorio</a>';
$txt['whoall_shop_buy'] = 'Comprando items en <a href="' . $scripturl . '?action=shop;sa=buy">la Tienda</a>';
$txt['whoall_shop'] = 'Viendo la <a href="' . $scripturl . '?action=shop">Tienda</a>';
$txt['whoall_gameroom'] = 'Jugando en la <a href="' . $scripturl . '?action=shop;sa=gameroom">Sala de juegos</a>';
$txt['shop_mainten'] = 'Mantenimiento';
$txt['shop_admin_usergroup'] = 'Funciones de rangos';
$txt['View_Inventory2'] ='Ver inventorio';
$txt['View_Inventory'] ='Ver inventorio';
$txt['shop_settingsm'] = 'Configuración principal';
$txt['MoneySettings'] = 'Configuración de dinero';
$txt['shop_admin_invent'] = 'Inventario';
$txt['itemsssss'] = 'Items';
$txt['AddItems'] = 'Ańadir Items';
$txt['RestockItems'] = 'Restaurar Items';
$txt['shop_admin_catlist'] = 'Categorías';
$txt['MainSettings'] = 'Car. Principales';
$txt['shop_procredit'] = 'Creditos';
$txt['shop_shop2'] = 'Tienda SA';
$txt['shop_tab_main'] ='Tienda';
$txt['permissiongroup_simple_shop'] = 'Tienda';
$txt['permissionname_view_shop'] = 'Acceso a la Tienda';
$txt['permissionname_view_buy'] = 'Permitirles comprar items';
$txt['permissionhelp_view_buy'] = 'El usuario tiene permiso de comprar items';
$txt['cannot_view_buy'] = 'No puedes comprar items';
$txt['permissionhelp_view_shop'] = 'Tiene acceso a la Tienda';
$txt['cannot_view_shop'] = 'No puedes ver la tienda.';
$txt['permissiongroup_shop'] = 'Tienda';
$txt['permissionname_view_gameroom'] = 'Acceder a la Sala de Juegos';
$txt['permissionhelp_view_gameroom'] = 'Los usuarios tienen acceso a la Sala de Juegos';
$txt['cannot_view_gameroom'] = 'No puedes entrar a la Sala de Juegos.';
$txt['permissionname_view_trade'] = 'Acceder al Centro de Intercambios';
$txt['permissionhelp_view_trade'] = 'El usuario tiene acceso al Centro de Intercambios';
$txt['cannot_view_trade'] = 'No puedes entrar al Centro de Intercambios.';
$txt['permissionname_view_bank'] = 'Acceder al Banco';
$txt['permissionhelp_view_bank'] = 'Los usuarios tienen acceso al Banco';
$txt['cannot_view_bank'] = 'No puedes acceder al Banco.';
$txt['permissionname_view_gift'] = 'Permitir enviar regalos';
$txt['permissionhelp_view_gift'] = 'El usuario tiene acceso a enviar Regalos';
$txt['cannot_view_gift'] = 'No puedes enviar Regalos.';
$txt['permissionname_view_othersinv'] = 'Acceder al inventario de otros usuarios';
$txt['permissionhelp_view_othersinv'] = 'Si el usuario tiene acceso a ver el inventario de otros usuarios';
$txt['cannot_view_othersinv'] = 'No puedes acceder al inventario de otros.';
//shop End
Thank you a lot, it works :D
thank you ill try to update the package next week and ill also add you to the credits for the translation in admin :)
Hi Sleepy, i need help with SA Shop. I need to know how to add space for the items and how to increase the space for the text of the description of the items
Regards
SA Shop 0.4.2 Realsed
!fixed ff errors
!fixed fatal error messages
+added spanish tranlation
Quote from: Sleepy Arcade on December 13, 2009, 08:57:34 PM
SA Shop 0.4.2 Realsed
Heads up, you need to check the version number of what's reported in package manager, zip file says 0.4.2, but package manager says 0.4.1
thx :) i updated the package
How can I get the number of credits a user has to display in the profile section next to a post, so under their avatar and links, etc.
Thanks
By the way, this seems like a fantastic mod!
it allready does no?
Doesn't seem to for me. I uninstalled and then reinstalled but still no job.
I am on SMF2.0 RC2 using the default template.
I have put the following code into display.template.php but it won't show the number of credits. If I put the code to show Prefix and Suffix then it shows so not sure why it won't show the number of credits.
<li class="postcount">',$txt['shop_procredit'],':', $context['member']['cash'], '</li>';
Thanks
change $context['member']['cash'] to $message['member']['cash'] that should work
Sorted! Thank you very much, and thanks for being so quick.
your welcome iif im here ill anser the post asap
Have a minor little problem with the "Steal credits" item, it looks like when it attempts to do a successful steal we get the following database error
Unsuccessful steals works fine... I recently upgraded from SMF 1.1.11 to 2.0 RC2
hmm untested but try
sources/shop2/items/steal.php
find
$result = $smcFunc['db_query']('', '
SELECT cash
FROM {db_prefix}members
WHERE member_name = '.$user.'');
replace with
$result = $smcFunc['db_query']('', '
SELECT cash
FROM {db_prefix}members
WHERE member_name = {string:name}',
array(
'name' => $user,
)
);
Quote from: Sleepy Arcade on December 17, 2009, 01:05:58 PM
hmm untested but try
sources/shop2/items/steal.php
find
$result = $smcFunc['db_query']('', '
SELECT cash
FROM {db_prefix}members
WHERE member_name = '.$user.'');
replace with
$result = $smcFunc['db_query']('', '
SELECT cash
FROM {db_prefix}members
WHERE member_name = {string:name}',
array(
'name' => $user,
)
);
Nope, doing that causes this error
this one seems to work for me
<?php
/**********************************************************************************
* SMFShop item *
***********************************************************************************
* SMFShop: Shop MOD for Simple Machines Forum *
* =============================================================================== *
* Software Version: SMFShop 3.0 (Build 12) *
* $Date:: 2007-08-04 11:56:24 +0200 (za, 04 aug 2007) $ *
* $Id:: Steal.php 125 2007-08-04 09:56:24Z daniel15 $ *
* Software by: DanSoft Australia (http://www.dansoftaustralia.net/)*
* Copyright 2005-2007 by: DanSoft Australia (http://www.dansoftaustralia.net/)*
* Support, News, Updates at: http://www.dansoftaustralia.net/ *
* *
* Forum software by: Simple Machines (http://www.simplemachines.org) *
* Copyright 2006-2007 by: Simple Machines LLC (http://www.simplemachines.org) *
* 2001-2006 by: Lewis Media (http://www.lewismedia.com) *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under *
* the terms of the provided license as published by Simple Machines LLC. *
* *
* This program is distributed in the hope that it is and will be useful, but *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY *
* or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* See the "license.txt" file for details of the Simple Machines license. *
* The latest version of the license can always be found at *
* http://www.simplemachines.org. *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');
class item_Steal extends itemTemplate
{
function getItemDetails()
{
$this->authorName = 'Daniel15';
$this->authorWeb = 'http://www.dansoftaustralia.net/';
$this->authorEmail = '[email protected]';
$this->name = 'Steal Credits';
$this->desc = 'Try to steal credits from another member!';
$this->price = 50;
$this->require_input = true;
$this->can_use_item = true;
}
function getAddInput()
{
global $item_info;
if ($item_info[1] == 0) $item_info[1] = 40;
return 'For steal, user <b>does NOT need to, and shouldn\'t</b> know the probability! It\'s more fun this way :-)<br />Probability of successful steal: <input type="text" name="info1" value="' . $item_info[1] . '" />%';
}
function getUseInput()
{
global $context, $scripturl, $settings, $txt;
return 'Steal From: <input type="text" name="stealfrom" size="50" />
<a href="' . $scripturl . '?action=findmember;input=username;quote=0;sesc=' . $context['session_id'] . '" onclick="return reqWin(this.href, 350, 400);"><img src="' . $settings['images_url'] . '/icons/assist.gif" border="0" alt="' . $txt['find_members'] . '" /> Find Member</a><br />';
}
function onUse()
{
global $db_prefix, $context, $user_info, $item_info, $smcFunc;
// Check some inputs
if (!isset($_POST['stealfrom']) || $_POST['stealfrom'] == '') die('ERROR: Please enter a username to steal from!');
// This code from PersonalMessage.php5. It trims the " characters off the membername posted,
// and then puts all names into an array
$_POST['stealfrom'] = strtr($_POST['stealfrom'], array('\\"' => '"'));
preg_match_all('~"([^"]+)"~', $_POST['stealfrom'], $matches);
$userArray = array_unique(array_merge($matches[1], explode(',', preg_replace('~"([^"]+)"~', '', $_POST['stealfrom']))));
// We only want the first memberName found
$user = $userArray[0];
// Get a random number between 0 and 100
$try = mt_rand(0, 100);
// If successful
if ($try < $item_info[1])
{
// Get stealee's (person we're stealing from) money count
$result = $smcFunc['db_query']('', '
SELECT cash
FROM {db_prefix}members
WHERE real_name = {string:name}',
array(
'name' => $user,
)
);
// If user doesn't exist
if ($smcFunc['db_num_rows']($result) == 0)
die('ERROR: The specified user doesn\'t exist!');
$row = $smcFunc['db_fetch_assoc']($result);
// Get random amount between 0 and amount of money stealee has
$steal_amount = mt_rand(1, $row['cash']);
// Take this money away from stealee...
$final_value1 = $steal_amount - $row['cash'];
//updateMemberData($user, array('cash' => $final_value1));
//...and give to stealer (robber)
$final_value1 = $steal_amount + $user_info['cash'];
updateMemberData($context['user']['id'], array('cash' => $final_value1));
if ($steal_amount < 50)
return 'Steal successful, although you only stole ' . $steal_amount . '!';
else
return 'Successfully stole ' . $steal_amount . ' from ' . $user . '! It\'s their fault they don\'t have their money in the bank!';
}
else
{
// If reducing Karma doesn't work, replace
// 'karma_bad = karma_bad + 10' with 'karma_good = karma_good - 10'
updateMemberData($context['user']['id'], array('karma_bad' => (int) 10));
return 'Steal <b>unsuccessful!</b> Your Karma is now reduced by 10!';
}
}
}
?>
Quote from: Sleepy Arcade on December 18, 2009, 06:09:21 PM
this one seems to work for me
//updateMemberData($user, array('cash' => $final_value1));
OK dude, yes that version works to a certain degree... HOWEVER, I left the part of the code you quoted me above that still is a problem, the commented statement will allow the rest of the code to function properly BUT will not decrease the stealee's credits appropriately, so what's the point in stealing their credits if it doesn't decrement the person you are stealing from? AND, if you uncomment that statement it causes the error previously stated by me in this thread. Sure would be nice to have this item function PROPERLY, not jury rigged.
bperry921 im sry thats my own fault doing so many things at once
i commented to it see it that was the problem only i coulda sware that i fixed the problem and uncommented that
illtake another look tommorow for you again sry bout that
Quote from: Sleepy Arcade on December 19, 2009, 12:31:30 PM
bperry921 im sry thats my own fault doing so many things at once
i commented to it see it that was the problem only i coulda sware that i fixed the problem and uncommented that
illtake another look tommorow for you again sry bout that
Any progress Sleepy?
no not yet sry all this snow has bought me plenty of overtime i should be home at about 3:30 in the morning if im not too tired ill do it then :)
here you go i forgot updatemember() function only expects integers and i was trying to pass a string threw it
Quote from: Sleepy Arcade on December 23, 2009, 02:40:52 PM
here you go i forgot updatemember() function only expects integers and i was trying to pass a string threw it
Thanks, seems to work as expected now... I have some things for you to fix in the Battle mod too, but will get to that later, must sleep now and will post that in the right thread too, have a merry christmas dude
your welcome and have a good christmas
Quote from: bperry921 on December 24, 2009, 12:35:15 AM
Quote from: Sleepy Arcade on December 23, 2009, 02:40:52 PM
here you go i forgot updatemember() function only expects integers and i was trying to pass a string threw it
Thanks, seems to work as expected now... I have some things for you to fix in the Battle mod too, but will get to that later, must sleep now and will post that in the right thread too, have a merry christmas dude
Update, a very minor problem I think, doesn't seem to interfere with functionality, not positive about that though... I'm getting the following error message in the SMF error log at every successful steal... I double checked and that field and index do exist in the smf_members database table
Merry Christmas dude
I see this is a great follow up for the SMF Shop mod.
So i will use this in the future.
But what i like to see is the credits below the poster icon in the posts.
something simple like "Current Amount: xxx credits"
Where do i need to add that code?
EDIT: Sorry that solution is on top of this page... :-\
Change this ../Themes/Default/Display.template.php :
// Show how many posts they have made.
if (!isset($context['disabled_fields']['posts']))
echo '
<li class="postcount">', $txt['member_postcount'], ': ', $message['member']['posts'],'</li>';
Into this:
// Show how many posts they have made.
if (!isset($context['disabled_fields']['posts']))
echo '
<li class="postcount">', $txt['member_postcount'], ': ', $message['member']['posts'],'</li>';
echo '
<li class="postcount">',$txt['shop_procredit'],': ', $message['member']['cash'], '</li>';
Me again :)
I want to add a AddMembergroup item to the shop.
So i found this code:
<?php
//File: AddMembergroup.php
// Item
class item_AddMembergroup extends itemTemplate {
function getItemDetails() {
$this->name = "Add Membergroup";
$this->desc = "Allows you to add yourself to a membergroup!";
$this->price = 1;
$this->require_input = false;
$this->can_use_item = true;
}
function getAddInput() {
global $db_prefix;
$selectBox = '<select name="info1">';
// Get all non post-based membergroups
$result = db_query("SELECT ID_GROUP, groupName
FROM {$db_prefix}membergroups
WHERE minPosts = -1",
__FILE__, __LINE__);
// For each membergroup, add it to the list
while ($row = mysql_fetch_assoc($result)) {
$selectBox .= "<option value='{$row['ID_GROUP']}'>{$row['groupName']}</option>";
}
$selectBox .= "</select>";
return "Membergroup: ".$selectBox;
}
function onUse() {
global $db_prefix, $ID_MEMBER, $item_info;
$additionalGroups = mysql_fetch_array(db_query("SELECT `additionalGroups` FROM {$db_prefix}members WHERE ID_MEMBER = {$ID_MEMBER}", __FILE__, __LINE__),MYSQL_ASSOC);
if($additionalGroups['additionalGroups']) {
$additionalGroups['additionalGroups'] = $additionalGroups['additionalGroups'].",".$item_info[1];
} else {
$additionalGroups['additionalGroups'] = $item_info[1];
}
echo $additionalGroups['additionalGroups'];
$result = db_query("UPDATE {$db_prefix}members SET additionalGroups = '{$additionalGroups['additionalGroups']}'
WHERE ID_MEMBER={$ID_MEMBER}",__FILE__, __LINE__);
return "You have joined new membergroup {$item_info[1]}!!";
}
}
?>
The only problem is that i get a blank screen (white page) when i push the "Next" button.
What is wrong??
that item wont work cos it needs updating use the one in this post
http://sa-mods.ath.cx/battle2/index.php?topic=152.msg903#msg903
Quote from: bperry921 on December 25, 2009, 05:00:26 AM
Quote from: bperry921 on December 24, 2009, 12:35:15 AM
Quote from: Sleepy Arcade on December 23, 2009, 02:40:52 PM
here you go i forgot updatemember() function only expects integers and i was trying to pass a string threw it
Thanks, seems to work as expected now... I have some things for you to fix in the Battle mod too, but will get to that later, must sleep now and will post that in the right thread too, have a merry christmas dude
Update, a very minor problem I think, doesn't seem to interfere with functionality, not positive about that though... I'm getting the following error message in the SMF error log at every successful steal... I double checked and that field and index do exist in the smf_members database table
Merry Christmas dude
hmm ok ill look ito this next week :)
Quote from: Sleepy Arcade on December 25, 2009, 07:58:37 PM
that item wont work cos it needs updating use the one in this post
http://sa-mods.ath.cx/battle2/index.php?topic=152.msg903#msg903
Is there an update for "Increase Karma" item? it's not functioning right on my system either but no errors in log though...
hmm i dont think so whats it not doing?
Quote from: Sleepy Arcade on December 25, 2009, 08:32:05 PM
hmm i dont think so whats it not doing?
It will go through all the motions on incresing karma and create no errors, but a quick check of your Karma points in profile section remains unchanged from previous amounts
SA Shop 0.4.3 relased
fixed random money item
fixed increasd karma item
fixed steal money item
fixed who own this item some servers caused 404 errors
fixed stats richest members bank wasnt in chronological order
fixed template issuse with members inventory in ff
fixed template issuse with send gift in ff
specil thnks to bperry921
Little question:
The credit system now works on all boards.
Is there a way to exclude the count of the credit system on certain boards?
TY
Quote from: NeQo on January 11, 2010, 12:26:27 PM
Little question:
The credit system now works on all boards.
Is there a way to exclude the count of the credit system on certain boards?
TY
Yes, but it may not be a very good solution for you depending on what you are trying to do...
You can go into Admin/Boards and modify the board in question to not "count posts" near bottom of dialogue screen, just uncheck the box and save...
I don't care too much for doing it this way because if you do that, the users lose out on their SMF post count as well as the shop credits.
Ok I have a little problem with using filedownload2.php item...
I have a powerpoint slideshow file that doesn't want to transfer properly or something wrong somewhere, can't figure it out...
There is nothing wrong with original file, it plays fine in powerpoint... however after a transfer using this item powerpoint throws out an error saying it can't read the file, any thoughts?
Quote from: bperry921 on January 11, 2010, 12:55:05 PM
Yes, but it may not be a very good solution for you depending on what you are trying to do...
You can go into Admin/Boards and modify the board in question to not "count posts" near bottom of dialogue screen, just uncheck the box and save...
I don't care too much for doing it this way because if you do that, the users lose out on their SMF post count as well as the shop credits.
That would be perfect, but the only thing that does is stop the post count, credits are still counted when members post.
Quote from: NeQo on January 11, 2010, 02:23:05 PM
Quote from: bperry921 on January 11, 2010, 12:55:05 PM
Yes, but it may not be a very good solution for you depending on what you are trying to do...
You can go into Admin/Boards and modify the board in question to not "count posts" near bottom of dialogue screen, just uncheck the box and save...
I don't care too much for doing it this way because if you do that, the users lose out on their SMF post count as well as the shop credits.
That would be perfect, but the only thing that does is stop the post count, credits are still counted when members post.
ok, sorry for the mislead then, I didn't really check it out very close, this is one that will require further investigation... wdm2005?
the part your looking for isnt included in this yet but it is in the dev version i have here i just have a few bugs to sort with it then ill update the package with it
can i see the download item in question pleaese?
Quote from: Sleepy Arcade on January 11, 2010, 02:58:52 PM
the part your looking for isnt included in this yet but it is in the dev version i have here i just have a few bugs to sort with it then ill update the package with it
can i see the download item in question pleaese?
Sure, I've re-enabled the file on my system, or do you mean the original which the powerpoint player can read?
can you attach both here or pm me with them if you want
here it is, pm's won't allow attachments, hope I'm not violating any rules here but it's not a copyrighted file I am pretty sure so here we go...
Will this work for 2.0 RC2?
that seems to work for me?
Quote from: Sleepy Arcade on January 11, 2010, 03:19:32 PM
that seems to work for me?
Yes, that is the original, but if you use the filedownload2.php item to transfer, it will screw up the file somehow, it is like the script is not creating an exact copy of it, it uses fopen() function to download and I don't know enough about transfers like this to fix it myself.
neither do i relay but attach the filedownload2.php here and ill a take a look
Quote from: Sleepy Arcade on January 11, 2010, 03:27:01 PM
neither do i relay but attach the filedownload2.php here and ill a take a look
ok, here it is, i might add that I've got a couple other files set up with this item and they seem to be ok, they are both .pdf's though, will double check those too while while I'm waiting for you to look at filedownload2.php
Quote from: Sleepy Arcade on January 11, 2010, 02:58:52 PM
the part your looking for isnt included in this yet but it is in the dev version i have here i just have a few bugs to sort with it then ill update the package with it
Was that referring to the "no credits on some boards" question i had?
yes it was ;)
@bperry921 sry i cant figar that item out
Package upload failed due to the following error:
"Although the package was downloaded to the server it appears to be empty. Please check the Packages directory, and the "temp" sub-directory are both writable. If you continue to experience this problem you should try extracting the package on your PC and uploading the extracted files into a subdirectory in your Packages directory and try again. For example, if the package was called shout.tar.gz you should:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF."
This Problem comes by me?
I still have 2 questions:
When you set at 0.2% of the bank is not well written) (interest rates?
Can you establish a history that was paid into the bank on and off?
i think you have a permissions problem
history no not at the moment thereisnt
I tried adding Daniels download item , however it appears that it does not work any reason why not?
probaly cos it needs to be updated post it here
Quote from: bperry921 on January 11, 2010, 03:34:31 PM
Quote from: Sleepy Arcade on January 11, 2010, 03:27:01 PM
neither do i relay but attach the filedownload2.php here and ill a take a look
ok, here it is, i might add that I've got a couple other files set up with this item and they seem to be ok, they are both .pdf's though, will double check those too while while I'm waiting for you to look at filedownload2.php
Anyone else want to take a stab at this one? Refer to quoted msg if you want a copy of the script for this Shop item, I am not good enough yet to figure out the function that does the file transfer. Will keep trying tho and let yall know if I get it squared away.
Hi,
nice Mod.
2 Questions:
1. Does it support to let users of the forum to sell real Hardware, like computer
or electronic parts ?
How is the payment handled then ? Via PayPal only
or do you support other Gateways ?
2. Does it support Sales Commission per sale for the admin of the forum ?
As I am the admin and want my users to use the shop for their hardware sales,
I want to get a commission from their sale.
Can this be handled easily via PayPal or how does this work ?
Many thanks.
Regards, Stefan.
I can't add or edit items, I get this error:
ERROR: Cannot open Themes/default/images/shopimg/item_images dir!
@whoamifooling i anserdy your post on my site
@hartiberlin
no this shop isnt ike that i belive
http://www.smfhacks.com/smf-store.php
is what you want but it is a paid mod
0.4 :)
what you Fixed?
Question:
I can see by SMF Shop a "Money send" Button in postings
Can you make this on your Shop? :):)
it was only a mina relase and fixed issues with shop_db.php
i wil try todo it in next update
Hmm, is this based off SMFShop, or is it totally recoded? If some code is from SMFShop, I'd prefer you to put a little link saying "Based off SMFShop by Daniel15 and vbgamer45" or something somewhere in the mod (even if just on a single about page) :)
It's nice to see another shop modification though... Development of SMFShop slowed down when I didn't have much free time any more, as I was the only developer and support person on the forum (a few other people helped a little, and vbgamer45 does development and support now)
A big thanks To these people
dwd2000 Beta Testing
oreilly Beta Testing
mrtrc266 Beta Testing
Skhilled Beta Testing
ast3r1x Games Room Images
Daniel15 Code From The Origanal Shop Mod
softcore portuguese brazilian Translated
you did give permission to use your code
Ahh, I see. My bad, I must have forgotten, and didn't notice that. :)
To be honest, I'm not sure if vbgamer45 is updating SMFShop any more. It seems pretty dead :(. I'm not too sure what me and him should do with it...
lol np didnt you rember me saying thank you on facebook [wayne mankertz]
Quote from: NeQo on January 11, 2010, 12:26:27 PM
Little question:
The credit system now works on all boards.
Is there a way to exclude the count of the credit system on certain boards?
TY
Any news on this?
Or the new version release ?
no not yet havent had time
This is good mod according to me, simple and easy...
I have a test forum for RC2 that I had installed this on before the latest revision and it installed great, shop was visible and all was well. Over the last week another mod didn't play nice so I had to do a fresh install of RC2 and uploaded the latest revision of the shop today and get this error:
Table 'pogohave_forum.smf_shop_purchhis' doesn't exist
File: /home/pogohave/public_html/Sources/shop2/Shop_db.php
Line: 323
Any help on what to do would be great! btw, there were no errors during install. Thanks! :)
yea open Shop_db.php file and replace this string "purchhis" with this "purchHis"
the table name in database is case sensitive. That's all you need to do.
I think there are 2 places you need to do so.
thanks crocco i fault i allread fixed this
How do you add or remove games from the games room?
you cant
Then I won't use the Games Room :(
I'll have to use the arcade mod :(
Thanks anyway!
the games room can be disabled it not like the arcade it is like a kinda simple casino nothing specil it was gonna be an adon to the shop but we ha vote about it and it endied being put into the mod
Is there a way to integrate them? like the money stuffs?
what do you mean?
You know, the arcade mod and your shop mod, to integrate the SMF Arcade (highscores maybe) and your shop? That would be awesome!!
that has been requested before i might do it as mod for the shop just dont know when yet
Ok, can't wait until you do!! Thanks!
hows this it give point only to the highe score points can be changed in shop admin with the money settings also has an arcade pass wich can be enabled disabled arcade pass for shop included please try on a test site first
Ok! I am downloading!
One thing, I bought a pass for the arcade, refreshed, cleared cache, cleared cookies, and it says:
Quote
An Error Has Occurred!
You need a valid arcade pass to play in the arcade. Visit the store.
I don't have any games installed, as at school, when it reads a game site, it blockes it, the subdomain games.smfarcade.info is blocked, but rest of website isn't...
ill look into this some other time
sa shop 0.46 reased update for rc3
Question please. Is there any way to be able to delete items from the shop but not have them deleted from user's inventory? Or even a way to hide certain items the way you can with smileys? We offer certain things for sale for a limited time, but there is no expiration on when they can be used. So we're stuck keeping them there and it gets very crowded and hard to find things. Thanks! :D
if you delete items from the shop and keep inventory it wont work cos the inv uses the shop items id from the shop_items tables in the database
He was wondering how to do that, I believe, Diamond, correct me if I am wrong...
well you can enable disable items but it doesnt hide them but there still be usable in inventory
to hide when disabled rqires one small edit
sources/shop2/shop_db.php
find
// Now we need our items
$result = $smcFunc['db_query'] ('','
SELECT itemid, name, `description`, price, count, image, catid, status, input_needed, sold
FROM {db_prefix}shop_item
WHERE catid = {int:cat}
LIMIT {int:start}, 10',
array(
'cat' => $cat,
'start' => $context['start'],
)
);
replace with
// Now we need our items
$result = $smcFunc['db_query'] ('','
SELECT itemid, name, `description`, price, count, image, catid, status, input_needed, sold
FROM {db_prefix}shop_item
WHERE catid = {int:cat} AND status = {int:one}
LIMIT {int:start}, 10',
array(
'cat' => $cat,
'one' => 1,
'start' => $context['start'],
)
);
Hi, does this mod allow users to sell stuff or its just designed for the forum Admins?
It's designed for virtual items that are created by Admin for sale in the virtual shop, bought with virtual money if that's what you mean
Quote from: perplexed on March 15, 2010, 01:26:21 PM
It's designed for virtual items that are created by Admin for sale in the virtual shop, bought with virtual money if that's what you mean
Thanks, misunderstood the shop concept, thought it would be something I could use for members to sell and buy their own personal stuff.
Use the classifieds mod! (find it, search is your friend!)
Now for some reason, I cannot post on my forum, while other members seem to be able to!!
Quote from: LondonDragon on March 15, 2010, 05:17:35 PM
Quote from: perplexed on March 15, 2010, 01:26:21 PM
It's designed for virtual items that are created by Admin for sale in the virtual shop, bought with virtual money if that's what you mean
Thanks, misunderstood the shop concept, thought it would be something I could use for members to sell and buy their own personal stuff.
VBGamer has a ecommerce store mod and a classifieds mod, but they are not free. Links are in his signature here (http://www.simplemachines.org/community/index.php?action=profile;u=24876)
Quote from: NeQo on January 31, 2010, 04:17:08 PM
Quote from: NeQo on January 11, 2010, 12:26:27 PM
Little question:
The credit system now works on all boards.
Is there a way to exclude the count of the credit system on certain boards?
TY
Any news on this?
Another bump.
i done this allready latest version
Quote from: Sleepy Arcade on March 16, 2010, 09:56:34 PM
i done this allready latest version
Aha, didn't know it was included.
(Did you write somewhere what changed?)
I'll update today then
Quote from: Kcmartz
Now for some reason, I cannot post on my forum, while other members seem to be able to!!
realy what happens when you try to any errors?
Thanks Sleepy for the tip on hiding items - works great! Just one more thing I can't figure out. I'm sure I goofed somewhere. All of the item images are uploaded, but all I can see in the shop are the white boxes with the red x's. Nothing shows up in the dropdown, which I can live without images. I just can't get rid of those boxes. Even when I go to add an item and choose no image - the only choice, lol - I have the box. Can you point me in the right direction when you have time? Thanks!
right click the images and tell me wht the url points to?
Picked one at random
http://www.pogohaven.info/Themes/default/images/shopimg/item_images/Figure.gif
are the images in the default theme on your server?
Yes they are
Edit - they were there, but not in the folder. Moved them in and all is good. Thanks so much!
Im having a problem for my users. I can go into the shop fine, but it says "You can not view" on them. Newest version of SMF and shop.
Battle wasnt even displaying for other users in the menu, but I had it fine. it wasnt the newest version so im going to try that re-doing that one.
EDIT: Permissions. duh.
Curiosly . this mod and the shop mod by daniel or vbgamer,
Which one is better ?
Or better still, what are the differences ?
If anyone can help with these, I'd surely appreciate it.
1. If someone has more than one page of inventory, I can't see more than the first page. If I click on the second it takes me to mine. I need a way to fix that or have all inventory show on one page. The way our shop works we need to manually delete items from user's inventory as they use them.
Edit: We have the same set up on our test forum and I just tried it out and it works there just fine. Can go to each page of a user's inventory with no problem. Confused as usual, lol. ???
Edited again - The only mod that is on the live forum that wasn't on the test forum was the referrals mod. I installed it and it caused the same problem to happen on the test forum, so I'm guessing that's the cause. Uninstalled the mod, but that didn't fix the problem. Does the referrals mod change code in the shop?
2. There are some errors that I went in to the file and corrected, says it's saved but is still showing up. It's saying you "where send an item" and should be "were sent an item". I did both of the english files - is there something else I'm missing?
3. Is there any way to make it so that you can add a message when sending items or credits? If we send things it sends the pm with no option for a note, so the members don't have a way of knowing what they're for.
Running RC3 with the latest shop. Thanks! :D
1 yeah i cant replecate tat eaither adn no referals shouldent touch shop and vicerverser
2 did you clear your forum cache?
3 i can do that maybe in the next few versions i dont have much time on my hands at the moment cos i just started a new job this week
@afro
this shop is based on smf shop tho most of it has been recoded and new fetures and layout for smf2 only the only parts that use smf shop code is the use item functions and trade center the rest was recoded differently
If we uninstalled the shop and reinstalled, would the members lose their inventory or is that in the db?
Yes, cleared the cache and it made no difference.
Thanks for considering adding that for the future!
no there saved into the database :)
make sure the word isnt there twice i need to go thru them text strings at some point cos there is a few the same in there
Thanks! I'll give it a shot. :D
It gave me errors, mostly in the sub.php files on uninstall. Uninstalled it anyway, along with the referrals mod and reinstalled a fresh copy. Error is still there. Is there anything else I can try? This is going to be a really bad situation for us if I can't fix it.
Thanks.
ok, then..i will try it when it goes stable
The problem that I posted about previously still exists. In the shop, when you go to someone's inventory, you can see the first page, but the "your inventory" tab highlights. If you try to see anything past the first page it take you to your own inventory. In the admin section you can only see the first 10 items and it doesn't show page numbers there at all. As far as I can tell, you can see all pages only if you're looking at your own inventory.
I asked someone from SMF to take a look at it and this was their response:
QuoteOk, before doing anything to your site, I was able to confirm this bug on a clean 2.0 RC3 test forum. I noticed SA Shop mod is still in beta, so you should report this as a bug, since I was able to replicate the error.
Did try to do that, but can't get to the page - it appears to be down, so posting it here. If it's the wrong thread I apologize. Thanks
ok will take a look when i have time i started a new job last week and havent had much time for doing dev work :/ hopfully i can take a look this week end
Thanks, Sleepy! :) It's an amazing mod!
SA Shop 0.4.7 Realesed
Fixed inventory not working correct when veiwing others inventory
Added page index to admin inventory
Thanks! :)
I hope to see this on RC3! Thanks for the hard work. ;D
what this is for smf2 rc3 only
Quote from: Sleepy Arcade on April 19, 2010, 12:36:41 AM
what is is for smf2 rc3 only
I think he meant.....WHAT? ??? this is for smf2 rc3 only!!!
http://custom.simplemachines.org/mods/index.php?mod=1794 (http://custom.simplemachines.org/mods/index.php?mod=1794)
QuoteCompatible With: 2.0 RC3
lol yeah thats the one it is early here :P
Quote from: Sleepy Arcade on April 19, 2010, 12:44:03 AM
lol yeah thats the one it is early here :P
Believe me I know all about "it's early," it's late," "only 4 hrs of sleep," etc LOL...I got your back Bro ;)
thanks :)
Sleepy,
I read through the entire thread, and most of the support stuff on your site. My question is the postbit display. I have it enabled. Is there something else I'm supposed to to do in order for a users inventory to be viewable in the postbit?
I'm using the default theme on the latest 2.0 RC.
hi, thx for your mod
and i have a problem with your mod, first i want to set everyone's money back to 0, how can i do that
second, the suffix doesn't show under the member info
@F34R i anserd this on my site
@udemon369 upload the attached file to you forum the same place as your ssi.php and point to it in your brouser and it will set every one cash to 0
Quote from: Sleepy Arcade on April 27, 2010, 12:36:41 PM
@F34R i anserd this on my site
@udemon369 upload the attached file to you forum the same place as your ssi.php and point to it in your brouser and it will set every one cash to 0
im sry but, where is the attached file? oO and where does the ssi.php locate?
opps didt attach it lol ssi.php in where you installed your forum
Oops I didn't read correctly. ???
Quote from: Sleepy Arcade on April 27, 2010, 02:00:31 PM
opps didt attach it lol ssi.php in where you installed your forum
thx, the credits successfully reset to 0
does the mod suppose to show how many credits people have under their post?
mine doesn't show, if it's because im running a custom theme, how can i fix this problem
it does just there is no edits for that part yet i will add it in next version when it is ready
nice
also i have some suggestions for the features
users can open a topic that members will have to pay some credits to be able to view it, it show a number in the post of how many people paid
n
also add a permission to a member group that can give or deduce member credits ( not the one in admin center)
this one will also put a sign on the post where the credits are given, for example right under the information area of the post it show credits is given by who
thx
hi there i'm a little confused as this is very similar to smfshop what are the differences and is this a clone or a rewrite of it?
also where can we get more shop items? and can we install this after an uninstall of smfshop? (and will credits etc remain?)
When I choose to have the inventory show in the postbit, nothing happens. Attached is my display.template.php.
please dont pm me :)
the edits are disabled for that for now i will add it back in next version
Oh so you can't have your inventory in the postbit?
yes you can just the edit is disabled for now
Okay. How can I edit it so it is in the post bit?
Quote from: lelkins on December 16, 2009, 12:11:23 PM
Doesn't seem to for me. I uninstalled and then reinstalled but still no job.
I am on SMF2.0 RC2 using the default template.
I have put the following code into display.template.php but it won't show the number of credits. If I put the code to show Prefix and Suffix then it shows so not sure why it won't show the number of credits.
I just installed .4.7, but I am having this issue also. I tried the fix that was mention after this post, but it didn't fix it.
if (!isset($context['disabled_fields']['posts']))
{
{
echo '
<dt>', $txt['profile_posts'], ': </dt>
<dd>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</dd>';
echo '
<dt>',$txt['shop_procredit'],': </dt>
<dd>', $modSettings['shopprefix'], $context['member']['cash'], $modSettings['shopsurfix'], '</dd>';
if (isset($context['member']['subaccounts_posts']))
echo '
<dt>', $txt['subaccount_posts'], '</dt>
<dd>', $context['member']['subaccounts_posts'], ' (', $context['member']['subaccounts_posts_per_day'], ' ', $txt['posts_per_day'], ')</dd>';
}
do you get ant errors in the error logs?
no but I figured out what it was and fixed it.
Edit: NM I am a tool.
I went to install this and it came up with an error, so i didnt bother with it. once i deleted it
i notice that it has cause a problem for my main registration page, now no one can register at
my board now because of this...
can you explain where to find this in the database and fix this problem line 789 has the problem
769:
foreach ($regOptions['register_vars'] as $var => $val)
770:
{
771:
$type = 'string';
772:
if (in_array($var, $knownInts))
773:
$type = 'int';
774:
elseif (in_array($var, $knownFloats))
775:
$type = 'float';
776:
elseif ($var == 'birthdate')
777:
$type = 'date';
778:
779:
$column_names[$var] = $type;
780:
$values[$var] = $val;
781:
}
782:
783:
// Register them into the database.
784:
$smcFunc['db_insert']('',
785:
'{db_prefix}members',
786:
$column_names,
787:
$values,
788:
array('id_member')
==>789:
);
790:
$memberID = $smcFunc['db_insert_id']('{db_prefix}members', 'id_member');
791:
792:
// Update the number of members and latest member's info - and pass the name, but remove the 's.
793:
if ($regOptions['register_vars']['is_activated'] == 1)
794:
updateStats('member', $memberID, $regOptions['register_vars']['real_name']);
795:
else
796:
updateStats('member');
797:
798:
// Theme variables too?
799:
if (!empty($theme_vars))
800:
{
801:
$inserts = array();
802:
foreach ($theme_vars as $var => $val)
803:
$inserts[] = array($memberID, $var, $val);
804:
$smcFunc['db_insert']('insert',
805:
'{db_prefix}themes',
806:
array('id_member' => 'int', 'variable' => 'string-255', 'value' => 'string-65534'),
807:
$inserts,
808:
array('id_member', 'variable')
809:
);
preview:
(http://www.imagebam.com/image/e6cead98773019)
8: Undefined index: shopRegAmountFile: /home/coldysha/public_html/Sources/Subs-Members.php
Line: 669
this mod doesnt use money it uses cash as the collum name can you post you Subs-Members.php pls
Quote from: Sleepy Arcade on September 22, 2010, 10:24:52 AM
this mod doesnt use money it uses cash as the collum name can you post you Subs-Members.php pls
all fix and solve now, sorry to bother you
package updated for rc4
Hey SA :)
I really like your shop mod a lot because of the design and layout (BRAVO on that, I'm really pleased!!), however I'm very concerned about the negative money thing going on. In the games room I can go into debt. While that's hilariously like real life I really don't like it for what I'm trying to do. Is it a bug? Either way I have a list if ideas for you :D.
Some ideas:
1) No going into debt checkbox.
2) If it's unchecked allow members to spend up to XX amount OR XX amount of purchases/plays (that's two options that work as one so it's which ever is hit first).
3) If they can go into debt make it have interest which grows like the bank thing and make them pay it all off before they can go into debt again.
4) Stats on people in the hole.
5) Allowing credit decimals so you can earn cents or lower (it throws an error which I've listed below).
6) Ability to modify users credits via their profiles, and by adding them to a list to have X amounts of credits added/subtracted from (like when you add a bunch of members to a membergroup).
7) Ability to add credits when Karma is added, and minus them when it's subtracted.
8) Ability to remove credits when mod actions are taken (maybe even a custom amount box when you moderate a user?).
9) Ability to subtract the worth of posts or topics when they're removed.
10) It would be fabulous to be able to have items you actually download. For example...if I want to upload a movie or word document, or some other attachment allowed by the rules....then people could buy it and it would let them download it.
11) Access to special boards for XX time.
12) Ability to give credits when people subscribe (on a per subscription basis).
I REALLY need the credit decimals thing, and the download thing. The credits by profile/admin thing makes it easier to do competitions.
Anyways can you let me know if you would create custom items based on code things for me? I'd be willing to pay, it's just that I'm planning to have a lot of custom things on my site and I'd really love to have the shop incorporated into it :). It shouldnt be too hard but I'd like to know in advance :D. If there's a tutorial which will tell me how I can try to do it myself that would rock too :D. Your support link is dead on the mod page so I don't know if there is :).
index.php?action=post2;start=0;board=1
Wrong value type sent to the database. Integer expected. (point)
Function: createPost
File: /home/glb/public_html/BRS/Sources/Subs-Post.php
Line: 1895
for the download item see this
http://www.sa-mods.info/index.php?topic=46.0
this shop is based on smf shop so it will use the same items with a few edits tho the download item will work strait out
Quoteindex.php?action=post2;start=0;board=1Wrong value type sent to the database. Integer expected. (point)Function: createPostFile: /home/glb/public_html/BRS/Sources/Subs-Post.phpLine: 1895
what did you do to get that error
i will lok in to the other ones when i have more time on my hands
Tomorrow I will translate this mod to Spanish..
Quote from: SA™ on November 05, 2010, 02:34:29 PM
for the download item see this
http://www.sa-mods.info/index.php?topic=46.0
this shop is based on smf shop so it will use the same items with a few edits tho the download item will work strait out
Quoteindex.php?action=post2;start=0;board=1Wrong value type sent to the database. Integer expected. (point)Function: createPostFile: /home/glb/public_html/BRS/Sources/Subs-Post.phpLine: 1895
what did you do to get that error
i will lok in to the other ones when i have more time on my hands
I had people earning $00.01 cents per post. I said that in the list :).
Thanks for the link to the download item :).
aha i see can you try the atached package and tell me if it works now
Hey, SA! Really love this shop version. I have a question, since it was possible through modifying the smf1.1.11 shop inventory post MOD.
http://smfshop.com/forum/index.php/topic,1175.msg6638.html#msg6638
Can you have it where only items from certain categories (through shop category ID) are only displayed in the post bit.
I want to to make a copy of that part, so members have 2 separate shop inventory sections under their sig, one for games and accessories, and the other for character items they buy.
Thank you. hope it's possible.
should i be worried of this default/display/template.php during install?
im not gonna use custom themes fwiw
The default/display/template.php is what gets your money/items to show in member's posts, or signatures. I would make sure it installs. then, if you have custom themes with that file, you'll have to make the same edits to those.
0.4.9 realsed
added permission to admin the shop
fixed item display order in shop veiw
Quote from: SA™ on December 13, 2010, 12:59:58 AM
0.4.9 realsed
added permission to admin the shop
fixed item display order in shop veiw
Great Updates, SA!
0.5 realsed
added send gift/cash to post profile
added send gift/cash to profile
Hey there!
I'm a little confused. (Nothing unusual there). I'm on RC2.4, and after upgrading (from .3) I had to reinstall the shop. I reinstalled SMFShop, 'cos that's what I had before, but whilst that works okay, pretty much all the items for it are out of date and won't install/work on SMFRC2.4.
Is this version of the shop the same? I note the source was taken from Daniel's, and SMFShop also was done by him before.
Does this version have more up to date items etc, and if I unistall SMFShop and install this one, will my members keep their 'money'?
Can I install both mods and run them side by side?
Sorry to ask so many questions! Thanks in advance for your help, and keep up the good work!
the items are pretty much the same i did update the lottery and pets mods but they still need more work there is also a few other i updated at my dev site
you can keep the money if you want to doa manulal edit to you database r i can write a script todo this if you prefere
no you cant use them both at the same time
Quote from: SA™ on December 26, 2010, 10:43:12 AM
the items are pretty much the same i did update the lottery and pets mods but they still need more work there is also a few other i updated at my dev site
Ooh, I see! And I have a few of your mods installed as well I think (probably going to reinstall Battle as well shortly). Nice.
Quote from: SA™ on December 26, 2010, 10:43:12 AM
you can keep the money if you want to doa manulal edit to you database r i can write a script todo this if you prefere
I have no idea how to do a manual edit, though if you tell me what to do I may be able to manage it.
I think I'm going to uninstall SMFShop and try yours! Thanks again for your work on this.
I just did a test run for installation, and in the load.php it tries to find:
// What a monstrous array...
...but can't find that line. So where do I put...
[/size]//Set variable for LIMIT amount $row = 0; $max = $modSettings['ShopIpDisMax']; //Begin database query $request3 = $smcFunc['db_query']('', ' SELECT it.description, it.image, it.catid, inv.itemid FROM {db_prefix}shop_property AS inv INNER JOIN {db_prefix}shop_item AS it ON (inv.itemid = it.itemid) WHERE inv.userid = {int:id} LIMIT {int:max}', array( 'id' => $profile['id_member'], 'max'=> $max )); //Start with an empty array $profile['shopitems']['shopitems'] = array(); //Loop through all items while ($row = $smcFunc['db_fetch_assoc']($request3)) { // Add item to the array $profile['shopitems']['shopitems'][] = array( 'image' => $row['image'], 'desc' => $row['description'], ); } $smcFunc['db_free_result']($request3);
that line should be there try serching for
$avatar_width = '';
$avatar_height = '';
}
and add what needs to be added after it
There was a 0.5 version on the mod page?
there still is
Quote from: SA™ on December 27, 2010, 05:26:22 PM
there still is
Yeah but the topic here says 0.4.7 as latest....
fixed that ;D
Do we have to uninstall .4.8 to install .5?
That did it. Thanks!
Quote from: SA™ on December 27, 2010, 01:45:03 PM
that line should be there try serching for
$avatar_width = '';
$avatar_height = '';
}
and add what needs to be added after it
Ah, me again. All didn't go quite as well as I'd hoped.
I have two problems. (That I've noticed so far)...
One is that the button isn't showing on the main menu. There's an invisible 'space' you can click on, but it doesn't say 'shop' or the like!
I'm getting lots of error messages in the log that may be related:
Quote
.../smf/index.php?action=enotify8:
Undefined index: shop_menu_button
File: .../smf/Sources/Subs.php
Line: 4524
The second problem is that if I try and send someone some cash, it goes through the motions okay, but doesn't actually send anything!
Any ideas?
post up you subs.php
I'm getting a few errors related to this mod
SMF RC4 Shop.4.8
http://dadshideout.com/index.php?action=shop;sa=inventory;next2=nightstorm568: Undefined index: name_postedFile: /home/dadshide/public_html/Sources/shop2/Shop_db.php
Line: 681
==>681:
$context['page_index'] = constructPageIndex($scripturl . '?action=shop;sa=inventory;next2='.$_SESSION['name_posted'].';sort=' . $_REQUEST['start'] . (isset($_REQUEST['desc']) ? ';desc' : ''), $_REQUEST['start'], $puppys, 10);
682:
$context['start'] = $_REQUEST['start'];
683:
$_SESSION['just_posted_name'] = false;
684:
}
685:
else{
And anytime a mod moves a topic
http://dadshideout.com/index.php?action=movetopic2;topic=1294.08: Undefined index: messageFile: /home/dadshide/public_html/Sources/Subs-Post.php
Line: 1858
1856:
// Bonus
1857:
// no, BBCCode won't count
==>1858:
$plaintext = preg_replace('[\[(.*?)\]]', ' ', $_POST['message']);
1859:
// convert newlines to spaces
1860:
$plaintext = str_replace(array('<br />', "\r", "\n"), ' ', $plaintext);
1861:
// convert multiple spaces into one
1862:
$plaintext = preg_replace('/\s+/', ' ', $plaintext);
1863:
and last but not least, one of our members with about 5 days worth of forum time purchased 2 increase time online 12 hours. After using the object it knocked his online time down to 12 hours total.
i will look into these errors in the next update
you are using the latest version 0.5 right?
no we are using .4.8, I posted above if we needed to uninstall the old one before installing the new one, but you must have missed it :D
oh yes uninstall the old one and install the new one and see if you get them errors
When I go to install the old one I'm getting about 7 errors on the uninstall page
Quote from: joey791 on December 29, 2010, 12:53:50 PM
When I go to install the old one I'm getting about 7 errors on the uninstall page
...modify much?
no not much, only running about 12 mods lol
Here are the errors
1. Execute Modification ./Sources/ManageBoards.php Test successful
1. Replace ./Sources/ManageBoards.php Test successful
2. Replace ./Sources/ManageBoards.php Test successful
2. Execute Modification ./Sources/Subs-Boards.php Test successful
1. Replace ./Sources/Subs-Boards.php Test successful
2. Replace ./Sources/Subs-Boards.php Test successful
3. Replace ./Sources/Subs-Boards.php Test successful
4. Replace ./Sources/Subs-Boards.php Test successful
3. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
1. Replace ./Themes/default/ManageBoards.template.php Test successful
4. Execute Modification ./Sources/ManagePermissions.php Test failed
1. Replace ./Sources/ManagePermissions.php Test failed
2. Replace ./Sources/ManagePermissions.php Test failed
3. Replace ./Sources/ManagePermissions.php Test successful
4. Replace ./Sources/ManagePermissions.php Test successful
5. Execute Modification ./Themes/default/Profile.template.php Test successful
1. Replace ./Themes/default/Profile.template.php Test successful
6. Execute Modification ./Sources/Admin.php Test successful
1. Replace ./Sources/Admin.php Test successful
7. Execute Modification ./Sources/Load.php Test failed
1. Replace ./Sources/Load.php Test failed
2. Replace ./Sources/Load.php Test failed
3. Replace ./Sources/Load.php Test successful
4. Replace ./Sources/Load.php Test successful
5. Replace ./Sources/Load.php Test failed
6. Replace ./Sources/Load.php Test successful
gonna see how much of a pain it is to manually edit the failed parts
Quote from: SA™ on December 29, 2010, 09:40:06 AM
post up you subs.php
Please find attached. I figured out the shop button not appearing, but it still won't transfer, and I'm still getting a load of errors.
Try this.
I enabled the button and fixed an error I found there.
Thanks for looking SS. I uploaded your updated subs.php, but I still can't transfer cash to anyone!
I've looked through the admin area, just in case I was missing something obvious (though as admin I should have all access), but no joy.
Still getting the errors too, though perhaps this is something to do with the enotify mod I have installed rather than the shop?
Quotehttp://.../smf/index.php?action=enotify
Undefined index: shop_menu_button
File: /...l/smf/Sources/Subs.php
Line: 4524
Quote from: chinaren on December 30, 2010, 07:08:33 AM
Thanks for looking SS. I uploaded your updated subs.php, but I still can't transfer cash to anyone!
I've looked through the admin area, just in case I was missing something obvious (though as admin I should have all access), but no joy.
Still getting the errors too, though perhaps this is something to do with the enotify mod I have installed rather than the shop?
Quotehttp://.../smf/index.php?action=enotify
Undefined index: shop_menu_button
File: /...l/smf/Sources/Subs.php
Line: 4524
That has to do with the eNotify mod.
Okay, I can fix that.
Any idea on the cash transfer? Even a way to bodge it would be good! :)
remind me what happens when you try to transfer cash? it works fine on my localhost
thanks for helping Simple Series team
Quote from: SA™ on December 30, 2010, 09:45:16 AM
remind me what happens when you try to transfer cash? it works fine on my localhost
Well, it's very strange. I click on the ' give cash/gift' and it goes to the screen. I type in an amount and click send, and it then goes back to the index page. I don't get any obvious errors, but it just doesn't send anything. Neither my balance or the recipient's has changed. :'(
I've just noticed I don't just get the error for enotify. Here are two others in the error log:
Quotehttp://tomecity.com/smf/index.php?
8:Undefined index: shop_menu_button
File: /...l/smf/Sources/Subs.php
Line: 4524
http://tomecity.com/smf/index.php?action=admin;area=logs;sa=errorlog;desc
8: Undefined index: shop_menu_button
File: /...l/smf/Sources/Subs.php
Line: 4524
Everything else is working fine. All the forums give cash as they are supposed to.
I'm baffled. :o
Until I can deal with updating this mod on our site, is there anyway I can reset my users stats to what they were before he used the add 12 hours item? Hes a good contributor to the site and I would like to get his stats back right.
Hi,
Sorry, for my Question, but, if i install this mot on RC4 through the Paketmanager, it says, it was installed successfully, but i don't see any Settings-Tap or something else, which looks like a Shoppanel.
Any hint for me ?
EDIT:
ok, got it to work.
the installer ia broken and doesnt make any changes in other Files.
So i hat do make them all by myself.
but now it seems to work.
have to try it out these days.
thx for this Mod :)
QuoteEverything else is working fine. All the forums give cash as they are supposed to.
I spoke to soon. It seems the board is ignoring the 'don't give bonuses' option if it's not checked. That is, it still gives bonuses even if I don't want it to.
I've looked through all the files that were updated by the mod to ensure the code is there as specified, and it is. Any ideas?
It also doesn't send money or gifts still. :(
The only thing I can think of that I manually updated was the bit when I couldn't find the 'What a monstrous array' and I put that where you said.
Any ideas?
Hardcoded text in Admin.php:
'label' => 'Main',
thanks bugo
I'm running SMF 2.0 RC5
I'm using this theme: Argentum 2 by Bloc http://www.blocweb.net/index.php?topic=540.0
My other mods currently installed are: Header Addon
Contact Page
Event Reminder Mod for SMF2
I run an RP board and have recently converted posts from the phpBB3 board to SMF. Currently, my SMF board is in 'beta; and not ready for people. Anyway, I am looking for a shop mod for players to use. I was supppper excited to find this! ....But...
During install it tells me there are 2 errors for the Core theme that fail. They are both with executing the modification of this file:
./Themes/core/Display.template.php
Just for fun and giggles I installed it anyway. There's a tab in my admin section for the shop, but I cannot access anything. When I hit ANY of the links pertaining to the shop in my admin panel I get:
QuoteFatal error: require_once() [function.require]: Failed opening required '/home/pretendusername/i.editedthiswebsitename.com/Sources/shop2/ShopAdmin.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/pretendusername/i.editedthiswebsitename.com/Sources/Admin.php on line 550
I have no idea how to fix this. It SEEMS like the packager doesn't copy any of the files because when I look for this specific file it is no where to be found in any of my folders, certainly not Sources. I have attempted several installs and uninstalls by now. I attempted to install via admin> packages as well as FTP to no avail. I am 100% NOT confident enough yet in my ability to actually edit any files myself so I have NOT tried a manual install and am afraid of blowing things up if I do. Also I don't really know where to copy the files one by one over...So, as you might have guessed I am a complete newb and have no idea how to fix it. ; ;
I would appreciate any and all help. I know it's hard explaining baby steps to those of us tottering around, but I'd love it if someone could help me make this work on my forum.
Thank you so much for reading!
EDITED to add:
I removed this mod using the packager and now I cannot upload any other mod. Every other mod I upload uploads ...SA Shop instead. I will have to do a database restore I think due to just not understanding this well enough to fix it.
Welp, I have no idea now how to fix it, but after a file re-write and database Restoration....I have SA shop links in my admin panel still (after a 23 hour roll back from yesterday where...I didn't have it installed) and I cannot for the life of me see any files left to remove this.
I believe my current state of reaction toward this now is a full on, "ohgodwhat?" which I think is the logical choice after hours of deciding that taking on something I know nothing about would be a fantastic idea and PHP is awesome WOOT. At any rate, I am off to go cry in a corner gibber uncontrollably mock myself sleep now and look forward to being mocked as a newb when I get up. Or help. Either or would be fine at this point.
(Shop links still in admin panel screen shot: http://img197.imageshack.us/i/ohgodwhaty.jpg/)
SA Shop 0.7 relased
added send gift/cash to post profile
added send gift/cash to profile
added core supprt
now uses integration hook for less edits
fixed undefined index just posted name
i have 0.5 installed.. should i reinstall it?
uninstal0.5 the instal the new version
I just installed version 0.7 on SMF 2.0 RC5 and I wanted to edited the items. and this is what happens.
ERROR: Cannot open Themes/default/images/shopimg/item_images dir!
It looks like the installer tried to create a file and not a folder. I have to delete the file called item_images and upload the directory with the images in that folder.
Now the new error I'm getting is.
Fatal error: require() [function.require]: Failed opening required '/home/dfbarrac/public_html/Sources/shop2/items/Steal.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dfbarrac/public_html/Sources/shop2/ShopAdmin.php on line 488
I fixed this by doing the same thing from the 1st one. It looks like it created a file and not a folder called "items". I had to delete the file and upload the files in that "items" folder
If I find any thing else I will report it. You mite want to check the installer and make sure it setup right. It should create the folders and not files.
i just installed this and the images of like the little train an things aren't showing any help
Yes, Do what I said above. and the images should show.
ok thanks willgive it ago
i actually had to put the shopimg folder into the themes images folders to ge them to work
That's what I mean. The folders were missing after you installed it. All you had to do was upload them again
I'm using the other shop mod because of some of the bugs in this version when I had to install it. The problem is I can't get any support for the other Shop Mod. Can I get support for this mod if I uninstall the one I'm using and install this one.
i do try to provide supprt for all my mods just it not easy when you work 15 hours a day
Oh, WOW. That sucks. but what can you do. You have to put food on the table. It's just that I can't get any help at all from any one of the mods. SA Shop 0.7 or SMF Shop 3.1.x
So right now I don't know what I'm going to do.
besides the images thing (which is fixed)everything works great for me.
I saw several shops in modification sections. Few of them got item named "Buy a sticky thread"
All thoose shops are working with credit system.
I was wondering - is it possible to take out only this item " buy a sticky thread" and make it buyable by using paypal ?
If it is can you please tell me how?
This version is too old. and I'm sorry I can't do any thing with this version.
hey guys, i am very poor in php (just started writing in it about 4 days ago). First i wrote this code (http://codepad.org/Q0SmECmK) and added it to custom page from simple portal and it would work like a charm. then i saw this mod and wanted to add that code as an item.
so edited testitem2 with original code that asks user for input and modifies 2 tables on one of my db on webserver. when i move my code file to shop2/items and then go to menu and click on add items, it doesnt work, the page just comes out blank. so after i delete it, i am able to click on add items and be able to select default items in the package. same thing happens for smf shop too.
here is the code for it
<?php
/**********************************************************************************
* SMFShop item *
***********************************************************************************
* SMFShop: Shop MOD for Simple Machines Forum *
* =============================================================================== *
* Software Version: SMFShop 3.0 (Build 12) *
* $Date:: 2007-01-18 09:26:55 +0100 (do, 18 jan 2007) $ *
* $Id:: testitem2.php 79 2007-01-18 08:26:55Z daniel15 $ *
* Software by: DanSoft Australia (http://www.dansoftaustralia.net/)*
* Copyright 2005-2007 by: DanSoft Australia (http://www.dansoftaustralia.net/)*
* Support, News, Updates at: http://www.dansoftaustralia.net/ *
* *
* Forum software by: Simple Machines (http://www.simplemachines.org) *
* Copyright 2006-2007 by: Simple Machines LLC (http://www.simplemachines.org) *
* 2001-2006 by: Lewis Media (http://www.lewismedia.com) *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under *
* the terms of the provided license as published by Simple Machines LLC. *
* *
* This program is distributed in the hope that it is and will be useful, but *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY *
* or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* See the "license.txt" file for details of the Simple Machines license. *
* The latest version of the license can always be found at *
* http://www.simplemachines.org. *
**********************************************************************************/
// This is just to make sure that the item is used through SMF, and people aren't accessing it directly
// Additionally, this is used elsewhere in SMF (in almost all the files)
if (!defined('SMF'))
die('Hacking attempt...');
/*
* This is a test item that gets some input from the person using it.
* Most likely, you'll base your item off this one.
* Note that all items should try to follow the SMF Coding Guidelines, available
* from http://custom.simplemachines.org/mods/guidelines.php
*
* Your class should always be called item_filename, eg. if your file is
* myCoolItem.php then the class should be called 'item_myCoolItem'. This
* class should always extend itemTemplate.
*/
class item_amxadmin extends itemTemplate
{
function getItemDetails()
{
$this->authorName = 'Daniel15';
$this->authorWeb = 'http://www.dansoftaustralia.net/';
$this->authorEmail = '[email protected]';
$this->name = 'add admin';
$this->desc = 'add admin to server';
$this->price = 2500;
}
function getUseInput()
{
return 'New Username: <input type="text" name="newusername" size="50" />
Steam Id: <input type="text" name="steamid" size="20" />
<div align="center"><br>
<input type="radio" name="group1" value="1"> Rated* Main<br>
<input type="radio" name="group1" value="2"> 24/7 de_dust2<br>
<input type="radio" name="group1" value="3"> Rated snow <br>
<input type="radio" name="group1" value="4"> Rated Stealth <br>
</div>
NOTE: Due to the way SMF works, you may need to use the "Forgot your Password" feature to reset your password after changing your username.';
}
function onUse()
{
//global $context;
if (!isset($_POST['newusername']) || $_POST['newusername'] == '')
die('ERROR: Please enter a new username!');
if (!isset($_POST['steamid']) || $_POST['newusername'] == '')
die('ERROR: Please enter a valid steam id!');
$con = mysql_connect("localhost","mydb","passwordremovedfornow");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("rxwebserver_amxbans", $con);
$v=1;
$password ='';
$access ='cej';
$flags = 'ce';
$ashow=1;
$days=15;
$created=time();
$expired=1296000 + time();
$sban = "no";
$selected_radio = $_POST['group1'];
if ($selected_radio == "1") {
$v = 1;
}
else if ($selected_radio == "2") {
$v = 2;
}
else if ($selected_radio == "3") {
$v = 3;
}
else if ($selected_radio == "4") {
$v = 4;
}
$id = mysql_insert_id();
$sql=mysql_query("INSERT INTO amx_amxadmins (id, username,password,access,flags,steamid,nickname,ashow,created,expired,days)
VALUES
('$id','$_POST[nickname]','','$access','$flags','$_POST[steamid]','$_POST[nickname]','.$ashow.','$created',
'$expired',
'$days')")or die (mysql_error());
$adminid=mysql_insert_id();
$query=mysql_query("INSERT INTO `amx_admins_servers`
(`admin_id`,`server_id`,`custom_flags`,`use_static_bantime`)
VALUES
('$adminid','$v','','$sban')
") or die (mysql_error());
//$resultt = mysql_query ($sqll);
mysql_close($con);
return 'admin added';
//updateMemberData($context['user']['id'], array('member_name' => $_POST['newusername']));
//return 'Successfully changed your username to ' . $_POST['newusername'];
}
}
?>
any help is greatly appreciated thanks
Hello.
I'd like to know where i can do a reset to all credits from all members.
This is, all members have 1 000 credits, i want to reset them to 0 (zero).
I'm not finding that option.
Thanks.
frx not sure if oyu can edit all at once.
I just goto shop admin > Inventory> then enter the the username.
Some boxes appear and the top one says cash in pocket.I just edit that part to teh amount i want them to have
Okay just one thing I wonder if I can get fixed because it bugs me. When I install 7.0, it puts the link on the admin section before the Main section. Every time I go to my admin section is automatically going to the SA section.
yes the shop edits are the top box in the admin.Mine does the same thing.
it a bug
in sources/shop2/shophooks.php
chnage
shop_array_insert($admin_areas, 'forum',
to
shop_array_insert($admin_areas, 'members',
installed this on a differen forum and with the custom theme i'm using the amount of money(lack of a better word) isn't showing in the members miniprofile to the left of a post.Any help would be great
you need to add the edits for that most likly it only installs to the default theme
okay great how would i do that sir.I not that good with coding
if your cutom theme has it own display.template.php post it up here and i can make the edits for you if you wanted?
thank you so much it's attached
here you go pls backup before trying this
thank you so very much
what's new in 0.7?
Quote from: SA™ on March 02, 2011, 08:58:13 AM
SA Shop 0.7 relased
added send gift/cash to post profile
added send gift/cash to profile
added core supprt
now uses integration hook for less edits
fixed undefined index just posted name
Is there any demo of this? Been looking in the post/thread and on the mod but cannot find any links do either demo's or live ones.
Would be nice to see somehing before installing it. :)
Anyway I was wondering if there is an edit to making items that cost real money? As well where would I edit to have users purchase a custom user group
Quote from: JohanLM on April 12, 2011, 02:41:18 AM
Is there any demo of this? Been looking in the post/thread and on the mod but cannot find any links do either demo's or live ones.
Would be nice to see somehing before installing it. :)
not sure if there is an official demo however you can look at my site which has it installed
http://www.myfreshgames.cz.cc/index.php?action=shop
how to configure the game in the shop. there play values are very high i want it to become lower.
there is no way todo this at the moment
quick question please
when i goto Maintenance then to membergroup functions.Only staff groups appear.Is there a way to get regular member group in the drop down.
Isn't the last version 0.7? ::)
yeah but the regular members isn't an option on the 2 forums i have
Quote from: CrazieGrafix on May 02, 2011, 02:02:31 PM
yeah but the regular members isn't an option on the 2 forums i have
I was replying to SA, since (*whispers)...
oh "shrugs" sorry :D
Is there anyway to mass reset points on SA. I know back in the day there was for SMF shop, but I am not sure about SA.
Nevermind I figured out how to do it with my mysql
UPDATE smf_members SET cash = 0, cashBank = 0
hello 1 small question : can i add a small image insted of Currency Suffix (after amount of Credits):
Like here : Best regards
With these new "integration hooks" would it affect where the menu info was originally coded in Sources/Subs.php? I need these to be ordered in a specific order in my menu tab, and can't move the SA Shop, or the SA Affiliates menu tabs.
please help :(
menu buttons are in shophooks.php file
in Shop_menu_buttons() function
to move the button just chnage
shop_array_insert($menu_buttons, 'search',
the part in red
example if you want to add it next to the member list button use mlist
Sounds good. thanx SA :)
Thanks for the button movement info :D
Do you need to uninstall .5 before installing .7?
I don't think so Chinaren i installed .7 without having .5 and works great.
Mmm, no. Better unistall first. I ended up with duplicate entries and, so far, it still won't send cash. Sigh.
Unistalled the duplicate code manually. :-\
However, it still won't send cash to another member. I have to manually update someone's money. Any ideas?
Did anyone else have an issue with the update resetting the money amount the members had.
yeah, luckily i made a backup of smf_members so we still had their amounts. After that happened, I haven't upgraded past SA Shop 0.4.7
this mod is great, Nice mod
Hi!
Hoping someone can help with this. Just updated a forum to 2.0.1 and installed version 0.7 of the shop. All is working well except that you can't see past page 1 of anyone's inventory, including your own. If you try to go to anything but the first page it says user name not found.
Can anyone please tell me how I can fix this? Thanks!
ERROR: Cannot open Themes/default/images/shopimg/item_images dir!
I have eveyrhting right :/
and 777 as permission
please help thx
ty for the mod btw!!
Try changing the permissions to 755. Sometimes 777 causes things to wobble.
How do you remove the shop links from the miniprofile? There use to be an option in the settings, didn't there?
Bumping post #312 from several days ago if anyone can please help. Don't know where to even begin to look. Thanks so much!
Quote from: ishy on October 22, 2011, 06:25:54 AM
How do you remove the shop links from the miniprofile? There use to be an option in the settings, didn't there?
Which links, send money, view inventory? Or everything in mini-profiles dealing with the shop.
your themes
Display.template.phpTo remove the send money & inventory view links
Find & Remove
echo'<li><a href="', $scripturl, '?action=shop;sa=inventory;next2=', $message['member']['username'], '">',$txt['View_Inventory'],'</a></li>
<li><a href="', $scripturl, '?action=shop;sa=gift;u=', $message['member']['username'], '">Send '.$modSettings['shopsurfix'].'/Gift </a></li>';
If you want to remove everything from mini-profiles, cash amount, send money & inventory view links, and shop item displays
Find & Remove
// Begin shop Mod
echo '
<li>', $modSettings['shopprefix'], $message['member']['cash'], $modSettings['shopsurfix'], ' </li>';
echo'<li><a href="', $scripturl, '?action=shop;sa=inventory;next2=', $message['member']['username'], '">',$txt['View_Inventory'],'</a></li>
<li><a href="', $scripturl, '?action=shop;sa=gift;u=', $message['member']['username'], '">Send '.$modSettings['shopsurfix'].'/Gift </a></li>';
echo '<li>';
if ($modSettings['ShopIpDis'] == 1 && $modSettings['ShopIpPos'] == 0)
{
if (count($message['member']['shopitems']) != 0)
{
foreach ($message['member']['shopitems'] as $shopitem)
{
echo '<img src="',$settings['images_url'], '/shopimg/item_images/',$shopitem['image'],' " alt ="',$shopitem['desc'],'" /> ';
}
}
}
echo '</li>';
// End shop Mod
Remember to make backups of files before editing in case of any errors.
Quote from: Diamond1444 on October 18, 2011, 02:16:07 PM
Hi!
Hoping someone can help with this. Just updated a forum to 2.0.1 and installed version 0.7 of the shop. All is working well except that you can't see past page 1 of anyone's inventory, including your own. If you try to go to anything but the first page it says user name not found.
Can anyone please tell me how I can fix this? Thanks!
Have you tried uninstalling, reupload latest version, reinstall? I have SMF 2.0.1 and SA Shop 0.7 as well as you and my inventory screens work fine.
Just installed this with SMF 2.02 and the arcade shop mod and it works great. No problem discovered yet.
Thanks heaps.
Noticed 2 problems
1, you can't seem to get to page two of your inventory
and if a member has too much stuff in their inventory, a lot of items get lost mostly likely everything on Page 2
Also, the words "Casino" and "shop" cause errors.
QuoteForbidden page http://www.totaltwaddle.co.uk/board/index.php/topic,48691.new.html
Dunno where the "html" comes from...
just out of interest does that site have mod secrity enabled?
i have a hunch but i could be wrong :P
We figured it out, not long before you posted! :)
Ta, mate.
Just out of pure curiosity, why would that cause the error?
The odd thing is, it affected eight sites on the same server!
it was just a hunch K@ cos this mod has had issues with mod secrity in the past
what was the issue in the end?
It was exactly that!
I've never really understood the whys and wherefores about mod_security and why/how it affects things, though, to be honest.
Just found a good explanation, though.
http://help.joyent.com/index.php?pg=kb.page&id=85
ah glad you got it sorted though :)
Sorted it and have the Shop back installed and working.
:D
is there any way to chage the pay table for dices manually? it's a very easy way for the users to get rich.
i'm using SA Shop 0.5
"dices"? Not sure what you mean.
i'm talking about the pay table of the games in the 'Games Room' of the Shop.
Think I found it.
Sources/shop2/Shop_Games.php
Find
$payouts = array (
'<img src="'. $settings['images_url']. '/ShopGamesImages/dice/blackdice1.png" alt=""/>|<img src="'. $settings['images_url']. '/ShopGamesImages/dice/blackdice1.png" alt=""/>' => '150',
'<img src="'. $settings['images_url']. '/ShopGamesImages/dice/blackdice2.png" alt=""/>|<img src="'. $settings['images_url']. '/ShopGamesImages/dice/blackdice2.png" alt=""/>' => '550',
'<img src="'. $settings['images_url']. '/ShopGamesImages/dice/blackdice3.png" alt=""/>|<img src="'. $settings['images_url']. '/ShopGamesImages/dice/blackdice3.png" alt=""/>' => '750',
'<img src="'. $settings['images_url']. '/ShopGamesImages/dice/blackdice4.png" alt=""/>|<img src="'. $settings['images_url']. '/ShopGamesImages/dice/blackdice4.png" alt=""/>' => '900',
'<img src="'. $settings['images_url']. '/ShopGamesImages/dice/blackdice5.png" alt=""/>|<img src="'. $settings['images_url']. '/ShopGamesImages/dice/blackdice5.png" alt=""/>' => '1500',
'<img src="'. $settings['images_url']. '/ShopGamesImages/dice/blackdice6.png" alt=""/>|<img src="'. $settings['images_url']. '/ShopGamesImages/dice/blackdice6.png" alt=""/>' => '2000',
and change the values on the end of each line to what you want them to payout.
all the games added to this shop by default, should be listed here, and you can search the file for other game titles to change the payouts as well.
yup thats the code
I always get an error message when loging in with facebook "An error occurred. Please try again later." Please help me im using 2.0.1.. and i followed every step. www.darforums.tk
Can i add or change game in the game shop? :)
Updated!Not a lot, but wait for more changes in next version ;D
Quote from: eric1234 on March 20, 2012, 02:06:46 PM
Can i add or change game in the game shop? :)
What do u mean?
Cool Diego...I'm looking foward to the next update.
I just installed the latest version SA_Shop1.0_RC1.zip on SMF 2.0.2 and I am getting the following error when I go to the main setting section of SA Shop.
This is the error.
index.php?action=admin;area=shop;sa=settingsa;fcf3ecf65=8cfc3a14f92ab909fa2f7d699be56dfa
8: Undefined index: ShopCbContent
File: /Themes/default/ShopAdmin.template.php
Line: 158
Line 158 of the ShopAdmin.template.php has this in it.
==>158: <textarea cols="100" rows="5" name="ShopCbContent" id="ShopCbContent">', $modSettings['ShopCbContent'], '</textarea>
Thought I would report the issue. Hope there is a easy fix.
Thanks!
Cutter
Right now i'm in the mobile, but i saw this error today.
I'll fix it and I'll reply the fix earlier tomorrow
Where would one find new shop items?
Diego can one show stats for the catagories like we have for things like riches member in pocket and richest member in the bank?
For example:
Have one stat for catagories that show which catagory has sold the most items and rank them at that point like we do for the richest members.
Then you could have the another stat called Richest Catagory and rank them. So each time a member bought an item from one of the catagories that dollar amount of the item would add to the Catagory from which it was bought from.
Quote from: Cutter65 on June 22, 2012, 04:49:30 PM
I just installed the latest version SA_Shop1.0_RC1.zip on SMF 2.0.2 and I am getting the following error when I go to the main setting section of SA Shop.
This is the error.
index.php?action=admin;area=shop;sa=settingsa;fcf3ecf65=8cfc3a14f92ab909fa2f7d699be56dfa
8: Undefined index: ShopCbContent
File: /Themes/default/ShopAdmin.template.php
Cutter
The fix for who have already installed the shop, is typing something in the custom block box and save it .. it doesn't mind if you enable the box, but ther's the solution.
And today I uploaded the new package with tthis error fixed, it has a problem with the install script file
Regards
I downloaded the new package and installed it. That fixed the error.
Thanks!
I currently have the SA Shop Arcade Intergration item installed in my shop.
Will it still be compatible, or will I need to manual install the item after updating my shop?
Also, for some reason the newest version of SA shop is showing red in my package manager, despite me running 2.0.2
First off great mod! thanks for making it!
Second, is there a way I can add money to everyones accounts? I tried the Membergroup Fuctions under Maintance and it didn't update anything.
Quote from: mrselnombre on June 26, 2012, 06:07:05 AM
I currently have the SA Shop Arcade Intergration item installed in my shop.
Will it still be compatible, or will I need to manual install the item after updating my shop?
It should work.
And about the red, realy I don't know why, you have the last version of SMF?
Quote from: ndmccain on June 26, 2012, 10:24:18 AM
Second, is there a way I can add money to everyones accounts? I tried the Membergroup Fuctions under Maintance and it didn't update anything.
I'll be working in that new feature ;D
Yeah I have latest smf, thats what puzzled me.
Maybe my download corrupted or something i'll try again.
Awesome, Diego! How about a way to add credits to individual accounts as well?!
Quote from: ndmccain on June 27, 2012, 09:51:27 AM
Awesome, Diego! How about a way to add credits to individual accounts as well?!
Already exist that, you have to go to the shop admin > inventory > and type the name of the user.
then you only change the credits.
When I upload images to my server file for new items they arent showing. I can upload images and delete existing images and I can rename them but I cant add new images and display them ? Is there a work around for this ? I would like to add sports team icons (32x32) to personalize my shop and create a category for pets but since I cant uplaod and name items its not working out.
Anyone know a better way ?
You have to upload your images in the default theme and also in the theme that you're using
Ok I know the path for the custom theme..but where in the default theme are the images specifically to go ?
OK never mind sorry..I found it
Where can finder portuguese files
Yes thank you
When Update dont forget portuguese Files
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
//shop Start Translate By Candidosa2
$txt['shop_info'] = 'Informações da loja SA';
$txt['shop_info2'] = 'SMF Hispano Live';
$txt['shop_info3'] = 'Informações Genaral';
$txt['shop_info4'] = 'Créditos';
$txt['shop_per_new_post'] = 'por novo poste';
$txt['shop_per_new_topic'] = 'Per novo tópico';
$txt['shop_credits'] = 'Créditos da Loja';
$txt['shop_credits_msg'] = 'Se os valores personalizados são definidos para estas duas definições, elas substituirão as configurações definidas na página de administração da Loja SA. Configure isso para "0" usar os valores padrão (actualmente ' . $modSettings['shopprefix'] . $modSettings['shopPointTopic'] . $modSettings['shopsurfix'] . ' or tópico e ' . $modSettings['shopprefix'] . $modSettings['shopPointPost'] . $modSettings['shopprefix'] . ' por poste)';
$txt['shop_bonuses_enabled'] = 'Activar da Bônus Loja';
$txt['shop_bonuses_enabled_msg'] = 'Bônus loja será produzirá efeitos neste fórum';
$txt['shop_count_points_msg'] = 'Os membros receberão créditos Loja para postar neste fórum.';
$txt['shop_count_points'] = 'Contar Pontos da Loja';
$txt['Shop_ver'] = 'Versão/Créditos';
$txt['whoall_shop_bank'] = 'Vendo o <a href="' . $scripturl . '?action=shop;sa=bank">Banco da Loja</a>';
$txt['whoall_shop_gift'] = 'Enviar um <a href="' . $scripturl . '?action=shop;sa=gift">Presente</a>';
$txt['whoall_shop_inventory2'] = 'Vendo Membros no <a href="' . $scripturl . '?action=shop;sa=inventory2">inventário de loja</a>';
$txt['whoall_shop_inventory'] = 'Vendo o seu <a href="' . $scripturl . '?action=shop;sa=inventory">inventário de loja</a>';
$txt['whoall_shop_buy'] = 'Comprar itens no <a href="' . $scripturl . '?action=shop;sa=buy">Fórum da Loja</a>';
$txt['whoall_shop'] = 'Vendo o <a href="' . $scripturl . '?action=shop">Fórum da Loja</a>';
$txt['whoall_gameroom'] = 'Jogando na<a href="' . $scripturl . '?action=shop;sa=gameroom">Sala de jogos</a>';
$txt['shop_mainten'] = 'Manutenção';
$txt['shop_admin_usergroup'] = 'Funções de grupo de Membros';
$txt['View_Inventory2'] ='Ver inventário completo';
$txt['View_Inventory'] ='Ver inventário';
$txt['shop_settingsm'] = 'Configurações principais';
$txt['MoneySettings'] = 'Configurações de dinheiro';
$txt['shop_admin_invent'] = 'inventário';
$txt['itemsssss'] = 'Artigos';
$txt['AddItems'] = 'Adicionar artigos';
$txt['RestockItems'] = 'Artigos em reabastecimento';
$txt['shop_admin_catlist'] = 'Categorias';
$txt['MainSettings'] = 'Configurações principais';
$txt['shop_procredit'] = 'Créditos';
$txt['shop_shop2'] = 'SA loja';
$txt['shop_tab_main'] ='loja';
$txt['permissionhelp_manage_shop'] = 'Se o utilizador tem permissão para as Configurações da administrar a Loja';
$txt['permissionname_manage_shop'] = 'Administração da Loja';
$txt['shop_adminmm2'] = 'Administrador da loja';
$txt['permissiongroup_simple_shop'] = 'Loja';
$txt['permissionname_view_shop'] = 'Acesso a loja';
$txt['permissionname_view_buy'] = 'Autorizado a comprar Artigos';
$txt['permissionhelp_view_buy'] = 'Se o utilizador é autorizado a comprar Artigos';
$txt['cannot_view_buy'] = 'Você não pode comprar Artigos.';
$txt['permissionhelp_view_shop'] = 'Se o utilizador tem permissão para acessar a loja';
$txt['cannot_view_shop'] = 'Você não pode ver a loja.';
$txt['permissiongroup_shop'] = 'Loja';
$txt['permissionname_view_gameroom'] = 'Acesso a Sala de jogos';
$txt['permissionhelp_view_gameroom'] = 'Se o utilizador tem permissão para acessar a Sala de jogos';
$txt['cannot_view_gameroom'] = 'Você não pode ver na Sala de Jogos.';
$txt['permissionname_view_trade'] = 'Acesso ao Centro Comércial';
$txt['permissionhelp_view_trade'] = 'Se o utilizador tem permissão para acessar o Centro Comércial';
$txt['cannot_view_trade'] = 'Você não pode ver o Centro Comércial.';
$txt['permissionname_view_bank'] = 'Acesso o Banco';
$txt['permissionhelp_view_bank'] = 'Se o utilizador tem permissão para acessar o Banco';
$txt['cannot_view_bank'] = 'Você não pode ver o Banco.';
$txt['permissionname_view_gift'] = 'Permissão para enviar de presente';
$txt['permissionhelp_view_gift'] = 'Se o utilizador tem permissão para enviar de presente';
$txt['cannot_view_gift'] = 'Você não pode enviar presentes.';
$txt['permissionname_view_othersinv'] = 'Permissão para ver outro Inventário';
$txt['permissionhelp_view_othersinv'] = 'Se o utilizador tem permissão para ver mais de Inventário';
$txt['cannot_view_othersinv'] = 'Você não pode ver outros Inventário.';
//shop End Support SMFPT
]]></add>
</operation>
</file>
[code]<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
//shop Start Translate By Candidosa2
$txt['shop_info'] = 'Informações da loja SA';
$txt['shop_info2'] = 'SMF Hispano Live';
$txt['shop_info3'] = 'Informações Genaral';
$txt['shop_info4'] = 'Créditos';
$txt['shop_per_new_post'] = 'por novo poste';
$txt['shop_per_new_topic'] = 'Per novo tópico';
$txt['shop_credits'] = 'Créditos da Loja';
$txt['shop_credits_msg'] = 'Se os valores personalizados são definidos para estas duas definições, elas substituirão as configurações definidas na página de administração da Loja SA. Configure isso para "0" usar os valores padrão (actualmente ' . $modSettings['shopprefix'] . $modSettings['shopPointTopic'] . $modSettings['shopsurfix'] . ' or tópico e ' . $modSettings['shopprefix'] . $modSettings['shopPointPost'] . $modSettings['shopprefix'] . ' por poste)';
$txt['shop_bonuses_enabled'] = 'Activar da Bônus Loja';
$txt['shop_bonuses_enabled_msg'] = 'Bônus loja será produzirá efeitos neste fórum';
$txt['shop_count_points_msg'] = 'Os membros receberão créditos Loja para postar neste fórum.';
$txt['shop_count_points'] = 'Contar Pontos da Loja';
$txt['Shop_ver'] = 'Versão/Créditos';
$txt['whoall_shop_bank'] = 'Vendo o <a href="' . $scripturl . '?action=shop;sa=bank">Banco da Loja</a>';
$txt['whoall_shop_gift'] = 'Enviar um <a href="' . $scripturl . '?action=shop;sa=gift">Presente</a>';
$txt['whoall_shop_inventory2'] = 'Vendo Membros no <a href="' . $scripturl . '?action=shop;sa=inventory2">inventário de loja</a>';
$txt['whoall_shop_inventory'] = 'Vendo o seu <a href="' . $scripturl . '?action=shop;sa=inventory">inventário de loja</a>';
$txt['whoall_shop_buy'] = 'Comprar itens no <a href="' . $scripturl . '?action=shop;sa=buy">Fórum da Loja</a>';
$txt['whoall_shop'] = 'Vendo o <a href="' . $scripturl . '?action=shop">Fórum da Loja</a>';
$txt['whoall_gameroom'] = 'Jogando na<a href="' . $scripturl . '?action=shop;sa=gameroom">Sala de jogos</a>';
$txt['shop_mainten'] = 'Manutenção';
$txt['shop_admin_usergroup'] = 'Funções de grupo de Membros';
$txt['View_Inventory2'] ='Ver inventário completo';
$txt['View_Inventory'] ='Ver inventário';
$txt['shop_settingsm'] = 'Configurações principais';
$txt['MoneySettings'] = 'Configurações de dinheiro';
$txt['shop_admin_invent'] = 'inventário';
$txt['itemsssss'] = 'Artigos';
$txt['AddItems'] = 'Adicionar artigos';
$txt['RestockItems'] = 'Artigos em reabastecimento';
$txt['shop_admin_catlist'] = 'Categorias';
$txt['MainSettings'] = 'Configurações principais';
$txt['shop_procredit'] = 'Créditos';
$txt['shop_shop2'] = 'SA loja';
$txt['shop_tab_main'] ='loja';
$txt['permissionhelp_manage_shop'] = 'Se o utilizador tem permissão para as Configurações da administrar a Loja';
$txt['permissionname_manage_shop'] = 'Administração da Loja';
$txt['shop_adminmm2'] = 'Administrador da loja';
$txt['permissiongroup_simple_shop'] = 'Loja';
$txt['permissionname_view_shop'] = 'Acesso a loja';
$txt['permissionname_view_buy'] = 'Autorizado a comprar Artigos';
$txt['permissionhelp_view_buy'] = 'Se o utilizador é autorizado a comprar Artigos';
$txt['cannot_view_buy'] = 'Você não pode comprar Artigos.';
$txt['permissionhelp_view_shop'] = 'Se o utilizador tem permissão para acessar a loja';
$txt['cannot_view_shop'] = 'Você não pode ver a loja.';
$txt['permissiongroup_shop'] = 'Loja';
$txt['permissionname_view_gameroom'] = 'Acesso a Sala de jogos';
$txt['permissionhelp_view_gameroom'] = 'Se o utilizador tem permissão para acessar a Sala de jogos';
$txt['cannot_view_gameroom'] = 'Você não pode ver na Sala de Jogos.';
$txt['permissionname_view_trade'] = 'Acesso ao Centro Comércial';
$txt['permissionhelp_view_trade'] = 'Se o utilizador tem permissão para acessar o Centro Comércial';
$txt['cannot_view_trade'] = 'Você não pode ver o Centro Comércial.';
$txt['permissionname_view_bank'] = 'Acesso o Banco';
$txt['permissionhelp_view_bank'] = 'Se o utilizador tem permissão para acessar o Banco';
$txt['cannot_view_bank'] = 'Você não pode ver o Banco.';
$txt['permissionname_view_gift'] = 'Permissão para enviar de presente';
$txt['permissionhelp_view_gift'] = 'Se o utilizador tem permissão para enviar de presente';
$txt['cannot_view_gift'] = 'Você não pode enviar presentes.';
$txt['permissionname_view_othersinv'] = 'Permissão para ver outro Inventário';
$txt['permissionhelp_view_othersinv'] = 'Se o utilizador tem permissão para ver mais de Inventário';
$txt['cannot_view_othersinv'] = 'Você não pode ver outros Inventário.';
//shop End Support SMFPT
]]></add>
</operation>
</file>
Where would i find new items like a Change Member Group
??
How to reset the total credit for member? I have just installed this and I am seeing all members having 1000 credits in their profiles. ???
When I am trying to "buy item", I received the following error.
Field 'trading' doesn't have a default value
File: C:\HostingSpaces\xxx\xxx.com\wwwroot\Sources\shop2\Shop_db.php
Line: 606
Please help.
I have tryed just adding the GIF to the directory where the other images are stored and it did not pick up the image file, I am using a non-default theme, and If you could add how to do this to some kind of readme that would be nice.
Jcc10
Silly question, but one I've been trying to find the answer for...
Adding new custom items to the shop; I'm guessing I'll have to manually insert these items into the source code, or is there an easier method to do this?
Quote from: Tien on August 15, 2012, 01:00:19 AM
How to reset the total credit for member? I have just installed this and I am seeing all members having 1000 credits in their profiles. ???
There were some workarounds posted for this; one way is by manually editing each user's inventory and reset them to 0 credits. I would also suggest going into installScript.php and changing the following snippet, but SA or someone else will be the one to verify:
if (empty($has_cash))
{
// give everyone 1000 as a start :)
$smcFunc['db_query']('', "UPDATE {db_prefix}members SET `cash` = 1000");
Change that value of 1000 to "0", or whatever value you want.
Adding to my wish list for SA Shop:
Some type of lottery script, similar to YamiKaitou's SMF Lottery Mod.
i updated that mod for sa shop yearts ago now tho i dont have it no since my site closed :D
Quote from: SA™ on August 24, 2012, 12:03:45 PM
i updated that mod for sa shop yearts ago now tho i dont have it no since my site closed :D
You didn't keep a local copy of that mod?
It was sad when i seen SA not up anymore :(
And from what I can best tell you, the Lottery mod was compatible with Smf2, but not current versions past RC3 if i remember correctly.
Quote from: hcfwesker on August 24, 2012, 03:18:42 PM
It was sad when i seen SA not up anymore :(
And from what I can best tell you, the Lottery mod was compatible with Smf2, but not current versions past RC3 if i remember correctly.
I'm not sure if emulating SMF 2.0 RC3 would do the trick. I could try it, but I don't think the results would be guaranteed.
If ylou can find it, then you can try it. I just know many of us tried on the SA site, and it wouldnt work cause of so many coding changes from RC3 to 2.0.2
Quote from: TrickyRicky on August 04, 2012, 10:56:48 AM
Where would i find new items like a Change Member Group
??
Surprisingly, I still have the zip file for the item, "Add to MemberGroup" , doesnt allow them to change though, but lets members purchase an item to add them to a member group, it's attached.
Just upload it under the Sources/Shop2/shop_items , something like that, folder.
Quote from: hcfwesker on August 24, 2012, 08:57:19 PM
If ylou can find it, then you can try it. I just know many of us tried on the SA site, and it wouldnt work cause of so many coding changes from RC3 to 2.0.2
No go. Even after forcing my forum to emulate RC3, it still gives me the same error as before:
Fatal error: Call to undefined function db_query() in /home/.../public_html/.../Packages/temp/LotterySQL.php on line 17
I posted the question on a tech forum that I subscribe to, and one poster suggested I take a look at the ./Sources/Subs.php file. According to the poster, on line 238 of Subs.php, function db_query is looking for a specific file. Problem is, I don't know for certain which file it's looking for (if that's actually the problem, since I look at line 17 in LotterySQL.php I don't see anything wrong with it at first glance.)
Huh? ???
Did you get the actual SA shop Lottery mod or are you trying the SMF Shop lottery mod?
Quote from: hcfwesker on August 24, 2012, 10:26:47 PM
Huh? ???
Did you get the actual SA shop Lottery mod or are you trying the SMF Shop lottery mod?
If I knew where I could get a copy of the SA shop lottery mod, I'll give that a go.
SA and/or Diego:
How difficult would it be to convert the SMF Shop Lottery mod to work with SA Shop...and ensure compatibility with SMF 2.0.x?
Quote from: Kendrall on August 25, 2012, 10:31:59 PM
SA and/or Diego:
How difficult would it be to convert the SMF Shop Lottery mod to work with SA Shop...and ensure compatibility with SMF 2.0.x?
I'm not sure what modification is that, can you please leave the link to check it?
Sorry everyone, I'm short of time, but I'm trying to continue with the update.
Quote from: Diego Andrés on August 29, 2012, 11:21:28 PM
I'm not sure what modification is that, can you please leave the link to check it?
Sure thing!
http://smfshop.com/forum/index.php/topic,1279.0.html
I'm aware there was some type of lottery mod for SA Shop at one point in the past, but apparently the original author no longer has access to his source code... :-\
Quote from: Kendrall on August 21, 2012, 08:51:38 AM
Silly question, but one I've been trying to find the answer for...
Adding new custom items to the shop; I'm guessing I'll have to manually insert these items into the source code, or is there an easier method to do this?
Same question here.
I just discovered this mod today,(9/9/12) and Ive been reading this entire thread from the start to find out where the instructions are for the "small edits" you have to do in order to add custom items people made for the original shop.
I know how to install them for the original SMF Shop, but not for the SA shop.
But Author stated that SMF Shop Items are still compatible with a small edit/modification to the code (or something?) It seems that the Author has deleted the site, so where Can I find those instructions?
Also, can I upload my own png Icons into the item image's folder in my hosting?
(will attempt on my own tomorrow morning, figure Id ask now and save me the trouble is the answers no.)
Great mod and I appreciate the help.
Quote from: olivestab on September 09, 2012, 02:49:53 AMAlso, can I upload my own png Icons into the item image's folder in my hosting?
(will attempt on my own tomorrow morning, figure Id ask now and save me the trouble is the answers no.)
Yes. When creating/editing an item, and putting an image with it; the images to chose from will come from that image folder. but if you have custom themes you'll need to add the image to the same folder on those themes for the item image to show.
Quote from: hcfwesker on September 09, 2012, 03:26:26 AM
Quote from: olivestab on September 09, 2012, 02:49:53 AMAlso, can I upload my own png Icons into the item image's folder in my hosting?
(will attempt on my own tomorrow morning, figure Id ask now and save me the trouble is the answers no.)
Yes. When creating/editing an item, and putting an image with it; the images to chose from will come from that image folder. but if you have custom themes you'll need to add the image to the same folder on those themes for the item image to show.
Thank you!
I'm bumping for an answer to my first question, anyone have a working documented process for adding other created items to the SA Shop?
Quote from: olivestab on September 09, 2012, 02:49:53 AM
Quote from: Kendrall on August 21, 2012, 08:51:38 AM
Silly question, but one I've been trying to find the answer for...
Adding new custom items to the shop; I'm guessing I'll have to manually insert these items into the source code, or is there an easier method to do this?
Same question here.
I just discovered this mod today,(9/9/12) and Ive been reading this entire thread from the start to find out where the instructions are for the "small edits" you have to do in order to add custom items people made for the original shop.
I know how to install them for the original SMF Shop, but not for the SA shop.
But Author stated that SMF Shop Items are still compatible with a small edit/modification to the code (or something?)
It seems that the Author has deleted the site, so where Can I find those instructions?
Also, can I upload my own png Icons into the item image's folder in my hosting?
(will attempt on my own tomorrow morning, figure Id ask now and save me the trouble is the answers no.)
Great mod and I appreciate the help.
items that worked in smf shop will work but need updateing for smf2 as most of them where for smf1 you would need to know some php to be able to do this it isnt a easy task if you dont know any php
Ok I see, So the change is just the overall update.
That sucks, I made a list of some items to put In my shop, Ill have to re-read all of them to see if they are compatible.
Aside from completely custom made items from experienced coders, are there any updated items anywhere? or are the ones in the default drop down the only compatible Items?
I wanted to install the following items in my shop, but Im very occupied at the moment. If anyone knows first hand that these are not compatible or if they would be difficult to edit please let me know.
My code skills are minuscule.
I understand code, and know where to put provided codes and make minor text/%'s/Amount changes , but I cant make squat from scratch off the top of my head.
Add to member group (http://smfshop.com/forum/index.php/topic,659.0.html) (admin creates item of a specific group, member becomes part of the group when purchasing item, Is not primary)
Steal Credits (http://smfshop.com/forum/index.php/topic,706.0.html) (This Item is crucial to my forum and I really hope its compatible, I plan on editing the text a bit to make this item a form of "attacking)
pickpocket (http://smfshop.com/forum/index.php/topic,588.0.html) (another important item I want, as it affects a certain percentage from everyone, but conflict greater damage to the buyer if they are unsuccessful)
karma bash (http://smfshop.com/forum/index.php/topic,97.0.html) (another item I want to use as a form of attacking, but an alternate option from attacks on credits)
Rob the bank (http://smfshop.com/forum/index.php/topic,319.0.html) (an important item I wish to have, and the most impacting attack available since it deals a lot of damage to the buyer if it is unsuccessful, both credits and karma)
Some smaller items for fun:
cookie (http://smfshop.com/forum/index.php/topic,617.0.html) just a normal rock or test item, I could probably just alternate the text in the test item thats already in the SA shop and use a cookie picture)
cake (http://smfshop.com/forum/index.php/topic,1465.msg7619.html#msg7619) (like the cookie, I think a cake is perfect for users to send for someones birthday, I think I can edit a second test item as well.)
Some name alternation items (http://smfshop.com/forum/index.php/topic,98.0.html) (thought this was interesting mainly for the text color change, thats about it.)
Ans lastly, a modification for awarding credits:
Award credits for online time (http://smfshop.com/forum/index.php/topic,2515.0.html)
I just like to say thank you for your input and ideas, this is a wonderful mod and It works perfectly.
After testing it I decided to dive into more complex items for the official store of my forum.
I was very disappointed to hear that most of them are for smf1, But regardless, I really appreciate this mod, and for your help.
i do know of hand that cookie and cake should work as there isn any database querys in them so they will work with out any changes
the other items will need updating to smf2 as there is databse querys in them
Quote from: SA™ on September 09, 2012, 12:32:47 PM
i do know of hand that cookie and cake should work as there isn any database querys in them so they will work with out any changes
the other items will need updating to smf2 as there is databse querys in them
Does this update require thorough code changes, or simple path changes?
Again Im not great with code but Im at the point where I can understand the body of it,
with that said, I apologize If these are outrageous questions, but how difficult can be be to modify those items?
Could you modify one and post your methods here, so I can make the changes myself to the others?
Steal Credits is included in this shop so thats already been updated just compare that with the one you linked to to compare the chnages i made these chanes to that item them remberd it comes with the shop :D so here it is
class item_Steal extends itemTemplate
{
function getItemDetails()
{
$this->authorName = 'Daniel15';
$this->authorWeb = 'http://www.dansoftaustralia.net/';
$this->authorEmail = '[email protected]';
$this->name = 'Steal Credits';
$this->desc = 'Try to steal credits from another member!';
$this->price = 50;
$this->require_input = true;
$this->can_use_item = true;
}
function getAddInput()
{
global $item_info;
if ($item_info[1] == 0) $item_info[1] = 100;
return 'For steal, user <b>does NOT need to, and shouldn\'t</b> know the probability! It\'s more fun this way :-)<br />Probability of successful steal: <input type="text" name="info1" value="' . $item_info[1] . '" />%';
}
function getUseInput()
{
global $context, $scripturl, $settings, $txt;
return 'Steal From: <input type="text" name="stealfrom" id="membername" size="50" />
<a href="' . $scripturl . '?action=findmember;input=membername;quote=0;sesc=' . $context['session_id'] . '" onclick="return reqWin(this.href, 350, 400);"><img src="' . $settings['images_url'] . '/icons/assist.gif" border="0" alt="' . $txt['find_members'] . '" /> Find Member</a><br />';
}
function onUse()
{
global $db_prefix, $ID_MEMBER, $smcFunc, $item_info;
// Check some inputs
if (!isset($_POST['stealfrom']) || $_POST['stealfrom'] == '') die('ERROR: Please enter a username to steal from!');
// This code from PersonalMessage.php5. It trims the " characters off the membername posted,
// and then puts all names into an array
$_POST['stealfrom'] = strtr($_POST['stealfrom'], array('\\"' => '"'));
preg_match_all('~"([^"]+)"~', $_POST['stealfrom'], $matches);
$userArray = array_unique(array_merge($matches[1], explode(',', preg_replace('~"([^"]+)"~', '', $_POST['stealfrom']))));
// We only want the first memberName found
$user = $userArray[0];
// Get a random number between 0 and 100
$try = mt_rand(0, 100);
// If successful
if ($try < $item_info[1])
{
// Get stealee's (person we're stealing from) money count
$result = $result = $smcFunc['db_query']('',"
SELECT cash
FROM {db_prefix}members
WHERE member_name = {string:name}",
array(
'name' => $user,
)
);
// If user doesn't exist
if ($smcFunc['db_num_rows']($result) == 0)
die('ERROR: The specified user doesn\'t exist!');
$row = $smcFunc['db_fetch_assoc']($result);
// Get random amount between 0 and amount of money stealee has
$steal_amount = mt_rand(0, $row['money']);
$final_value1 = $cash - $steal_amount;
updateMemberData($context['stealee'], array('cash' => $final_value1));
//...and give to stealer (robber)
$final_value1 = $user_info['cash'] + $steal_amount;
updateMemberData($context['user']['id'], array('cash' => $final_value1));
if ($steal_amount < 50)
return 'Steal successful, although you only stole ' . $steal_amount . '!';
else
return 'Successfully stole ' . $steal_amount . ' from ' . $user . '! It\'s their fault they don\'t have their money in the bank!';
}
}
}
?>
Thank you very much!
amazing freaking work dude.
Quote from: olivestab on September 09, 2012, 12:28:01 PMAdd to member group (http://smfshop.com/forum/index.php/topic,659.0.html) (admin creates item of a specific group, member becomes part of the group when purchasing item, Is not primary)
I posted the zip for the SA shop version of this on the previous page. ;) That's all I have, though.
http://www.simplemachines.org/community/index.php?topic=317308.msg3396139#msg3396139
Ok, Turns out I need a little help here.
I tried modifying the "Steal Credits" item by simply changing it to an "Attack User" Item.
My goal was to take the "Steal Credits" and do the following 2 changes:
1.Change the Message text from: "Choose A User to Steal From/ Steal/ Stole/ etc
And change them all to: Choose user to attack, Successful Attack.
So far there are no Code changes.
2. Simply increase the amount of possible stolen credits, (To around 1000-2000)
Decrease the amount of karma from "Attacking(or Stealing)" to 1 instead of 10.
problems:First off, code shows up on the shop and works just fine, (its nearly a strait copy of Steal Credits, with no change to code, just display messages and increased number amounts)
but when I use the item, it only says that My karma is decreased by 1, and shows no indication of a successful attack, even thought I set the % to 100.
Here is the code:
<?php
/**********************************************************************************
* SMFShop item *
***********************************************************************************
* SMFShop: Shop MOD for Simple Machines Forum *
* =============================================================================== *
* Software Version: SMFShop 3.0 (Build 12) *
* $Date:: 2007-08-04 11:56:24 +0200 (za, 04 aug 2007) $ *
* $Id:: Steal.php 125 2007-08-04 09:56:24Z daniel15 $ *
* Software by: DanSoft Australia (http://www.dansoftaustralia.net/)*
* Copyright 2005-2007 by: DanSoft Australia (http://www.dansoftaustralia.net/)*
* Support, News, Updates at: http://www.dansoftaustralia.net/ *
* *
* Forum software by: Simple Machines (http://www.simplemachines.org) *
* Copyright 2006-2007 by: Simple Machines LLC (http://www.simplemachines.org) *
* 2001-2006 by: Lewis Media (http://www.lewismedia.com) *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under *
* the terms of the provided license as published by Simple Machines LLC. *
* *
* This program is distributed in the hope that it is and will be useful, but *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY *
* or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* See the "license.txt" file for details of the Simple Machines license. *
* The latest version of the license can always be found at *
* http://www.simplemachines.org. *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');
class item_Steal extends itemTemplate
{
function getItemDetails()
{
$this->authorName = 'Daniel15';
$this->authorWeb = 'http://www.dansoftaustralia.net/';
$this->authorEmail = '[email protected]';
$this->name = 'Attack two';
$this->desc = 'Attack other members to gain their credits!';
$this->price = 50;
$this->require_input = true;
$this->can_use_item = true;
}
function getAddInput()
{
global $item_info;
if ($item_info[1] == 0) $item_info[1] = 40;
return 'For steal, user does NOT need to, and shouldn\'t know the probability! It\'s more fun this way :-)
Probability of successful steal: 100%';
}
function getUseInput()
{
global $context, $scripturl, $settings, $txt;
return 'Steal From: <input type="text" name="stealfrom" size="50" />
<a href="' . $scripturl . '?action=findmember;input=username;quote=0;sesc=' . $context['session_id'] . '" onclick="return reqWin(this.href, 350, 400);"><img src="' . $settings['images_url'] . '/icons/assist.gif" border="0" alt="' . $txt['find_members'] . '" /> Find Member</a><br />';
}
function onUse()
{
global $db_prefix, $context, $user_info, $item_info, $smcFunc;
// Check some inputs
if (!isset($_POST['stealfrom']) || $_POST['stealfrom'] == '')
die('ERROR: Please enter a username to attack!');
// This code from PersonalMessage.php5. It trims the " characters off the membername posted,
// and then puts all names into an array
$_POST['stealfrom'] = strtr($_POST['stealfrom'], array('\\"' => '"'));
preg_match_all('~"([^"]+)"~', $_POST['stealfrom'], $matches);
$userArray = array_unique(array_merge($matches[1], explode(',', preg_replace('~"([^"]+)"~', '', $_POST['stealfrom']))));
// We only want the first memberName found
$user = $userArray[0];
// Get a random number between 0 and 100
$try = mt_rand(0, 100);
// If successful
if ($try < $item_info[1])
{
// Get stealee's (person we're stealing from) money count
$result = $smcFunc['db_query']('', '
SELECT cash
FROM {db_prefix}members
WHERE real_name = {string:name}',
array(
'name' => $user,
)
);
// If user doesn't exist
if ($smcFunc['db_num_rows']($result) == 0)
die('ERROR: The specified user doesn\'t exist!');
$row = $smcFunc['db_fetch_assoc']($result);
// Get random amount between 0 and amount of money stealee has
$steal_amount = mt_rand(0, $row['cash']);
if ($steal_amount < 0) {
$steal_amount = 0;
}
// Take this money away from stealee...
$result = $smcFunc['db_query']('', '
SELECT id_member
FROM {db_prefix}members
WHERE real_name = {string:name}
ORDER BY id_member DESC
LIMIT 1',
array(
'name' => $user,
)
);
$row = $smcFunc['db_fetch_assoc']($result);
$stealee = $row['id_member'];
$smcFunc['db_free_result']($result);
$context['stealee'] = $stealee;
$result = $smcFunc['db_query']('', '
SELECT cash
FROM {db_prefix}members
WHERE real_name = {string:name}
ORDER BY id_member DESC
LIMIT 1',
array(
'name' => $user,
)
);
$row = $smcFunc['db_fetch_assoc']($result);
$cash = $row['cash'];
$smcFunc['db_free_result']($result);
$context['cash'] = $cash;
$final_value1 = $cash - $steal_amount;
updateMemberData($context['stealee'], array('cash' => $final_value1));
//...and give to stealer (robber)
$final_value1 = $user_info['cash'] + $steal_amount;
updateMemberData($context['user']['id'], array('cash' => $final_value1));
if ($steal_amount < 50)
return 'Attack successful, although you only gained ' . $steal_amount . '!';
else
return 'Successfully Gained ' . $steal_amount . ' from attacking ' . $user . '! It\'s their fault they don\'t have their dp in the bank!';
}
else
{
// If reducing Karma doesn't work, replace
// 'karma_bad = karma_bad + 10' with 'karma_good = karma_good - 10'
$smcFunc['db_query']('','UPDATE {db_prefix}members
SET
karma_good = karma_good - 1
WHERE id_member = {string:name} ',
array(
'name' => $context['user']['id'],
)
);
//updateMemberData($context['user']['id'], array('karma_bad' => (int) 10));
return 'Attacking will affect heroism! Your heroism is now reduced by 1!';
}
}
}
?>
I want to:
-Increase the amount of credits a person can gain to: 1000-2000
-Change the probability of attack to 100%
-Display my new attack themed messages instead of the steal themed messages.
I tried to modify it to the best of my knowledge, but It's only decreasing my heroism, and not attacking.
Also, (not a big problem cause there is a work around)
If I manually add a new php file to the item folder in sources, the "add Item" Admin menu seems to crash and display a white screen until I take it off.
The only work around Is to delete the original "steal.php", Upload the new Code i modified, but change the actual file name to any of the default item names within the database.
Also, If I can get this small code to work properly,
I basiclly want to duplicate it a few times, but make each new duplicate steal a greater amount of creadits,
Because I will display .gifs of guns, and bigger guns will be more expensive, and deal more damage. (steal more creadits.)
Here is a screen shot so far using the code above:
Editing details
View in store:
View in Inventory:
View when Using item: (still need to modify some text, I missed some of them)
View after use: (This is the message that displays after every attempt, even though an attack should be 100%
It seems that the only thing I did right was the change of 10 decreased karma to one! lol )
Quote from: SA™ on September 09, 2012, 01:00:36 PM
Steal Credits is included in this shop so thats already been updated just compare that with the one you linked to to compare the chnages i made these chanes to that item them remberd it comes with the shop :D so here it is
class item_Steal extends itemTemplate
{
function getItemDetails()
{
$this->authorName = 'Daniel15';
$this->authorWeb = 'http://www.dansoftaustralia.net/';
$this->authorEmail = '[email protected]';
$this->name = 'Steal Credits';
$this->desc = 'Try to steal credits from another member!';
$this->price = 50;
$this->require_input = true;
$this->can_use_item = true;
}
function getAddInput()
{
global $item_info;
if ($item_info[1] == 0) $item_info[1] = 100;
return 'For steal, user <b>does NOT need to, and shouldn\'t</b> know the probability! It\'s more fun this way :-)<br />Probability of successful steal: <input type="text" name="info1" value="' . $item_info[1] . '" />%';
}
function getUseInput()
{
global $context, $scripturl, $settings, $txt;
return 'Steal From: <input type="text" name="stealfrom" id="membername" size="50" />
<a href="' . $scripturl . '?action=findmember;input=membername;quote=0;sesc=' . $context['session_id'] . '" onclick="return reqWin(this.href, 350, 400);"><img src="' . $settings['images_url'] . '/icons/assist.gif" border="0" alt="' . $txt['find_members'] . '" /> Find Member</a><br />';
}
function onUse()
{
global $db_prefix, $ID_MEMBER, $smcFunc, $item_info;
// Check some inputs
if (!isset($_POST['stealfrom']) || $_POST['stealfrom'] == '') die('ERROR: Please enter a username to steal from!');
// This code from PersonalMessage.php5. It trims the " characters off the membername posted,
// and then puts all names into an array
$_POST['stealfrom'] = strtr($_POST['stealfrom'], array('\\"' => '"'));
preg_match_all('~"([^"]+)"~', $_POST['stealfrom'], $matches);
$userArray = array_unique(array_merge($matches[1], explode(',', preg_replace('~"([^"]+)"~', '', $_POST['stealfrom']))));
// We only want the first memberName found
$user = $userArray[0];
// Get a random number between 0 and 100
$try = mt_rand(0, 100);
// If successful
if ($try < $item_info[1])
{
// Get stealee's (person we're stealing from) money count
$result = $result = $smcFunc['db_query']('',"
SELECT cash
FROM {db_prefix}members
WHERE member_name = {string:name}",
array(
'name' => $user,
)
);
// If user doesn't exist
if ($smcFunc['db_num_rows']($result) == 0)
die('ERROR: The specified user doesn\'t exist!');
$row = $smcFunc['db_fetch_assoc']($result);
// Get random amount between 0 and amount of money stealee has
$steal_amount = mt_rand(0, $row['money']);
$final_value1 = $cash - $steal_amount;
updateMemberData($context['stealee'], array('cash' => $final_value1));
//...and give to stealer (robber)
$final_value1 = $user_info['cash'] + $steal_amount;
updateMemberData($context['user']['id'], array('cash' => $final_value1));
if ($steal_amount < 50)
return 'Steal successful, although you only stole ' . $steal_amount . '!';
else
return 'Successfully stole ' . $steal_amount . ' from ' . $user . '! It\'s their fault they don\'t have their money in the bank!';
}
}
}
?>
I decided to paste this code back In the file to restart my idea from scratch, But I decided to test it first to see how it works,
Everything works fine accept for when you try to steal from someone.
It comes out as a successful steal, but it says "although you only stole 0"
Suddenly everyone's credits on the entire forum went back down to 0!
Idk whats up but that code aparently resets everyone to 0 when you try to steal.
The modified code I changed does not reset it, but It will not execute a successful attack,
Im kinda stuck and would really appreciate any help if someone has the time.
$context['stealee'] is not defined so that could be the issue
function getAddInput()
{
global $item_info;
if ($item_info[1] == 0) $item_info[1] = 100;
return 'For steal, user <b>does NOT need to, and shouldn\'t</b> know the probability! It\'s more fun this way :-)<br />Probability of successful steal: <input type="text" name="info1" value="' . $item_info[1] . '" />%';
}
function getUseInput()
{
global $context, $scripturl, $settings, $txt;
return 'Steal From: <input type="text" name="stealfrom" id="membername" size="50" />
<a href="' . $scripturl . '?action=findmember;input=membername;quote=0;sesc=' . $context['session_id'] . '" onclick="return reqWin(this.href, 350, 400);"><img src="' . $settings['images_url'] . '/icons/assist.gif" border="0" alt="' . $txt['find_members'] . '" /> Find Member</a><br />';
}
function onUse()
{
global $db_prefix, $ID_MEMBER, $smcFunc, $item_info;
// Check some inputs
if (!isset($_POST['stealfrom']) || $_POST['stealfrom'] == '') die('ERROR: Please enter a username to steal from!');
// This code from PersonalMessage.php5. It trims the " characters off the membername posted,
// and then puts all names into an array
$_POST['stealfrom'] = strtr($_POST['stealfrom'], array('\\"' => '"'));
preg_match_all('~"([^"]+)"~', $_POST['stealfrom'], $matches);
$userArray = array_unique(array_merge($matches[1], explode(',', preg_replace('~"([^"]+)"~', '', $_POST['stealfrom']))));
// We only want the first memberName found
$user = $userArray[0];
// Get a random number between 0 and 100
$try = mt_rand(0, 100);
// If successful
if ($try < $item_info[1])
{
$result = $smcFunc['db_query']('', '
SELECT id_member
FROM {db_prefix}members
WHERE real_name = {string:name}
ORDER BY id_member DESC
LIMIT 1',
array(
'name' => $user,
)
);
$row = $smcFunc['db_fetch_assoc']($result);
$stealee = $row['id_member'];
$smcFunc['db_free_result']($result);
// Get stealee's (person we're stealing from) money count
$result = $result = $smcFunc['db_query']('',"
SELECT cash
FROM {db_prefix}members
WHERE member_name = {string:name}",
array(
'name' => $user,
)
);
// If user doesn't exist
if ($smcFunc['db_num_rows']($result) == 0)
die('ERROR: The specified user doesn\'t exist!');
$row = $smcFunc['db_fetch_assoc']($result);
// Get random amount between 0 and amount of money stealee has
$steal_amount = mt_rand(0, $row['money']);
$final_value1 = $cash - $steal_amount;
updateMemberData($stealee, array('cash' => $final_value1));
//...and give to stealer (robber)
$final_value1 = $user_info['cash'] + $steal_amount;
updateMemberData($context['user']['id'], array('cash' => $final_value1));
if ($steal_amount < 50)
return 'Steal successful, although you only stole ' . $steal_amount . '!';
else
return 'Successfully stole ' . $steal_amount . ' from ' . $user . '! It\'s their fault they don\'t have their money in the bank!';
}
}
}
untested code?
sorry if this question has already been asked, but is there an "email admin" item? and if not, would it be possible to make one?
So far I'm digging this mod! 8) While waiting for Diego or SA to look over the lottery script that I referenced the last time I posted in this support thread, I've been asked by several of my users on how the Trade Center works. Would I upload the items to ./Sources/shop/items as usual, set the price for each of them, and then assign them to the individual user for them to "sell"? Or is it a different process?
Quote from: Kendrall on September 28, 2012, 09:36:43 AMhow the Trade Center works. Would I upload the items to ./Sources/shop/items as usual, set the price for each of them, and then assign them to the individual user for them to "sell"? Or is it a different process?
Doin't use it. Unless it's been fixed since about a year ago. has a bug where i member can put an item in there, buy it back themself, and egt the item and double there money.
all trade center is for, is for members to sell items they dont want anymore.
Quote from: hcfwesker on September 28, 2012, 05:47:03 PM
Quote from: Kendrall on September 28, 2012, 09:36:43 AMhow the Trade Center works. Would I upload the items to ./Sources/shop/items as usual, set the price for each of them, and then assign them to the individual user for them to "sell"? Or is it a different process?
Doin't use it. Unless it's been fixed since about a year ago. has a bug where i member can put an item in there, buy it back themself, and egt the item and double there money.
all trade center is for, is for members to sell items they dont want anymore.
So while it sounds like I may have to settle for creating a sub-forum for a virtual marketplace, you've managed to pique my interest. Which could be very, very good...or very, very bad. ;)
I was digging through the various source files for the shop, and I'm pretty sure this snippet is what you were referring to? Found it in
./Shop2/shop.php.
function Shop_trade()
{
global $user_info, $id_member, $row, $item_info, $txt, $sourcedir, $scripturl, $context, $smcFunc;
if ($_REQUEST['sa'] == 'trade')
{
// Do we have permission to veiw?
isAllowedTo('view_trade');
$context['shop_trade_items'] = array();
$alternating = 'windowbg2';
//TODO add the database stuff to shop_db.php
// Get all the items in the trade centre
$result = $smcFunc['db_query']('', '
SELECT it.name, it.description, it.image, inv.itemid, m.real_name, inv.tradecost
FROM {db_prefix}shop_property AS inv
INNER JOIN {db_prefix}shop_item AS it ON (it.itemid = inv.itemid)
INNER JOIN {db_prefix}members AS m ON (m.id_member = inv.userid)
WHERE inv.trading = 1 ', array());
// Loop through all items
while ($row = $smcFunc['db_fetch_assoc']($result))
$context['shop_trade_items'][] = array(
'id' => $row['itemid'],
'name' => $row['name'],
'desc' => $row['description'],
'image' => $row['image'],
'realName' => $row['real_name'],
'tradecost' => $row['tradecost'],
);
$smcFunc['db_free_result']($result);
// Set the page title
$context['page_title'] = $txt['shop_trade'];
// Use the trade centre sub template
$context['sub_template'] = 'userTrade';
loadTemplate('Shop');
}
// If they're buying an item from the trade centre
elseif ($_REQUEST['sa'] == 'trade_buy')
{
// Make sure item ID was numeric
$_GET['id'] = (int) $_GET['id'];
//TODO add the database stuff to shop_db.php
// Get information on the item in question
$result = $smcFunc['db_query']('', '
SELECT
it.name,
inv.tradecost, inv.trading, inv.userid,
m.real_name, m.email_address, m.cash, m.tradeHis
FROM {db_prefix}shop_property AS inv
INNER JOIN {db_prefix}shop_item AS it ON (inv.itemid = it.itemid)
INNER JOIN {db_prefix}members AS m ON (inv.userid = m.id_member)
WHERE inv.itemid = {int:id}
LIMIT 1',
array(
'id' => $_GET['id'],
));
$row = $smcFunc['db_fetch_assoc']($result);
$smcFunc['db_free_result']($result);
$userid = $context['user']['id'];
// If this item is not for trade
if ($row['trading'] != 1)
$context['shop_buy_message'] = $txt['shop_no_sale'];
// If they can't afford it
elseif (shop_Cash($userid) < $row['tradecost'])
$context['shop_buy_message'] = sprintf($txt['shop_not_enough_money'], $cost - shop_Cash($userid));
// All's well, they can get this itel
else
{
//TODO add the database stuff to shop_db.php
// Change item info (owner, amount paid, trading = not anymore)
$smcFunc['db_query']('', '
UPDATE {db_prefix}shop_property
SET userid = {int:userid}, amtpaid = {float:tradecost},
trading = 0
WHERE itemid = {int:id}
LIMIT 1',
array(
'userid' => $context['user']['id'],
'tradecost' => $row['tradecost'],
'id' => $_GET['id'],
));
// Decrease user's money
$final_value = $row['tradecost'] - $row['cash'];
updateMemberData($context['user']['id'], array('cash' => $final_value));
//Update the member trade count
$final_value = $row['tradeHis'] + 1;
updateMemberData($context['user']['id'], array('tradeHis' => $final_value));
// Give money to old owner
$final_value1 = $row['tradecost'] + $row['cash'];
updateMemberData($row['userid'], array('cash' => $final_value1));
sendpm_trade();
$context['shop_buy_message'] = sprintf($txt['shop_trade_bought_item'], $row['name'], $row['real_name']);
}
// Set the page title
$context['page_title'] = $txt['shop_trade'];
// Use the message template
$context['sub_template'] = 'message';
}
// If they're selling an item in the trade centre
elseif ($_REQUEST['sa'] == 'trade_sell')
{
// Make sure ID was numeric
$_GET['item'] = (int) $_GET['item'];
//TODO add the database stuff to shop_db.php
// Get information on the item
$result = $smcFunc['db_query']('', '
SELECT amtpaid
FROM {db_prefix}shop_property
WHERE id = {int:id}',
array(
'id' => $_GET['item'],
));
$row = $smcFunc['db_fetch_assoc']($result);
$smcFunc['db_free_result']($result);
// The amount paid for the item
$context['shop_paid'] = $row['amtpaid'];
// Set the page title
$context['page_title'] = $txt['shop_yourinv'];
// Use the trade item sub template
$context['sub_template'] = 'tradeItem';
}
// Sell an item - Part 2. Actually add the item to the trade centre
elseif ($_REQUEST['sa'] == 'trade_sell2')
{
// Make sure certain values were numeric
$_POST['id'] = (int) $_POST['id'];
$_POST['sellfor'] = (int) $_POST['sellfor'];
//TODO add the database stuff to shop_db.php
// Check the owner of the item
$result = $smcFunc['db_query']('', '
SELECT userid
FROM {db_prefix}shop_property
WHERE id = {int:id}
LIMIT 1',
array(
'id' => $_POST['id'],
));
$row = $smcFunc['db_fetch_assoc']($result);
$smcFunc['db_free_result']($result);
// Sell it for a negative amount? That very odd...
if ($_POST['sellfor'] <= 0)
$context['shop_buy_message'] = $txt['shop_trade_negative'];
// Sorry, stealing is illegal :P
elseif ($row['userid'] !== $context['user']['id'])
$context['shop_buy_message'] = $txt['shop_use_others_item'];
else {
//TODO add the database stuff to shop_db.php
// Update item's information
$result = $smcFunc['db_query']('', '
UPDATE {db_prefix}shop_property
SET trading = 1,
tradecost = {float:tradecost}
WHERE id = {int:id}
LIMIT 1',
array(
'tradecost' => $_POST['sellfor'],
'id' => $_POST['id'],
));
$context['shop_buy_message'] = $txt['shop_trade_success'];
}
// Set the page title
$context['page_title'] = $txt['shop_yourinv'];
// Use the message template
$context['sub_template'] = 'message';
}
// Stop trading an item
elseif ($_REQUEST['sa'] == "trade_stop")
{
// Make sure ID was numeric
$_GET['item'] = (int) $_GET['item'];
//TODO add the database stuff to shop_db.php
// Get the ownerID of the item
$result = $smcFunc['db_query']('', '
SELECT userid
FROM {db_prefix}shop_property
WHERE id = {int:id}
LIMIT 1',
array(
'id' => $_GET['item'],
));
$row = $smcFunc['db_fetch_assoc']($result);
$smcFunc['db_free_result']($result);
// Sorry, stealing isn't allowed here!
if ($row['userid'] !== $context['user']['id'])
$context['shop_buy_message'] = $txt['shop_use_others_item'];
else {
//TODO add the database stuff to shop_db.php
// Cancel the trade centre stuff
$result = $smcFunc['db_query']('', '
UPDATE {db_prefix}shop_property
SET trading = 0, tradecost = 0
WHERE id = {int:id}
LIMIT 1',
array(
'id' => $_GET['item'],
));
// Tell the user what we did
$context['shop_buy_message'] = $txt['shop_trade_cancelled'];
}
// Set the page title
$context['page_title'] = $txt['shop_yourinv'];
// Use the message template
$context['sub_template'] = 'message';
}
// Add it to the linktree
$context['linktree'][] = array(
'url' => $scripturl . '?action=shop;sa=trade',
'name' => $txt['shop_tab_trade'],
If I've referenced the correct script, which part(s) need to be corrected in order to keep someone from buying back his or her own item from the trade center?
Hi!
I have members receiving 1% interest on their banked funds. However, I would like to edit it slightly so:
Member HAS logged in that day: Receives 1% interest on banked funds
Member has NOT logged in that day: Receives 1% tax on banked funds.
Is anyone able to help me with this?
Thanks =)
Additionally, I'd like to make it so that the reward for characters/words only kicks in after a determined number has been reached.
Eg, after 500 words, you get 1 point for every additional word or something similar, rather than getting a reward for the first 500 words and cutting off there after.
Would this be possible?
This installed perfectly on a new board of mine! I was given no errors what-so-ever. However, I am unable to deposit credits into the bank, and I cannot purchase items despite having credits on hand.
Currently I have 2454 credits on hand, and am unable to make any monetary deposit into the bank. I also cannot purchase any items from the shop. I double-checked permissions for all other groups other than admin (as admin immediately has all permissions and I am an admin) and all have permission to purchase and use.
So I am stumped as to how to go about trying to fix this. Any ideas? Thanks!
I am using SMF 2.0.2, with the Bluez theme, with these mods installed: Tags, Simple Portal, Simple Audio Video Embedder, SMF Gallery Lite, Bookmarks, PM to New Members, Event Reminder Mod for SMF2, SMF Packs shoutbox, Seperate the Sticky topics, and add social media icons to profiles.
Quote from: xanenightwing on September 24, 2012, 04:11:38 PM
sorry if this question has already been asked, but is there an "email admin" item? and if not, would it be possible to make one?
Bumping my question >.>
Is it possible to have items in the store be a once only use, but not get deleted from the inventory once used?
Maybe sorted into "used" and "usable" but not actually removed?
Thanks!
Is there anyway i can change the name of "Credits" to "Paypal Dollars"
and take away the ability to get credits
but have the user upload real money through paypal and order products?
Quote from: -♦-Zeum-♦- on October 13, 2012, 02:42:56 PM
Is there anyway i can change the name of "Credits" to "Paypal Dollars"
and take away the ability to get credits
but have the user upload real money through paypal and order products?
Don't try to find things that really this mod can't do
Try using this board http://www.simplemachines.org/community/index.php?board=79.0
Hi, thanks for the mod. I've been trying out this one and the SMFShop mod. I like that this one has a game room already attached. Everything seems to be working very well.
The only issue, thus far, that I have found is none of the images are visible.
I'm running 2.0.2.
Any ideas?
Thanks a bunch!
Quote from: Mr E S Stranger on December 06, 2012, 10:33:10 AM
Hi, thanks for the mod. I've been trying out this one and the SMFShop mod. I like that this one has a game room already attached. Everything seems to be working very well.
The only issue, thus far, that I have found is none of the images are visible.
I'm running 2.0.2.
Any ideas?
Thanks a bunch!
Where do you have your images stored on your server (full file path)? Also, do you have the proper permissions set?
Kendrall, thanks again for your help. I was able to get everything up and working.
Only other questions about this mod that I have are:
1) Has anyone been able to figure out hot to fix the pay table for the "Pairs" game? It just says coming soon.
2) Is there a way to change the chances of winning in each game?
3) How do I go about adding more games to the game shop?
Thanks for any help that can be given.
Quote from: Mr E S Stranger on December 07, 2012, 11:37:53 AM
Kendrall, thanks again for your help. I was able to get everything up and working.
Anytime. :)
Quote from: Mr E S Stranger on December 06, 2012, 10:33:10 AMThe only issue, thus far, that I have found is none of the images are visible.
ALWAYS, ALWAYS, ALWAYS, ALWAYS check the SMF Default theme when having an issue with a MOD on a custom theme. The images folder is theme specific, meaning you must copy the
shopimg folder (and images within) from default/images over to your custom them images.
Quote from: hcfwesker on December 10, 2012, 05:30:01 PM
Quote from: Mr E S Stranger on December 06, 2012, 10:33:10 AMThe only issue, thus far, that I have found is none of the images are visible.
ALWAYS, ALWAYS, ALWAYS, ALWAYS check the SMF Default theme when having an issue with a MOD on a custom theme. The images folder is theme specific, meaning you must copy the shopimg folder (and images within) from default/images over to your custom them images.
Hey, thanks for the advice, I was able to get everything up and working.
As it is now, do you know of a way to fix the pay table for the game "Pairs"? It just says "Coming Soon".
For that matter, how do you change any of the pay tables? I know how to change the payouts, but I'm unable to find where to change the pay table.
Is there a place to change the % of winning each game?
Thanks for your help.
smf 2.0.2
pets ?
I have an issue. When I installed the mod everyone has 1000 Credits automatically to start with (minus one member who has 2000) I dunno if this is because I used another shop mod before but is their a quick script I can use to reset everyone's points to zero?
EDIT: NVM you just have to upload his modified install script and run it again to set everyone to zero. Read back on previous post.
http://www.simplemachines.org/community/index.php?topic=317308.msg2603431#msg2603431
Alright, we went live with this mod today. Within one hour, a member was able to find a glitch with the steal credits. If they use it too many times unsuccessfully and lose all of their positive Karma, it gives them the most amount of Karma possible (65525).
Is there a way to fix this? Maybe instead of taking away positive karma, it gives a negative one instead?
How would I remove the shop button in the menu. I just needed the mod for the point system.
Can anyone help me out with the above and also wanted to remove the the inventory out of the postbit.
I'd love a shop item that is determined on a "Random Dice Roll". The item itself can just be a "rock", but I need it to choose between a ******ty pebble, and the rare gem - for example XD
This would be the set up in Admin for a SINGLE item.
Quote
Name: The title of the item
Description:
Price:
Stock:
Category:
Image:
Delete Y/N
Enable Y/N
Then the options:
Enter # items to pick from in the Roll (eg, 3, 5, 20 etc)
Enter each Item's name (Item A, Item B, Item C)
% of each item's chance out of 100 to be drawn (eg 1%,4%,15%,30%,50% - would need to total 100%)
(Perhaps the visual of the two above set up in a similar manner as the Censored Words A = B and the 'add more' option that reveals more A = B boxes.)
To give user*: Eg, if the code ran an Item A, B, B, D, E, A, C and the number given here was 3, than the first three (A,B,B) would be given to the User. This bit isn't completely vital; but I would really, really, really love it to be included if possible :D
Add An Item / Edit
Hopefully that makes sense. Please feel free to ask for further clarification.
Hi there,
I uninstalled this mod on one of my forums and it has left behind the following:
1976 Credits
View Inventory
Send Credits/Gift
under all members names in their posts/replies
Is there a way to remove this ???
Thanks for any help
Hey xD
I want to use the Shop Mod to show who owns what (namely pets for our game) and how many they own... but the mod doesn't show multiples on the "Who owns this item" page, it just states for example:
4 people own 5 gold firelizards. It doesn't tell you who owns the additional one, you have to dig through each of their personal inventories.
Is there a way I can edit the code for the "Who owns items" page that will show quantities?
Thank you!
This is a great shop mod... it had all the features I was looking for. I do have a couple questions though... I'm pretty new at all this. LOL
1 ~ Is there a way to add more games to the game room?
2 ~ We've had a bunch of members deposit money in the bank, but no one can take their money back out. How can I fix this?
Thanks in advance for any help!
Quote1 ~ Is there a way to add more games to the game room?
Not entirely sure, but you may be able to add arcade games from SMF Arcade - http://www.smfarcade.info/ (which seems to be down right now.)
Quote2 ~ We've had a bunch of members deposit money in the bank, but no one can take their money back out. How can I fix this?
Check the Shop Admin settings. look for the settings for the Bank, you may have the default setting where they have to deposit, as well as withdraw a certain amount. Just adjust the amount settings and see if that works.
sa shop allows disable trade for a specific item?
now i'm testing smfshop and i can not disable trade of a specific item :(
I'm having a bit of a problem with this. The shop is working okay, but the images I upload into my item_images directory aren't. They're showing up when I look at their direct links, but they won't actually pop up when I try and set an image for a specific item.
Any clues as to why this is happening?
Oye Diego Andrés ¿abandonaste el soporte a este mod? veo que no entras por acá y tiene más de 1 año 2 meses sin actualzaciones :-\
He probado el otro mod pero es muy simple, si aún estás dando soporte a este mod me gustaría que incorporaras nuevas características, lo tienen los mod de otros foros ;)
Quote from: Mr E S Stranger on December 19, 2012, 03:21:01 PM
Alright, we went live with this mod today. Within one hour, a member was able to find a glitch with the steal credits. If they use it too many times unsuccessfully and lose all of their positive Karma, it gives them the most amount of Karma possible (65525).
Is there a way to fix this? Maybe instead of taking away positive karma, it gives a negative one instead?
I just want to say that I am experiencing this bug as well on my forum. :3
Hello!
I have discovered a small error with this mod.
I cannot view more than 1 page of an inventory currently. For example, I have four pages in my inventory, however, when I try and click page 2, 3, 4--I keep getting the error that "This user does not exist," past page 1.
Does/did anyone else have this error and any idea how I can fix it please?
SMF version 2.0.5, SA Shop 1.0 RC 1, several mods I can list if needed too.
http://gr.2phatgeeks.com/index.php?action=shop;sa=inventory;next2=;sort=0;start=10 <-- This link brings up "This user does not exist,"
Screen shot attached
Guests can't access your forum :(
Quote from: elf_fu on September 27, 2013, 06:35:23 PMhttp://gr.2phatgeeks.com/index.php?action=shop;sa=inventory;next2=;sort=0;start=10 <-- This link brings up "This user does not exist,"
Screen shot attached
If you don't mind posting, what's the link when viewing the first page of the member's shop inventory?
Can you try removing this part from the URL and see if it shows you the 2nd page?
next2=;sort=0;
Guess it'd be easier if I just post the link with it removed :P
http://gr.2phatgeeks.com/index.php?action=shop;sa=inventory;start=10
then change 10 to 20, 30, and so on at the end of the URL to see if other pages are viewable. Just wanna test something.
Quote from: hcfwesker on September 28, 2013, 01:12:35 AM
Guests can't access your forum :(
Quote from: elf_fu on September 27, 2013, 06:35:23 PMhttp://gr.2phatgeeks.com/index.php?action=shop;sa=inventory;next2=;sort=0;start=10 <-- This link brings up "This user does not exist,"
Screen shot attached
If you don't mind posting, what's the link when viewing the first page of the member's shop inventory?
Can you try removing this part from the URL and see if it shows you the 2nd page?
next2=;sort=0;
Guess it'd be easier if I just post the link with it removed :P
http://gr.2phatgeeks.com/index.php?action=shop;sa=inventory;start=10
then change 10 to 20, 30, and so on at the end of the URL to see if other pages are viewable. Just wanna test something.
Hi again hcfwesker!
I'm sorry about the guest access. Because of the content rating of our site, certain forums and actions aren't viewable to guests. I did a double peek at our guest group permissions to see if there was a means to allow guests to view shop/inventory, but I don't see one there.
I don't mind posting the link to the first page of the inventory, as it's a link to my inventory as admin: http://gr.2phatgeeks.com/index.php?action=shop;sa=inventory;next2=GreaterRealms (http://gr.2phatgeeks.com/index.php?action=shop;sa=inventory;next2=GreaterRealms)
http://gr.2phatgeeks.com/index.php?action=shop;sa=inventory;start=10
^^^^This works! So any idea as to why my site is giving me http://gr.2phatgeeks.com/index.php?action=shop;sa=inventory;next2=;sort=10;start=20 (http://gr.2phatgeeks.com/index.php?action=shop;sa=inventory;next2=;sort=10;start=20) when clicking the pages link in the inventory?
Thank you again for helping me!
The problem here, from what I can see, the "Next2=" should be the memberID after the equal sign. But it doesn't save it when browsing. The only fix I can offer is when members view their OWN inventory it will show on the next pages ( just NOT for when they look at other member's inventory).
Though, if you wanted to, you could change the limit for items shown per page, so it just shows all the items on page 1. Like, change the LIMIT from 10 to something like 50 or 100. Just have a long page to scroll to view all of a members items depending on how many they have. Though, sometimes LIMITs are there for a reason so it doesn't cause much stress on pulling items from your databse. I could be wrong, though.
Sorry for the delay, I'll try to find some time to check this bugs.
Thanks and regards
Quote from: hcfwesker on September 28, 2013, 11:11:04 PM
The problem here, from what I can see, the "Next2=" should be the memberID after the equal sign. But it doesn't save it when browsing. The only fix I can offer is when members view their OWN inventory it will show on the next pages ( just NOT for when they look at other member's inventory).
Though, if you wanted to, you could change the limit for items shown per page, so it just shows all the items on page 1. Like, change the LIMIT from 10 to something like 50 or 100. Just have a long page to scroll to view all of a members items depending on how many they have. Though, sometimes LIMITs are there for a reason so it doesn't cause much stress on pulling items from your databse. I could be wrong, though.
This is a silly newbie question--but do you happen to know where I might change the limit for items shown for now--to see how it works for now?
QuoteSorry for the delay, I'll try to find some time to check this bugs.
Thanks and regards
Real life first! I appreciate the response, thank you!
Quote from: elf_fu on September 30, 2013, 11:58:24 AMdo you happen to know where I might change the limit for items shown for now--to see how it works for now?
Sources/shop2/Shop_db.phpFind
WHERE userid = {int:userid}
LIMIT {int:start}, 10
Replace 10 with a higher number, like 50 or 100
Page numbers will still be shown at the bottom of the page, even though all items are shown on 1 page.
The SA Shop is very very nice work and works very well. Thanks for the mod!
But I have a little Question:
At the phpBB-Board I use additional, there also is the possibility to show buyed Items on the Signature.
But on phpBB Board, the Images of the Items are thumbnailed automatically - and can be opened fullsized with using Highslide.
Would be great to have the same feature on a SMF-Board!
LG, Peter
Very good this Congratulations MOD developers. I'm doing some tests to deploy it in my forum.
So I need a detail and needed some help.
It shouldn't be too hard. Need a tip on how to make an adaptation.
I need every positive karma be added 10 credits.
And every negative karma is subtracted 10 credits. Could someone help me?
Would it be possible to add the ability to view all users pocket/bank accounts?
At the moment, it's only possible to see the top ten, but I'd really like to be able to see everyone.
Quote from: dsystem on November 29, 2013, 07:26:57 PM
I need every positive karma be added 10 credits.
And every negative karma is subtracted 10 credits. Could someone help me?
I managed to make this script to integrate the kama to the sa-shop.
As I watched other members with the same difficulty I am putting here the solution.
Changes made in/source/karma.phpBefore
// Change by one.
updateMemberData($_REQUEST['uid'], array($dir == 1 ? 'karma_good' : 'karma_bad' => '+'));
After
// Change by one.
updateMemberData($_REQUEST['uid'], array($dir == 1 ? 'karma_good' : 'karma_bad' => '+'));
if ($dir == 1) {
$request = $smcFunc['db_query']('', "
UPDATE {$db_prefix}members
SET cash = cash + 10
WHERE id_member=".$_REQUEST['uid']."
"); }
else {
$request = $smcFunc['db_query']('', "
UPDATE {$db_prefix}members
SET cash = cash - 10
WHERE id_member=".$_REQUEST['uid']."
"); }
I've noticed the MOD was updated last month but don't see any change log. Was hoping something to allow members to re-arrange their inventory would have been added.
Quote from: hcfwesker on December 29, 2013, 10:12:47 PMWas hoping something to allow members to re-arrange their inventory would have been added.
I've integrated this feature myself, if you're interested in the coding (1 column added to shop_property database and a few file edits) to possibly add it to an updated versions. It just adds a button to the member's own inventory list "move to top", where they can move an item to the front of their inventory, and do this as many times to rearrange their invenotry to appear how they'd like it to.
Quote from: hcfwesker on December 31, 2013, 03:11:07 PM
Quote from: hcfwesker on December 29, 2013, 10:12:47 PMWas hoping something to allow members to re-arrange their inventory would have been added.
I've integrated this feature myself, if you're interested in the coding (1 column added to shop_property database and a few file edits) to possibly add it to an updated versions. It just adds a button to the member's own inventory list "move to top", where they can move an item to the front of their inventory, and do this as many times to rearrange their invenotry to appear how they'd like it to.
Would be great if you share that.
Sorry all of you I'll start working on the Shop this week.
No problem, you want me to supply everything in a post here, or pack up the instructions in a zip file?
how it works, is when the "move to top" button is clicked, it adds the current timestamp to a new column 'favorite_item' in _shop_property databse ... in which it orders the items by that timestamp DESC, followed by itemid DESC if they havent selected an item to re-order. It reorders both on their shop inventory page, and their shop display in posts/signatures. It works great and my members are loving the option.
Great, would be better in a zip file.
Thanks!
If I wanted to make an item that would send a pm from the user, to my admin account, similarly to the Email Admin item only a PM instead of an email, how would I go about doing this?
Mod page says it has been updated to cover 2.0.8 but the file name still says 1.0 RC1. Has it been updated?
Not really, just for those who sometimes ask if still working in smf 2.0.8.
But I'll be working in the mod soon
Hi everyone :)
Can I add items to members' inventories with Sa Shop? :)
Quote from: hcfwesker on September 30, 2013, 06:49:13 PM
Quote from: elf_fu on September 30, 2013, 11:58:24 AMdo you happen to know where I might change the limit for items shown for now--to see how it works for now?
Sources/shop2/Shop_db.php
Find
WHERE userid = {int:userid}
LIMIT {int:start}, 10
Replace 10 with a higher number, like 50 or 100
Page numbers will still be shown at the bottom of the page, even though all items are shown on 1 page.
Hi there!
My forum is: gr.2phatgeeks.com
Version: SMF 2.0.8
Mods: A TON, if you need a list just let me know
Permissions: Because of the 18+ rating of my writing board, most permissions are set to members only. Sorry about that.
I'd noticed that this error where I can't click on page 2 in user's inventory again was happening. As well as if I display their 10 inventory purchases in their signatures, the images (for instance, my admin account has bought 1 rock) display twice.
I double checked today my Sources/shopdb and notices that I have the limit to 50. The user's inventory I was looking at definitely did not have 50 displayed on a page.
Example: I click on this members inventory. The URL for the first page of their inventory looks like this: http://gr.2phatgeeks.com/index.php?action=shop;sa=inventory;next2=The%20Redneck
I click on the #2 to see the second page of their inventory, and the URL now looks like this: http://gr.2phatgeeks.com/index.php?action=shop;sa=inventory;next2=;sort=0;start=10
// Now we need the items in the users inventory
$result = $smcFunc['db_query']('', '
SELECT itemid, id, comment, trading, tradecost
FROM {db_prefix}shop_property
WHERE userid = {int:userid}
LIMIT {int:start}, 50
',
array(
'start' => $context['start'],
'userid' => $userid,
)
);
Any ideas on how I might fix the inventory display error or the signature display error? I've attached screenshots if they're needed as well as my Sources/Shop2/Shopdb.php. Thank you!
How do I translate it into Spanish?
Quote from: elf_fu on August 08, 2014, 10:34:39 PM
Any ideas on how I might fix the signature display error?
Yup. You apparently have the code installed twice, accidentally I assume, in Display.template.php .. find the code in that file around the signature section and see if it's been added twice ;)
About the members inventory page, as I explained to you ....
QuotePage numbers will still be shown at the bottom of the page, even though all items are shown on 1 page.
Meaning, even though a link for Page 2 is there, there is no page 2, because you should set the number high enough, in Shop_db.php , so any members inventory is shown on 1 page, like 50 or 100 items.
Thanks for coming to check it out jcfwesker!
I absolutely have no idea why it's in there twice. Probably because I did something in Display.template.
Is there anyway to hide the pagination in inventory then?
Thanks again!
you can find and remove
<table class="bordercolor" width="100%" cellspacing="1" cellpadding="5">
<tr class="catbg">
<td><b>',$txt['pages'],'</b> ',(isset($context['page_index']) ? $context['page_index'] : ''),' </td>
</tr></table>
from the shop.template.php in function template_inventory()
Quote from: SA™ on August 10, 2014, 02:46:04 PM
you can find and remove
<table class="bordercolor" width="100%" cellspacing="1" cellpadding="5">
<tr class="catbg">
<td><b>',$txt['pages'],'</b> ',(isset($context['page_index']) ? $context['page_index'] : ''),' </td>
</tr></table>
from the shop.template.php in function template_inventory()
Thank you SA! Will try it out ASAP. Here's hoping I don't set my forum on fire. :P Appreciate it!
Can someone -please- explain to me how to edit or create a new item? Basically I want something simple; it would send a pm to the Admin account, with two fields, one would be a small text box asking for the 'adoptable' they are redeeming the item for, and the second would be a text box with room for any notes/etc they want. It would then send the information in a PM to the admin.
I assume this wouldn't be that hard, but can someone please walk me through what I would need to do? Also, I cannot for the life of me figure out how to add brand new items, the drop down just shows the default ones...
Quote from: skeletonkiss on August 18, 2014, 01:28:59 PM
Can someone -please- explain to me how to edit or create a new item? Basically I want something simple; it would send a pm to the Admin account, with two fields, one would be a small text box asking for the 'adoptable' they are redeeming the item for, and the second would be a text box with room for any notes/etc they want. It would then send the information in a PM to the admin.
I assume this wouldn't be that hard, but can someone please walk me through what I would need to do? Also, I cannot for the life of me figure out how to add brand new items, the drop down just shows the default ones...
Edit: Should always double check what I read. Sorry! I don't know how to do that. :)
Just a quick question, when using the default SMF theme all of the icons show properly however when using a custom one, the images do not appear. Is there a reason for this, or a setting in a file that I need to change to fix this?
You need to copy the shopimg image folder from the default "images folder" to your other themes.
Though, since on our site we use the same images for all themes, I went through and modified all the files to just get the images from the default theme.
Go through any file where images are being called from ( ShopAdmin.template.php , Shop.template.php & Display.template.php) and ....
change ['images_url'] to ['default_images_url']
This saves alot of time when adding images, and not having to copy them to every theme, and saves a tad bit of space with not having to have multiple folders of images
I tried what you said but it makes me think that I could have worded it better. When I say Icons I am referring to item icons, with the default theme it looks like this:
but when using another theme it looks like this:
Edit: nevermind I understand what you are saying after browsing through my forums a bit.
Sorry for double posting, not sure if I should edited my last post or posted a new one. I've got the images working now however it seems that some of my members are unable to view the shop. I went into permissions and it shows everything as being checked for them to view and that, is there another setting in another file that I might have missed?
Check the Shop Settings under Admin Shop menu ... you may not have it activated for public view.
Again, I'm asking how to make new items, in particular this (http://www.simplemachines.org/community/index.php?topic=317308.msg3732728#msg3732728).
I can't believe there seems to be no info anywhere as to how to do something that you would think would be a pretty important thing considering the nature of this mod....
Quick question: Is there any way to disable certain items on the list or do they have to be completely deleted?
EDIT: How can I add a "$" sign or possibly the word "Cash" in front of the number? With it being right below the post count, I want it to stand out.
Thanks :)
Quote from: Kimmie on August 22, 2014, 02:16:57 PM
Quick question: Is there any way to disable certain items on the list or do they have to be completely deleted?
How can I add a "$" sign or possibly the word "Cash" in front of the number? With it being right below the post count, I want it to stand out.
1. You can goto the Shop Admin menu, under "Items" and select to edit any item and uncheck the option for 'active' or something to disable shop item.
2. Again, in the Shop Admin settings, you can add a suffix or prefix that goes around the total cash. So you can actually have it show as "$1327 Cash"
Quote from: hcfwesker on August 22, 2014, 08:34:10 PM
Quote from: Kimmie on August 22, 2014, 02:16:57 PM
Quick question: Is there any way to disable certain items on the list or do they have to be completely deleted?
How can I add a "$" sign or possibly the word "Cash" in front of the number? With it being right below the post count, I want it to stand out.
1. You can goto the Shop Admin menu, under "Items" and select to edit any item and uncheck the option for 'active' or something to disable shop item.
2. Again, in the Shop Admin settings, you can add a suffix or prefix that goes around the total cash. So you can actually have it show as "$1327 Cash"
Thanks :)
Where can I edit the message it sends people when you send them money, etc? This one isn't very good.
Is there a way to add more games?
Maybe the language file for shop? Not sure.
....Wesker, are you just ignoring me now? Because you continue to answer posts below mine, but not mine. All I need is a very simple item, yet I cannot for the life of me get a response about it?
I am in the middle of testing everything out to make sure it all works. I had my other admin put an item in the Trade Center for $20. I purchased it.
My cash went from $1035 to a NEGATIVE $296. I don't get it.
Sorry for posting back to back but there seems to be a lot of problems with this mod
Now the trade center is telling me an item in there is not up for trade and yet it clearly is. This is what I get when I click on the Buy now link
Still waiting on an answer for this.
Again,
I need an item that pm's the admin account with points, and some information:
I'm starting a points system on my roleplaying site. Ideally said points will be spent to 'adopt' characters, plots, and a few other things.
Rather then having a ton of items individually priced, I'd rather have one simple, customizable item that would say something like 'adoption token' or 'adoption fee' or something, then just have a box to enter in the amount of ponts, possibly a couple fields for what adoptable you want, etc, and then a small text box to put notes in. All of this should be then pm'd to the admin account. I don't care if it comes out pretty or not as long as the pertinent info, IE the points amount, the adoptable they want, and their notes, are there.
So basically, a couple fields (with the ability to add more if needed would be nice), a text box, and the points to add.
This doesn't sound like it should be that complicated, compared to some of the existing items.
I'm not ignoring your posts. If I don't have any idea how to give support for someone's request then I don't waste mine or their time by posting, "I don't know".
I've read your post description 6 or 7 times and still don't have an idea of what it is exactly you're asking for. If you're gonna use the Shop as a points system, and want members to pay for stuff ( but not make items, rather they pay a certain amount for something specific ... AND it's all going to you, or another Admin, to deliver these custom things ...
Then why not just let members use the "Send Money To User" Option. Have a topic with all the items they can redeem points for. Then members can send you the amounts they want to spend, and when they do that there is an option to leave a message to you. Which in that message they can say what they want.
" If I don't have any idea how to give support for someone's request then I don't waste mine or their time by posting, "I don't know"." <--- this is basically the same as ignoring.
If that works the same as what I was asking for then why not just tell me that? I didn't realize that function was a part of the mod, it was kind of tucked in there, so I wasn't aware it did what I wanted. Simply suggesting I use that instead of acting like my asking for this kind of thing was completely ridiculous would have been nice.
Anyone know how to add more games to this mod?
Quote from: skeletonkiss on August 25, 2014, 05:59:23 PM" If I don't have any idea how to give support for someone's request then I don't waste mine or their time by posting, "I don't know"." <--- this is basically the same as ignoring.
How so? As many times as you kept reposting your request someone else was bound to reply and have a concrete answer or mayyyyyybe help. No? then at least be glad I did, cause you'd be reposting the same requests for weeks until you might have gotten a response. Sheesh. Have you not looked at the MOD Description page? Nowhere on it does it say I'm the developer, nor am I required to provide 24/7 support for this mod and answer every single post in it. That's the beauty of providing freelance support. Seriously, dude, get over it.
QuoteIf that works the same as what I was asking for then why not just tell me that?
I did. And, you're welcome ;)
QuoteI didn't realize that function was a part of the mod, it was kind of tucked in there, so I wasn't aware it did what I wanted.
Ignorance is bliss.
QuoteSimply suggesting I use that instead of acting like my asking for this kind of thing was completely ridiculous would have been nice.
The fact I did go out of my way to "think outside the box" for an alternative solution should have at least gotten a little bit of gratitude and appreciation. I'll know better next time ;) Your problem, from what I see, is you are persistent, demanding, and show no level of patience or appreciation, for that matter.
@ SMF Staff ... if I get in trouble for this I'll gladly accept the consequences. Support responses like these just really light my fuse. I'm done though, one reply is all I'll waste my time withQuote from: Kimmie on August 25, 2014, 06:35:53 PM
Anyone know how to add more games to this mod?
I was actually fixing to redirect you to the Arcade/Shop mod integration, but seen you posted on there. I havent tried it, but you can test both on a test site or something.
Quote from: Kimmie on August 25, 2014, 06:35:53 PM
Anyone know how to add more games to this mod?
Anyone?
I seem to be able to see the points/send gift on users mini profiles, regardless of if the shop is enabled. I have tested this from other accounts and as a guest. Is there a way to make them not show up or select which groups it does for? As it's showing points: 0 and Send Gift for guest posts too.
I have tried everything to customize images. Uploaded new images to image folders in, sources, default template, template in use all to no avail. They do not populate in the drop down box to add, change items even using the "rock" installation. Please advise.
**And yes the proper folders sources/shop/item_images
Quote from: meemzo on October 22, 2014, 04:46:16 PM**And yes the proper folders sources/shop/item_images
Sources/shop would be for SMF Shop, SA Shop is Sources/shop2 , I believe
And, the proper folder to upload images to (for SA Shop MOD) is Themes/(theme name)/images/shopimg/item_images
You'll also need to add the image to the same folder for all your themes, so they appear on each theme.
Hey
Is there any special new feature you would like to see in SA Shop for SMF 2.1?
Use this mod for about a year and has served me very well.
The following items that I find necessary to further improve:
1) When Member buy an item, on the need to use in the inventory (Using the item automatically)
Or have the option to disable inventory, which in my case only generates confusion.
2) admin Option to choose how many items per page is shown in the store. (Purchase items)
3) also leave the items in alphabetical order (purchase items)
4) show all the items that the user has bought. Currently the item go to inventory, after using it and shown what the user already bought.
I'm going to ask for my moderators Forum if you have a few more ideas.
1- That would kill the purpose of the shop, but maybe later I can help you to do that in the new version
2- That was done from the beginning! And that option it's used for everything, items list, categories, logs.
3- If you mean for buying items, it's already in that way in the new version, and you can still sort the list by price, stock, etc
4- You mean including the items that the user has also sold or used? Ummm, the log should work for that, I'll just need to add an option to filter by user
Quote from: Diego Andrés on October 27, 2014, 01:41:06 AM
Hey
Is there any special new feature you would like to see in SA Shop for SMF 2.1?
If it would be possible!
1: option to subtract credits/points for a reply (whatever value admin sets).
2: option to add credits/points for starting topic (whatever value admin sets).
in each individual board settings.
And the option to turn off the "View inventory, send/gift" links under avatar in forums.
This would basicly be able to be turned into a very decent credit system with those options.
PLEASE!!! :-[ :-[ :-[
Both are already done. You can always set negative values there anyway.
The last point you wrote, I think it is also included already in the new version.
Quote from: Diego Andrés on November 07, 2014, 07:36:35 AM
Both are already done. You can always set negative values there anyway.
Yes I am aware that can be done as of now.
I am using SA SHop rc1 along with karma description mod and a hide feature already, but need the option of
the member needing a set minimum amount of credits in possesion to enter set boards.
Not a minimum post count, but a minimum credit/points count to enter topic.
any timetable for a RC?
or I can even beta test if possible?
Also thanx for everything!!!
Maybe on December.
However, the new version is just for smf 2.1
Quote from: Diego Andrés on November 07, 2014, 03:20:23 PM
Maybe on December.
However, the new version is just for smf 2.1
Thanks! one quick question though...
I recieved word that the karma mod will be eliminated from SMF v2.1.
How is that affecting your newest version sa shop?
Is not affecting it in any way.
Why should it?
will you be creating karma fully integrated in your mod?
and if not, what karma mod will you be using considering they are taking this featue out of SMF?
But why karma? Karma is totally different to the shop mod.
Also there's already available a karma mod for smf 2.1 made by the dev team.
Quote from: Diego Andrés on November 07, 2014, 04:05:21 PM
But why karma? Karma is totally different to the shop mod.
Also there's already available a karma mod for smf 2.1 made by the dev team.
Because with your shop mod, karma mod, Karma Description mod, and Hide Tag Special mod, I have many more options to use to
try and accomplish what I need. I just need an option like "Minimum credit count to allow unhide content" ,
or a way to deduct a karma point for a reply. >(preferred method)
I also thought the karma mod played a decent role in your shop mod?
That is not related neither to sa shop or smf shop.
It's just a shop mod, not a karma shop mod.
Why would I include in smf 2.1 core settings for a mod that its no more a core feature (karma)?
Quote from: Diego Andrés on November 07, 2014, 05:39:47 PM
That is not related neither to sa shop or smf shop.
It's just a shop mod, not a karma shop mod.
Why would I include in smf 2.1 core settings for a mod that its no more a core feature (karma)?
Point Taken!
How would I go about restting points to zero? for some strange reason everybody starts off with 1000 points, and in shop settings,
members are supposed to receive in my case 3 points upon registration. Is there a fix or setting for that?
Also could you tell me where I would be able to modify a file to delete the links in post profiles for veiw inventory and send points/gift
under the avatar? i would like to not use those .
***EDIT***
I registered a new user and it started out at 0, so thats not a issue now.
I just need to know how to reset points count.
Quote from: Cylent1 on November 07, 2014, 05:52:24 PM
I just need to know how to reset points count.
Either by mnaually doing it member by member in the Shop Admin menu. Or running an sql in the database to SET 'cash' (or 'cashBank') = '0' ; or whatever amount you want.
Check this post: http://www.simplemachines.org/community/index.php?topic=317308.msg3039544;topicseen#msg3039544
Okay folks, here's your christmas gift, some screenshots of the new SA Shop version for SMF 2.1 ;D
19 pictures :P
Still working in the mod unfortunately.
Remaining stuff:
- Games room
- A few maintenance stuff, e.g. Clear all logs, delete all items, etc
- Membergroup credits send
- Use items (at the end of the road because of laziness ::))
Anyway, it's going to be finished before the end of the year.
The mod it's using hooks, that means no files edit.
3 file edits so far because there were no hooks for that specific stuff, but there are not going to be more file edits.
quisiera traduccion en idioma español para SA Shop 1.0 RC1 gracias
If I could make a suggestion/recommendation. The Shop Items that appear in the post profile, if there can be an admin option to have it be a "pop-up" box. So if a member has many items, it doesn't clutter up the post profile. Like 'Item Inventory' could be clicked and a small box appears next to it with the member's shop items.
wow nice work on updating this mod looking nice 8)
Actually you can still set the number of items that will appear in the post profile.
Anyway, that's a pretty good idea, I'm going to add that as an additional option in the admin settings.
Quote from: fabriig2 on December 30, 2014, 05:31:49 AM
quisiera traduccion en idioma español para SA Shop 1.0 RC1 gracias
Por favor utiliza ingles para escribir en estos foros.
La versión actual ya cuenta con una traducción al español. Si estas usando spanish_latin, simplemente renombrar los archivos de idioma de spanish_es a spanish_latin
Quote from: SA™ on December 30, 2014, 01:53:55 PM
wow nice work on updating this mod looking nice 8)
Thank you, it took too long, but finally this mod is getting updated :P
Almost forgot, use items it's finished, but still working in some items, and in adding new ones. There are a few items that got a total clean because they were nasty and useless in some cases :P
QuoteThank you, it took too long, but finally this mod is getting updated
better late than never :P
Two new pics, the first one includes a new feature!
Now you can select which items you would like to restock, instead of restocking all the items :P
Quote from: Diego Andrés on December 30, 2014, 01:58:39 PM
Actually you can still set the number of items that will appear in the post profile.
Anyway, that's a pretty good idea, I'm going to add that as an additional option in the admin settings.
Oh, yes, but members just feel special when they can show off all their items. Thanx for the consideration.
And, I do have another suggestion, which I think many people would appreciate. The option to reorder how your items displayed. Normally we had to either customize the 'ORDER BY' statement, or do different custom modding. It would be AMAZING if it could be done in the same way this is done -- > http://custom.simplemachines.org/mods/index.php?mod=1328
That way, members have the freedom of easily re-ordering their item display with the 'drag and drop' system.
Yes I have thought that a lot.
What do you think about adding a 'fav' option in the inventory?
So that way the fav items will come first.
I have the SA Shop installed in my forum. It worked perfectly fine until I upgrade the forum to 2.0.9. The credits info appear twice in postbit.
I tried to uninstall the Mod and the credit info didn't disappear.
I tried to install other ShopMod instead. The same thing happened.
Does anyone know how to delete it?
I actually plan to install SA Shop again once the problem is solved.
Quote from: belok25 on January 12, 2015, 10:35:32 PM
I have the SA Shop installed in my forum. It worked perfectly fine until I upgrade the forum to 2.0.9. The credits info appear twice in postbit.
I tried to uninstall the Mod and the credit info didn't disappear.
I tried to install other ShopMod instead. The same thing happened.
Does anyone know how to delete it?
I actually plan to install SA Shop again once the problem is solved.
Attach your display.template.php of that theme you're using. If it doesn't have, use the one that's in the default theme.
And tell me which mod did you leave installed, SA Shop, or SMF Shop.
New screenshots update!Here are some new screenshots, I've been busy but I finally finished the Games Room.
Features:
- Less coding for handle the game an the payments, just one array for each game.
- Now you can set the payments and the amount you'll lose.
- If the payout of some item is set to 0, it won't appear in the payouts list.
- Nicer presentation :P
Maybe I'll add two or three games more, but before I need to work in some asked features.
- Items pop-up box
- Favourite items
- Limit the number of an specific item per member.
Also I need to add a few missing icons
Regards
Is it possible to see this in action?
The new version? Not yet
I would like to be able to limit an item to being purchasable and visible in the shop only for administrators - these items are intended to be very special rewards for deeds around the board, like awards but they actually do something, so I need them to be listable in the member's inventory, but not be purchasable by just anybody, we intend to gift them, and I don't want the members knowing what's possible to get. Is it possible to do that? If so, how?
Another thing is, how we have ours set up, some of these items are meant to be purchased more than once, and should be able to be stacked - ergo, they only display once in inventory, with a numerical value showing how many 'copies' of that item a user has. Is this doable, as well?
Thanks ahead of time!
Very excited to implement the 2.1 version on my forum. Good luck with it!
Quote from: Dai Li on January 31, 2015, 10:53:41 PM
I would like to be able to limit an item to being purchasable and visible in the shop only for administrators - these items are intended to be very special rewards for deeds around the board, like awards but they actually do something, so I need them to be listable in the member's inventory, but not be purchasable by just anybody, we intend to gift them, and I don't want the members knowing what's possible to get. Is it possible to do that? If so, how?
Another thing is, how we have ours set up, some of these items are meant to be purchased more than once, and should be able to be stacked - ergo, they only display once in inventory, with a numerical value showing how many 'copies' of that item a user has. Is this doable, as well?
Thanks ahead of time!
1- It's possible, but I would say that an awards mod should be the best option to do that.
2- I'll include that in the options maybe.
I found a way of doing it fine enough, just hid the item row if the given item was disabled and the user viewing it wasn't an admin. Still shows in inventory. Actually figured out how to hide given categories from users that aren't admins, too, so that works fine enough for us.
I actually had another question - I'm not sure what all is in the $shopitem array, nor how to find out. What I need is a way to display the comment on items in places besides the actual inventory page (so on the profile page, for instance, as a tooltip), so is there a variable that can be used for that outside the inventory page? If so, what is it?
Edit: -cough- Never mind, found it in the Load.php and forced it to pull comment, too.
One other suggestion, if possible. When "items are shown in member's posts" option is activated by admin ... member's could ALSO have the option to not display their items in posts. Some member's like to buy items, but don't like their posts profile/signature getting cluttered. :)
Everything's looking very nice. Admire the extra work you've been putting into this massive update :)
Quote from: hcfwesker on March 01, 2015, 05:35:56 PM
One other suggestion, if possible. When "items are shown in member's posts" option is activated by admin ... member's could ALSO have the option to not display their items in posts. Some member's like to buy items, but don't like their posts profile/signature getting cluttered. :)
Everything's looking very nice. Admire the extra work you've been putting into this massive update :)
I'll see what can I do :)
Well, I left this very forgotten, but here's a small update
- Favourite items (Including order by favourite first in the profile/posts inventory)
- All items popup
QuoteLimit the number of an specific item per member.
This is also done ;D
Quote from: hcfwesker on March 01, 2015, 05:35:56 PM
One other suggestion, if possible. When "items are shown in member's posts" option is activated by admin ... member's could ALSO have the option to not display their items in posts. Some member's like to buy items, but don't like their posts profile/signature getting cluttered. :)
Everything's looking very nice. Admire the extra work you've been putting into this massive update :)
This is done ;)
Hi,
Wanted to install this Mod, during the first test i get these errors. (see attachment)
Anything i can do to get the errors fixed ?
Quote from: Enzofielt on April 27, 2015, 03:19:20 PM
Hi,
Wanted to install this Mod, during the first test i get these errors. (see attachment)
Anything i can do to get the errors fixed ?
click that "edit" image you see at the front of each listed file/edit and see what edit it is trying to make, and manually edit in the corresponding edits in each file that gives errors. The mod is conflicting with another mod you have installed, previously.
Hey, so i read on your smf tricks website that a 2.0 for this is coming out once smf 2.1 is in beta 2 ( i think its out of beta right now?) did you already update the download?
(my first post on here btw)
Quote from: Diego Andrés on January 16, 2015, 06:43:55 PMLimit the number of an specific item per member.
If by chance you get that working, and could possible share the edits to use it on the SAShop 1.0 version it would be great. All I really need is a way to stop members from buying duplicate items from 1 category, cat.id 17 on our site, to be specific.
I'm loving the updates you're preparing for 2.1, but I , like mnay others, probably won't make the jump to SMF 2.1 until many of the MODs we use are also upgraded to 2.1
Yes that's already done. the last changes were on February I think...
Let me update the Repo on Git so you can check it.
And sure, even me is a bit disappointed for waiting so long to release the mod. I mean, what's the purpose of releasing a Shop mod for 2.1 at this point if Betas are not for production sites :-\
I'm seriously thinking on release it for 2.0 LOL (obviously that would require more work)
I don't know if it's very specific. I made some changes to the sa-shop 1.0 RC1
Added an option in the admin panel where you can turn off the inventory.
When the inventory this disabled, purchase item is automatically used.
Use the sa-shop to add members in certain groups of users with the credits of the shop. With this adaptation was very easy to purchase items.
If you want to add this in the mod I can post here the changes.
Thank you but I already added an option in profile configuration, so users can hide their own inventories (on posts at least)
And I'll think about adding that option of "instant" use.
Regards
Quote from: Diego Andrés on June 26, 2015, 08:17:33 PM
Yes that's already done. the last changes were on February I think...
Let me update the Repo on Git so you can check it.
OK, comparing the edits, and looks like just 2 file edits, I think ...
1. The one for shop.admin.template when adding an item (check only 1 can be purchase)
2. The shoptemplate where items are purchased, and add the IF statement to see if that settings in checked
There's no database call for smfsettings and this item check is there? I haven't seen it
Just a row named "itemlimit" in the items column.
If I remember well, it only required to check the inventory to see how many items the user has.
I'm a bit lost. I've installed shop succesfully on smf 2.0.10 but if I login as a Regular Member it tells me I am not allowed to access it. I cannot see what is in my bank or my pocket to spend, nor the options to spend it on unless I am logged in as admin and view it from the ACP.
Also, is there a clear set of instructions for the "average user" to learn how to use this system?
Finally, how do I tie this in to giving away tangible items in exchange for credits earned, like for 5,000 credits the user can buy a t-shirt.
Thanks!
www.willowvalleyfunnyfarm.com
You need to set permissions for each group to allow them to use the shop.
Great add-on! I've installed it and am setting up my shop. However, I noticed that when I use html in the item description, the html doesn't parse. Is there a file edit I could do to change that?
Oh, figured it out! If anybody else is curious, I just changed this in the various shop templates (Shop.template.php, etc.):
Find:
$info['description']
Replace With:
htmlspecialchars_decode($info['description'])
Quote from: Diego Andrés on July 09, 2015, 12:05:04 AM
Just a row named "itemlimit" in the items column.
If I remember well, it only required to check the inventory to see how many items the user has.
I know it's been awhile but finally decided to actually attempt this. I've got everything done except one portion. In your new files, there is a Sources/ShopBuy.php which doesn't exist in the SMF 2.0 version, everything is crammed in Shop.php, where the coding to buy is listed.
This portion code, which I know I don't need the whole part, just relating to "itemlimit" but there's no DB check that even calls for itemid in the shopbuy section in Shop.php. So trying to figure where, and what, should I put this from ShopBuy.php ...
// Check session
checkSession('get');
// You cannot get here without an item
if (!isset($_REQUEST['id']))
fatal_error(Shop::text('buy_something'));
// Make sure is an int
$id = (int) $_REQUEST['id'];
// Get the item's information
$result = $smcFunc['db_query']('', '
SELECT itemid, name, price, count, status, itemlimit
FROM {db_prefix}shop_items
WHERE itemid = {int:id}',
array(
'id' => $id,
)
);
$row = $smcFunc['db_fetch_assoc']($result);
$smcFunc['db_free_result']($result);
// We need to find out the difference if there's not enough money
$notenough = ($row['price'] - $user_info['shopMoney']);
// How many of this item does the user own?
$limit = self::CheckLimit($id);
// Is that id actually valid?
// Also, let's check if this "smart" guy is not trying to buy a disabled item
if (empty($row) || $row['status'] != 1)
fatal_error(Shop::text('item_notfound'));
// Already reached the limit?
elseif (($row['itemlimit'] != 0) && ($row['itemlimit'] <= $limit))
fatal_error(Shop::text('item_limit_reached'));
Thanx for any help and suggestion. I'm still trying through trial and error.
So you are editing the equal portion of code for smf 2.0?
You would only need to add the if that checks the limit at the very end of that code you pasted.
$row['itemlimit'] (hope I wrote that okay) is what you added to the dB, you should add a new setting for that column in the items admin to actually manage it, shouldn't be hard.
and the $limit variable is refering to a function that count the number of 'that' item the user actually has.
Sorry if I didn't explain better. I don't know exactly where is 'something' in the smf 2.0 version of sa shop.
Regards
I was wondering if there was a way to "reset" everyone's credits based off of the current settings for posting. For example, if I get 3 points per post but only in certain boards, can I reset everyone's points so that they get the updated point total?
Hi i was wondering why other members in my forum cannot view the shop?
i just installed the shop and currently i am testing my forum so i had another account which can not view the shop at all ?
hope im in the right place.
i've been scouring the net (along with a couple of friends), to find a Mod like this. Everything was going smoothly until I bumped into this issue in the install area. All tests but these were successful.
Execute Modification ./Themes/core/Display.template.php Test failed
1. Add After ./Themes/core/Display.template.php Test failed
2. Add Before ./Themes/core/Display.template.php Test successful
please please please help.
Quote from: razzy on August 17, 2017, 08:50:54 PM
hope im in the right place.
i've been scouring the net (along with a couple of friends), to find a Mod like this. Everything was going smoothly until I bumped into this issue in the install area. All tests but these were successful.
Execute Modification ./Themes/core/Display.template.php Test failed
1. Add After ./Themes/core/Display.template.php Test failed
2. Add Before ./Themes/core/Display.template.php Test successful
please please please help.
That isn't vital for the installing of this mod, you shouldn't worry about it.
Oh nice! hopefully it works. I'll give it a shot. -crosses fingers-
It works!
Thank you so much for the nudge in the right direction. My members are going to go bonkers over this one, once I fully set it up.
=)
I am running SA Shop on 2.0.14 and it works great. What I would line how can I add more items.php like Rock.php. We wanted to make one for coffee because we can not change the statement after the uses of the item. If we copy rock.php and change it ti coffee we get a white page when we click add item. How do we add more items.php like Rock.php. I know we will need to edit an other file to make the drop-down work but do not know what one.
After installing, to few members I gave 1000 points and to others 0 points even though they were having posts and topics. How can I fix it?
Is this page running on this mod?
https://smftricks.com/index.php?action=store
Quote from: Dwev on February 25, 2018, 05:56:52 AM
Is this page running on this mod?
https://smftricks.com/index.php?action=store
I think it's a personal modification of the author, or it may have some basis in the mod that was edited for what it required.
Regards!
Quote from: Dwev on February 25, 2018, 05:56:52 AM
Is this page running on this mod?
https://smftricks.com/index.php?action=store
No, that's the smf store by smfhacks
Quote from: Diego Andrés on February 25, 2018, 09:57:17 AM
No, that's the smf store by smfhacks
Thank you for sharing this info.
Is the look a theme or is it all done in css?
And if it is a theme, do you know where it can be purchased?
Because it seems a nice starting point for making a shop that's incorporated with our forum.
(and it won't look like your store of course, we don't like imitations).
Quote from: Dwev on February 25, 2018, 05:49:37 PM
Quote from: Diego Andrés on February 25, 2018, 09:57:17 AM
No, that's the smf store by smfhacks
Thank you for sharing this info.
Is the look theme or all done in css?
And if it is a theme, do you know where it can be purchased?
Because it seems a nice starting point for making a shop that's incorporated with our forum.
We edited the store to fit our site design.
Please don't let discussion go off topic.
Regards
When I buy test item for 10 credits, I get -955 credits in my pocket... That's a bug.
It's already fixed for the future release
Hello, hopefully can someone help me out
i got 2 issues.
When one of my members purchases something in the shop they always get more than one. It seems like they can't choose to buy just one.
How can I solve this issue?
My other issue is that the credits don't show up in the profile on my theme, as doesn't the inventory show up in the siggy.
thank you in advance
So my mini project got shelved for more than a yr, in a sense. Although I'm picking it back up and am almost finished it. The forum is a monster, to say the least.
So somehow I have "1.0 RC1" Shop on a "2.0.15" board. Needless to say I should Uninstall "1.0 RC1" and install " SMFShop4.0.1forSMF2.0.zip"..right?
Anyways...I'm a broke nerd, so this next bit I hate to even mention because I cannot afford to pay anyone to help. Although is it possible to expand on 'rock.php', to make multiple 'image' based items to be purchased to indefinitely sit in the users Inventory? Possibly along with custom 'folders' for the categories?
If anyone can help, even in the smallest of ways I would be eternally greatful. Here or pm...anything please. <3
I'd recommend you using SMF Shop instead of SA Shop.
Personally I won't be updating this mod on SMF 2.0, update will only be available for SMF 2.1 in the future.
SMFShop is what I ended up installing. Unsure how or why I had 1.0 RC1 of SA Shop. O.o. Anyways, the install went smoothly, but the credits in profiles, and shop in the top menu are nowhere to be seen.
Error was in: ./Sources/Subs.php
and I'm using a custom theme called Army.
If I can figure out those issues, I'll be halfway done. Next I just need to figure out how to add 'image' items, like multiple 'rock.php's and lots of them.
Really looking forward to see what you do with the SMF 2.1 update. I'd even be all for paying for it..
ST Shop 3.0 released for SMF 2.1 RC1 as promised.
I don't have time to add spanish translation right now and to properly update readme/descriptions, but mod is ready to be tested and used I guess :)
Just upgraded my site from 2.0 to 2.1 and ran into a few issues...
First, the mod won't install properly if you previously had the shop mod installed (eg the tables already exist). You have to manually add the new columns to the tables or you'll get an error when trying to install the mod ("Unknown column 'catid'").
Second, when I go into the shop admin I see these:
8192: Non-static method Shop::getFeed() should not be called statically
.../index.php?action=shopfeed&_=1550342032145
8: Undefined index: lfyi
.../Themes/default/ShopAdmin.template.php (Line 33)
Thanks.
I never worked on an upgrade file as of yet as the previous version of this mod was not used as much as the other Shop mod, but I definitely have in mind something for that other mod perhaps, but also following logic users of SMF Shop will keep themselves on that path.
I'll look into the other issue, that was literally the last thingy I added to the mod I guess I didn't test it properly, thanks.
Fixed
Is there any way to give users the credits based on their current amount of postings and started threads when installing this shop in a populated forum?
Hi,
I have done a test install of SMF 2.1 RC1 and decided to check out the ST Shop. It installed with no errors but once I opened it put all the settings in place for it to function and added credits to my test member I got the errors in the image below.
Also I cannot get the games to work every time I click on the 'Games Room' tab it says 'Your pass for the games room has expired, please buy a new pass at the shop! ' then I go to the shop there is nothing there for me or the test member to buy a pass.
Ok a quick update from the posting above.
I have now uninstalled the Mod and now get constant errors
Type of error: General
Hook call: function "Shop::initialize" in file /home1/mysite/public_html/test could not be called. http://www.mysite.co.uk/test/index.php?action=admin;area=logs;sa=errorlog;desc
Ok now I know the above 'Hook Call' was becuase the hooks weren't deleted as I unistalled it...I have now manually removed them and the error has stopped.
Will look into it thanks.
Regarding the games room it's beause you need to setup an item using the game pass module so you can buy it and use it.
Quote from: Diego Andrés on February 24, 2019, 12:28:23 PM
Regarding the games room it's beause you need to setup an item using the game pass module so you can buy it and use it.
Ok sorry to seem dumb but where do I find the 'game pass module' was that the other download 'SA_Shop1.0_RC1.zip' on the download page?
Quote from: davejo on February 25, 2019, 03:44:36 AM
Ok sorry to seem dumb but where do I find the 'game pass module' was that the other download 'SA_Shop1.0_RC1.zip' on the download page?
When adding a new item to the catalogue you have the option to select modules, use the game pass module :P
Quote from: Diego Andrés on February 25, 2019, 09:59:28 AM
Quote from: davejo on February 25, 2019, 03:44:36 AM
Ok sorry to seem dumb but where do I find the 'game pass module' was that the other download 'SA_Shop1.0_RC1.zip' on the download page?
When adding a new item to the catalogue you have the option to select modules, use the game pass module :P
Thank you
I believe I have an older version of this version of Shop upon further inspection, however it has no removal button in the package manager. How would I go out uninstalling this?
SA Shop 1.0 RC1 © 2012 Sleepy Arcade (copyright at buttom for referance)
Quote from: gman123 on March 24, 2019, 03:01:49 PM
I believe I have an older version of this version of Shop upon further inspection, however it has no removal button in the package manager. How would I go out uninstalling this?
SA Shop 1.0 RC1 © 2012 Sleepy Arcade (copyright at buttom for referance)
You gotta emulate the version the mod was compatible with. But the package already installs on every version of SMF 2.0.x so shouldn't have that issue.
Hello,
I am looking for a way to charge fees for posting affiliate links. The best idea I got is to use x credits when a forumer posts an affiliate link.
If the forumer does not have enough credits, he could not post affiliate links.
First, is it possible for the forum to distinguish affiliate links ?
If yes, is my idea doable with SA/ST Shop ?
Thank you :)
Installations actions for "ST Shop"
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
I guess its since im running 2.015 is there any way to get an older version?
Previous version is still attached in the mod page for 2.0.x
Quote from: Diego Andrés on April 13, 2019, 10:29:06 PM
Previous version is still attached in the mod page for 2.0.x
When I use version 1 that doesnt work.
I would like to see this mod in action. Any dome site or someone who has this mod running?
Quote from: aksal on June 01, 2019, 06:27:51 PM
I would like to see this mod in action. Any dome site or someone who has this mod running?
Not atm, I added some pictures.
Hi, I just installed this on 2.1 RC2 and when I modify boards I get a few errors that I don't know how to fix.
8: Undefined index: Shop_credits_bonus
.../index.php?action=admin;area=manageboards
.../Sources/Shop/AdminShop.php (Line 226)
8: Undefined index: Shop_credits_post
.../index.php?action=admin;area=manageboards
.../Sources/Shop/AdminShop.php (Line 225)
8: Undefined index: Shop_credits_topic
.../index.php?action=admin;area=manageboards
.../Sources/Shop/AdminShop.php (Line 224)
8: Undefined index: Shop_credits_count
.../index.php?action=admin;area=manageboards
.../Sources/Shop/AdminShop.php (Line 223)
Any time I do anything on the manage boards page or modify a board, it pops those 4 errors. It also appears to forget the settings for the credits/bonus the next time I modify.
Any thoughts on how to fix? Any help would be much appreciated :)
It was due to an update in that hook.
function Shop_preboardTree(&$extraBoardColumns)
{
global $context;
$extraBoardColumns += array(
'b.Shop_credits_count',
'b.Shop_credits_topic',
'b.Shop_credits_post',
'b.Shop_credits_bonus',
);
}
function Shop_preboardTree(&$boardColumns, &$boardParameters, &$boardJoins, &$boardWhere, &$boardOrder)
{
array_push($boardColumns,'b.Shop_credits_count','b.Shop_credits_topic','b.Shop_credits_post','b.Shop_credits_bonus');
}
I'll update package later, should be fixed in Github now.
PS: I won't add changelog entry for that.
Oh wow thanks for the super speedy response! That worked like a charm. I do have one other question since I have yet to figure it out. How would I be able to enter in a decimal for the credits per word? I know that is an odd request but it is something we use with the older version of the mod on our board. I thought adding a step to the input would help and it did in the sense that it allows me to enter it but it then rounds the entry up or down depending on the value. Do you have any thoughts on how to stop it from rounding?
EDIT:
Also I forgot to mention that I occasionally see this error popup though I don't know whats causing it outside of navigating through the shop admin pages.
Type of error: Template
Unable to load the 'main' template.
.../index.php?action=shopfeed&_=1563395950996
Do you have a line/file for that error, so I can have a look.
About the other thing, I always wanted it to use integers only so you would have to change a few things, starting from the database and make every points column a float/double type instead of integer. Not a fan of doing this myself on my free time at this point tbh
I do not have a line/file for the error as that is all the info in the log. I did click the little symbol next to Template and it gave me some backtrace info:
#0: fatal_lang_error()
Called from /home1/aliciam/21testing/Sources/Load.php on line 2610
#1: loadSubTemplate()
Called from /home1/aliciam/21testing/Sources/Subs.php on line 3279
#2: obExit()
Called from /home1/aliciam/21testing/index.php on line 154
Edit:
I clicked around some more and it seems to only give me the error when I'm clicking a link (either at the bottom or in the shop menu) on the shop info page if that helps at all.
I'll try to check that one in the next few days :P
2 updates in one day cuz why not ::)
3.0.2 - 25 July 2019
Exit action if the site is down.
Added a hook for the stats.
Remove unnecessary array from the stats, merging both for a better use.
Added a redirection exit when the user didn't select a profile action correctly..
3.0.1 - 25 July 2019
Fixed value type for fee in trade center.
Fixed boards custom shop values, replaced old hook with new one.
Is it possible to convert/transfer over from SMFShop (http://custom.simplemachines.org/mods/index.php?mod=65) to this modification? I absolutely adore the look (which always happens with SMFtricks) and would love to use it.
Currently using 2.0.15. :P
I do have plans for it but I'm not sure when it will be done.
Awesome. I would love to use this mod if you ever get to it. :)
Hi
A very comprehensive Mod you have created her, nice one - Can this mod be used as a ecommerce shop i.e payment terms paypal etc or is it just for use with credits earned from forum posts?
Cheers
Gary
Quote from: soilsearcher on August 15, 2019, 11:53:16 AM
Hi
A very comprehensive Mod you have created her, nice one - Can this mod be used as a ecommerce shop i.e payment terms paypal etc or is it just for use with credits earned from forum posts?
Cheers
Gary
Only shop credits/points.
este mod tenia futuro pero esta muy limitado no tiene nada intresante que adquirir al comprar deberia ser mas "util"
como un intercambio de puntos por algun privilgio como ver temas con contenido oculto
solo un punto de vista
Quote from: hocs22 on August 15, 2019, 12:48:06 PM
este mod tenia futuro pero esta muy limitado no tiene nada intresante que adquirir al comprar deberia ser mas "util"
como un intercambio de puntos por algun privilgio como ver temas con contenido oculto
solo un punto de vista
Por favor, en estos foros escribe en inglés ya que no son los foros en español.
--
Please, in this boards write in english because this boards aren't the spanish ones.
3.1.2 - 26 August 2019
Remove scheduled task of bank interest on uninstall.
3.1.1 - 26 August 2019
Updated links and names in modules and credits.
Updated code for module uploads.
Fixed wrong function call in buy action.
Added index.php file to modules directory.
Corrected items and modules paths.
3.1 - 26 August 2019
Hook files removed because those are overrated.
Item template added as a standalone file to preserve files order.
Updated code in most files and some files were renamed.
Update in the images upload option.
Fixed duplicated template functions for edit/add items/categories.
Legend New feature
Bug fix
Improving an old feature
For this update I'd suggest to uninstall -> install. Just make sure to keep
unchecked the option to delete data associated with mod during uninstall.
More updates coming soon and will only require to replace files as usual.
3.2.3 - 01 September 2019
Bank interest scheduled task was logging twice.
3.2.2 - 31 August 2019
Fixed
Delete after use field in Shop item options, now it's displaying correctly.
3.2.1 - 29 August 2019
[Module] Steal module now allows you to decide if the user receives an alert, pm or both when someone robbed him.
Let the alerts function receive the additional information.
Improved implementation of different icons for alerts.
3.2 - 28 August 2019
Alerts system support. User can receive alerts when someone sends him credits/items and notify of trade sales.
Corrected very few language strings.
Remove credits/points when post is removed.
SMF 2.1 RC3/Final Added support for likes. Give points/credits to the post author for each like received.
SMF 2.1 RC3/Final Fixed classes and template issues.
Legend New feature
Bug fix
Improving an old feature
So whenever I try to create a new category I get the following error:
Fatal error: Unsupported operand types in .../Sources/Shop/AdminShop.php on line 218
That line is as follows: $boards[$row['id_board']] += array(
I get this error on a clean install of smf 2.1
I'll look into it
Quote from: phoenixphyre on September 02, 2019, 08:32:34 PM
So whenever I try to create a new category I get the following error:
Fatal error: Unsupported operand types in .../Sources/Shop/AdminShop.php on line 218
Please try the new update, just replace AdminShop.php file on Sources/Shop/AdminShop.php
3.2.4 - 02 September 2019
Fixed issue on
integrate_boardtree_board not checking if board was available.
Legend New feature
Bug fix
Improving an old feature
Works great. Thanks for the super quick reply!
Please assist with this database error @Diego Andrés
QuoteUnknown column 'callable' in 'field list'
File: /home/vol11_1/epizy.com/epiz_24303111/htdocs/Packages/temp/install.php
Line: 45
Current version: 2.0.15
ST Shop is for SMF 2.1 only
Ran into another error that I can't figure out. It comes up whenever the alerts dropdown is viewed.
Type of error: General
2: Missing argument 2 for Shop::fetchAlerts()
.../Sources/Shop/Shop.php (Line 771)
That line is as follows: public static function fetchAlerts(&$alerts, &$formats)
Quote from: phoenixphyre on October 20, 2019, 08:07:30 PM
Ran into another error that I can't figure out. It comes up whenever the alerts dropdown is viewed.
Type of error: General
2: Missing argument 2 for Shop::fetchAlerts()
.../Sources/Shop/Shop.php (Line 771)
That line is as follows: public static function fetchAlerts(&$alerts, &$formats)
ST Shop is using the current GitHub files.
For RC2 you'd need to comment these lines from Shop.php
'show_alert' => 'Shop::showAlerts',
'fetch_alerts' => 'Shop::fetchAlerts',
I recently upgraded to smf 2.1 RC 2. I have tried to install the version of ST Shop from this site, and tried the one from github. However, I get the same Database error: Unknown column 'catid' in 'field list'
File: /home/*****/****/main/Packages/temp/ST-Shop-master/install.php
Line: 704
What am I doing wrong? Or is this not compatible with the RC2?
Quote from: Rasim Aeon on December 19, 2019, 08:20:36 AM
I recently upgraded to smf 2.1 RC 2. I have tried to install the version of ST Shop from this site, and tried the one from github. However, I get the same Database error: Unknown column 'catid' in 'field list'
File: /home/*****/****/main/Packages/temp/ST-Shop-master/install.php
Line: 704
Did you already have ST Shop installed?
https://www.simplemachines.org/community/index.php?topic=317308.msg4007307;topicseen#msg4007307
I did. Is that the cause and is there a fix? I thought the previous version was removed in the upgrade, as was mentioned in the notes, all mods were removed...
Did you click the link I posted? It's to a post in this same support thread.
Duh.....lol :o I read that three times prior to posting....or maybe I just looked at it......lol. If I actually read it like I just did...i would have comprehended it earlier.....pun intended. Thanks!!!
OK. That now leads me to. Which tables or columns need to be added. Do I rename id to catid?
I deleted the tables and the files. I was able to uninstall. Then I reinstalled and got a 500 error each time I clicked one of the buttons (ie. shop settings). Fixed that by restoring the backup. I deleted the st shop files from the package manager. The shop items folder and 3 tables remain. Started over and I get the original error I posted.
Clearly not doing something right. When I get it to install I get the 500 error. If I uninstall it and deleted the remaining files then my users can only see the post headers but not the body. Kind of weird. I have restored the forums again, and will leave it be until i see a fix.
Can someone help me with a manual install of this mod?
maybe this can help a little Installing a Package (https://wiki.simplemachines.org/smf/SMF2.0:Package_manager) ... If not, you should check the country of the modification to go file by file.
Regards!
Ok. installed manually. it looks good, however the only functionality is when i click shop admin. the other buttons give me a 500 error
Any ideas?
Quote from: Rasim Aeon on December 20, 2019, 05:54:28 PM
Ok. installed manually. it looks good, however the only functionality is when i click shop admin. the other buttons give me a 500 error
Any ideas?
Are you hosted on a paid server? What characteristics does it have? php which version you have?
Regards!
Quote from: Rock Lee on December 20, 2019, 07:03:49 PM
Quote from: Rasim Aeon on December 20, 2019, 05:54:28 PM
Ok. installed manually. it looks good, however the only functionality is when i click shop admin. the other buttons give me a 500 error
Any ideas?
Are you hosted on a paid server? What characteristics does it have? php which version you have?
Regards!
Yes hosted on a paid server. PHP version 7.2.7
If you are using branch 2.0.x it only supports up to php7.1 and branch 2.1 of SMF there is no problem although it is in RC so it is not recommended to use it in a production site yet. From your administrative panel try to download PHP version also look in the error log (it should appear as error.log or log.txt) to see what marks you, you will find it in the root of html_public...
Regards!
Hello. As in the SMF store in the tab buy items change the name of the color of the item. What code must be? below I send a screen what I mean
That's not an option or feature
4.0 - 31 October 2020
Added option to import data from SMF Shop, SA Shop and ST Shop 3.x
Icons for Shop items updated.
More hooks.
Allow easy creation of Games for the Games Room.
Alerts reworked to use background tasks.
Code optimization.
Fixed minor bugs and logic issues.
Portions of the mod rewritten and code updated.
Really hoping I tested everything well, please report any issues you encounter if you decide to use this mod :)
Maybe who will know what and how. why in the store st shop 4.0 as modol is added via import or when i upload via ftp does not see this add-on at all. it's about PrimaryMemberGroup.php and if I change to lowercase letters, it doesn't do anything.
And one more question, how to import data from smf shop to st shop because I have no idea
You have to add it from the modules section, installing from a path not a feature.
To import data you do it from the maintenance section in the shop admin.
Why, when I try to add the PrimaryMemberGroup.php mod through modules, I get an error 500
Because that is not a compatible module perhaps, at the moment there's no PrimaryMemberGroup.
If you attach it I can fix it for you.
Also that's a good bug report, I'll make sure to fix it.
Please. Here is the file in the attachment
and I still have such a question. How to create your own game for the game room.
4.1 - 03 November 2020
Added basic integration for SMF Arcade.
Minor tweaks to Modules and Games.
Fixed credits format for standard title placement in posts.
Don't show alert settings if the shop is disabled.
Fixed major inventory issue, when viewing posts and profiles.
Portions of the mod rewritten and code updated.
Quote from: Koper on November 03, 2020, 07:50:52 PM
Please. Here is the file in the attachment
Try this file (https://github.com/SMFTricks/ST-Shop-Modules/tree/master/Primary%20Member%20Group)
Also make sure you update your shop to the latest version before using it.
Quote from: Koper on November 03, 2020, 07:54:58 PM
and I still have such a question. How to create your own game for the game room.
The games are simple php games, you can just create one based on any other inside the /Games folder
4.1.1 - 05 November 2020
Added cache inventory in posts and profile.
Fixed issue caused by loading the inventory template.
The return of likes, set credits received per like.
Added a content table log in the database to prevent duplicates from likes and best answer integration.
Improved integration with SMF Arcade (https://web-develop.ca/index.php?board=9.0). Added settings for personal best, and new champion.
Added integration with Best Answer (https://custom.simplemachines.org/mods/index.php?mod=4274).
Check if there's an usable input for an item instead of printing empty method.
Added language strings support for Primary Member Group Module.
After uploading and clicking on install i get a 500 error page then I get this error log even though the mod is not installed. (Using SMF2.1RC3 PHP7.2)
It appears there's a typo in the installer, will fix in a bit
4.1.2 - 06 November 2020
Fixed wrong image name in last purchased icon.
Fixed typo in installer file.
Various minor changes.
Worked perfect thanks! 8)
why show this msg after install
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Check the SMF version you're using vs the version the mod is supporting.
Quote from: Diego Andrés on November 09, 2020, 12:27:45 AM
Check the SMF version you're using vs the version the mod is supporting.
here is detail
SMF Package SMF 2.0.17 SMF 2.0.17
Sources 2.0.17 2.0.17
Default Templates 2.0.16 2.0.16
Language Files 2.0.16 2.0.16
This mod is not for SMF 2.0.x
shop page doesn't show from mobile menu..
2.1 RC3
mods
7 Forum Width Setting 1.2 November 21, 2020, 11:38:27 AM
20 Ad Managment 3.5d November 21, 2020, 11:39:47 AM
14 Report BBC 1.0.0 November 21, 2020, 11:40:46 AM
5 SMF Gallery Lite 6.0d November 21, 2020, 11:41:15 AM
10 Google Analytics Code 1.5.1 November 21, 2020, 11:41:45 AM
8 Hide Images From Guests 2.1 November 21, 2020, 11:43:10 AM
16 FancyBox 4 SMF 0.7.2 November 21, 2020, 14:27:10 PM E
22 Simple Audio Video Embedder 5.1.5a November 21, 2020, 20:22:18 PM
8 EzPortal 4.5.12 November 27, 2020, 11:04:58 AM
1 ST Shop 4.1.2 November 29, 2020, 13:58:50 PM
Quote from: woolly bugger on November 30, 2020, 09:31:04 AM
shop page doesn't show from mobile menu..
I'm not sure what you mean
Quote from: Diego Andrés on November 30, 2020, 10:13:33 PM
Quote from: woolly bugger on November 30, 2020, 09:31:04 AM
shop page doesn't show from mobile menu..
I'm not sure what you mean
When selected from menu nothing happens
Even open link does not work!
Only open in new tab get to the shop page
Links work on desktop just fine only noticed problem on mobile
Quote from: woolly bugger on December 01, 2020, 08:51:52 AM
When selected from menu nothing happens
Even open link does not work!
Only open in new tab get to the shop page
Links work on desktop just fine only noticed problem on mobile
This is not a mod issue, but rather a SMF Theme issue with buttons and submenus.
Would need to be logged over in GitHub.
Can anyone make a lottery mod and something like that on smfshop.com
4.1.7 - 30 August 2021
Display "No stats" message when stats are empty or not available.
Fixed missing links for user profiles.
4.1.6 - 23 August 2021
Use unsigned in database columns
4.1.5 - 19 July 2021
Added link to the integrations/mods in the settings page.
4.1.4 - 19 July 2021
Fixed double title in inventory.
4.1.3 - 16 July 2021
Fixed typos.
Value type for int columns is now bigger just in case.
4.1.10 - 27 October 2021
Improve inventory display in posts.
4.1.9 - 13 October 2021
Use
integrate_register_after for the Simple Referrals integration.
4.1.8 - 03 October 2021
Fixed some minor issues with settings.
Fixed typo in notifications.
Added integration with Simple Referrals (https://custom.simplemachines.org/index.php?mod=4294).
Sort Addons by name
Would it be possible to create an item that, when used on a specific member (whose display name should be typed in), successfully steals a random item from them, ending up in the stealer's inventory? I would really love it if you could help me create an item as such. With my fairly limited knowledge of php, I'm afraid I haven't made much progress when attempted to create it myself...
Quote from: jjson on February 12, 2022, 05:35:25 PMWould it be possible to create an item that, when used on a specific member (whose display name should be typed in), successfully steals a random item from them, ending up in the stealer's inventory? I would really love it if you could help me create an item as such. With my fairly limited knowledge of php, I'm afraid I haven't made much progress when attempted to create it myself...
Hello again. I'd really love to know if this would be possible anytime soon. Thanks!
Yes, I was going to message you today about that.
Had to delay it a little bit. I'll have a look at the mod and your request in the next days.
Added new module "Steal Random Item"!
It is available in the github repository for the Shop modules:
https://github.com/SMFTricks/ST-Shop-Modules/tree/master/Steal%20Random%20Item
Add the following text strings to Themes/default/languages/Shop/Modules.english.php
// Steal Item
$txt['Shop_si_name'] = 'Steal Item';
$txt['Shop_si_desc'] = 'Steal an item from another member';
$txt['Shop_si_setting1'] = 'Probability of successful steal:';
$txt['Shop_si_setting1_desc'] = 'For steal, user does NOT need to, and should NOT know the probability! It\'s more fun this way :-)';
$txt['Shop_si_setting2'] = 'Send personal message:';
$txt['Shop_si_setting2_desc'] = 'When a user gets robbed shop will send a pm with information about who robbed them and what item they stole from them';
$txt['Shop_si_setting3'] = 'Send alert:';
$txt['Shop_si_setting3_desc'] = 'When a user gets robbed shop will send an alert with information about who robbed them and what item they stole from them';
$txt['Shop_si_success1'] = 'You successfully stole from %2$s, you robbed the item "%1$s"';
$txt['Shop_si_error'] = 'That user does not exist or is not carrying any items!';
$txt['Shop_si_notification_pm'] = 'We are sorry to inform you that you just have been robbed!' . "\n" . '[url=%1$s]%2$s[/url] has stripped you of the item [i]%3$s[/i] from your inventory.' . "\n\n" . 'This is an automatic notification, have a good day.' . "\n" .'- Forum Shop';
$txt['alert_shop_module_steal_item'] = '{member_link} just robbed you the item "{item}" from your inventory!';
Shop update soon!
Recently switched one of my sites from PHP 7.4 to PHP 8. Now I see these two error messages every time someone views a topic:
Hook call: function "Shop\Integration\User::template" in file /.../public_html could not be called.
The callable Shop\Integration\User::template could not be called.
I 'suppose' I've fixed it because I can't reproduce it.
I've been fixing small stuff for a couple weeks or even months so I've forgotten what changed really.
Please use the files from v4.1.11 on github: https://github.com/SMFTricks/ST-Shop/tree/v4.1.11
I'll try to release it sometime next week.
Also I think the option to not display duplicates is broken?? Not sure if anyone is using it, will have a look.
Is an update for SMF 2.1.1 on the radar?
Uhh I forgot about it, it's the link on my last post.
I'll get it out tomorrow if you rather wait, and then slowly work on a newer v5 in the next couple of months :)
Is it difficult to implement credits for an action? For example... I have a rating mod... I'd like to implement credits for rating someone (for example).
I have a couple of integrations going already, Arcade, Best Answer and Referrals.
Usually, if the rating (in this case) is executed using a hook then it's very straight forward. If the mod is using it's own custom function, then the mod author could add a custom hook for other mods to integrate (if that's something you can request), Sycho and Chen were kind enough to add it to their mods.
And then the less fun solution is to modify files.
Another thing to have into consideration for ratings, is what happens when the users change their reaction? The points get deducted again? Nothing?
I already have a content table for the shop mod, which I use for likes and best answer to avoid duplicated "rewards", I don't do "refunds" but it's doable I suppose.
The particular ratings mod I am thinking of only allows ratings to be undone during the current page cycle... you can not undo ratings after the page changes. This could be of advantage...
:)
I can also see myself trying like heck to implement credits for a certain badges mod that is available commercially as well... or perhaps triggering a badge FOR certain credits, etc... failure is likely... but I'd try like heck! ;)
QUESTION: I have a mod that awards credits (it has a setting for "SMF Shop Credits" ... but is compatible with the older version of SHOP. How difficult would it be to convert to award credits for your version?
Same as my previous answers to your similar question.
If the author of the other mod(s) won't add some trickery (custom hook/s) on their actions, just drop me a pm and we can discuss it if you really want it.
My apologies... I figured if you knew the old system was already programmed in, it may be a simple change to work it out with yours. When I asked the prior question (about the same mod BTW), I wasn't aware the old Shop credits capability was already programmed in.
Hello! Just a quick question... what are the red and green status markers for in the shop items list? I tried to find some documentation on that, but no luck :-\
In the admin? It just means disabled/enabled
Omg thank you so much. My dyslexia read it "endable" instead :laugh:
Hello,
At this moment, we work with our team on a rpg-website based on SMF. For this RPG we have ST Shop for inventory and we're searching for a package for 'Choco Frog Card albums' for our members. It should be a collection space, but also the possibility to trade cards with other members. Earlier we used SA Shop but I cannot find it. Can someone help me with the question if SA Shop is still available and if not, which package would be suitable for us?
Best regards,
Chris de Boer
on behalf of #TeamPotterDome
ST Shop is SA Shop
Quote from: Diego Andrés on August 07, 2022, 03:30:23 AMST Shop is SA Shop
Hello Diego,
Thanks for your quick reaction.
Is there another Shop package which can work next to ST Shop?
Or is it possible to create in one ST Shop environment a Choco Frog Collection next to the inventory?
With kind regards,
Chris de Boer
On behalf of PotterDome
Not easily.
So far all you could do is add your items to a category for the users to get, but the inventory does not have category filters, only sorting and only inside the shop.
There's no other shop mods for 2.1 that I'm aware of. I think I saw the garage mod somewhere on GitHub, but that's it.
Hello Diego,
Thanks again!
From my collegue the additional information:
"We want that out of X items random one automaticly given to the members" (sorry for my bad English and bad knowledge, I'm pretty new with SMF)
With kind regards,
Chris de Boer
On behalf of PotterDome
It doesn't have that feature.
You could use a custom module so that they "use" it and they get a random item from the shop.
Hello Diego,
Thanks again!
I hope you are not going crazy by now.
First off I asked a colleague who is better in English than I am to explain things better.
How do we build the module within the shop itself, it would be nice if we are able to do it in the shop itself, as we are using it for the RPG in itself as well. We do know some PHP but this is too high of a level for us to do.
Our RPG is quite unique. As I said we already use your shop and are really happy with it.
So to explain it as clear as possible. We have an X amount card (chocolate frog cards) and would love it as, if one is bought, it would be given out randomly. It doesn't matter if the player gets a double card. Kind off like a trading card/collect them all feature.
We have studied the separate files in the costum folder, but we can't figure it out. Could you please help us?
Regards,
Chris de Boer
On behalf of PotterDome
So hopefully I understood correctly, please verify with me.
You want an item to be usable and give another random item?
Hello Diego,
If they buy one card, we want that to be a random card they can collect. It doesn't need to do anything further.
Thanks again!
Regards,
Chris de Boer
on behalf of PotterDome
Hello Diego,
I'm sorry if double posting isn't allowed.
But I was wondering if you are able to help us out or that what we want isn't possible at all?
Thanks in advance
Kind regards,
Chris de Boer
on behalf of PotterDome
I can do a new module like the one I proposed in my message.
From the admin:
- Select the chances (percentage) of the user getting an item.
- Choose a category or all items
For the user when "using":
- Getting the random item.
It might take some time before I can get to it.
Hello Diego,
Thanks for the quick reply.
That would be lovely and is exactly what we need. (For us the chance of getting the (random) item from the (card) cat would be 100%.) Do you need anything from us?
Thank you so much again,
Kind regards,
Chris de Boer
on behalf of PotterDome
Can users donate credits to each other? And can Admins deduct credits from users?
Yes both can be done.
Users have the "send credits" option when viewing other members profile, or in the shop action in "Gift".
Admins can use the option in the admin to deduct credits.
That's awesome!!
Quote from: Diego Andrés on October 15, 2022, 09:08:15 AMYes both can be done.
Users have the "send credits" option when viewing other members profile, or in the shop action in "Gift".
Admins can use the option in the admin to deduct credits.
Where when viewing their profile can you send a gift?
It'd be in action > send gift, in the profile menus.
I'm afraid the Shop must be enabled (along with gifts) to send items, credits, etc; not sure if this is an issue for you.
Maybe in the future I'll change things around to include this feature in the standalone mode.
Can you help me with this? It make minus balance when I tried play the game
You cannot view this attachment.
It's intended behavior to go negative.
If your forum doesn't have a large economy yet, you could use smaller values.
Is the SMF 2.0 version still available for downloading? Thank you
Quote from: atanua on April 13, 2023, 10:07:56 PMIs the SMF 2.0 version still available for downloading? Thank you
No, it's not available anymore
If anybody still has the SMF 2.0 version of this mod please kindly let me know. Thank you
Can you please let me kmow what is the last version to work with SMF 2.0? Thank you
None of them are available for download, and can't be attached either those packages don't have a license.
I'd suggest you use SMF Shop.
What was the last ST Shop version working with SMF 2.0?
None, it was SA Shop previously.
It was pretty much the same as SMF Shop, which is why I suggested you using that if you're not upgrading to SMF 2.1
Ah! I see. THank you. SO I will want to look for SA Shop.
Been playing with this on test site.
Should you create a new version
Then maybe you could have the shop items so that admin can select if that item is tradable also add an option to notify admin when an item is bought.
Also found error
This item is missing it's module file.
Couldn't open the file: /Shop/Modules/DecreasePost.php
Has sorted the missing file, The file name in stshop_modules Didn't match file name I.E.
File name should be DecreasePostCount, I did install this mod some time ago so may have changed in between uses.
mick
Thanks, I'll be looking into those issues in the future.
Hello Diego,
We were wondering if you got around to look at making a module for the (collecting) cardsystem we talked about at the last page. It's not that we are being impatient, we were just wondering if there is any progress (even if we don't see it in an update yet).
Thanks in advance and we wish you a good weekend,
Chris de Boer
On behalf of PotterDome
No sorry, I really like this mod but I've not been able to work on it for a while now.
I forgot about your request which can still be accomplished in the current version. I will take note of this somewhere and try to provide you with a module for it.
Quote from: Diego Andrés on August 01, 2023, 08:52:37 PMNo sorry, I really like this mod but I've not been able to work on it for a while now.
I forgot about your request which can still be accomplished in the current version. I will take note of this somewhere and try to provide you with a module for it.
Hi Diego,
May I thank you for your update?
We'll wait patiently.
Regards,
Chris
Attached module.
Notes for anyone that wants to use it:
- Some texts are hardcoded since I'm not updating the shop soon.
- It doesn't check against the carrying limit, so users could go over a specific item limit if they get another one.
- Depending on your category selection (or selecting all categories), and item stock. Users could get the exact item they just used for a 'second chance', so make sure to take this into consideration.
To upload the module, go to the Modules area and upload it. Then create a new item based off the new module you just uploaded.
Hey all, is there any confirmation of this mod working on 2.1.4?
I have it on my test forum which is 2.1.4 and works just fine.
mick
Would there be any possibility to have a set number of shop credits automatically sent out to certain membergroups automatically (for example, on the 1st of every month) or to just send credits to an entire membergroup manually? Might be a cool incentive for forum subscribers and could help with monetization...
What would it cost to get such a little add-on?
For now you can use the maintenance tools in the shop admin to send credits to membergroups or specific members, although not automatically.
Is there a tool or feature I missed that does a recount and retro awards users based on their topic/post count? I just migrated a large board to SMF and would like to give the proper credit to members.
It only supports imports from SMF Shop and SA Shop, if you migrated from a different software then there's no option for that.
Your only alternative would be attempting to restore the member columns with their credits using these column names from SMF Shop: money, moneyBank.
And then you could run the import from the ST Shop admin.
I may have found an issue. I've got New topics set to +50 credits, and new posts set to +10 credits. I also have each word adding +1 credit. However, it appears the word count is not being added to the total new credits.
I'll have a look.
Did you enable the bonus for that board?
It's designed that way to prevent spam.
OH! Awesome! I didn't see that originally. Nice work!
I might have to make a modification though, because I'd really love to be able to give 0.1 credits per word (1 credit per 10 words). Just a thought, I'm not sure if people would use this tweak.
I noticed today I was getting this error in the log
Hook call: function "Shop\Integration\Signup::register" in file /var/www/vhosts/** could not be called.
How did you get the error? Any specific action?
Quote from: Diego Andrés on November 20, 2023, 02:24:21 PMHow did you get the error? Any specific action?
Sorry, it seems like it it's being triggered at the registration process. I did set it so new registered users get 300 points.
Type of error: General
Error message: Hook call: function "Shop\Integration\Signup::register" in file /var/www/vhosts/* could not be called.
URL of page causing the error: */index.php?pretty;action=signup2
Please try the newest version:
4.1.12 - 20 November 2023
- (https://camo.githubusercontent.com/5ba14cc5b307fd7683ab0b95737b5548d492d0029f2ce6f42c7cda8cc1c90fb9/68747470733a2f2f736d66747269636b732e636f6d2f6173736574732f6368616e67656c6f672f6275672d2d6d696e75732e706e67) Various fixes.
Full list of changes (https://github.com/SMFTricks/ST-Shop/compare/v4.1.11...v4.1.12)
QuotePlease try the newest version:
4.1.12 - 20 November 2023
Bug Fix Various fixes.
Full list of changes
Thanks, I'll update and let you know if I get the same error again.
What can be the reason why I get these two errors immediately following any new user registration? I haven't been able to discover what's causing this :-[ .
You cannot view this attachment.
edit: just saw the post above.. lol.. I'll update then the mod then I'll get back here.
Quote from: Varlov on November 21, 2023, 02:32:05 PMWhat can be the reason why I get these two errors immediately following any new user registration? I haven't been able to discover what's causing this :-[ .
You cannot view this attachment.
edit: just saw the post above.. lol.. I'll update then the mod then I'll get back here.
The update resolved the issue. Muchos gracias señor Diego!
I noticed today I'm getting a "null" error log message. It seems to be happening when a guest tries to access the shop directly, although I'm not sure why or how they're doing it since guest have no access to the shop on my site.
Type of error: General
Error message: 2: Trying to access array offset on value of type null
File: */httpdocs/Themes/default/Shop/Shop.template.php
Line: 615
URL of page causing the error: */index.php?pretty;action=shop&categoryID=5&sortField=sortOrder&sortOrder=DESC
Backtrace information
#0: smf_error_handler()
Called from */httpdocs/Themes/default/Shop/Shop.template.php on line 615
#1: template_shop_below()
Called from */httpdocs/Sources/Load.php on line 2778
#2: loadSubTemplate()
Called from */httpdocs/Sources/Subs.php on line 4716
#3: template_footer()
Called from */httpdocs/Sources/Subs.php on line 4205
#4: obExit()
Called from */httpdocs/Sources/Security.php on line 143
#5: is_not_guest()
Called from */httpdocs/Sources/Security.php on line 1035
#6: isAllowedTo()
Called from */httpdocs/Sources/Shop/View/Home.php on line 176
#7: main()
Called from */httpdocs/index.php on line 196
Is there a place or topic that has a list of the various Modules (other than the 3 year old GitHub)? I'd like to know what people are using their Credits on.
I had an idea to make a couple boards so that it deducts credits for you to read the post messages inside. This would encourage some posting elsewhere and give a reason to spend the credits that are being amassed. But beyond this, I'm not really sure what else I could give members a reason to spend their credits.
Apparently, I can't append to my previous post. Sorry for the double post. But I just thought of this:
Party Llama MOD (https://www.simplemachines.org/community/index.php?topic=587811)
Basically, this mod died because the Karma system was removed in 2.1. However, I think it would be kind of neat to have this functionality again. A member could successfully click on a llama, or whatever image that gets floated randomly, and maybe after so many clicks that item gets added to their inventory?
There would probably need to be another field added to the database to keep track of successful image clicks, and say after.... five clicks of.. a beer mug, you get a Beer Mug added to your inventory.
I'm not sure how to go about coding this however.
Sounds like it would be better being a separated MOD like it was (or at least a Shop installable addon).
Sending the credits is very easy afaik, I haven't touched the MOD in a while.
I could add it to next year TODO, I guess?
I'm hoping I can fix some things with the MOD in January-February.
Quote from: Senkusha on December 21, 2023, 09:54:58 AMIs there a place or topic that has a list of the various Modules (other than the 3 year old GitHub)? I'd like to know what people are using their Credits on.
No, just integrations with other MODs which are present in the settings already.
There is one subscription addon for a special item, but I didn't make it available. A few posts ago there is another module which is supposed to be integrated into the Shop by default, but it isn't at the moment.
Quote from: erich199 on November 24, 2023, 02:01:53 PMI noticed today I'm getting a "null" error log message. It seems to be happening when a guest tries to access the shop directly, although I'm not sure why or how they're doing it since guest have no access to the shop on my site.
Sorry I missed this... I will fix it at some point :laugh:
Quote from: Diego Andrés on November 01, 2020, 12:29:24 AM4.0 - 31 October 2020
Added option to import data from SMF Shop, SA Shop and ST Shop 3.x
Hello! I want to thank you for this feature after I poked about it forever ago... It's time to finally switch over. It's going to make things a hell of a lot easier for me.
That said, I am trying to import my data from SMF Shop and am getting this error:
QuoteData too long for column 'description' at row 3
File: /home/DOMAIN/SUBDOMAIN/Sources/Shop/Helper/Database.php
Line: 274
Since the descriptions in the columns are too long, would you recommend deleting the data within them and proceeding? Or is there a way to increase the amount of data?
That's one option.
Another one would be to increase the size of the description column in the stshop column.
I'll take a look soon.
I'm not particularly picky either way. I'll probably just drop the descriptions while I'm testing and if there's changes later, I'll throw them back up.
Okay so you'll have to go to the stshop_items table, and modify the description column and turn it into a text column.
But you could also keep it varchar and just increase the size from 255 to something higher like 1024.
Been updating my shop for my prize system I've confirmed the following works
In posting file
Database::Update('members', $this->_post_shop, 'shopMoney = shopMoney + {int:credits} + {int:bonus},prize_points = prize_points + {int:credits}', 'WHERE id_member = {int:user}');
Also updated SimpleReferrals as I use it. (Haven't been able to confirm)
Database::Update('members', ['user' => $regOptions['register_vars']['referral'], 'credits' => $modSettings['Shop_integration_simple_referrals_setting']], 'shopMoney = shopMoney + {int:credits},prize_points = prize_points + {int:credits}', 'WHERE id_member = {int:user}');
This is the bit im not sure about in singnup
$regOptions['register_vars']['shopMoney'] = !empty($modSettings['Shop_credits_register']) ? $modSettings['Shop_credits_register'] : 0;
$regOptions['register_vars']['prize_points'] = !empty($modSettings['Shop_credits_register']) ? $modSettings['Shop_credits_register'] : 0;
Not sure if there any were else I need to update?
mick
Just been testing and found that the shop doesn't remove points when a topic is removed, but it does add them correctly?
As you know I've been editing the shop for my prize system but the only edit I made to that function is:
SET shopMoney = shopMoney - {int:point},prize_points = prize_points - {int:point}
All the best mick
Justb found why it's not removing shop money lol
if(!empty($modSettings['Shop_enable_shop']))
I'll change that for the mod setting my system uses
Still wont work
tried
if($modSettings['pledges_use_stshop'])
and
if(!empty($modSettings['pledges_use_stshop']))
Have checked value for above which is set as 1
plus checked the board where posts are being deleted
$shop_info['Shop_credits_post']
Above is set to 1 plus the topic and post is set to 10 for the board
all teh best mick
I think that is not a feature because it would require 'tracking' the content that is being deleted with the corresponding credits.
I'll check later to be sure.
Quote from: Diego Andrés on January 10, 2024, 02:47:07 PMI think that is not a feature because it would require 'tracking' the content that is being deleted with the corresponding credits.
I'll check later to be sure.
Thanks
It does seem implemented in Integration/Posting.php in the remove_message method.
You could just invert the condition if the shop is disabled.
if(empty($modSettings['Shop_enable_shop']))
Quote from: Diego Andrés on January 10, 2024, 10:50:21 PMIt does seem implemented in Integration/Posting.php in the remove_message method.
You could just invert the condition if the shop is disabled.
if(empty($modSettings['Shop_enable_shop']))
I'll give it a go tonight, but should be working with my modsetting as that has a value of 1.
All the best mick
Quote from: mickjav on January 11, 2024, 01:14:04 AMif(empty($modSettings['Shop_enable_shop']))
Tried That without any luck.
Have now added shop to my main site and have even removed my prize system edit again without any luck :(
Everything I try fails, so will prob just have to live with it.
I do get the feeling the functions not being called for some reason
I'll continue updating the posting as still have my register entry to add.
One good thing for me is while working with The shop I've learnt how to work with members prifile so should be able to start messing them up soon lol
All the best mick.
PS. It seems that only some boards Are laving like credits applied I've looked at the board settings and can't see any difference other that the one that applies credits is set to reply Only.
Although a log is being created?
Credits can be enabled/disabled per board. Check those boards that aren't sending credits, perhaps they have different settings.
I did check And they all have the default value of:
You cannot view this attachment.
But just checked the boards table and only one field has a default?
You cannot view this attachment.
Just figured the Modsettings for topics and post are only defaults for when a new board is created, then each board then has their own setting, I'll need to make sure members know what they get for each board if I edit that.
It's very useful ;D
still didn't solve the issues though :(
For the deleting try in Shop.php
add_integration_function('integrate_after_create_post', __NAMESPACE__ . '\Integration\Posting::after_create_post#', false);
Add after
add_integration_function('integrate_remove_message', __NAMESPACE__ . '\Integration\Posting::remove_message#', false);
Though it might not work great or be inconsistent, which is why it isn't implemented.
Quote from: Diego Andrés on January 13, 2024, 02:57:07 PMadd_integration_function('integrate_remove_message', __NAMESPACE__ . '\Integration\Posting::remove_message#', false);
Don't seem to work on test site, but will replace my posting copy for a clean copy just to make sure it's nothing I've done.
Thanks for your help mick
Is there a way to have multiple sized items? Smaller items get resized and end up looking terrible.
Some things are very old and can cause issues like that...
Best bet for you is editing Sources/Shop/Helper/Format.php
$formatname = '<img' . (!empty($class) ? ' class="' . $class . '" id="' . $class . '"' : ''). ' src="' . self::$items_url . $image . '" alt="' . $description . '" title="' . $description . '" style="vertical-align: middle;width:' . $modSettings['Shop_images_width'] . ';height:' . $modSettings['Shop_images_height'] . ';" />';
Could try with something like this:
$formatname = '<img' . (!empty($class) ? ' class="' . $class . '" id="' . $class . '"' : ''). ' src="' . self::$items_url . $image . '" alt="' . $description . '" title="' . $description . '" style="vertical-align: middle;" />';
Or this:
$formatname = '<img' . (!empty($class) ? ' class="' . $class . '" id="' . $class . '"' : ''). ' src="' . self::$items_url . $image . '" alt="' . $description . '" title="' . $description . '" style="vertical-align: middle;width:' . $modSettings['Shop_images_width'] . ';height:' . $modSettings['Shop_images_height'] . ';object-fit:scale-down;" />';
I have a question: Does this mod account for edits to a post if the Bonus is enabled to count words? Say a member writes three sentences in a post, gets distracted and posts, but then comes back later and writes five more paragraphs that elaborate on what they were saying?
I don't think it does it at the moment.
Would it be beneficial? The bonus sometimes can be prone to abuse so I'm not sure.
I think it would be. Of course, I would think that it would also subtract bonus points if the post word count decreases.
I would think that when editing a post, the first thing it would do is capture the current word count bonus. Then when the post is submitted, subtract that initial value from the total points accumulated, then add the new bonus word count, and apply it to the total.
I'll log this and consider it for a future update