Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SMFHacks.com Team on December 27, 2004, 06:46:17 AM

Title: SMFShop - Shop MOD
Post by: SMFHacks.com Team on December 27, 2004, 06:46:17 AM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=65)

SMFShop is a Shop Mod for SMF (that should be fairly obvious :P). Members of your Forum will collect credits every time they make posts, and can exchange the points for items in the shop (eg. Random Points, Add 100 to Post Count, Increase Karma, etc.) This mod is very similar to IBStore for Invision Board.
Documentation for SMFShop may be found at the

Note that if you use a different theme, you must make some modifications to that theme's templates (otherwise the shop button won't appear). Please see http://www.smfshop.com/forum/index.php?topic=39.0 for more information!

4.0.1
!Fixed an issue with countMoney on board level. Enable/disabling a board for shop now works.

4.0
!Fixed all the board level settings for SMF 2.0
Count Shop Points, Shop Credits, and Enable Shop Bonuses

3.3.5
!Bug fixes for SMF 2.0.x disable sending partial currency.

3.3.4
!Removed some mysql_ functions from SMF 2.0 version
!Fixed bug in download file item not removing it from the inventory SMF 2.0
!Some minor security fixes admin side. SMF 2.0

Version 3.3.3
!Fixed a bug in the SMF 2.0 package

Version 3.3.2
!Fixed sending money on Shop-Send.php for users allowing both real_name,member_name instead of just member_name.

Version 3.3.1
!Fixed bug in SMF 2.0 version on removetopic edits.

Version 3.3
!Better remove topic shop points code thanks to Liam_michael

Version 3.2
!Fixed some caching issues if you used the caching. The money is now cleared when being added/subtracted from a user.

Version 3.1.8
!Fixed bug in the bank for accepting float values.

Version 3.1.7
!Added better request protection for race conditions when sending items/shop money

Version 3.1.6
!Fixed issue sending money only checking for username and not displayname too
+Now using comma separators for points/cash

Version 3.1.5
!Fixed some bugs with inserts for SMF 2.0 RC2
!Fixed bug with send email item if a textarea was included as an extra field
!Fixed bug for SMF 1.1.x for only using integers instead of floats for board bonuses.

Version 3.1.4
+Added support for SMF 2.0 RC2


Version 3.1.1
+Added checking if the username already exists when using the Change Username item.
+Edited several item files to use updateMemberData() instead of using a database query
+Added support for board-specific credit amounts, based off request at http://www.daniel15.com/forum/index.php/topic,554.html. This may not be fully functional at the moment.
![Shop.template.php] Fixed bug on View Other Members' Inventory page (reported by Sakuragi - http://www.daniel15.com/forum/index.php/topic,525.45.html)
![install_SMF1-1.xml] Fixed bug regarding Load.php edit (reported by feeble - http://www.daniel15.com/forum/index.php/topic,635.html)
![Steal.php] Fixed bug reported by jdv (thanks to Sakuragi) - http://www.daniel15.com/forum/index.php/topic,559.0.html
![Shop-Inventory.php] Fixed bug when viewing member's inventory, reported by thelastkiss (http://www.smfshop.com/forum/index.php/topic,532.msg2772.html#msg2772)
![Shop.template.php] Removed unneeded (commented) code
![Shop.template.php] Fixed 'Buy Stuff' display issue in Firefox


Version 3.1 for SMF 1.1.X
!Fixed missing global in ChangeDisplayName item
!Fixed missing global IncreaseKarma item
!Fixed issues with mod_security with ;id= in the url
!Fixed two broken link trees action=shop;do=invother and action=shop missing ?
!Fixed some joins for better mysql 5 support
+Added Shop.english-utf8.php if you are using utf8 on your board
!Fixed some spelling bugs in Shop.english.php
!Removed ` from queries in the installScript file for Shop which could fail in some setups.

VERSION 3.0 RELEASED! This is quite a major release, and several things have changed. This version does not support SMF 1.0!

Changes in this release
Major:
- Lots of code cleanup
- Category support: You can now categorize your items
- Permissions: You can disable access to the shop for certain membergroups
- Bonuses per character and word: Give bonuses to a user depending on the number of characters or words in their post
- Bank deposit/withdrawal fees
- Option to not delete item after use: Great for items you'd like members to keep
- When editing an item, you can now edit the item_info (custom info entered when adding the item)

Minor
- Several minor formatting changes
- Fixed problem with SMF 1.1's "Find Members" popup
- Bold the current section on the left menu
- In "10 Richest Members" list, have links to their profiles
- When sending an item to someone, show an error if they don't exist
- Allow floating point values for interest
- And several other (minor things)

Some Quick Info:
* To access the Shop MOD control panel, just go into your Admin panel, and scroll to the bottom. On the left there should be some links for shop administration

* To get into the shop, click on the 'Shop' button at the top of your forum.

* To choose which forums credits are accumulated on, go into the 'Manage Boards' section of your SMF admin panel. There will be an option for it there.

NOTE: In order to get the bank interest working, you MUST set a cron job. If your web host uses cPanel, please see http://www.daniel15.com/smfshop_wiki/Bank_Interest for details on how to get this working

(c) 2009-2019 http://www.smfhacks.com
(c) 2005-2008 DanSoft Australia - http://www.dansoftaustralia.net/
Title: Re: SMFShop - Shop MOD
Post by: Midgard on December 27, 2004, 06:50:44 AM
Good work, i'm previewing...
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 27, 2004, 06:58:22 AM
hold on, i'm just getting some screenshots...
Title: Re: SMFShop - Shop MOD
Post by: Jerry on December 27, 2004, 07:04:02 AM
daniel it works fine so far, but when you have no items in inventory the menu spans the whole page, is there a way to make a box eqaul size to the inventory box (when you have items) show text that says no items?

And:
Fatal error: shop(): Failed opening required 'Sources/shop/items/ChangeUsername.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /xxx/xxx/public_html/test/Sources/shop/Shop.php on line 238
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 27, 2004, 07:12:44 AM
oh damn case sensitive files... rename Sources/shop/items/ChangeUserName.php to ChangeUsername.php (note different case of the 'N').

and to fix the inventory problem, open /Themes/default/Shop.template.php, look for line like this:

{$context['shop_items_list']}

and replace with:
 {$context['shop_items_list']}

that should work. i'm uploading a fixed ZIP file now

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: Jerry on December 27, 2004, 08:29:44 AM
thanks for the update :) I think it may also have given my display.template.php a parse error :-\
Title: Re: SMFShop - Shop MOD
Post by: codenaught on December 27, 2004, 11:15:35 AM
Hey great mod! I am just looking for more items in the future as there aren't that many in the first release. So far it looks quite good!  :)
Title: Re: SMFShop - Shop MOD
Post by: [Unknown] on December 27, 2004, 11:15:56 AM
From install.xml:
> SET money = money + {$modSettings['shopPointsPerTopic']}
> SET money = money + {$modSettings['shopPointsPerPost']}

I suggest using $modSettings[shopPointsPerTopic], as it will parse ever so very slightly faster.

> $context['admin_areas']['shop'] = array (

You should probably check permissions.  It's possible a moderator could get into this section (and have permission to do other things, but not manage the shop...)

if (allowedTo('shop_admin'))
   $context['admin_areas']['shop'] = array(
...


> "{$txt['shop_admin_items']}"

Erm... why not just $txt['shop_admin_items']?  Forcing interpolation will end up wasting memory.

> echo "dode";

Typo?  Note that this section is only for converting template.php's, so you won't see it active at all.

The $message['member'] array is set in Load.php.  Look for loadMemberData() and loadMemberContext().

> <br><br>

XHTML -> <br /><br />.


        $newSettings['shopPointsPerTopic'] = $_POST['pertopic'];
        $newSettings['shopPointsPerPost'] = $_POST['perpost'];


You should probably cast pertopic and perpost to ints, just to make sure they typed numbers... like so:


        $newSettings['shopPointsPerTopic'] = (int) $_POST['pertopic'];
        $newSettings['shopPointsPerPost'] = (int) $_POST['perpost'];


I notice you use several different templates, Invision-style.  The general method in SMF is to use one larger template and use sub templates.  For example, you might change this:

    loadTemplate('ShopAdminInventory');

To:

    loadTemplate('ShopAdmin');
    $context['sub_template'] = 'inventory';

And then instead of:

function template_main() {

Use:

function template_inventory() {

You may, from your experience with Invision, prefer the other way - and that's fine, this is of course only a suggestion... but I would say that staying with "the way SMF works" will make things easier for those who use your mod.

And, lastly, db_stuff.php uses smf_ hardcoded.  I strongly suggest you use $db_prefix instead, because this forum, as an example, uses a different prefix than smf_.

And, personally, I might replace this:

//give admin money :-)
db_query("UPDATE `smf_members` SET `money` = '10000' WHERE `ID_MEMBER` = '1' LIMIT 1", __FILE__, __LINE__);


With:
// Reward whoever's installing this with a lot of money :-).
updateMemberData(empty($ID_MEMBER) ? 1 : $ID_MEMBER, array('money' => 10000));


Don't take these suggestions the wrong way, or anything, I'm just trying to give you some helpful advice on integrating into SMF; I know there are not a whole ton of examples available quite yet.

-[Unknown]
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 27, 2004, 09:17:39 PM
thanks for your comments [Unknown] ;) Since i have no previous knowledge of modding SMF, most of the code is rough

Quote
The $message['member'] array is set in Load.php.  Look for loadMemberData() and loadMemberContext().
Thanks for that.

Quote
I notice you use several different templates, Invision-style.  The general method in SMF is to use one larger template and use sub templates.  For example, you might change this:

    loadTemplate('ShopAdminInventory');

To:

    loadTemplate('ShopAdmin');
    $context['sub_template'] = 'inventory';

And then instead of:

function template_main() {

Use:

function template_inventory() {

You may, from your experience with Invision, prefer the other way - and that's fine, this is of course only a suggestion... but I would say that staying with "the way SMF works" will make things easier for those who use your mod.

i've never actually looked through the code of Invision Board MODS, i was just guessing that's how to do templates... i'll fix that in the next version

Quote
And, lastly, db_stuff.php uses smf_ hardcoded.  I strongly suggest you use $db_prefix instead, because this forum, as an example, uses a different prefix than smf_.
I was going to do that, but then i forgot to... I just grabbed the database stuff using phpMyAdmin, and dumped it into the php file.


The new version should be ready in a couple of days... or maybe tomorrow? i don't know yet.
Title: Re: SMFShop - Shop MOD
Post by: WebPlanetHost.com on December 27, 2004, 09:43:18 PM
Oh thankyou Daniel!!!! I love you!!!!! I have been waiting for a mod like this for ages!!! If you want a free .com, .net or .org domain please contact me on my forum www.webplanethost.com/forum

I am so happy now  ;D
Title: Re: SMFShop - Shop MOD
Post by: [Unknown] on December 28, 2004, 07:27:19 PM
http://stickboarder.info/forum/index.php?action=shop

I suggest you use the is_not_guest function to ensure guests don't use the shop (or try to buy things, at least) like so:

is_not_guest($optional_error_message);

> You have credits

I suggest you cast that to an int so it always shows a number.  E.g. (int) $credits (psuedo code.)

http://stickboarder.info/forum/index.php?action=shop;do=buy

Personally I'd add a titlebg to the top something along the lines of:

Item   Description   Price/Stock

And, further, I suggest you consider adding the cabability to display icons for the items.  Then, you want to have ones that do... nothing.  Just note in the member's profile that they own that item (or one more of it, that is.)  Then, you want to load a list of items they own - I suggest into $message['member']['shop_items'] or similar.

This would allow items to be listed like "Sword", "Well crafted sword made of Mythril", "$50"... which would only be shown in your profile and next to your posts as a little sword icon.  People will go nuts, and hearald you as the bringer of the shop mod :P ;).  There's more expansion to be done even after that, but it's a big step in the direction a lot of people (seem) to want.

Again, this is something someone made my promise I would work on when I could/when SMF was released.  So I'm helping you work on it, which counts ;). (or... I think I'm helping?)

-[Unknown]
Title: Re: SMFShop - Shop MOD
Post by: SkyFlyer on December 29, 2004, 12:04:21 AM
Thanks man this is awesome... I cant wait until its in the public stages. I will definately be using it.
Title: Re: SMFShop - Shop MOD
Post by: Elijah Bliss on December 29, 2004, 12:40:34 AM
Yes! I can't wait!

I'm not familiar with how IPB shops work. Can someone either show me a link to one or give me a brief run down on how they work?

Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 29, 2004, 01:03:57 AM
Version 0.2 is now out!!! This fixes a whole heap of bugs! for everyone that has 0.1, please download the new version

and to [Unknown]: Thanks, you're really helping a lot! I'll do all the updates you said, but unfortunately i'm busy during the next couple of days... maybe i'll fix the shop on the weekend? ;)

--daniel15

oh man these christmas smilies are really annoying me now...  ;) <--- that smilie looks weird
Title: Re: SMFShop - Shop MOD
Post by: Jerry on December 29, 2004, 01:50:08 AM
you can choose your smileys in your profile ;)
Title: Re: SMFShop - Shop MOD
Post by: SkyFlyer on December 29, 2004, 03:21:50 AM
In the readme, where it says...
Copy the file 'shop_install.php' to your forum's directory. Then go to http://www.yourname.tld/forum/shop_install.php (eg. if your forum is located at http://mysite.webplanethost.com/forum then you should go to http://mysite.webplanethost.com/forum/shop_install.php) Understand? 

I'm done, right? Or do I need to do step 3? Or is that just for updating?
Title: Re: SMFShop - Shop MOD
Post by: KuraWeb on December 29, 2004, 09:33:14 AM
Orale Muchas Gracias, me ah servido de mucho el mod, me gustaria saber como agregar  items osea uno  que le ponga Glow o Shadow en el nick. eres un Semi Dios de SMF  :).


Traslate by http://traductor.ya.com

Thank you very much, me ah served as a lot of the mod, I Like add  articles to be able Glow or Shadow in the nick. you are SMF's Semi God:).

In the Nick Or In The Nick
Title: Re: SMFShop - Shop MOD
Post by: johnm on December 29, 2004, 11:34:54 AM
getting an error

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY smf_shop_inventory.id' at line 8
File: /home/user/public_html/forum/Sources/shop/ShopAdmin.php
Line: 74

this only seems to happen if you try to see a members inventory and they are also an admin

???

****edit****

its ok i was entering some ones display name and not actually their username!!! 

great mod
Title: Re: SMFShop - Shop MOD
Post by: SkyFlyer on December 30, 2004, 04:13:11 AM
error here too...

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in blah/blah/forum/Sources/Subs.php on line 1548

Here is the code.
// Gotta be special for the javascript.
$context['fader_news_lines'][$i] = strtr(addslashes($context['news_lines'][$i]), array('/' => '\/', '<a href=' => '<a hre" + "f='));
}
$context['random_news_line'] ']']']= $context['news_lines'][rand(0, count($context['news_lines']) - 1)];


This is the error the editor gives me.
"Marked invalid because it contains a duplicate attribute."

Title: Re: SMFShop - Shop MOD
Post by: trenchteam on December 30, 2004, 05:23:43 AM
^^ i had the exact error. I just put back the original subs.php and it works fine ??? NOw how do you edit the store? admin the store? I cannot find the panel on the left!  Is that in the subs.php file that I did not edit!
Title: Re: SMFShop - Shop MOD
Post by: Nyx on December 30, 2004, 08:21:44 AM
does it works on smf 1.0 final?
Title: Re: SMFShop - Shop MOD
Post by: SoaringUSAEagle on December 30, 2004, 11:26:45 AM
Similar to the invision board....

Would it be possible to link the shop feature to the arcade?  To earn points by playing games as well.

And as additional features... to use the points to buy things... Here are some additional ideas.

Buy Title
Name Glow
Name Color
Name Shadow

Title Color
Title Glow
Title Shadow

Change Title
Change Username

I have attached the screen shots.  It comes with a bank thing... it is really cool.  If you are interested in viewing it firsthand, Dan, I can let you go in under me since I am admin  (I didnt create the board...)  but I want this so bad on smf because it totally dominated phpbb and invision.


Title: Re: SMFShop - Shop MOD
Post by: Jesse Shaw on December 30, 2004, 12:19:33 PM
Thats really kewl. I wish I had a reason to use it. Maybe I will set up a gamers forum and offer games for sale... lol ;D
Title: Re: SMFShop - Shop MOD
Post by: KuraWeb on December 30, 2004, 09:14:02 PM
The mod work's in 1.0 Final?

I wait for a new version that is employed at 1.0 Final and with new Articles
Title: Re: SMFShop - Shop MOD
Post by: trenchteam on December 30, 2004, 09:20:23 PM
Quote from: SkyFlyer on December 30, 2004, 04:13:11 AM
error here too...

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in blah/blah/forum/Sources/Subs.php on line 1548

Here is the code.
// Gotta be special for the javascript.
$context['fader_news_lines'][$i] = strtr(addslashes($context['news_lines'][$i]), array('/' => '\/', '<a href=' => '<a hre" + "f='));
}
$context['random_news_line'] ']']']= $context['news_lines'][rand(0, count($context['news_lines']) - 1)];


This is the error the editor gives me.
"Marked invalid because it contains a duplicate attribute."



Anyone have a fix for this? Im using the SMF 1.0 Final. It seems that the subs.php is the one giving me problems. Everything else works great.
Title: Re: SMFShop - Shop MOD
Post by: SkyFlyer on December 30, 2004, 10:19:09 PM
I'm using RC2.
Title: Re: SMFShop - Shop MOD
Post by: russ on December 31, 2004, 05:36:12 AM
nice mod. anyway to show what the user has bought under their avatar? similar to phpbb and YaBB SE?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 31, 2004, 05:52:01 AM
sorry , no support for 1.0 final yet... i'm just downloading the new version of SMF now...

and yes, the admin panel is set up in Subs.php
Title: Re: SMFShop - Shop MOD
Post by: russ on December 31, 2004, 11:09:56 AM
is it possible to do the following - showing items bought (pictures)

or maybe just provide links saying how many of a particular item that person has bought...?

(http://www.sg1database.net/smf/example.gif)
Title: Re: SMFShop - Shop MOD
Post by: trenchteam on December 31, 2004, 07:22:31 PM
Quote from: daniel15 on December 31, 2004, 05:52:01 AM
sorry , no support for 1.0 final yet... i'm just downloading the new version of SMF now...

and yes, the admin panel is set up in Subs.php

cool. I'll just sit tight and wait on it.  Everything works great. added everything to 1.0 and it worked fine. The only thing giving me errors is the subs file. So I can see everything on my forum, but Im unable to edit a thing! HAHA
Title: Re: SMFShop - Shop MOD
Post by: SkyFlyer on January 01, 2005, 04:48:03 AM
I'm getting the same problem and i'm on RC2.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 01, 2005, 05:37:49 AM
I just found out that this MOD actually works on SMF 1.0 Final...

and for the people that were having problems with Subs.php, the line you mentioned is nowhere near where the edit for SMFShop is (that means that the error mentioned has nothing to do with SMFShop...?)

Please give more comments so I can make this even better ;)

--daniel15

oh, and by the way, the next version of SMFShop will have a built-in arcade, where you win credits by playing games.
Title: Re: SMFShop - Shop MOD
Post by: russ on January 01, 2005, 06:59:23 AM
soz for repeating what i may have said already, but anyway of showing what the user has bought underneath the avatar below the credit amount?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 01, 2005, 07:49:15 AM
Quote from: russ on January 01, 2005, 06:59:23 AM
soz for repeating what i may have said already, but anyway of showing what the user has bought underneath the avatar below the credit amount?

sorry, but not yet... maybe in the next version?
Title: Re: SMFShop - Shop MOD
Post by: [Unknown] on January 01, 2005, 10:54:55 AM
The Subs.php error is caused by Dreamweaver.  It mangles php files when you edit them.

-[Unknown]
Title: Re: SMFShop - Shop MOD
Post by: ~Tyris~ on January 01, 2005, 11:04:06 AM
Well... everything works but post.php... constant t_string or other "T_" errors.... (running the newest version 1.0)
Title: Re: SMFShop - Shop MOD
Post by: russ on January 01, 2005, 01:35:36 PM
Quote from: daniel15 on January 01, 2005, 07:49:15 AM
Quote from: russ on January 01, 2005, 06:59:23 AM
soz for repeating what i may have said already, but anyway of showing what the user has bought underneath the avatar below the credit amount?

sorry, but not yet... maybe in the next version?

kool thanks
Title: Re: SMFShop - Shop MOD
Post by: trenchteam on January 01, 2005, 05:14:12 PM
Quote from: [Unknown] on January 01, 2005, 10:54:55 AM
The Subs.php error is caused by Dreamweaver.  It mangles php files when you edit them.

-[Unknown]

I've been using wordpad. I'll try again. thanks.
Title: Re: SMFShop - Shop MOD
Post by: SkyFlyer on January 01, 2005, 05:43:16 PM
Quote from: [Unknown] on January 01, 2005, 10:54:55 AM
The Subs.php error is caused by Dreamweaver.  It mangles php files when you edit them.

-[Unknown]


Hehehe... guess I cant use dreamweaver any more for PHP eh? lol. Uhm, is there going to be a patch coming out soon?
Title: Re: SMFShop - Shop MOD
Post by: trenchteam on January 01, 2005, 05:53:45 PM
I got this error. Now my site is froze up.

Fatal error: Call to undefined function: showbanner() in /home/xxxxxxx/xxxxxxx/forum/Sources/Load.php(1036) : eval()'d code on line 287

This happened after I tried to modify the SUB.PHP file again, then it spit out an error. When I put the original back, it gave me this.. error above.... Im stumped. :'(
Title: Re: SMFShop - Shop MOD
Post by: KuraWeb on January 01, 2005, 07:21:48 PM
QuoteThe Subs.php error is caused by Dreamweaver.  It mangles php files when you edit them.

-[Unknown]

I'm using Dreamweaver and this $·%$" program destroy all the file.


I'love the Subs.php~
Title: Re: SMFShop - Shop MOD
Post by: [Unknown] on January 01, 2005, 11:01:59 PM
If you have problems with Wordpad, well, I don't know if Wordpad mangles files.... I've never used it for text file editing and never plan to.  I strongly suggest you use ConTEXT instead - www.context.cx.

Dreamweaver seems to be okay *usually*, but I've seen it mangle more complicated PHP files on many occasions.  I have no idea if there's a patch, the tenth or so time it happened to me was when I decided I'd never use the program again.  Luckily I was using it at school, so I didn't ever buy it.

-[Unknown]
Title: Re: SMFShop - Shop MOD
Post by: russ on January 02, 2005, 04:26:02 AM
Quote from: trenchteam on January 01, 2005, 05:53:45 PM
I got this error. Now my site is froze up.

Fatal error: Call to undefined function: showbanner() in /home/xxxxxxx/xxxxxxx/forum/Sources/Load.php(1036) : eval()'d code on line 287

This happened after I tried to modify the SUB.PHP file again, then it spit out an error. When I put the original back, it gave me this.. error above.... Im stumped. :'(

Yeha i had that problem as well, remove temporarily from your files, the ssi command for showing the banner mod which i assume u have installed as well... then get rid of the banner mod from your package manager as whenever that is installed it seems to muck up version 1.0 - hope that helps
Title: Re: SMFShop - Shop MOD
Post by: Senkusha on January 04, 2005, 04:46:24 PM
If you want to 'catch up' on the amount of money that each member should have (from the birth of the forum), you can use this little script that I created.  Just change the numbers to reflect your values:



<?php

$NewTopics 
10;
$NewPosts 8;

mysql_connect('localhost','root','');
mysql_select_db('smf');
$request mysql_query ("SELECT smf_members.realName, 
smf_members.ID_MEMBER AS ID_MEMBER, 
count(ID_TOPIC) AS var
FROM smf_members, 
smf_topics
WHERE smf_members.ID_MEMBER = smf_topics.ID_MEMBER_STARTED
GROUP BY smf_members.realName
ORDER BY smf_members.realName"
);

while (
$result mysql_fetch_assoc($request))
{
$variable $result['var'] * $NewTopics;
$person $result['ID_MEMBER'];
$request1 mysql_query ("UPDATE smf_members
SET money = '
$variable'
WHERE ID_MEMBER = '
$person'");
}

$request mysql_query ("SELECT smf_members.realName, 
smf_members.ID_MEMBER AS ID_MEMBER, 
count(ID_MSG) AS var, 
smf_members.money AS money
FROM smf_members, 
smf_messages
WHERE smf_members.ID_MEMBER = smf_messages.ID_MEMBER
GROUP BY smf_members.realName
ORDER BY smf_members.realName"
);

while (
$resultmysql_fetch_assoc($request))
{
$variable $result['var'] * $NewPosts;
$person $result['ID_MEMBER'];
$money $result['money'] + $variable;
$request1 mysql_query ("UPDATE smf_members
SET money = '
$money'
WHERE ID_MEMBER = '
$person'");

}
?>


Title: Re: SMFShop - Shop MOD
Post by: Senkusha on January 04, 2005, 04:55:35 PM
On another note:  In a future version, would it be possible to "use" items on other members?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 04, 2005, 10:54:14 PM
Quote from: Senkusha on January 04, 2005, 04:46:24 PM
If you want to 'catch up' on the amount of money that each member should have (from the birth of the forum), you can use this little script that I created.  Just change the numbers to reflect your values:


<?php

$NewTopics 
10;
$NewPosts 8;

mysql_connect('localhost','root','');
mysql_select_db('smf');
$request mysql_query ("SELECT smf_members.realName, 
smf_members.ID_MEMBER AS ID_MEMBER, 
count(ID_TOPIC) AS var
FROM smf_members, 
smf_topics
WHERE smf_members.ID_MEMBER = smf_topics.ID_MEMBER_STARTED
GROUP BY smf_members.realName
ORDER BY smf_members.realName"
);

while (
$result mysql_fetch_assoc($request))
{
$variable $result['var'] * $NewTopics;
$person $result['ID_MEMBER'];
$request1 mysql_query ("UPDATE smf_members
SET money = '
$variable'
WHERE ID_MEMBER = '
$person'");
}

$request mysql_query ("SELECT smf_members.realName, 
smf_members.ID_MEMBER AS ID_MEMBER, 
count(ID_MSG) AS var, 
smf_members.money AS money
FROM smf_members, 
smf_messages
WHERE smf_members.ID_MEMBER = smf_messages.ID_MEMBER
GROUP BY smf_members.realName
ORDER BY smf_members.realName"
);

while (
$resultmysql_fetch_assoc($request))
{
$variable $result['var'] * $NewPosts;
$person $result['ID_MEMBER'];
$money $result['money'] + $variable;
$request1 mysql_query ("UPDATE smf_members
SET money = '
$money'
WHERE ID_MEMBER = '
$person'");

}
?>



hey, i might put that script in the next version of SMFShop (well in the installer amyway). thanks for that ;)


QuoteOn another note:  In a future version, would it be possible to "use" items on other members?
I'm assuming you mean items such as Reduce someone else's post count, steal items, change other's signature, etc, etc, etc. In that case, most likely... those items are really cool :)
Title: Re: SMFShop - Shop MOD
Post by: Senkusha on January 05, 2005, 02:56:47 AM
Actually I had other things in mind.  I run an anime based website, and would have things that you could buy like a wooden mallot and do damage to other members (a new database field called Health or something, but yes, in general, have the ability to help or harm another member in some way.

Instead of just having a "use item" link you could have have a link like:  "Use Item on" (dropdown).  The dropdown would have a listing of all members, including yourself.  You could probably also make the selected member yourself.

Also, would it be possible to add more ways to earn money?  For instance each attachment a member posts could earn 15 credits and each poll that a member creates could earn 20.
Title: Re: SMFShop - Shop MOD
Post by: Squeakypants on January 05, 2005, 07:57:03 PM
I'm working on a simple replacement now (with basic php), but one item needed is a for real world things. The way I am making it is it will send an email to x email with the user name and verification number (random). Then they can print out the coupon, which will also have the verification number. I can't say why I need it, but I don't think I am the only one who needs it. At least the email part (for t-shirts and such)

btw, I have been waiting for this for awhile. i'll help as much as I can, and I thank you for making it so easy to make items.
Title: Re: SMFShop - Shop MOD
Post by: DoW Kid Rock on January 05, 2005, 09:39:38 PM
can't seem to find the download for the newest version.  all I get is .1 beta

also for those of you that have dreamweaver on the install disc is an install for homesite and that is what I use to edit php files and it works great.  especially for searching for the right code.  it also colour codes everything to make it easier to find things.

have been waiting for this...and so have my members as I had IBshop on my invision board and it was awesome in conjunction with an arcade.  meaning people had to build up money to play the games.  would love to see it integrated that way
Title: Re: SMFShop - Shop MOD
Post by: Elijah Bliss on January 05, 2005, 09:42:52 PM
Quote from: Squeakypants on January 05, 2005, 07:57:03 PM
I'm working on a simple replacement now (with basic php), but one item needed is a for real world things. The way I am making it is it will send an email to x email with the user name and verification number (random). Then they can print out the coupon, which will also have the verification number. I can't say why I need it, but I don't think I am the only one who needs it. At least the email part (for t-shirts and such)

btw, I have been waiting for this for awhile. i'll help as much as I can, and I thank you for making it so easy to make items.

I haven't tried this mod out yet, but does it have paypal functionality? After working on a project recently, I have enough PHP/MySQL knowledge to make a customized paypal page for each respective retailer if needed.
Title: Re: SMFShop - Shop MOD
Post by: DoW Kid Rock on January 06, 2005, 11:47:58 AM
Quote from: Elijah Bliss on January 05, 2005, 09:42:52 PM

I haven't tried this mod out yet, but does it have paypal functionality? After working on a project recently, I have enough PHP/MySQL knowledge to make a customized paypal page for each respective retailer if needed.

this is a fun "shop" if I am not mistaken, where no real money is changing hands.  I think that if you wanted it to be used with real money  (i.e. selling merchandise) you could use this in conjunction with the donation mod and manually put money in people's accounts.
Title: Re: SMFShop - Shop MOD
Post by: Jesse Shaw on January 06, 2005, 02:40:44 PM
QuoteIf you have problems with Wordpad, well, I don't know if Wordpad mangles files.... I've never used it for text file editing and never plan to.  I strongly suggest you use ConTEXT instead - www.context.cx.

Dreamweaver seems to be okay *usually*, but I've seen it mangle more complicated PHP files on many occasions.  I have no idea if there's a patch, the tenth or so time it happened to me was when I decided I'd never use the program again.  Luckily I was using it at school, so I didn't ever buy it.

-[Unknown]

Wordpad displays the files better than notepad. It wont mangle them if you just save as simple text. That way it removes all formating. Dreamweaver seems to only be good for html files. I never had any luck using it for anything other than html files.  I like wordpad better than notepad but thats a personal opinion.  :D
Title: Re: SMFShop - Shop MOD
Post by: Squeakypants on January 06, 2005, 07:42:59 PM
I HATE wordpad. I use Word for anything formatted. For editing I use ConTEXT, unless it's just for a second then I use notepad.

The new ConTEXT looks great :-D

btw, to download .2 you have to go to daniel's site. He prolly uploaded the wrong file (it says .2 in title, but the file is .1)
Title: Re: SMFShop - Shop MOD
Post by: magicmule on January 07, 2005, 06:38:30 AM
i cant find the shop_install.php , wehre is this file ? sorry for my englisch 8)
Title: Re: SMFShop - Shop MOD
Post by: Tony Reid on January 07, 2005, 06:50:36 AM
I suppose you could also have a 'buy a bigger IM allowance' as well :)

Title: Re: SMFShop - Shop MOD
Post by: magicmule on January 07, 2005, 01:05:05 PM
how can i do this ?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 07, 2005, 09:56:08 PM
the download for 0.2 appears to have dissappeared... it was there one day, and i look now and it is gone... I'm reuploading it now.

Quote
i cant find the shop_install.php , wehre is this file ? sorry for my englisch
The shop_install.php file is located in the ZIP file. Extract all files and you will see it. I think you downloaded version 0.1 by accident, because 0.1 didn't have a shop_install.php file...

Hopefully I will work on the new version soon, but with me being busy, and school starting soon, etc, etc,etc i might not get any time
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on January 08, 2005, 02:10:15 AM
just a few questions about this...

is there anyway of disabling the  "use" feature... i don't plan on using any of the items that you have for sale and i merely want to use it for adding my own "play" items for my site and i want them to always remain in the inventory list so that admins can view them and such (i'm adding features like - start your own board) these things will have to be actioned by an admin... so basicly i want to disable the "use" button... i'm sure i could find the code if i wanted but it would be so much easier to know where to find it ;)
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 08, 2005, 11:52:50 PM
If you want to create your own item, make a copy of the item_testitem2.php in the Sources/shop/items/ directory. Open it with your favourite editor, and if you can understand PHP, it should be easy to understand how to create an item.

If you want to make an item unusable, go to the onUse() function (it looks like this in the test item):

    function onUse() {
        return "Hello, I am a test!<br>This is all the test item does!!";
    }


Instead of returning something, do change that code to something like this:


    function onUse() {
        die("Sorry, you can't use this item");
    }


This will prevent the item from being used (the only text displayed will be "Sorry, you can't use this item"). And, the item will remain in the members inventory.

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: russ on January 09, 2005, 11:54:38 AM
How do you view other peoples inventories - ie one member seeing what sum1 else has bought?

for example add an extra variable to few a particular person?

http://www.myforum.com/smf/index.php?action=shop;do=inv;u=100 (100 being the member number for instance)
Title: Re: SMFShop - Shop MOD
Post by: Maxunit on January 09, 2005, 05:31:48 PM
Hi there,

I have some problems with the newest release.
If I download the zip file, the SMF 1.0 Final uploader tells me, that the file is invalid or corrupted...please someone post a link to the newest version.

Thanks
Title: Re: SMFShop - Shop MOD
Post by: russ on January 12, 2005, 11:15:53 AM
Quote from: russ on January 09, 2005, 11:54:38 AM
How do you view other peoples inventories - ie one member seeing what sum1 else has bought?

for example add an extra variable to few a particular person?

http://www.myforum.com/smf/index.php?action=shop;do=inv;u=100 (100 being the member number for instance)

any progress on this? jus wondering as i havent heard from people in a while.
Title: Re: SMFShop - Shop MOD
Post by: loveacrossborders on January 12, 2005, 01:15:00 PM
Does anyone have a WORKING model of SMFShop in action? I just want to see what it looks like.

The author of this mod's website unfortunately doesn't work any more.
Title: Re: SMFShop - Shop MOD
Post by: Senkusha on January 12, 2005, 01:33:08 PM
I do, but I have it disabled until I see a feature enhancement added.
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 12, 2005, 03:20:54 PM
Mine is up and running, www.DanceDanceKc.com 

Although, I do not have nor setting up a test account for now. 

So you will HAVE to register to use it, see it, play with it.

Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 13, 2005, 09:15:29 PM
my website IS working, it's just i'm transferring it over to a new server... i should be done soon.

Quote from: loveacrossborders on January 12, 2005, 01:15:00 PM
Does anyone have a WORKING model of SMFShop in action? I just want to see what it looks like.

The author of this mod's website unfortunately doesn't work any more.

Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 13, 2005, 09:30:36 PM
I do want to report a possible BUG in the shop... When I purchased a change user name from the shop and used it, everything went smoothly.  Well all up until I went to go into Admin and it couldn't use my password. I logged out and tried to log BACK in with my new name and old password, and was DENIED.  I did the email password reset, and poof it all works now. 

Although, this could be normal but I never saw a warning about it, if this is normal, maybe a warning built into the item?  or a place to also Change the password for the account.

Thanks!
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 13, 2005, 09:56:34 PM
Quote from: Alisha on January 13, 2005, 09:30:36 PM
I do want to report a possible BUG in the shop... When I purchased a change user name from the shop and used it, everything went smoothly.  Well all up until I went to go into Admin and it couldn't use my password. I logged out and tried to log BACK in with my new name and old password, and was DENIED.  I did the email password reset, and poof it all works now. 

Although, this could be normal but I never saw a warning about it, if this is normal, maybe a warning built into the item?  or a place to also Change the password for the account.

Thanks!

i'm not sure what could be causing that bug... during my testing on my local machine, everything went OK, i'm still using the username i changed to on my local machine... i'll have a look though

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 13, 2005, 10:03:05 PM
I am using the NEW user name also.  It just that I had to reset the password for the account before I could log back into the forum or access the Admin section.  Maybe it was somthing on my Machine..
Title: Re: SMFShop - Shop MOD
Post by: [Unknown] on January 14, 2005, 05:13:09 AM
Passwords are hashed with the username.  If you change the username, you have to also change the password.  See the profile.

-[Unknown]
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 14, 2005, 02:54:03 PM
Quote from: [Unknown] on January 14, 2005, 05:13:09 AM
Passwords are hashed with the username. If you change the username, you have to also change the password. See the profile.

-[Unknown]

How can we fix this?
Title: Re: SMFShop - Shop MOD
Post by: Justyne on January 14, 2005, 02:58:57 PM
it would be neat if it was possible to transfer funds from one user to another.
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 14, 2005, 03:28:43 PM
Quote from: Justyne on January 14, 2005, 02:58:57 PM
it would be neat if it was possible to transfer funds from one user to another.

I was wanting this also.  I was on a site a few months back that had IPB Shop that had tomato's to buy and throw at other members for bad posts or whatever. 

There was almost 3 pages of things to buy, sell and trade with other members. I think the webmaster of that site did 90% of that programing himself. I never seen these items in any other shop on a IPB forum.  The possible uses and effects of a shop are endless, and Daniel has done a great job on this so far.  Just will be time before it becomes what it could be.  Just think of what SMF could be if everyone here with an idea had the skill and time to code their ideas. 

The shop is my most anticipated MOD for my forums.  I have seen and used the potential of a shop before and its was the only one selling point to IPB that took my eyes off SMF after YABBSE stopped.  A shop gives the members some interaction in the forums other than message writting.  You can even develop game cards that members can collect, buy and trade based on your sites theme.

Anyway thanks Daniel, great work so far, can't wait to see where this goes. :)

Title: Re: SMFShop - Shop MOD
Post by: Senkusha on January 14, 2005, 05:04:13 PM
YES!  I do hope that this becomes a reality.  It would be great to clobber members with a mallot!
Title: Re: SMFShop - Shop MOD
Post by: Justyne on January 14, 2005, 05:12:06 PM
sounds assume.. my community would love it
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 14, 2005, 09:58:36 PM
Quote from: [Unknown] on January 14, 2005, 05:13:09 AM
Passwords are hashed with the username.  If you change the username, you have to also change the password.  See the profile.

-[Unknown]
cool, i didn't know that, i assumed that it was just standard MD5 or something, like most boards...

Quote
it would be neat if it was possible to transfer funds from one user to another.
that is coming in the next version, i've already written the code for it

please, remember this is basically a beta. The shop mods for Invision Board, etc. have been through 2-3 years of development, this has only gone through a couple of days of development... it's the great comments i get  from users that makes me want to develop this ;)

stay tuned for new updates

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: loveacrossborders on January 15, 2005, 11:43:40 AM
Hi Alisha,

Thanks for letting me take the mod for a test run. Nice site you have there :).

Hi Daniel,

Indeed, I agree with everyone else. This is one of the most interesting mods yet for SMF! I don't mean to even imply that I'm rushing you. I'm just curious when the next version (or 1.0) will be out? I might wait until either the next beta or the first stable version before actually installing it.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 16, 2005, 12:03:22 AM
The new version is coming soon (within a couple of days).

NEW FEATURES:
* Send money to someone
* Bank (with interest)
* More items
* Various code changes

I think that this version is stable enough to be the 1.0 release...

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: loveacrossborders on January 16, 2005, 12:16:57 AM
Good job! Thank you :)
Title: Re: SMFShop - Shop MOD
Post by: _complex on January 16, 2005, 12:27:47 AM
Quote from: daniel15 on January 16, 2005, 12:03:22 AM
The new version is coming soon (within a couple of days).

NEW FEATURES:
* Send money to someone
* Bank (with interest)
* More items
* Various code changes

I think that this version is stable enough to be the 1.0 release...

--daniel15

Cool, this may be the verison i try out ;D
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 16, 2005, 04:59:47 AM
PREVIEW OF 1.0 AVAILABLE! Visit http://stickboarder.info and click on 'Forum'
Title: Re: SMFShop - Shop MOD
Post by: trenchteam on January 16, 2005, 05:39:55 AM
eh? cant use it. Need password and username for test?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 16, 2005, 06:07:21 AM
Quote from: trenchteam on January 16, 2005, 05:39:55 AM
eh? cant use it. Need password and username for test?

you have to sign up to see the shop...................
Title: Re: SMFShop - Shop MOD
Post by: Senkusha on January 16, 2005, 08:52:46 AM
Here is a suggestion that could help out when sending money to other members:

Insert code in your Shop mod so that people can Select a member instead of Typing in a member:


$cMember = '';
$request1 = mysql_query ("SELECT * FROM smf_members ORDER BY realName");
while ($result1 = mysql_fetch_assoc($request1))
{
if ($result['mID'] > 0)
{
if ($result1['ID_MEMBER'] == $result['mID'])
$cMember .= '<OPTION SELECTED="' . $result1['realName'] . '">' . $result1['realName'];
else
$cMember .= '<OPTION VALUE="' . $result1['realName'] . '">' . $result1['realName'];
}
else
{
if ($result1['ID_MEMBER'] == $CurID)
$cMember .= '<OPTION SELECTED="' . $result1['realName'] . '">' . $result1['realName'];
else
$cMember .= '<OPTION VALUE="' . $result1['realName'] . '">' . $result1['realName'];
}

}


And then where your text box is use the following:

echo ' <tr>
<td><b>Send money to Member:</b></td>
<td><SELECT NAME="cMember">' . $cMember . '</SELECT></td>
</tr>';


This code will automatically select the current member.

I hope this helps.
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 16, 2005, 11:17:35 AM
Some quick ideas before you release.

1. when you are in the bank, mention how much money you have on HAND. It says how much you have in the bank, but not how much you have on hand to deposit.

2. Maybe also once you have made a withdrawl confirm the # of credit withdrawn.
Quote
Withdraw processed!
Back to the bank

QuoteYou have Withdrawn 2 credits, you now have XX credits in your pocket.
QuoteYou have Deposited 2 Credits, you now have XX credits in your account.

3. On the main page where it says SMFShop maybe Change that to the Site Name's Shop.  Use the Site Name Variable $sitename's Shop.

4. In your Bank Header you say:

QuoteWelcome to the Forum Bank! Here, you can safely store your credits and earn interest for them! Note that other members will not be able to see the amount of credits you have in the bank

Although you have:
Quote10 Richest Members (Bank)
daniel15 - 1126 credits
test - 2 credits
Joe - 2 credits
Nutcasewatson - 2 credits

So the bank Policy is a LIE or it appears to be a lie.  So you need to DROP the bank policy text, or drop the number of credits off the Bank Richest list.  I Vote to drop the Bank Policy.

Ideas for this or another Version.

This is more of a personal desire, although be able to Buy a item that can be downloaded.  The download would happen in the confirmation screen.  So the shop can sell Images, Ringtones, Maps, PDF files etc... Not just action Items.

Also, in another version I recallled another feature I loved where you could use a Item to STEAL another players credits.  Each site would have to edit to make the item name custom for their site. The site I was on used a "Sticky Hand" to steal a random amount of credits from another player.
Along with this, it would PM the Victom and tell them:

Quote"SOMEONE" Stole 124 credit from using a StickyHand. I am sorry but we are unable to tell you who stole your credits. Although, when leaving they  dropped the stickyhand. It is now in your inventory.

Although the member / sticky hand can not steal from the bank, only what is in their pockets.

The shop Looks GREAT... Thanks soo much for the hard work.

Title: Re: SMFShop - Shop MOD
Post by: babylonking on January 16, 2005, 11:27:46 AM
Also, in another version I recallled another feature I loved where you could use a Item to STEAL another players credits.  Each site would have to edit to make the item name custom for their site. The site I was on used a "Sticky Hand" to steal a random amount of credits from another player.
Along with this, it would PM the Victom and tell them

"SOMEONE" Stole 124 credit from using a StickyHand. I am sorry but we are unable to tell you who stole your credits. Although, when leaving they  dropped the stickyhand. It is now in your inventory.



and the victim will have to find out who stole his money by using another hand called "Police Hand" or "Magic hand"  ;D
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 16, 2005, 12:14:06 PM
I just noticed another thing in your Shop, when you transfer money to somone, its says its going to send them an Email. So I sent 8 credits to myself, I never recived the email.  Is there are way to maybe chose to send an Email or PM on the site.  I know I hate when sites send me emails for stuff they could be a post or PM. 

Also on the Top Richest list, turn the user names into Links to their profiles. Maybe add the Credit Count to their Profile also.

I also do not mean to tell how to write your mod, these are just ideas I have and wish to share.  Just my opinions and thoughts.  Again, THANKS for this MOD! and all the work you are putting into it.


edit:
I did get the EMAIL... Gmail servers are slower I guess! :)
Title: Re: SMFShop - Shop MOD
Post by: Senkusha on January 16, 2005, 01:33:14 PM
I would still like to see the abitly to use items on other members.  ;)
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 16, 2005, 09:30:52 PM
Quote
Note that other members will not be able to see the amount of credits you have in the bank
I was originally thinking to do that, but then i decided to have the '10 Richest Members (bank). I must have forgotten to remove that text

Quote
I just noticed another thing in your Shop, when you transfer money to somone, its says its going to send them an Email. So I sent 8 credits to myself
I can't find out how the hell the IM's work (database wise), and sending an e-mail is really easy in PHP.

Quote
I would still like to see the abitly to use items on other members.
That MIGHT be coming... Soon........


Thanks everyone for your support, i will continue to develop SMFShop and make it even better!

--daniel15

P.S I am considering shutting down my forum at www.stickboarder.info since the active community that was once there has abandoned the forum (Thanks to 000k, since there servers went down for 2 weeks... and when my site went back up, nobody came back :()

But don't worry, if i DO shut down the forum, development of SMFShop will continue!
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 16, 2005, 11:36:31 PM
lol another idea that just poped into my head, was to make it where you can add items.  So basicly if other people wanted to make a Item and upload them to the here, we can Drop add those items into the shop. 

Hell maybe we can do this now? or maybe you can drop a Blank or Formated Item with instructions.  This way your will have help Building Items.
Title: Re: SMFShop - Shop MOD
Post by: [Unknown] on January 17, 2005, 12:41:32 AM
Quote from: Senkusha on January 16, 2005, 08:52:46 AM
Here is a suggestion that could help out when sending money to other members:

The "find members" popup used for the pm ignore list and sending pms might be better, imho.  Also a freaking lot more efficient (sorry.)

s/withdraw processed/withdrawal processed/

-[Unknown]
Title: Re: SMFShop - Shop MOD
Post by: russ on January 18, 2005, 04:14:16 AM
with  the newest version is there a way to see what other members have bought? so u can show off the various items to other members....? maybe have a link under the credits on a post to [Inventory] and you can view that persons inventory?
Title: Re: SMFShop - Shop MOD
Post by: Squeakypants on January 18, 2005, 07:36:07 PM
Quote from: Alisha on January 16, 2005, 11:36:31 PM
lol another idea that just poped into my head, was to make it where you can add items.  So basicly if other people wanted to make a Item and upload them to the here, we can Drop add those items into the shop. 

Hell maybe we can do this now? or maybe you can drop a Blank or Formated Item with instructions.  This way your will have help Building Items.


Just look at the items that are there now. Dan made them very easy to make new things, just done with simple php. It's all commented in the test files.

Also, to add them to the store, after uploading it, go to add/remove items and add a new item, and the file should be in the list.
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 21, 2005, 06:18:18 PM
QuoteJust look at the items that are there now. Dan made them very easy to make new things, just done with simple php. It's all commented in the test files.

Also, to add them to the store, after uploading it, go to add/remove items and add a new item, and the file should be in the list.

Tried that, but if thats the way its should work, I will keep trying.  I am sure its my code error or something I did wrong... thanks!


Solved... I was putting them in the Wrong shop. Duh!  Also I have made one of my OWN! :) Well its Dans Modified to do what I wanted.  My Item is where a member can purchase a reduction in their warning level. (**REQUIRES** Visual Warning Mod!!)  So, for 250 Credits you can reduce your warning level by 1 level.   I was going to attach it here, although its not allowed in this board.  Let me know if you want it. 

Now I am working on a new one. Although, I am not sure how to add Unknowns user selection into the:

    function getUseInput() {
        return "";
    }


also, once the user action this item is supposed to used on is selected, how to carry it into the onUse function.  Basically I would like to Modify my Warning Reduction item to where a Member can Reduce another's Level.  Additional information would select the user to reduce.  Any help or ideas would be GREATLY Appreciated. Thanks
Title: Re: SMFShop - Shop MOD
Post by: umiya on January 21, 2005, 06:57:57 PM
i cant get my link to appear on the index, in the admin panel it shows up fine, wonder whats causing that?
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 21, 2005, 07:02:34 PM
Quote from: umiya on January 21, 2005, 06:57:57 PM
i cant get my link to appear on the index, in the admin panel it shows up fine, wonder whats causing that?

You need to add it manually tp both default & Custom themes.

At the bottom of the install instuctions in the htm file you will find:

QuoteSave, and open '/Themes/default/index.template.php'

Search for: [line 446]
// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];
NOTE: That bottom line (from echo '<a..... to ....seperator'];) is all 1 long line

Add after:

    //BEGIN Shop MOD 0.2 Code
    echo "<a href='{$scripturl}?action=shop'>", ($settings['use_image_buttons'] ? "<img src='{$settings['images_url']}/{$context['user']['language']}/shop.gif' alt='{$txt['shop']}' style='margin: 2px 0;' border='0' />" : $txt['shop']), "</a>{$context['menu_separator']}";
    //END SHOP MOD


This is what adds the button to your theme.
Title: Re: SMFShop - Shop MOD
Post by: umiya on January 21, 2005, 07:03:39 PM
i did add it manuly :) I did the whole mod manuly actuly

anyway  here is part of my index

   // The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];
    //BEGIN Shop MOD 0.2 Code
    echo "<a href='{$scripturl}?action=shop'>", ($settings['use_image_buttons'] ? "<img src='{$settings['images_url']}/{$context['user']['language']}/shop.gif' alt='{$txt['shop']}' style='margin: 2px 0;' border='0' />" : $txt['shop']), "</a>{$context['menu_separator']}";
    //END SHOP MOD
// If the user is a guest, show [login] and [register] buttons.
if ($context['user']['is_guest'])
{
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 21, 2005, 07:12:27 PM
Only thing I can see is there isn't an ALLOW line? Isn't one in the instructions either. Here is mine from my apollo them.

Should work for any theme though:

        // The [Shop]!
        if ($context['allow_edit_profile'])
                echo '
                                <a href="', $scripturl, '?action=shop">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/shop.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];
Title: Re: SMFShop - Shop MOD
Post by: LordAnki on January 21, 2005, 08:49:39 PM
I got a parse error when i went to shop_install.php

Quote
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/fm/public_html/forums/Sources/Subs.php on line 1606
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 21, 2005, 09:55:43 PM
Quote from: Alisha on January 21, 2005, 07:12:27 PM
Only thing I can see is there isn't an ALLOW line? Isn't one in the instructions either. Here is mine from my apollo them.

Should work for any theme though:

        // The [Shop]!
        if ($context['allow_edit_profile'])
                echo '
                                <a href="', $scripturl, '?action=shop">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/shop.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];


you need to change that code slightly Alisha... For one thing, if the member isn't allowed to edit his/her profile, the Shop button won't show. Also, if you have Graphical buttons off (ie. instead of the buttons, there is text links -- [Home]), the text will be '[Profile]' instead of '[Shop]'.

There doesn't have to be an allow line... just put this section into your theme:


    //BEGIN Shop MOD 0.2 Code
    echo "<a href='{$scripturl}?action=shop'>", ($settings['use_image_buttons'] ? "<img src='{$settings['images_url']}/{$context['user']['language']}/shop.gif' alt='{$txt['shop']}' style='margin: 2px 0;' border='0' />" : $txt['shop']), "</a>{$context['menu_separator']}";
    //END SHOP MOD


--daniel15

P.S Version 1.0 is coming out soon! Within 10 minutes or so!!!!!!!
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 21, 2005, 10:06:43 PM
I set it to profile, becuse I dont want Non-members / logged in member to be able to see it. 

Oppps I forgot to make those changes to the shop Button. :( 

Thanks :) 


ps. waiting for 1.0  Trying to make items tonight! :) Very Excited. :)
Title: Re: SMFShop - Shop MOD
Post by: umiya on January 21, 2005, 10:21:44 PM
well it appears my members can see it but I can't That goes for all admins on my forum(being able to see it)
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 21, 2005, 10:31:41 PM
Quote--daniel15

P.S Version 1.0 is coming out soon! Within 10 minutes or so!!!!!!!

Flawless update through the package manager!  Awsome WORK!!!! Thanks sooo Much for this MOD!!  :-*
Title: Re: SMFShop - Shop MOD
Post by: umiya on January 21, 2005, 10:40:26 PM
i just updated via package manager still seems i cant see the link when i visit the index, but its viewable to non-admin  members.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 21, 2005, 10:46:16 PM
Please note that for the interest to work, you need to have access to cron (this can be done through cPanel)... Read the readme that appears whem you're installing SMFShop for more information!

and umiya, did you put the correct code in the index, it needs to go after the calendar link and looks like this:


    //BEGIN Shop MOD 0.2 Code
    echo "<a href='{$scripturl}?action=shop'>", ($settings['use_image_buttons'] ? "<img src='{$settings['images_url']}/{$context['user']['language']}/shop.gif' alt='{$txt['shop']}' style='margin: 2px 0;' border='0' />" : $txt['shop']), "</a>{$context['menu_separator']}";
    //END SHOP MOD


AND also,
Quote
I set it to profile, becuse I dont want Non-members / logged in member to be able to see it.
In 1.0, if a non-member tries to view the shop, they get a message saying they have to log in.

---daniel15

Title: Re: SMFShop - Shop MOD
Post by: umiya on January 21, 2005, 10:48:26 PM
if you would have read my previous post i haev added teh code to my index.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 21, 2005, 11:11:29 PM
sorry, i didn't see that. I'm not sure of the problem, the code seems to work for me...

are you using a template different to the default one? sometimes, there is a seperate section for admins... search your index.template.php and put the shop link after every calendar link that you find

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 21, 2005, 11:14:32 PM
QuoteAND also,
Quote
I set it to profile, because I don't want Non-members / logged in member to be able to see it.
In 1.0, if a non-member tries to view the shop, they get a message saying they have to log in.

---daniel15

Great...

Also, did you Fix the Change Username / Password problem in 1.0? I didn't see a mention of it, but then I installed quickly! (excitement) lol

Another bug: When a member is in the shop, and another does a who's on-line lookup, it says unknown action instead of Shop. 

In your items that alter other users, you chose not to use the SMF lookup as unknown recommended, is there a reason / conflict where this wouldn't work.  I would like to change this on my forums if there is no reason why it wouldn't work? 

Thanks soooo Much for this! :) Great Work! :)
Title: Re: SMFShop - Shop MOD
Post by: umiya on January 21, 2005, 11:30:15 PM
here is link to my index.template

www.hiya-host.com/index.template1.rtf
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 21, 2005, 11:35:38 PM
Quote
Another bug: When a member is in the shop, and another does a who's on-line lookup, it says unknown action instead of Shop.
maybe i'll do this in the next version... I still don't know everything about SMF

Quote
Also, did you Fix the Change Username / Password problem in 1.0?
no, sorry ;)

Quote
In your items that alter other users, you chose not to use the SMF lookup as unknown recommended, is there a reason / conflict where this wouldn't work.  I would like to change this on my forums if there is no reason why it wouldn't work?
sorry but I didn't have time to implement all the suggestions people said...

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 21, 2005, 11:40:17 PM
Quotesorry but I didn't have time to implement all the suggestions people said...

I can understand that... I was just wondering if there would be a problem doing it! :)

Title: Re: SMFShop - Shop MOD
Post by: Pause on January 21, 2005, 11:45:50 PM
Thank you for a great mod daniel15, this is something that users will really recognise you for now  ;D

One thing though, you have this in the install file...

    <file name="$boarddir/Themes/default/Display.template.php">
        <operation>
            <search position="replace"><![CDATA[
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';
]]></search>
           <add><![CDATA[
// Show how many posts they have made.
// echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />
// <br />';

            //BEGIN Shop MOD 0.2 Code
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';

            //I couldn't find where all these $message['member'][whatever] variables
            //are set, so I just send an extra database query to get the member's
            //money. Can someone tell me where (file and line) the $message variables
            //are set?
            global $ID_MEMBER, $db_prefix;

            $result_money = db_query("SELECT money
                                      FROM {$db_prefix}members
                                      WHERE ID_MEMBER = {$message['member']['id']}
                                      LIMIT 1", __FILE__, __LINE__);
            $row_money = mysql_fetch_array($result_money, MYSQL_ASSOC);

            echo $modSettings['shopCurrencyPrefix'].$row_money['money'].$modSettings['shopCurrencySuffix']."<br><br>";
            //END SHOP MOD
]]></add>


I'd replace it with the following so that it doesn't show your post count twice...

    <file name="$boarddir/Themes/default/Display.template.php">
        <operation>
            <search position="replace"><![CDATA[
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';
]]></search>
           <add><![CDATA[
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';

            //BEGIN Shop MOD 1.0 Code

            //I couldn't find where all these $message['member'][whatever] variables
            //are set, so I just send an extra database query to get the member's
            //money. Can someone tell me where (file and line) the $message variables
            //are set?
            global $ID_MEMBER, $db_prefix;

            $result_money = db_query("SELECT money
                                      FROM {$db_prefix}members
                                      WHERE ID_MEMBER = {$message['member']['id']}
                                      LIMIT 1", __FILE__, __LINE__);
            $row_money = mysql_fetch_array($result_money, MYSQL_ASSOC);

            echo $modSettings['shopCurrencyPrefix'].$row_money['money'].$modSettings['shopCurrencySuffix']."<br><br>";;
            //END SHOP MOD
]]></add>
Title: Re: SMFShop - Shop MOD
Post by: russ on January 22, 2005, 04:06:45 AM
Updated perfectly - thanks!

Just a quick question - does anyone know how to allow members to view other members inventories?

Thanks for a great mod :)
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 22, 2005, 06:45:29 AM
Quote from: Mattitude on January 21, 2005, 11:45:50 PM
Thank you for a great mod daniel15, this is something that users will really recognise you for now  ;D

One thing though, you have this in the install file...

    <file name="$boarddir/Themes/default/Display.template.php">
        <operation>
            <search position="replace"><![CDATA[
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';
]]></search>
           <add><![CDATA[
// Show how many posts they have made.
// echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />
// <br />';

            //BEGIN Shop MOD 0.2 Code
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';

            //I couldn't find where all these $message['member'][whatever] variables
            //are set, so I just send an extra database query to get the member's
            //money. Can someone tell me where (file and line) the $message variables
            //are set?
            global $ID_MEMBER, $db_prefix;

            $result_money = db_query("SELECT money
                                      FROM {$db_prefix}members
                                      WHERE ID_MEMBER = {$message['member']['id']}
                                      LIMIT 1", __FILE__, __LINE__);
            $row_money = mysql_fetch_array($result_money, MYSQL_ASSOC);

            echo $modSettings['shopCurrencyPrefix'].$row_money['money'].$modSettings['shopCurrencySuffix']."<br><br>";
            //END SHOP MOD
]]></add>


I'd replace it with the following so that it doesn't show your post count twice...

    <file name="$boarddir/Themes/default/Display.template.php">
        <operation>
            <search position="replace"><![CDATA[
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';
]]></search>
           <add><![CDATA[
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';

            //BEGIN Shop MOD 1.0 Code

            //I couldn't find where all these $message['member'][whatever] variables
            //are set, so I just send an extra database query to get the member's
            //money. Can someone tell me where (file and line) the $message variables
            //are set?
            global $ID_MEMBER, $db_prefix;

            $result_money = db_query("SELECT money
                                      FROM {$db_prefix}members
                                      WHERE ID_MEMBER = {$message['member']['id']}
                                      LIMIT 1", __FILE__, __LINE__);
            $row_money = mysql_fetch_array($result_money, MYSQL_ASSOC);

            echo $modSettings['shopCurrencyPrefix'].$row_money['money'].$modSettings['shopCurrencySuffix']."<br><br>";;
            //END SHOP MOD
]]></add>

it doesn't show the post count twice, the original lines are commented out... I did this because i removed a '<br>' from the post count line, and wanted to keep the original line there, just in case someone wants to uninstall it manually

Quote
Just a quick question - does anyone know how to allow members to view other members inventories?
Not yet... Coming soon though (it is requested a lot).
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 22, 2005, 11:59:07 AM
Where does the script store a members inventory. Items a Member has in his inventory?

Nevermind found it.
Title: Re: SMFShop - Shop MOD
Post by: LordAnki on January 22, 2005, 02:30:44 PM
anyone gonna answer my parse error question?
Title: Re: SMFShop - Shop MOD
Post by: double_d on January 22, 2005, 04:02:37 PM
Does anyone know if there is a auto-remove?  I've deleted all the files I think, but I want to clean out my SQL database.

Thanks.
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 22, 2005, 05:11:39 PM
Quote from: [Unknown] on January 17, 2005, 12:41:32 AM
Quote from: Senkusha on January 16, 2005, 08:52:46 AM
Here is a suggestion that could help out when sending money to other members:

The "find members" popup used for the pm ignore list and sending pms might be better, imho.  Also a freaking lot more efficient (sorry.)

s/withdraw processed/withdrawal processed/

-[Unknown]

As Par for my record with PHP, I Tried and Failed, at this...

Quotefunction getUseInput() {
        global $context, $settings, $options, $scripturl, $modSettings, $txt;
        return "User's name: <input type='text' name='username' size='50'>";
        echo '
               <td class="smalltext">
               <a href="', $scripturl, '?action=findmember;input=username;quote=1;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'], '" /></a> ', $txt[748], '
               </td>';
    }
Ok, so where did I go wrong here?

Maybe my code is right and PHP is wrong?
Title: Re: SMFShop - Shop MOD
Post by: [Unknown] on January 22, 2005, 10:54:29 PM
<input type='text' name='username' size='50'>

That needs to have id='username' on it too, for findmembers to access it properly.

-[Unknown]
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 22, 2005, 10:55:24 PM
Quote from: Alisha on January 22, 2005, 05:11:39 PM
Quote from: [Unknown] on January 17, 2005, 12:41:32 AM
Quote from: Senkusha on January 16, 2005, 08:52:46 AM
Here is a suggestion that could help out when sending money to other members:

The "find members" popup used for the pm ignore list and sending pms might be better, imho.  Also a freaking lot more efficient (sorry.)

s/withdraw processed/withdrawal processed/

-[Unknown]

As Par for my record with PHP, I Tried and Failed, at this...

Quote    function getUseInput() {
        global $context, $settings, $options, $scripturl, $modSettings, $txt;
        return "User's name: <input type='text' name='username' size='50'>";
        echo '
               <td class="smalltext">
               <a href="', $scripturl, '?action=findmember;input=username;quote=1;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'], '" /></a> ', $txt[748], '
               </td>';
    }
Ok, so where did I go wrong here?

Maybe my code is right and PHP is wrong?

you're echoing rather than returning... read comments in Sources/shop/items/testitem2.php for more information

Inventory items are stored in the smf_shop_inventory table in the MySQL database. This table has the inventory ID (unique), the item id, the member id and the price paid.

Quote
Does anyone know if there is a auto-remove?  I've deleted all the files I think, but I want to clean out my SQL database.

Thanks.
sorry, no auto remove script as yet. You need to do the following:

Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 22, 2005, 11:02:35 PM
Quote from: [Unknown] on January 22, 2005, 10:54:29 PM
<input type='text' name='username' size='50'>

That needs to have id='username' on it too, for findmembers to access it properly.

-[Unknown]

    function getUseInput() {
        global $context, $settings, $options, $scripturl, $modSettings, $txt;
        return "User's name: <input type='text' name='username' id='username size='50'>";
        echo '
               <td class="smalltext">
               <a href="', $scripturl, '?action=findmember;input=username;quote=1;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'], '" /></a> ', $txt[748], '
               </td>';
    }


Change made and still the same problem, Nothing shows up at all, No link, no find members text. Along with no errors.

Quoteyou're echoing rather than returning... read comments in Sources/shop/items/testitem2.php for more information

I am returning the input field, and echoing the Find Users link. How would I return the find users link?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 22, 2005, 11:17:22 PM
Quote from: Alisha on January 22, 2005, 11:02:35 PM
Quote from: [Unknown] on January 22, 2005, 10:54:29 PM
<input type='text' name='username' size='50'>

That needs to have id='username' on it too, for findmembers to access it properly.

-[Unknown]

    function getUseInput() {
        global $context, $settings, $options, $scripturl, $modSettings, $txt;
        return "User's name: <input type='text' name='username' id='username size='50'>";
        echo '
               <td class="smalltext">
               <a href="', $scripturl, '?action=findmember;input=username;quote=1;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'], '" /></a> ', $txt[748], '
               </td>';
    }


Change made and still the same problem, Nothing shows up at all, No link, no find members text. Along with no errors.

Quoteyou're echoing rather than returning... read comments in Sources/shop/items/testitem2.php for more information

I am returning the input field, and echoing the Find Users link. How would I return the find users link?

you need to return everything (ie. you need to return the input firld AND the find users link. I haven't tried that but it should work

and you forgot to close the quote in the input field:
<input type='text' name='username' id='username size='50'>
should be
<input type='text' name='username' id='username'size='50'>
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 22, 2005, 11:22:31 PM
    function getUseInput() {
        global $context, $settings, $options, $scripturl, $modSettings, $txt;
        return "User's name: <input type='text' name='username' id='username' size='50'>";
        return  '
               <td class="smalltext">
               <a href="', $scripturl, '?action=findmember;input=username;quote=1;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'], '" /></a> ', $txt[748]';
               </td>';
    }


Parse error: parse error, unexpected ',' in /home/.cadence/msalisha/dancedancekc.com/Forums/Sources/shop/items/PurchaseSandBags.php on line 28

I do not see anything extra or out of place? 
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 22, 2005, 11:33:01 PM
Quote from: Alisha on January 22, 2005, 11:22:31 PM
    function getUseInput() {
        global $context, $settings, $options, $scripturl, $modSettings, $txt;
        return "User's name: <input type='text' name='username' id='username' size='50'>";
        return  '
               <td class="smalltext">
               <a href="', $scripturl, '?action=findmember;input=username;quote=1;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'], '" /></a> ', $txt[748]';
               </td>';
    }


Parse error: parse error, unexpected ',' in /home/.cadence/msalisha/dancedancekc.com/Forums/Sources/shop/items/PurchaseSandBags.php on line 28

I do not see anything extra or out of place? 
change the commas (,) to dots (.). Commas are used with echo to specify additional stuff to output, but with other functions, you need to use concatenation (the . character).... if you understood any of that 
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 22, 2005, 11:37:03 PM
Quote from: daniel15 on January 22, 2005, 11:33:01 PM
Quote from: Alisha on January 22, 2005, 11:22:31 PM
    function getUseInput() {
        global $context, $settings, $options, $scripturl, $modSettings, $txt;
        return "User's name: <input type='text' name='username' id='username' size='50'>";
        return  '
               <td class="smalltext">
               <a href="', $scripturl, '?action=findmember;input=username;quote=1;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'], '" /></a> ', $txt[748]';
               </td>';
    }


Parse error: parse error, unexpected ',' in /home/.cadence/msalisha/dancedancekc.com/Forums/Sources/shop/items/PurchaseSandBags.php on line 28

I do not see anything extra or out of place? 
change the commas (,) to dots (.). Commas are used with echo to specify additional stuff to output, but with other functions, you need to use concatenation (the . character).... if you understood any of that 

    function getUseInput() {
        global $context, $settings, $options, $scripturl, $modSettings, $txt;
        return "User's name: <input type='text' name='username' id='username' size='50'>
        <a href="'. $scripturl. '?action=findmember;input=username;quote=1;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']. '" /></a> '. $txt[748]';
               </td>";
    }


Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/dancedancekc.com/Forums/Sources/shop/items/PurchaseSandBags.php on line 26
Title: Re: SMFShop - Shop MOD
Post by: Squeakypants on January 23, 2005, 12:20:04 AM
One problem: Code inputs. When doing anything that requires input, someone could easily put something in that could destroy the site (if it were going into a database, for example, someone could put DROP). Though, this is only when it is a number input. For example, I put "$this=5" deposit to the bank. Here's what come up:
QuoteUnknown column '$this' in 'field list'
File: /homepages/**/d*******/htdocs/****/forums/Sources/shop/Shop.php
Line: 451

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.1, whereas your database is at version SMF 1.0. It is recommended that you execute the latest version of upgrade.php.

If I had put DROP, bye-bye database.
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 23, 2005, 12:27:15 AM
Quote from: Squeakypants on January 23, 2005, 12:20:04 AM
One problem: Code inputs. When doing anything that requires input, someone could easily put something in that could destroy the site (if it were going into a database, for example, someone could put DROP). Though, this is only when it is a number input. For example, I put "$this=5" deposit to the bank. Here's what come up:
QuoteUnknown column '$this' in 'field list'
File: /homepages/**/d*******/htdocs/****/forums/Sources/shop/Shop.php
Line: 451

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.1, whereas your database is at version SMF 1.0. It is recommended that you execute the latest version of upgrade.php.

If I had put DROP, bye-bye database.

Figures... 
Title: Re: SMFShop - Shop MOD
Post by: Jerry on January 23, 2005, 04:55:26 AM
Quote from: Alisha on January 22, 2005, 11:37:03 PM
function getUseInput() {
global $context, $settings, $options, $scripturl, $modSettings, $txt;
return "User's name: <input type='text' name='username' id='username' size='50'>
<a href="'. $scripturl. '?action=findmember;input=username;quote=1;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']. '" /></a> '. $txt[748]';
</td>";
}


Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/dancedancekc.com/Forums/Sources/shop/items/PurchaseSandBags.php on line 26

User's name: <input type='text' name='username' id='username' size='50'> needs to be something like this :)
User\'s name: <input type=\'text\' name=\'username\' id=\'username\' size=\'50\'> This should probably fix that problem.
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 23, 2005, 05:26:32 AM
The input box isn't my problem, getting the "Find Users" link to show up like in the Send PM Box. Where you can click and search for a member to use this action on.

I either error out, or like right now its invisible. Looks like it should be there, but it isn't showing up.
Title: Re: SMFShop - Shop MOD
Post by: LordAnki on January 23, 2005, 12:01:09 PM
Okay, Nobody has bothered to help me with this parse error.

Quote
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/fm/public_html/forums/Sources/Subs.php on line 1607

Here is lines 1606-1610


}
$context['random_news_line'] ']']']= $context['news_lines'][rand(0, count($context['news_lines']) - 1)];

if (!$user_info['is_guest'])
{


NOW can someone please help me out. Thank you.
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 23, 2005, 02:45:08 PM
Quote from: LordAnki on January 23, 2005, 12:01:09 PM
Okay, Nobody has bothered to help me with this parse error.

Quote
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/fm/public_html/forums/Sources/Subs.php on line 1607




}
$context['random_news_line'] ']']']= $context['news_lines'][rand(0, count($context['news_lines']) - 1)];

if (!$user_info['is_guest'])
{


NOW can someone please help me out. Thank you.

I am sorry I wish I could help you!  I have no idea.  I do wish I could help you!  You installing the shop?  Manually?
Title: Re: SMFShop - Shop MOD
Post by: LordAnki on January 23, 2005, 03:54:47 PM
yes manually.
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 23, 2005, 04:10:03 PM
Quote from: LordAnki on January 23, 2005, 03:54:47 PM
yes manually.

Ok first what version are you installing? Fresh, .02 or .02 - 1 update?

Also, I maybe wrong on here, but I looked over the package install and that error makes me think you have an Extra { or ; someplace or one that isn't needed.  You need to go back to where you made the changes and make sure you didn't miss anything.  I used the package manager to install it, so I am not very versed on what was done or needs to be done to install it.  Although, I will try to help you. 

When you are checking grab a fresh copy of the files you changed and compare them on or around the lines you changed. What should be there, what you should have there, and what IS there.  This is the only way I know for find these simple type parse errors.

I do believe that this is because you miss copied something when you made the changes.  Missed a little { on a line or something like that. 

Also, if you use ConTEXT from ConTEXT.CX  this will be a whole lot easier on you.  It has a compare feature.
Title: Re: SMFShop - Shop MOD
Post by: LordAnki on January 23, 2005, 05:12:29 PM
fresh install i think v.02 or w/e

I might just try and do the package manager.
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 23, 2005, 05:17:54 PM
Quote from: LordAnki on January 23, 2005, 05:12:29 PM
fresh install i think v.02 or w/e

I might just try and do the package manager.

Well if you do use the manager with a partial errored install, it MIGHT, cause more of the problem.  See you will have a Partial installed error, and in places that the files should be you will have a proper. This can cause more errors than you have now.  I have been down this road before :) its not a happy thing.
Title: Re: SMFShop - Shop MOD
Post by: LordAnki on January 23, 2005, 06:01:36 PM
well if someone who knew more about php and errors and stuff like that could help me maybe i wouldn't have to uninstall everything and reinstall and blah blah blah. No offence Alisha. I'm grateful for hte help u are giving me.
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 23, 2005, 08:45:05 PM
Quote from: LordAnki on January 23, 2005, 06:01:36 PM
well if someone who knew more about php and errors and stuff like that could help me maybe i wouldn't have to uninstall everything and reinstall and blah blah blah. No offence Alisha. I'm grateful for hte help u are giving me.

Well I wish I could be of more help.  I am just learning PHP myself. 
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 23, 2005, 09:02:52 PM
i'm really sorry LordAnki but i must have missed your post

looking at the code you posted...

}
$context['random_news_line'] ']']']= $context['news_lines'][rand(0, count($context['news_lines']) - 1)];

if (!$user_info['is_guest'])
{


that has nothing to do with the shop... try removing the ']']']... that might work

again, sorry for not replying sooner, but sometimes when i look at this topic, there might be 15-20 replies all coming in at the same time, and i might have missed yours

please reply if you have any more problems, but i'll be busy this week since school starts next week here in Australia... I can help you on weekends though

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: [Unknown] on January 23, 2005, 11:34:55 PM
That's something Dreamweaver does... darn thing.

-[Unknown]
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 24, 2005, 12:45:03 AM
ok, with the item Dan made for the shop where you can Change another members title you can change their title, although, so can they change it back in the profile.  So I figured I would just disable in the admin section. Well that made them vanish.

Any ideas to eliminate this problem?

Thanks!
Title: Re: SMFShop - Shop MOD
Post by: Squeakypants on January 24, 2005, 09:26:50 PM
I was thinking the same thing...

Also, can you guys post any new items you made?
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 24, 2005, 11:36:02 PM
Quote from: Squeakypants on January 24, 2005, 09:26:50 PM
I was thinking the same thing...

Also, can you guys post any new items you made?

I was thinking that if Dan has the time or the motivation to turn the SMF Shop into what IPBShop has to offer then there could be a Shop Server. I think if you do it right, Shop items could be installed Via the package server on SMF.

I was looking into it last night.  Would just need to write the instruction file to extract the item into /source/shops/items/  Done.  then in the admin find it and add it to the shop.  I have been looking though the standard items that come with IPShop and there are a ton of things.  They are hard for me to change over because I do not know IPB or PHP well enough.  I see in time if the shop is to have the support it will turn into IPShop very soon.

Of Course I am not sure if the development team would allow shop items in the package server.  I would happy to host a shop ONLY package server for items, although, again NO Clue how to go about such a thing.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 25, 2005, 12:13:29 AM
Quote from: Alisha on January 24, 2005, 11:36:02 PM
Quote from: Squeakypants on January 24, 2005, 09:26:50 PM
I was thinking the same thing...

Also, can you guys post any new items you made?

I was thinking that if Dan has the time or the motivation to turn the SMF Shop into what IPBShop has to offer then there could be a Shop Server. I think if you do it right, Shop items could be installed Via the package server on SMF.

I was looking into it last night.  Would just need to write the instruction file to extract the item into /source/shops/items/  Done.  then in the admin find it and add it to the shop.  I have been looking though the standard items that come with IPShop and there are a ton of things.  They are hard for me to change over because I do not know IPB or PHP well enough.  I see in time if the shop is to have the support it will turn into IPShop very soon.

Of Course I am not sure if the development team would allow shop items in the package server.  I would happy to host a shop ONLY package server for items, although, again NO Clue how to go about such a thing.

i like the idea of a shop package server. I might make my own server that's like a package server, but only has shop items (even something like a web page that people can add their own items to).

If anyone went to my Stickboarder website (www.stickboarder.info) before i took the members area down, there was a Submitted Flash Movies section (it's still there but doesn't work -- need to fix that soon). Anyway, people could submit their own Flash movies, and the 10 most popular and 10 recent movies would be listed on a page.

How that relates to the Shop is that, i could have something similar to that. People could submit their items, and then there would be a page with the popular items, etc. ALSO, i could have a package server with a dynamically generated XML file that automatically has all the submitted items. The great thing is that stuff like that isn't too hard for me to code.

I'll start work on it on Friday (hopefully), but from now on, I can only work on SMFShop Friday night / Saturday / Sunday because school is starting soon, and i'm too busy during the week

Stay tuned!

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 25, 2005, 12:57:10 AM
That would be GREAT! :)  Now I just need to learn to SPEAK IPB and items unlimited! :) 

Also, Unknown, if you get a CHANCE, can use PLEASE! Pretty Please take this items code and add the Find Members link to it?

Once I see it done, and know how it works I can modify the others to work... 

Thanks! :)

//File: ChangeUserTitle.php
//      Item

//VERSION: 0.2
//DATE: 29th December 2004

class item_ChangeUserTitle extends itemTemplate {
    function getItemDetails() {
        $this->name = "Change User Title";
        $this->desc = "Change your user title";
        $this->price = 50;
    }

    function getUseInput() {
        return "New Title: <input type='text' name='newtitle' size='50'>";
    }

    function onUse() {
        global $db_prefix, $ID_MEMBER;

        $result = db_query("UPDATE {$db_prefix}members
                            SET usertitle = '{$_POST['newtitle']}'
                            WHERE ID_MEMBER = {$ID_MEMBER}",
                            __FILE__, __LINE__);
        return "Successfully changed your user title to {$_POST['newtitle']}";
    }

}

?>


Title: Re: SMFShop - Shop MOD
Post by: umiya on January 25, 2005, 02:52:42 AM
i just oloked at my forum error logs and i had 600 pages of nothing but the same error

8: Undefined index: shop
File: /home/hiya/public_html/forum/Themes/default/MessageIndex.template.php (eval?)
Line: 475
Title: Re: SMFShop - Shop MOD
Post by: Senkusha on January 26, 2005, 10:39:37 AM
Version 1.0 of this mod is great!  My members LOVE it!  I had to create my own items (modifing the Send Money to a Member), and now I've got all kinds of bashings going on :)  Thanks for a wonderful mod!
Title: Re: SMFShop - Shop MOD
Post by: babylonking on January 27, 2005, 05:13:08 PM
How about reduce members money to $0 if they spams? My members start spamming now and i hate that  ::)
Title: Re: SMFShop - Shop MOD
Post by: Pause on January 28, 2005, 12:14:00 AM
Quote from: babylonking on January 27, 2005, 05:13:08 PM
How about reduce members money to $0 if they spams? My members start spamming now and i hate that  ::)
Hmmmm....nice idea Babylonking  ;D
Title: Re: SMFShop - Shop MOD
Post by: babylonking on January 28, 2005, 12:45:01 AM
Quote from: Mattitude on January 28, 2005, 12:14:00 AM
Quote from: babylonking on January 27, 2005, 05:13:08 PM
How about reduce members money to $0 if they spams? My members start spamming now and i hate that  ::)
Hmmmm....nice idea Babylonking  ;D

I scared my members and i told them that the shop mod build in spam system and it's very smart system  :P

Hey i added 2 new items, one called trashcan and the other one Turd  :P

see the trashed and turded member in action  http://www.babylonking.net/forum/index.php?topic=9102.0
Title: Re: SMFShop - Shop MOD
Post by: Pause on January 28, 2005, 02:49:40 AM
Quote from: babylonking on January 28, 2005, 12:45:01 AM
Quote from: Mattitude on January 28, 2005, 12:14:00 AM
Quote from: babylonking on January 27, 2005, 05:13:08 PM
How about reduce members money to $0 if they spams? My members start spamming now and i hate that  ::)
Hmmmm....nice idea Babylonking  ;D

I scared my members and i told them that the shop mod build in spam system and it's very smart system  :P

Hey i added 2 new items, one called trashcan and the other one Turd  :P

see the trashed and turded member in action  http://www.babylonking.net/forum/index.php?topic=9102.0
LOL, I like it - nice skin too btw
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 28, 2005, 03:40:03 AM
Quote from: babylonking on January 27, 2005, 05:13:08 PM
How about reduce members money to $0 if they spams? My members start spamming now and i hate that  ::)
you can do that in the admin section of your forum,under 'Members Inventory.

i'll  be working on the items page soon, but as you might already know, school has started so i can only work on this Friday nights, saturday and sunday :(. Don't worry, development might be a bit slow, but will eventually get done ;)

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: russ on January 28, 2005, 03:55:26 AM
Quote from: babylonking on January 28, 2005, 12:45:01 AM
Quote from: Mattitude on January 28, 2005, 12:14:00 AM
Quote from: babylonking on January 27, 2005, 05:13:08 PM
How about reduce members money to $0 if they spams? My members start spamming now and i hate that ::)
Hmmmm....nice idea Babylonking ;D

I scared my members and i told them that the shop mod build in spam system and it's very smart system :P

Hey i added 2 new items, one called trashcan and the other one Turd :P

see the trashed and turded member in action http://www.babylonking.net/forum/index.php?topic=9102.0

I was wondering hw u managed to make soem of the various items you created appear underneath the member in questions avatar...? Nice looking site btw :)
Title: Re: SMFShop - Shop MOD
Post by: Senkusha on January 28, 2005, 05:05:30 PM
Quote from: babylonking on January 27, 2005, 05:13:08 PM
How about reduce members money to $0 if they spams? My members start spamming now and i hate that  ::)

That sounds like a great idea, but how would you implement something like that?
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 28, 2005, 05:15:44 PM
Quote from: Senkusha on January 28, 2005, 05:05:30 PM
Quote from: babylonking on January 27, 2005, 05:13:08 PM
How about reduce members money to $0 if they spams? My members start spamming now and i hate that  ::)

That sounds like a great idea, but how would you implement something like that?

I was looking into it, my idea what if a message has less than 'XX' char or contains certain words then it would drop money.. I think this would be a lot of code though. Esp when I see spam I hit the little 'WARN' button and poof it stays until they buy a reduction.  Then if they are MUTED they have to use the chatroom or shout box to get another member to BUY them a reduction.  I think this will slow it down a lot!  Although, I have not had a problem yet...  All the CHILDREN stay on our sister forum and fight there.
Title: Re: SMFShop - Shop MOD
Post by: babylonking on January 28, 2005, 06:39:52 PM
Quote from: daniel15 on January 28, 2005, 03:40:03 AM
Quote from: babylonking on January 27, 2005, 05:13:08 PM
How about reduce members money to $0 if they spams? My members start spamming now and i hate that  ::)
you can do that in the admin section of your forum,under 'Members Inventory.

i'll  be working on the items page soon, but as you might already know, school has started so i can only work on this Friday nights, saturday and sunday :(. Don't worry, development might be a bit slow, but will eventually get done ;)

--daniel15

Yup but how can that be done automatically  :P

QuoteI was wondering hw u managed to make soem of the various items you created appear underneath the member in questions avatar...? Nice looking site btw

QuoteThat sounds like a great idea, but how would you implement something like that?

I know it's hard to do that but it's good idea though  ;)

QuoteI was wondering hw u managed to make soem of the various items you created appear underneath the member in questions avatar...? Nice looking site btw

I got the code from alisha and i look at it and it was very easy to add new items, I just added new item called monkey butt member :P

You only need to add field in smf_members and another code in display template, Lets say you wanna add the monkeybutt item, In PHPmyAdmin click on smf_members Structure icon then add new field by clicking the go button the one beside the drop down menu for members Structure, then set the field name to Monkeybutt and set the type to INT,Length/Values to 10, Default to 0 and click the save button.

Also add the code below the //END SHOP MOD in display.template.php 

// add monkey butt

             global $ID_MEMBER, $db_prefix;

             $result_Monkeybutt = db_query("SELECT Monkeybutt
                                           FROM {$db_prefix}members
                                           WHERE ID_MEMBER = {$message['member']['id']}
                                           LIMIT 1", __FILE__, __LINE__);
             while ($row = mysql_fetch_assoc($result_Monkeybutt))

             if($row['Monkeybutt'] == '1')
               {
                     echo '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/monkeybutt.gif" alt="OWNED" style="margin: 2px 0;" border="0" /><br />' ;
                  } else {
                     echo '';

                  }


Then upload the attached monkeybutt.gif to your forum/Themes/default/images/english/

also upload the attached monkeybutt templates to your forum/Sources/shop/

Done  8)





Title: Re: SMFShop - Shop MOD
Post by: LordAnki on January 28, 2005, 07:35:27 PM
well i'll have to try and see waht happens when i change the code for it. thanks daniel.
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 28, 2005, 07:44:11 PM
QuoteYou only need to add field in smf_members and another code in display template, Lets say you wanna add the monkeybutt item, In PHPmyAdmin click on smf_members Structure icon then add new field by clicking the go button the one beside the drop down menu for members Structure, then set the field name to Monkeybutt and set the type to INT,Length/Values to 10, Default to 0 and click the save button.

Now can we make this into a "mod" item. Where you could use the package manager to install it. :) I think Dan is setting something up this weekend on his server were we can make 'item' mods and he would host them on a "package" server to install.  I have played with it a bunch and kinda made a mod, although I would not trust installing it on my forum... lol Although, I would love to see one done so I can model off of it... then we can install shop items on the fly.
Title: Re: SMFShop - Shop MOD
Post by: babylonking on January 28, 2005, 07:52:25 PM
Quote from: Alisha on January 28, 2005, 07:44:11 PM
QuoteYou only need to add field in smf_members and another code in display template, Lets say you wanna add the monkeybutt item, In PHPmyAdmin click on smf_members Structure icon then add new field by clicking the go button the one beside the drop down menu for members Structure, then set the field name to Monkeybutt and set the type to INT,Length/Values to 10, Default to 0 and click the save button.

Now can we make this into a "mod" item. Where you could use the package manager to install it. :) I think Dan is setting something up this weekend on his server were we can make 'item' mods and he would host them on a "package" server to install.  I have played with it a bunch and kinda made a mod, although I would not trust installing it on my forum... lol Although, I would love to see one done so I can model off of it... then we can install shop items on the fly.

Also it's good to have PM sent to member when he received money from some one  8)
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 28, 2005, 08:06:53 PM
lol The Send money has a notification, although, its by Email becuse the PM function was more complicated than he cared to do at the time...

I would rather have PM myself, but for now we have Email... so when you send someone money they get an Email about it.  Also there is a place in the send item to add a note to the money... Memo field! Evil thoughts!
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 28, 2005, 08:14:13 PM
lol The Send money has a notification, although, its by Email because the PM function was more complicated than he cared to do at the time...

I would rather have PM myself, but for now we have Email... so when you send someone money they get an Email about it.  Also there is a place in the send item to add a note to the money... Memo field! Evil thoughts!
Title: Re: SMFShop - Shop MOD
Post by: lavos on January 28, 2005, 08:56:24 PM
but how do we add title effect changes as well as username effect changes to the shop?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 28, 2005, 09:50:25 PM
sorry, but i don't have the time to do anything at the moment... If anyone has made some good items, send them to me as a ZIP file (either post them here or send them to my yahoo address [[email protected]]) and i'll put them on a page on my website, under the 'SMF Mods' section.

if it needs database hacks or whatever (such as that monkey butt thing), send a readme file inside the ZIP

and to babylonking, for your 'monkey butt' thingy, you said:
Quote
...set the field name to Monkeybutt and set the type to INT,Length/Values to 10, Default to 0...

since that value only appears to be either 0 or 1, you could set the type to BYTE and length to 1... wouldn't make much difference though (you'll save a tiny bit of space)

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: Senkusha on January 29, 2005, 03:43:50 AM
I have successfully found a way to send PM messages while writting my RPG mod.  I will hunt down the code and post it soon, (I don't have the time right now)

I also have a few "battle type" items that I could add to the mix, all that is needed is a new field called Health added to the members table.
Title: Re: SMFShop - Shop MOD
Post by: babylonking on January 29, 2005, 09:51:20 AM
Quoteand to babylonking, for your 'monkey butt' thingy, you said:
Quote
...set the field name to Monkeybutt and set the type to INT,Length/Values to 10, Default to 0...

since that value only appears to be either 0 or 1, you could set the type to BYTE and length to 1... wouldn't make much difference though (you'll save a tiny bit of space)

I really don't know php coding that much  ;)

Thanks for the tip daniel15 !

QuoteI have successfully found a way to send PM messages while writting my RPG mod.  I will hunt down the code and post it soon, (I don't have the time right now)

I also have a few "battle type" items that I could add to the mix, all that is needed is a new field called Health added to the members table.

ohh cool you are working on RPG mod i thought you quit working on it, well good luck and don't forget the PM code  ;)
Title: Re: SMFShop - Shop MOD
Post by: babylonking on January 29, 2005, 09:54:05 AM
BTW here is some of my members thoughts about the shop mod.


well i'm telling you from now!
sorry to spoil ur fun

but make an option for those who want to buy stuff and play and for those who dosnt!

cuz i really DONT WANT TO!
it's not just a pic!  icon_rolleyes  ... there is a lot of ppl come to bbk and see and watch!
yeah i know i look out for my reputation too! i don't want some PEEP giving me stuff like trash can or monkey but!
if it was my friends ah well big deal! but most of those ppl r not my friends!
Title: Re: SMFShop - Shop MOD
Post by: johnm on January 29, 2005, 11:38:42 AM
Quote from: babylonking on January 29, 2005, 09:54:05 AM
BTW here is some of my members thoughts about the shop mod.


well i'm telling you from now!
sorry to spoil ur fun

but make an option for those who want to buy stuff and play and for those who dosnt!

cuz i really DONT WANT TO!
it's not just a pic! icon_rolleyes ... there is a lot of ppl come to bbk and see and watch!
yeah i know i look out for my reputation too! i don't want some PEEP giving me stuff like trash can or monkey but!
if it was my friends ah well big deal! but most of those ppl r not my friends!


an opt out option would be good but say if a member doesnt want anything to be done the him/her make it so they cant do anything to any one else =fair is fair
that way there shouldnt be much room for complaint

also utalising the member ignore list from pm's would be good to block certain members from making changes to you
Title: Re: SMFShop - Shop MOD
Post by: code on January 29, 2005, 11:56:30 AM
im getting this error


Table 'smf_shop_items' already exists
File: /home/gethost/public_html/forum/Packages/temp/installScript.php
Line: 18
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 29, 2005, 10:23:05 PM
Quote from: code on January 29, 2005, 11:56:30 AM
im getting this error


Table 'smf_shop_items' already exists
File: /home/gethost/public_html/forum/Packages/temp/installScript.php
Line: 18

that means that you have previously installed the shop, and then tried to run the Fresh Install script. Download the 'Update' package and install that.

--daniel15

P.S This is probably the last time i'll check this topic (until Friday anyway) since i can't really use the internet at school and i'll be really busy.... so don't really expect any replies to questions until Friday.
Title: Re: SMFShop - Shop MOD
Post by: profile on January 30, 2005, 05:04:06 PM
Quote from: daniel15 on January 29, 2005, 10:23:05 PM
Quote from: code on January 29, 2005, 11:56:30 AM
im getting this error


Table 'smf_shop_items' already exists
File: /home/gethost/public_html/forum/Packages/temp/installScript.php
Line: 18

that means that you have previously installed the shop, and then tried to run the Fresh Install script. Download the 'Update' package and install that.

--daniel15

P.S This is probably the last time i'll check this topic (until Friday anyway) since i can't really use the internet at school and i'll be really busy.... so don't really expect any replies to questions until Friday.

I got the same error, but it was a fresh install (first time user) and something went wrong, so I uninstalled, but it didn't doing it cleanly.  How do I uninstall cleanly so I can reinstall?
Title: Re: SMFShop - Shop MOD
Post by: russ on January 31, 2005, 03:25:51 PM
Im now getting a problem where the settings arent saving. SO the:

Points Per New Topic: remains at zero
Points Per New Post remains at zero
Currency Prefix: at zero
Currency Suffix: at zero.


Nothing updates. Any clues?

** update. seems to have fixed itself for the minute.... confusing.
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 31, 2005, 03:37:36 PM
Quote from: profile on January 30, 2005, 05:04:06 PM
Quote from: daniel15 on January 29, 2005, 10:23:05 PM
Quote from: code on January 29, 2005, 11:56:30 AM
im getting this error


Table 'smf_shop_items' already exists
File: /home/gethost/public_html/forum/Packages/temp/installScript.php
Line: 18

that means that you have previously installed the shop, and then tried to run the Fresh Install script. Download the 'Update' package and install that.

--daniel15

P.S This is probably the last time i'll check this topic (until Friday anyway) since i can't really use the internet at school and i'll be really busy.... so don't really expect any replies to questions until Friday.

I got the same error, but it was a fresh install (first time user) and something went wrong, so I uninstalled, but it didn't doing it cleanly. How do I uninstall cleanly so I can reinstall?

You need to go through the package-info.xml file, go through each file it made changes to, and make those change back to the way they were.    Although, I made a Fresh install OVER the old version after deleting the database entries only.  Those can be found a few messages back.  This may work, or may not work for you! I can't promise anything, being its not the 'RIGHT' way to do it.
Title: Re: SMFShop - Shop MOD
Post by: russ on January 31, 2005, 05:35:12 PM
Anyone made some interesting items which can be "used" recently?
Title: Re: SMFShop - Shop MOD
Post by: profile on January 31, 2005, 09:10:03 PM
does anyone know if this starts to calculate the day it's installed or does it recalculate for existing activity?  TIA
Title: Re: SMFShop - Shop MOD
Post by: Alisha on January 31, 2005, 09:31:20 PM
Quote from: profile on January 31, 2005, 09:10:03 PM
does anyone know if this starts to calculate the day it's installed or does it recalculate for existing activity? TIA

It starts when its installed.  Although, if you look in the thread there is a little script you can use to update the tokens for users based on all current posts...

Or looker here! Paste this into a PHP file, and up it to your Forum Root Dir, and run it, then delete it.  It will update all members with the tokens they should have based on all posts made by that user with the settings in this file:.


$NewTopics = 2;
$NewPosts = 2;


Also, you need to make changes to the SQL connection:
mysql_connect('localhost','USERNAME','PASSWORD');
mysql_select_db('DATABASENAME');



<?php

$NewTopics 
2;
$NewPosts 2;

mysql_connect('localhost','USERNAME','PASSWORD');
mysql_select_db('DATABASENAME');
$request mysql_query ("SELECT smf_members.realName,
smf_members.ID_MEMBER AS ID_MEMBER,
count(ID_TOPIC) AS var
FROM smf_members,
smf_topics
WHERE smf_members.ID_MEMBER = smf_topics.ID_MEMBER_STARTED
GROUP BY smf_members.realName
ORDER BY smf_members.realName"
);

while (
$result mysql_fetch_assoc($request))
{
$variable $result['var'] * $NewTopics;
$person $result['ID_MEMBER'];
$request1 mysql_query ("UPDATE smf_members
SET money = '
$variable'
WHERE ID_MEMBER = '
$person'");
}

$request mysql_query ("SELECT smf_members.realName,
smf_members.ID_MEMBER AS ID_MEMBER,
count(ID_MSG) AS var,
smf_members.money AS money
FROM smf_members,
smf_messages
WHERE smf_members.ID_MEMBER = smf_messages.ID_MEMBER
GROUP BY smf_members.realName
ORDER BY smf_members.realName"
);

while (
$resultmysql_fetch_assoc($request))
{
$variable $result['var'] * $NewPosts;
$person $result['ID_MEMBER'];
$money $result['money'] + $variable;
$request1 mysql_query ("UPDATE smf_members
SET money = '
$money'
WHERE ID_MEMBER = '
$person'");

}
?>
Title: Re: SMFShop - Shop MOD
Post by: russ on February 01, 2005, 06:53:45 AM
does it matter about the bank and pocket features? will it jus calculate it all, put it in the pocket ready to be banked later on?
Title: Re: SMFShop - Shop MOD
Post by: Senkusha on February 01, 2005, 09:09:06 AM
Quote from: babylonking on January 29, 2005, 09:51:20 AM
Quoteand to babylonking, for your 'monkey butt' thingy, you said:
Quote
...set the field name to Monkeybutt and set the type to INT,Length/Values to 10, Default to 0...

since that value only appears to be either 0 or 1, you could set the type to BYTE and length to 1... wouldn't make much difference though (you'll save a tiny bit of space)

I really don't know php coding that much  ;)

Thanks for the tip daniel15 !

QuoteI have successfully found a way to send PM messages while writting my RPG mod.  I will hunt down the code and post it soon, (I don't have the time right now)

I also have a few "battle type" items that I could add to the mix, all that is needed is a new field called Health added to the members table.

ohh cool you are working on RPG mod i thought you quit working on it, well good luck and don't forget the PM code  ;)


Here is the IM code, please keep in mind that though my own testing, I think it works, it seems to be working okay, and is not having any ill effects on the message board system, but I will not make any gaurntees about it working:

Make sure you set $mynum equal to the id number of the person sending the message, $myName set to the senders name, curDate is just date("U");, $subject would be the subject line, and $body would be the body of text.


$request1 = mysql_query ("INSERT INTO smf_instant_messages (ID_MEMBER_FROM, fromName, msgtime, subject, body)
VALUES ('$mynum', '$myName', '$curDate', '$subject','$msg')") or die(mysql_error());
$request1 = mysql_query ("INSET INTO smf_im_recipients (ID_MEMBER) VALUES ('$mynum')");


As far as the RPG is going, I'm currently in the middle of rewritting it so that it can support multiple game systems.  I imagine that it is still quite a while away from completion, although the SMFShop mod could be incorperated into the RP mod when I'm finished, that way I don't have to reinvent the wheel!  ;)
Title: Re: SMFShop - Shop MOD
Post by: russ on February 01, 2005, 11:03:27 AM
Anyone worked out a way to view another members inventory? that would be so cool, especially if u buy items which cant be used....
Title: Re: SMFShop - Shop MOD
Post by: Senkusha on February 01, 2005, 04:07:06 PM
I'm sure I could whip up a script to do so....but I think this would be Daniel's call though.
Title: Re: SMFShop - Shop MOD
Post by: Alisha on February 01, 2005, 04:24:16 PM
Quote from: russ on February 01, 2005, 06:53:45 AM
does it matter about the bank and pocket features? will it jus calculate it all, put it in the pocket ready to be banked later on?

No, it will dump the correct number of tokens into the users pocket, then they have to put it in the bank on their own.

Quote from: Senkusha on February 01, 2005, 04:07:06 PM
I'm sure I could whip up a script to do so....but I think this would be Daniel's call though.

I don't see how he would mind, he has school, and it would benefit his MOD.  Although, like items I have made, I make sure he gets credit for the base design in the php notes.  This is the whole idea behind open source. So people can help develop and share development of the project.  SMF wouldn't be here if not for the members help unknown put things together, testing, debugging, and contributing parts to the project. 

QuoteAs far as the RPG is going, I'm currently in the middle of rewritting it so that it can support multiple game systems.  I imagine that it is still quite a while away from completion, although the SMFShop mod could be incorperated into the RP mod when I'm finished, that way I don't have to reinvent the wheel!  Wink

This will be nice.. planning to Share?  I would love something like this...
Title: Re: SMFShop - Shop MOD
Post by: redone on February 02, 2005, 01:02:47 PM
Installed the mod and for some reason despite setting a post count=credits it still doesnt credit any members! Any ideas?

Right now no one is earning anything including me!

:(
Title: Re: SMFShop - Shop MOD
Post by: Senkusha on February 02, 2005, 04:36:37 PM
Quote from: Alisha on February 01, 2005, 04:24:16 PM
Quote from: Senkusha on February 01, 2005, 04:07:06 PM
I'm sure I could whip up a script to do so....but I think this would be Daniel's call though.

I don't see how he would mind, he has school, and it would benefit his MOD.  Although, like items I have made, I make sure he gets credit for the base design in the php notes.  This is the whole idea behind open source. So people can help develop and share development of the project.  SMF wouldn't be here if not for the members help unknown put things together, testing, debugging, and contributing parts to the project. 

QuoteAs far as the RPG is going, I'm currently in the middle of rewritting it so that it can support multiple game systems.  I imagine that it is still quite a while away from completion, although the SMFShop mod could be incorperated into the RP mod when I'm finished, that way I don't have to reinvent the wheel!  Wink

This will be nice.. planning to Share?  I would love something like this...

Alright, I'll look into writing something.  You just want to view what other members have, right?

Yes, I do plan on sharing, right now, though the mod is still in it's "prenatal" stage!
Title: Re: SMFShop - Shop MOD
Post by: babylonking on February 02, 2005, 04:54:14 PM
The Bank Interest seems to be working in cron job but i still get an error msg below in interest.htm file.  ::)

Notice: Undefined index:  REMOTE_ADDR in /home/babylon/public_html/forum/Sources/Load.php on line 174

Notice: Undefined index:  SERVER_SOFTWARE in /home/babylon/public_html/forum/Sources/Load.php on line 732

Notice: Undefined index:  SERVER_SOFTWARE in /home/babylon/public_html/forum/Sources/Load.php on line 733


Any idea  8)

Title: Re: SMFShop - Shop MOD
Post by: redone on February 02, 2005, 05:09:54 PM
Fixed. Problem with the post.php file. Uploaded the orignal and did the changes to the file myself and it now works.

:D
Title: Re: SMFShop - Shop MOD
Post by: Alisha on February 02, 2005, 08:27:52 PM
Quote from: babylonking on February 02, 2005, 04:54:14 PM
The Bank Interest seems to be working in cron job but i still get an error msg below in interest.htm file. ::)

Any idea 8)


Hey, least your getting one! lol I never was able to make it generate me a file.

Thought, maybe you need one of the fance include files that will tell the html what SMF is all about or the shop or somthing?  I know NOTHING about what I am talking about...  Like the one needed to SSI work on other html files?
Title: Re: SMFShop - Shop MOD
Post by: russ on February 03, 2005, 08:11:07 AM
Found a slight error when buying your own items to be usedi n the forum. For some reason when clicking "buy" it buys two of the same item instead of just the one....
Title: Re: SMFShop - Shop MOD
Post by: redone on February 03, 2005, 08:13:02 AM
On trying to check the inventory I get the following error:

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY smf_shop_inventory.id' at line 8
File: /home/britport/public_html/Sources/shop/ShopAdmin.php
Line: 85

Any idea what this means?  :(
Title: Re: SMFShop - Shop MOD
Post by: russ on February 03, 2005, 10:24:36 AM
Quote from: babylonking on January 28, 2005, 06:39:52 PM
Quote from: daniel15 on January 28, 2005, 03:40:03 AM
Quote from: babylonking on January 27, 2005, 05:13:08 PM
How about reduce members money to $0 if they spams? My members start spamming now and i hate that  ::)
you can do that in the admin section of your forum,under 'Members Inventory.

i'll  be working on the items page soon, but as you might already know, school has started so i can only work on this Friday nights, saturday and sunday :(. Don't worry, development might be a bit slow, but will eventually get done ;)

--daniel15

Yup but how can that be done automatically  :P

QuoteI was wondering hw u managed to make soem of the various items you created appear underneath the member in questions avatar...? Nice looking site btw

QuoteThat sounds like a great idea, but how would you implement something like that?

I know it's hard to do that but it's good idea though  ;)

QuoteI was wondering hw u managed to make soem of the various items you created appear underneath the member in questions avatar...? Nice looking site btw

I got the code from alisha and i look at it and it was very easy to add new items, I just added new item called monkey butt member :P

You only need to add field in smf_members and another code in display template, Lets say you wanna add the monkeybutt item, In PHPmyAdmin click on smf_members Structure icon then add new field by clicking the go button the one beside the drop down menu for members Structure, then set the field name to Monkeybutt and set the type to INT,Length/Values to 10, Default to 0 and click the save button.

Also add the code below the //END SHOP MOD in display.template.php 

// add monkey butt

             global $ID_MEMBER, $db_prefix;

             $result_Monkeybutt = db_query("SELECT Monkeybutt
                                           FROM {$db_prefix}members
                                           WHERE ID_MEMBER = {$message['member']['id']}
                                           LIMIT 1", __FILE__, __LINE__);
             while ($row = mysql_fetch_assoc($result_Monkeybutt))

             if($row['Monkeybutt'] == '1')
               {
                     echo '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/monkeybutt.gif" alt="OWNED" style="margin: 2px 0;" border="0" /><br />' ;
                  } else {
                     echo '';

                  }


Then upload the attached monkeybutt.gif to your forum/Themes/default/images/english/

also upload the attached monkeybutt templates to your forum/Sources/shop/

Done  8)

Is it possible to include the above code on other pages, for instance index.template.php (ive tried it once but i got "500 Server Errors") - not too sure how to change it to work on other pages.... kinda like a status as u browse to know that uve been monkeybutted so u can do something about it :)
Title: Re: SMFShop - Shop MOD
Post by: russ on February 03, 2005, 01:59:17 PM
... and jus another thing, how do u increae the stock number from the default 50 to say infinite?
Title: Re: SMFShop - Shop MOD
Post by: Alisha on February 03, 2005, 03:26:43 PM
Quote from: russ on February 03, 2005, 01:59:17 PM
... and just another thing, how do u increase the stock number from the default 50 to say infinite?

I don't think you can. If you want an unlimited amount comment out the code that subtracts it from the stock.. Set the stock at 250 and comment it out. 

Quote
Is it possible to include the above code on other pages, for instance index.template.php (ive tried it once but i got "500 Server Errors") - not too sure how to change it to work on other pages.... kinda like a status as u browse to know that uve been monkeybutted so u can do something about it Smiley

Not sure if this is possible with this code because the code is written based on a query of the SQL for the member specified by {$message['member']['id']  its the $message that identifies the member to use the IF statement to show or not show the image.  On the index there is no equivlent to the $message identifier that is used in this code.  So with out something to identify a single line from the list of members in the SQL it will not work.

I am sure it can be done with a rewrite of the code.
Title: Re: SMFShop - Shop MOD
Post by: russ on February 03, 2005, 05:31:16 PM
I look forward to what people come up with :) im not as experienced with php as i would like to be , but i am learning :)
Title: Re: SMFShop - Shop MOD
Post by: russ on February 03, 2005, 06:20:18 PM
One of my members has thought of what i thinks a good idea :) is there a way to buy say a "steal" item - which allows you to steal, say a random amount of credits from the user u defined?

Just thinking of lots of ways to make forums unique with lots of fun features etc :)
Title: Re: SMFShop - Shop MOD
Post by: babylonking on February 03, 2005, 08:06:41 PM
QuoteIs it possible to include the above code on other pages, for instance index.template.php (ive tried it once but i got "500 Server Errors") - not too sure how to change it to work on other pages.... kinda like a status as u browse to know that uve been monkeybutted so u can do something about it

I really don't know much about php coding but i hope some one will help you out.

QuoteHey, least your getting one! lol I never was able to make it generate me a file.

Thought, maybe you need one of the fance include files that will tell the html what SMF is all about or the shop or somthing?  I know NOTHING about what I am talking about...  Like the one needed to SSI work on other html files?

I am using the code below in cron job and it works.
/usr/local/bin/php /home/babylon/public_html/forum/Sources/shop/dointerest.php > /home/babylon/public_html/interest.htm
Title: Re: SMFShop - Shop MOD
Post by: babylonking on February 03, 2005, 08:09:39 PM
Quote from: russ on February 03, 2005, 06:20:18 PM
One of my members has thought of what i thinks a good idea :) is there a way to buy say a "steal" item - which allows you to steal, say a random amount of credits from the user u defined?

Just thinking of lots of ways to make forums unique with lots of fun features etc :)

That will be most wanted item  ;)
Title: Re: SMFShop - Shop MOD
Post by: reznorsoft on February 03, 2005, 09:35:59 PM
Quote from: babylonking on February 03, 2005, 08:09:39 PM
Quote from: russ on February 03, 2005, 06:20:18 PM
One of my members has thought of what i thinks a good idea :) is there a way to buy say a "steal" item - which allows you to steal, say a random amount of credits from the user u defined?

Just thinking of lots of ways to make forums unique with lots of fun features etc :)

That will be most wanted item  ;)
No doubt, it will. This sounds like a great mod. I'll definitely try it on my test board.
Title: Re: SMFShop - Shop MOD
Post by: hypnoticpimp on February 04, 2005, 04:16:25 AM
HELP!!!!!! I get his error when i try to install it
Table 'hypno_nittomysqltar.smf_nittoshop_items' doesn't exist
File: /home/hypno/public_html/forum/Packages/temp/updateScript.php
Line: 18

how can i fix this
Title: Re: SMFShop - Shop MOD
Post by: sacred-tear on February 04, 2005, 06:39:00 AM
When i click proceed this happens
""Database Error
Duplicate column name 'moneyBank'
File: /home/csidog/public_html/forum/Packages/temp/updateScript.php
Line: 9 ""

can anyone help? I don't think it's only me who have this problem. ^^`
Title: Re: SMFShop - Shop MOD
Post by: Justyne on February 04, 2005, 06:43:15 AM
I love the shop mod.. I just installed it again after the changes to it and I think it is really nice now.

One small suggestion, wouldn't it be nicer if the stats inside the shop showed the Name (displayed name) and opposed to the Username (login name)? Probably even make it clickable so it takes you to the users profile.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on February 04, 2005, 09:23:18 AM
ok.... this is the first time i've been back here since last Sunday... i'm trying to go through the posts (there's so many!) and answer all your questions. If i missed anyone, please email me (i usually check my emails more that i visit this forum) through my website (dansoftaustralia.com, click on 'Contact Us' and fill out form)

Quote
The Bank Interest seems to be working in cron job but i still get an error msg below in interest.htm file. 

Notice: Undefined index:  REMOTE_ADDR in /home/babylon/public_html/forum/Sources/Load.php on line 174

Notice: Undefined index:  SERVER_SOFTWARE in /home/babylon/public_html/forum/Sources/Load.php on line 732

Notice: Undefined index:  SERVER_SOFTWARE in /home/babylon/public_html/forum/Sources/Load.php on line 733


Any idea
you must have error_reporting(E_ALL) on. This shows all errors, including notices. This can safely be ignored (it's trying to find the client IP and server software, but they're not reported when using CRON

Quote
On trying to check the inventory I get the following error:

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY smf_shop_inventory.id' at line 8
File: /home/britport/public_html/Sources/shop/ShopAdmin.php
Line: 85

Any idea what this means?
That i'm not sure of... it seems right to me... :S

Quote
... and jus another thing, how do u increae the stock number from the default 50 to say infinite?
What you could do is set the stock to 99999 or something like that. There is a way to make unlimited stock, but it effects every item in your shop.

find '//decrease stock by 1' in your Sources/shop/Shop.php file (line 201). at the start of the  5 lines underneath that, put '//'. You get something like this:


            //decrease stock by 1
            //$result = db_query("UPDATE {$db_prefix}shop_items
            //                    SET stock = stock - 1
            //                    WHERE id = {$_GET['id']}
            //                    LIMIT 1",
            //                    __FILE__, __LINE__);

what this essentially does is makes those lines a comment (so they aren't executed)

Quote
ne of my members has thought of what i thinks a good idea  is there a way to buy say a "steal" item - which allows you to steal, say a random amount of credits from the user u defined?
I was thinking about that... might do that in the future

Quote
HELP!!!!!! I get his error when i try to install it
Table 'hypno_nittomysqltar.smf_nittoshop_items' doesn't exist
File: /home/hypno/public_html/forum/Packages/temp/updateScript.php
Line: 18

how can i fix this
you've tried to install the UPDATE package, but haven't installed SMFShop 0.2. Get the FRESH INSTALL package and install that

Quote
When i click proceed this happens
""Database Error
Duplicate column name 'moneyBank'
File: /home/csidog/public_html/forum/Packages/temp/updateScript.php
Line: 9 ""

can anyone help? I don't think it's only me who have this problem. ^^`
Your database has already been updated for SMFShop 1.0, but it is trying to update again. Try your shop, it should work...

again, sorry if i forgot anyone, but i'm just skimming through the posts.

Before you say 'Hey, why don't you reply straight away?', 'Why aren't you here often?' and stuff like that, please remember that i'm a 14 year old and i've got stuff like school (Year 10) so i can't always be here. However, if you E-Mail me, i usually check my emails so you are more likely to reach me. Thanks for understanding ;)

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: Midgard on February 04, 2005, 09:24:10 AM
Mixed.. very mixed..

:(
Title: Re: SMFShop - Shop MOD
Post by: russ on February 04, 2005, 09:44:54 AM
Thanks for checking back dan :) its a great mod and we cant wait for more development :)
Title: Re: SMFShop - Shop MOD
Post by: Midgard on February 04, 2005, 09:46:54 AM
Quote from: russ on February 04, 2005, 09:44:54 AM
Thanks for checking back dan :) its a great mod and we cant wait for more development :)

I'm forget said: Yes, this is a great, excellent mod

:)
Title: Re: SMFShop - Shop MOD
Post by: russ on February 04, 2005, 09:48:09 AM
Quote from: daniel15 on February 04, 2005, 09:23:18 AM

Quote
... and jus another thing, how do u increae the stock number from the default 50 to say infinite?
What you could do is set the stock to 99999 or something like that. There is a way to make unlimited stock, but it effects every item in your shop.

find '//decrease stock by 1' in your Sources/shop/Shop.php file (line 201). at the start of the  5 lines underneath that, put '//'. You get something like this:


            //decrease stock by 1
            //$result = db_query("UPDATE {$db_prefix}shop_items
            //                    SET stock = stock - 1
            //                    WHERE id = {$_GET['id']}
            //                    LIMIT 1",
            //                    __FILE__, __LINE__);

what this essentially does is makes those lines a comment (so they aren't executed)

Works like a charm :)

Just wondering about the interest, ive had money in the bank for weeks and no interest :(
Title: Re: SMFShop - Shop MOD
Post by: Justyne on February 04, 2005, 10:07:49 AM
minor thing I just noticed.. in your displaytemplate modification you have to <br> tags  as opposed to <br />

Looses validation... nothing big but you might wanna change that for the next one.
Title: Re: SMFShop - Shop MOD
Post by: babylonking on February 04, 2005, 12:20:49 PM
I just noticed that if you modify your post, no matter how many times you modify it, each time you get modshop points, same as for posting a new reply.  :-\
Title: Re: SMFShop - Shop MOD
Post by: Justyne on February 04, 2005, 04:42:17 PM
soemthing else... it would be nice if the mod could generate a pm?
Say X sends Yl some funds I think it would be nice if Y got a notice about it. I assume this is the way the mod is intended to work, right?

Also it would be nice to know who used an item on you.
Title: Re: SMFShop - Shop MOD
Post by: umiya on February 04, 2005, 05:02:16 PM
i still cant get my cron to work

and i have in what it says to put in by package info.xml

Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on February 04, 2005, 08:50:51 PM
your web host could have disabled CRON... or they could be running cPanel on a non-Unix system which doesn't have cron...

and i've just written a Steal item, you can get it from my website: http://www.dansoftaustralia.com/ and then click 'VB/PHP' --> SMF Mods.

AND... for viewing another member's inventory, i've already written some code (if you understand php you will understand this code). Just open Sources/shop/ShopAdmin.php and have a look around lines 77-88. You can grab those lines and edit them to work properly.

If you can't be bothered opening that file, here is the code i used there:

        $result = db_query("SELECT {$db_prefix}shop_items.name,
                                   {$db_prefix}shop_inventory.amtpaid,
                                   {$db_prefix}shop_inventory.id
                            FROM {$db_prefix}shop_inventory
                            LEFT JOIN {$db_prefix}shop_items
                            ON {$db_prefix}shop_inventory.itemid = {$db_prefix}shop_items.id
                            WHERE ownerid = {$context['shop_member']}
                            ORDER BY {$db_prefix}shop_inventory.id",
                            __FILE__, __LINE__);

        while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
            $context['shop_inventory_list'] .= "Inventory #{$row['id']} - {$row['name']} - Bought for {$row['amtpaid']} - <a href='$scripturl?action=shop_inventory;do=delete;id={$row['id']}'>delete</a><br>";
        }


in this segment, '{$context['shop_member']}' is the owner's ID. Just look at it and you will understand it

--daniel15

P.S if anyone wants their item on my website, just ask!
Title: Re: SMFShop - Shop MOD
Post by: babylonking on February 04, 2005, 10:28:32 PM
Thanks for the steal atem daniel15  8)

daniel15 did you check my previous posts about modify post bug?


Thanks again  ;)
Title: Re: SMFShop - Shop MOD
Post by: babylonking on February 04, 2005, 10:33:32 PM
Also the steal php file is empty  ::)
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on February 04, 2005, 11:40:41 PM
just noticed i missed a few questions/problems:
Quote
Just wondering about the interest, ive had money in the bank for weeks and no interest
again, CRON might be disabled on your server (or not set up properly)

Quote
minor thing I just noticed.. in your displaytemplate modification you have to <br> tags  as opposed to <br />
sorry, i didn't know about <br />, i've always used <br> tags.

and about the steal item, my ISP seems to nullify php files?? (i don't know what you'd call it, when you upload a php file, it returns a blank page. weird. also on my ISP server, if you upload an EXE file and try to download it, you get a 404 error :S).

on the server, i've renamed it to Steal.php.txt so it should work now... just head on over to my website.

--daniel15

Title: Re: SMFShop - Shop MOD
Post by: umiya on February 05, 2005, 08:57:00 PM
i get error output, saying  something about intrest.htm nest time it runs i will save it
Title: Re: SMFShop - Shop MOD
Post by: babylonking on February 05, 2005, 09:32:43 PM
Hi Daniel15

Did you fix the modify post bug?  No matter how many times you modify it, each time you get modshop points "Credits increases if you modify any post and save it"  :-\
Title: Re: SMFShop - Shop MOD
Post by: Alisha on February 05, 2005, 10:03:34 PM
Quote from: babylonking on February 05, 2005, 09:32:43 PM
Hi Daniel15

Did you fix the modify post bug? No matter how many times you modify it, each time you get modshop points "Credits increases if you modify any post and save it" :-\

I am not sure that needs fixing? If they modify a post they are still contributing to the forums and get credit for it... Maybe make it where there is a another level. Posts, Topics, Modify / Vote in poll for the amount of money.  1 for posts, 2 for Topics, 1 for modify etc..
Title: Re: SMFShop - Shop MOD
Post by: babylonking on February 05, 2005, 10:55:26 PM
QuoteI am not sure that needs fixing? If they modify a post they are still contributing to the forums and get credit for it... Maybe make it where there is a another level. Posts, Topics, Modify / Vote in poll for the amount of money.  1 for posts, 2 for Topics, 1 for modify etc..

How about, 0 amount for modifying posts, I don't want my members to keep modifying their posts to get money.  :-\
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on February 05, 2005, 11:04:20 PM
the post modify bug was due to my stupidity -- i though that $newTopic = false; appeared only once in Sources/Post.php, but it occurs 2 times.

TO FIX: Open Sources/Post.php. Search for $newTopic = false; and delete the Shop mod code (ONLY ONCE!). A couple of lines (about 10-20) underneath this, there is a $newTopic = true; line. Another 10-20 lines below is another $newTopic = false; line. LEAVE THIS ONE ALONE!

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: babylonking on February 05, 2005, 11:19:27 PM
Quote from: daniel15 on February 05, 2005, 11:04:20 PM
the post modify bug was due to my stupidity -- i though that $newTopic = false; appeared only once in Sources/Post.php, but it occurs 2 times.

TO FIX: Open Sources/Post.php. Search for $newTopic = false; and delete the Shop mod code (ONLY ONCE!). A couple of lines (about 10-20) underneath this, there is a $newTopic = true; line. Another 10-20 lines below is another $newTopic = false; line. LEAVE THIS ONE ALONE!

--daniel15

Thanks daniel15 that fix it  8)

one more thing, Can this be done "if some member stole my money then i can use another item called find thief to find the member who stole my money"

Thanks again  :)
Title: Re: SMFShop - Shop MOD
Post by: AGMR_Rhino on February 06, 2005, 01:25:37 AM
i got an error

Unknown column 'description' in 'field list'
File: /home/punktalk.vhcshosting.com/htdocs/Sources/Post.php
Line: 1327

here is what that line looks like


               (isset($_POST['sticky']) && !empty($modSettings['enableStickyTopics']) ? (int) $_POST['sticky'] . ', ' : '') . "0, $ID_POLL)", __FILE__, __LINE__);


help quik please  :(


Title: Re: SMFShop - Shop MOD
Post by: AGMR_Rhino on February 06, 2005, 02:32:18 AM
please help it is also on line 589
Title: Re: SMFShop - Shop MOD
Post by: Justyne on February 06, 2005, 06:03:54 AM
I am not sure if this just me... but I looked into my error log today and saw around 900 entried.. basically this shop throws an error which each and every theme file of the style:

8: Undefined index: shop
File: /home/justyne/public_html/rpg/Themes/default/BoardIndex.template.php (eval?)
Line: 454

or

8: Undefined index: shop
File: /home/justyne/public_html/rpg/Themes/default/MessageIndex.template.php (eval?)
Line: 454

or

8: Undefined index: shop
File: /home/justyne/public_html/rpg/Themes/default/Post.template.php (eval?)
Line: 454

basically any template file... Anyone any creative idea how to fix it?
Title: Re: SMFShop - Shop MOD
Post by: umiya on February 06, 2005, 11:30:26 AM
Quote from: Justyne on February 06, 2005, 06:03:54 AM
I am not sure if this just me... but I looked into my error log today and saw around 900 entried.. basically this shop throws an error which each and every theme file of the style:

8: Undefined index: shop
File: /home/justyne/public_html/rpg/Themes/default/BoardIndex.template.php (eval?)
Line: 454

or

8: Undefined index: shop
File: /home/justyne/public_html/rpg/Themes/default/MessageIndex.template.php (eval?)
Line: 454

or

8: Undefined index: shop
File: /home/justyne/public_html/rpg/Themes/default/Post.template.php (eval?)
Line: 454

basically any template file... Anyone any creative idea how to fix it?


its not jsut you as i have about 300 pages everyday of the same error
Title: Re: SMFShop - Shop MOD
Post by: Alisha on February 06, 2005, 12:15:13 PM
I just checked mine and I have 0 Shop Mod errors.. 

If I had some of the same errors I could solve mine and post some solutions, but I do not have a single shop mod error..

Now I am thinking there is a place in index.php or somthing else in sources where you need to add a line to define shop.  This should have been done in the install..

if it not there you will get the undefined error.  Does the mod work?  Button work?

Here is the install commands from .2 fresh:
Check your index.php make sure this is there and correct:

    <file name="$boarddir/index.php">
        <operation>
            <search position="before"><![CDATA[
'.xml' => array('News.php', 'ShowXmlFeed'),
]]></search>
            <add><![CDATA[
//Begin Shop MOD 0.2 code
'shop' => array('shop/Shop.php', 'Shop'),
'shop_general' => array('shop/ShopAdmin.php', 'ShopGeneral'),
'shop_inventory' => array('shop/ShopAdmin.php', 'ShopInventory'),
'shop_items_add' => array('shop/ShopAdmin.php', 'ShopItemsAdd'),
'shop_items_edit' => array('shop/ShopAdmin.php', 'ShopItemsEdit'),
//END SHOP MOD
]]></add>
        </operation>
    </file>


I belive that this could clear up some of these errors!

Title: Re: SMFShop - Shop MOD
Post by: Justyne on February 06, 2005, 02:39:52 PM
checked. I have the lines in my index.php

However still many, many errors
Title: Re: SMFShop - Shop MOD
Post by: Squeakypants on February 06, 2005, 02:42:47 PM
Have you thought of making a wiki for this? Just an easy way to show off the items people have made.
Title: Re: SMFShop - Shop MOD
Post by: Alisha on February 06, 2005, 05:52:10 PM
Quote from: Justyne on February 06, 2005, 02:39:52 PM
checked. I have the lines in my index.php

However still many, many errors

well now I am at a loss here.  I will think hard, look around in my files and see what I can find. Sorry couldn't be more help!

If you would paste up line 450 - 460 in the index.template ?? Maybe that could help me some...
Title: Re: SMFShop - Shop MOD
Post by: sacred-tear on February 06, 2005, 09:13:37 PM
QuoteYour database has already been updated for SMFShop 1.0, but it is trying to update again. Try your shop, it should work...

QuoteIt appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.1, whereas your database is at version SMF 1.0. It is recommended that you execute the latest version of upgrade.php.

Shop didn't shop up. I installed the patch for smf 1.01. For the shop, it's asking me to run the update.php script but I don't know exactly how to run it nor where it is located. ^^`
Title: Re: SMFShop - Shop MOD
Post by: babylonking on February 06, 2005, 09:24:32 PM
Quote from: sacred-tear on February 06, 2005, 09:13:37 PM
QuoteYour database has already been updated for SMFShop 1.0, but it is trying to update again. Try your shop, it should work...

QuoteIt appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.1, whereas your database is at version SMF 1.0. It is recommended that you execute the latest version of upgrade.php.

Shop didn't shop up. I installed the patch for smf 1.01. For the shop, it's asking me to run the update.php script but I don't know exactly how to run it nor where it is located. ^^`

The link below should explain how to Upgrade your forum to latest smf version. http://www.simplemachines.org/community/index.php?topic=6832.0
Title: Re: SMFShop - Shop MOD
Post by: giga on February 06, 2005, 10:21:28 PM
Quote from: Justyne on February 06, 2005, 06:03:54 AM
I am not sure if this just me... but I looked into my error log today and saw around 900 entried.. basically this shop throws an error which each and every theme file of the style:

8: Undefined index: shop
File: /home/justyne/public_html/rpg/Themes/default/BoardIndex.template.php (eval?)
Line: 454

or

8: Undefined index: shop
File: /home/justyne/public_html/rpg/Themes/default/MessageIndex.template.php (eval?)
Line: 454

or

8: Undefined index: shop
File: /home/justyne/public_html/rpg/Themes/default/Post.template.php (eval?)
Line: 454

basically any template file... Anyone any creative idea how to fix it?

for this problem...

added

   loadLanguage('Shop');

before

    //BEGIN Shop MOD 0.2 Code
    echo "<a href='{$scripturl}?action=shop'>", ($settings['use_image_buttons'] ? "<img src='{$settings['images_url']}/{$context['user']['language']}/shop.gif' alt='{$txt['shop']}' style='margin: 2px 0;' border='0' />" : $txt['shop']), "</a>{$context['menu_separator']}";
    //END SHOP MOD

so the language file is loaded.
Title: Re: SMFShop - Shop MOD
Post by: sacred-tear on February 06, 2005, 10:49:37 PM
Is the upgrade.php inside the download pack? ^^ Because I use the package manager and also downloaded it from this site, and it wasn't on the zip file. So I get a page cannot be found error. ^^

(I can't use ftp programs because the school server blocks them so i used cpanel instead. Is chmod to 666 is the same as permission change in cpanel?)
Title: Re: SMFShop - Shop MOD
Post by: SkyFlyer on February 07, 2005, 12:31:25 AM
I first installed it and got a database error.

Now when I tried to reinstall it, i get an error that a column is already there.
Title: Re: SMFShop - Shop MOD
Post by: umiya on February 07, 2005, 01:06:21 AM
/bin/sh: line 1: GET http://www.hiya-host.com/forum/Sources/shop/dointerest.php
> /home/hiya/public_html/interest.htm: No such file or directory


error i get from the cron
Title: Re: SMFShop - Shop MOD
Post by: Justyne on February 07, 2005, 02:55:03 AM
Quote from: giga on February 06, 2005, 10:21:28 PM

for this problem...

added

   loadLanguage('Shop');

before

    //BEGIN Shop MOD 0.2 Code
    echo "<a href='{$scripturl}?action=shop'>", ($settings['use_image_buttons'] ? "<img src='{$settings['images_url']}/{$context['user']['language']}/shop.gif' alt='{$txt['shop']}' style='margin: 2px 0;' border='0' />" : $txt['shop']), "</a>{$context['menu_separator']}";
    //END SHOP MOD

so the language file is loaded.

Oh duh... I should have figured that myself.. thanks very much. No more errors :)
Title: Re: SMFShop - Shop MOD
Post by: babylonking on February 07, 2005, 09:32:06 AM
Quote from: umiya on February 07, 2005, 01:06:21 AM
/bin/sh: line 1: GET http://www.hiya-host.com/forum/Sources/shop/dointerest.php
> /home/hiya/public_html/interest.htm: No such file or directory


error i get from the cron


try the code below  8)
/usr/local/bin/php /home/hiya/public_html/forum/Sources/shop/dointerest.php > /home/hiya/public_html/interest.htm
Title: Re: SMFShop - Shop MOD
Post by: russ on February 07, 2005, 02:45:46 PM
Quote from: babylonking on February 07, 2005, 09:32:06 AM
Quote from: umiya on February 07, 2005, 01:06:21 AM
/bin/sh: line 1: GET http://www.hiya-host.com/forum/Sources/shop/dointerest.php
> /home/hiya/public_html/interest.htm: No such file or directory


error i get from the cron


try the code below  8)
/usr/local/bin/php /home/hiya/public_html/forum/Sources/shop/dointerest.php > /home/hiya/public_html/interest.htm

where does that path go - file wise? (altered of course for me own server :))
Title: Re: SMFShop - Shop MOD
Post by: RedAlert2 on February 07, 2005, 03:55:03 PM
u guys should make more items for the shop..... just a suggestion
Title: Re: SMFShop - Shop MOD
Post by: Little Wolf on February 07, 2005, 06:56:39 PM
Is there any way to install this manually? My test server is this Windows pc running Apache. I try to install the package using the manager but I get this:
Execute Modification     ./Themes/default/Display.template.php     Failure

Also, it asks for ftp information which I don't have as it's only in localhost.

Please help ???
Title: Re: SMFShop - Shop MOD
Post by: Vhero on February 08, 2005, 04:36:28 PM
Is it possible to add an item maker into admin panel?? And maybe show items in profiles in posts using *.gif files????
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on February 08, 2005, 06:55:47 PM
hi everyone if you wish to get in contact with me then you are more likely to receive a reply if you email me, since i don't check back here often during the week. to send an email to me, you can go to my site (www.dansoftaustralia.com) and click on the contact link.

well gotta go i'm replying from school ;)

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: SkyFlyer on February 08, 2005, 11:55:21 PM
Quote from: RedAlert2 on February 07, 2005, 03:55:03 PM
u guys should make more items for the shop..... just a suggestion


No offense to Dan, (especially since I suck at php), but I think he should make sure it works on everyone's forums first, and not messes up the DB, before he adds more items ;)
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on February 11, 2005, 04:49:15 AM
Quote from: Little Wolf on February 07, 2005, 06:56:39 PM
Is there any way to install this manually? My test server is this Windows pc running Apache. I try to install the package using the manager but I get this:
Execute Modification     ./Themes/default/Display.template.php     Failure

Also, it asks for ftp information which I don't have as it's only in localhost.

Please help ???

for some reason, the package manager doesn't seem to work that well under Windows (my test server is Windows 98 running Xitami/PHP 4.3.4/MySQL 4)... that's why i had so many errors with SMFShop 0.1 (i couldn't test the package on my testing machine). Even on my testing machine, (which i enabled FTP on), i couldn't get the package to install properly. Anyway, try get an FTP server (or daemon as they're called sometimes) set up and try it again

and what the hell is a wiki?

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: Diesel on February 13, 2005, 07:52:36 AM
I get errors inf orum error list.

8: Undefined index: shop_money_bank
File: /home/jsjhfor/public_html/olliedesignz/forum/Themes/classic/languages/Shop.english.php (eval?)
Line: 67

OR

8: Undefined index: shop_richestBank
File: /home/jsjhfor/public_html/olliedesignz/forum/Themes/classic/languages/Shop.english.php (eval?)
Line: 92

OR

8: Undefined index: shop_bank
File: /home/jsjhfor/public_html/olliedesignz/forum/Themes/classic/languages/Shop.english.php (eval?)
Line: 47


Plus, how do I access the bank and there's no link on navigation and when I save changes in ACP, the checkbox unticks itself for bank
Title: Re: SMFShop - Shop MOD
Post by: Diesel on February 13, 2005, 10:07:06 AM
I fixed it.  The update didn't work so i manually upload files but still got edits so ran package file til it said duplicate entry and 3 failures at changing files.  Went to shop and everything was there and working
Title: Re: SMFShop - Shop MOD
Post by: russ on February 14, 2005, 06:54:05 AM
Quote from: babylonking on February 07, 2005, 09:32:06 AM
Quote from: umiya on February 07, 2005, 01:06:21 AM
/bin/sh: line 1: GET http://www.hiya-host.com/forum/Sources/shop/dointerest.php
> /home/hiya/public_html/interest.htm: No such file or directory


error i get from the cron


try the code below  8)
/usr/local/bin/php /home/hiya/public_html/forum/Sources/shop/dointerest.php > /home/hiya/public_html/interest.htm

my interest doenst work atm and im not too sure about "crons" so any help would be greatfully appreciated :)
Title: Re: SMFShop - Shop MOD
Post by: sh-demon on February 15, 2005, 09:34:07 PM
OK i do not have ftp setup on this computer which is where i am running this site (on localhost) so what do i have to do to bypass when the installer asks for ftp information? I'm stumped.
Title: Re: SMFShop - Shop MOD
Post by: Dem0n on February 15, 2005, 09:35:38 PM
just enter your ftp login info and let SMF do the stuff itself.
Title: Re: SMFShop - Shop MOD
Post by: sh-demon on February 15, 2005, 09:46:58 PM
like i said i do not have ftp setup on this server. I am running my site on my local computer no need for ftp as i can just edit files in a folder. I do not need ftp to access my site as its on my computer.
Title: Re: SMFShop - Shop MOD
Post by: Pause on February 15, 2005, 10:44:55 PM
Quote from: sh-demon on February 15, 2005, 09:46:58 PM
like i said i do not have ftp setup on this server. I am running my site on my local computer no need for ftp as i can just edit files in a folder. I do not need ftp to access my site as its on my computer.
Could always look in the mod file and apply it manually  ;D
Title: Re: SMFShop - Shop MOD
Post by: sh-demon on February 16, 2005, 12:01:14 AM
yup had to go that route thanks for the help.
Title: Re: SMFShop - Shop MOD
Post by: Little Wolf on February 16, 2005, 11:53:56 AM
Quote from: sh-demon on February 15, 2005, 09:34:07 PM
OK i do not have ftp setup on this computer which is where i am running this site (on localhost) so what do i have to do to bypass when the installer asks for ftp information? I'm stumped.

I'm a bit too late but anyway..I took daniel's advice of using an ftp daemon. I googled and tried a lot of them. I found zFTPServer (http://zftpserver.serveftp.com/) to be really good. I installed it, run the daemon, created a user account that has access to my smf forum folder, installed the mod through the package manager again and.. that's all. I'm done! ;D


Anyways.. hey Daniel! This is a really nice mod. I was wondering if you could maybe look into the following as ideas for future updates:
- Categories for grouping similar items
- Uploading and displaying images/icons to represent items on the item list.
- My Shop feature where the member can set up his own shop page to sell items he bought from the shop or got from a friend. The seller decides the price.  8)
- Feature to show in the profile page a list or maybe images/icons of the items a member has.
- Item-trading?

and yeah, I'm also looking forward to the Send Item to Someone feature.  :)

I'm merely suggesting ideas...hope you find this helpful.  ;) Thanks for making this awesome mod!
Title: Re: SMFShop - Shop MOD
Post by: Javis on February 17, 2005, 03:14:29 AM
Is there a way to make an item with infinite uses? What I have set up is an image displaying when the member uses it. And I'd like for the item to stay in their inventory afterwards and can be viewed again later.
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on February 17, 2005, 09:14:07 AM
is there anyway of allowing my moderators to access the shop administration? i've tried looking in the files, but i don't see any indication as to where permissions and stuff are
Title: Re: SMFShop - Shop MOD
Post by: redone on February 17, 2005, 03:27:55 PM
Had to move my forum and we moved the database and on installing the package I get this error:

Duplicate column name 'moneyBank'
File: /home/britp2/public_html/forum/Packages/temp/updateScript.php
Line: 9

Any ideas how I get around this one so it installs?

:(
Title: Re: SMFShop - Shop MOD
Post by: kishin on February 17, 2005, 07:51:01 PM
My site is installing the cash mod and even when we do enter the FTP info on the package page nothing happens. And it says this Some of the files this package needs to modify are not writable. This needs to be changed by logging into FTP and chmoding the files.
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on February 17, 2005, 08:44:16 PM
Quote from: Senkusha on January 04, 2005, 04:46:24 PM
If you want to 'catch up' on the amount of money that each member should have (from the birth of the forum), you can use this little script that I created. Just change the numbers to reflect your values:



<?php

$NewTopics 
10;
$NewPosts 8;

mysql_connect('localhost','root','');
mysql_select_db('smf');
$request mysql_query ("SELECT smf_members.realName, 
smf_members.ID_MEMBER AS ID_MEMBER, 
count(ID_TOPIC) AS var
FROM smf_members, 
smf_topics
WHERE smf_members.ID_MEMBER = smf_topics.ID_MEMBER_STARTED
GROUP BY smf_members.realName
ORDER BY smf_members.realName"
);

while (
$result mysql_fetch_assoc($request))
{
$variable $result['var'] * $NewTopics;
$person $result['ID_MEMBER'];
$request1 mysql_query ("UPDATE smf_members
SET money = '
$variable'
WHERE ID_MEMBER = '
$person'");
}

$request mysql_query ("SELECT smf_members.realName, 
smf_members.ID_MEMBER AS ID_MEMBER, 
count(ID_MSG) AS var, 
smf_members.money AS money
FROM smf_members, 
smf_messages
WHERE smf_members.ID_MEMBER = smf_messages.ID_MEMBER
GROUP BY smf_members.realName
ORDER BY smf_members.realName"
);

while (
$resultmysql_fetch_assoc($request))
{
$variable $result['var'] * $NewPosts;
$person $result['ID_MEMBER'];
$money $result['money'] + $variable;
$request1 mysql_query ("UPDATE smf_members
SET money = '
$money'
WHERE ID_MEMBER = '
$person'");

}
?>




i know this is a little little bit displayed... but where exactly would you insert this code... and also am i right in assuming that you simply have to change these lines

$NewTopics = 10;
$NewPosts = 8;
Title: Re: SMFShop - Shop MOD
Post by: Javis on February 18, 2005, 01:59:39 AM
Quote from: kishin on February 17, 2005, 07:51:01 PM
My site is installing the cash mod and even when we do enter the FTP info on the package page nothing happens. And it says this Some of the files this package needs to modify are not writable. This needs to be changed by logging into FTP and chmoding the files.

I had this problem originally also. I forget how I fixed it, but I think it had to do with what you have put in the server field. Did you get that error from "localhost" or the actual server address? Might want to try the one you didn't try (assuming you didn't already try both!)
Title: Re: SMFShop - Shop MOD
Post by: DoW Kid Rock on February 18, 2005, 10:30:23 AM
any ideas on when new items will be made or how new items can be made?

am looking for a mod that will allow a member to create their own forum and be the mod of it.
Title: Re: SMFShop - Shop MOD
Post by: umiya on February 18, 2005, 06:36:13 PM
anyway we can get logs on items that have been purchased and used?
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on February 18, 2005, 07:50:57 PM
just a question? i'm having an issue that is worse then spamming for money...

some members have discovered that they can post something and delete it and repeat for money...

one member signed up and in 10 mins he had 272 tokens (at 4 per post)... and his post count was 1 *stares*

he would've gone further but i promptly banned him...

my question is what is stopping the members from doing it in small quantities?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on February 19, 2005, 08:11:17 AM
open Sources/post.php and search for the smfshop bit. You will see that that bit of code adds money to the member's account. Copy that code, and then search for the post deleting section (search for 'delete' or similar). Paste the SMFShop code there, but change 'money=money+' to 'money=money-'.

I hope you understand!

sorry but i don't have access to the files at the moment

and to everyone, i'm sorry but i won't be able to work on SMFShop for a while due to school and stuff... But every chance i get, i will work on it

ANDDDD this might be off-topic but i just set up a forum for my sister's site! Go to it at http://jacinta.freeownhost.com/ but keep in mind she's only 11

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on February 20, 2005, 02:47:47 AM
that code is generating an error for me when i insert it into "removetopic.php" the place that minuses a post count... i get this error

Database Error
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 4
File: /home/kodee/public_html/forums/Sources/RemoveTopic.php
Line: 177 

this is the code that i copied, this is the one that appears in post.php

//BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money - {$modSettings['shopPointsPerPost']}
                            WHERE ID_MEMBER = {$ID_MEMBER}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on February 20, 2005, 02:52:16 AM
i noticed that in post.php it was infact in three places... in removetopic.php maybe i put it in the wrong area... this is where i inserted it...

// Decrease the post counts.
if ($decreasePostCount)
{
$requestMembers = db_query("
SELECT m.ID_MEMBER, COUNT(m.ID_MSG) AS posts
FROM {$db_prefix}messages AS m, {$db_prefix}boards AS b
WHERE m.ID_TOPIC $condition
AND b.ID_BOARD = m.ID_BOARD
AND m.icon != 'recycled'
AND b.countPosts = 0
GROUP BY m.ID_MEMBER", __FILE__, __LINE__);
if (mysql_num_rows($requestMembers) > 0)
{
while ($rowMembers = mysql_fetch_assoc($requestMembers))
updateMemberData($rowMembers['ID_MEMBER'], array('posts' => 'posts - ' . $rowMembers['posts']));
}
mysql_free_result($requestMembers);
}

//BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money - {$modSettings['shopPointsPerPost']}
                            WHERE ID_MEMBER = {$ID_MEMBER}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD


// Recycle topics that aren't in the recycle board.
Title: Re: SMFShop - Shop MOD
Post by: Darius on February 25, 2005, 11:40:45 PM
Well... my site is down because of this "Shop" Mod... i used the install package option and it shut the whole site down... can someone help me out please  :-\
Title: Re: SMFShop - Shop MOD
Post by: russ on February 26, 2005, 01:11:13 PM
any1 make the code to view other members inventories? :) waiting for that one in particular before i add other items :)
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on February 26, 2005, 09:06:11 PM
Darius: well, what happens? do you get any error messages?

and code for viewing someone's inventory is already in the shop admin file (Sources/shop/ShopAdmin.php), just look around about line 54 to about line 96. You should be able to copy the code and use it for your own use.

If you look at the code, it should be easy enough to understand.

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: Brian on February 27, 2005, 01:41:19 AM
Here is what I did to modify the removetopic.php and post.php to prevent users from editing and deleting posts to get credits.

removetopic.php


// Decrease the post counts.
if ($decreasePostCount)
{
$requestMembers = db_query("
SELECT m.ID_MEMBER, COUNT(m.ID_MSG) AS posts
FROM {$db_prefix}messages AS m, {$db_prefix}boards AS b
WHERE m.ID_TOPIC $condition
AND b.ID_BOARD = m.ID_BOARD
AND m.icon != 'recycled'
AND b.countPosts = 0
GROUP BY m.ID_MEMBER", __FILE__, __LINE__);




if (mysql_num_rows($requestMembers) > 0)
{
while ($rowMembers = mysql_fetch_assoc($requestMembers))

{
     //BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money - {$modSettings['shopPointsPerPost']}
                            WHERE ID_MEMBER = {$rowMembers['ID_MEMBER']}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD

updateMemberData($rowMembers['ID_MEMBER'], array('posts' => 'posts - ' . $rowMembers['posts']));
}
}
mysql_free_result($requestMembers);



}




// Only decrease post counts.
else
db_query("
UPDATE {$db_prefix}topics
SET numReplies = numReplies - 1
WHERE ID_TOPIC = $row[ID_TOPIC]
LIMIT 1", __FILE__, __LINE__);

db_query("
UPDATE {$db_prefix}boards
SET numPosts = numPosts - 1
WHERE ID_BOARD = $row[ID_BOARD]
LIMIT 1", __FILE__, __LINE__);

// If the poster was registered and the board this message was on incremented
// the member's posts when it was posted, decrease his or her post count.
if (!empty($row['ID_MEMBER']) && $decreasePostCount && empty($row['countPosts']))

{
updateMemberData($row['ID_MEMBER'], array('posts' => '-'));
               //BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money - {$modSettings['shopPointsPerPost']}
                            WHERE ID_MEMBER = {$ID_MEMBER}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD
}

// Only remove posts if they're not recycled.





post.php


// Lock and or sticky the post.
if ((isset($_POST['sticky']) && !empty($modSettings['enableStickyTopics'])) || isset($_POST['lock']) || isset($_REQUEST['poll']))
{
if (isset($_POST['sticky']) && !empty($modSettings['enableStickyTopics']))
$setString = 'isSticky = ' . (int) $_POST['sticky'];
else
$setString = '';

if (isset($_POST['lock']) && $setString != '')
$setString .= ', locked = ' . (int) $_POST['lock'];
elseif (isset($_POST['lock']))
$setString = 'locked = ' . (int) $_POST['lock'];

if (isset($_REQUEST['poll']) && $setString != '')
$setString .= ", ID_POLL = $ID_POLL";
elseif (isset($_REQUEST['poll']))
$setString = "ID_POLL = $ID_POLL";

db_query("
UPDATE {$db_prefix}topics
SET $setString
WHERE ID_TOPIC = $topic
LIMIT 1", __FILE__, __LINE__);
}

// Might've changed the subject/poster.
updateLastMessages($board);

$newTopic = false;

        //BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money - {$modSettings['shopPointsPerPost']}
                            WHERE ID_MEMBER = {$ID_MEMBER}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD


}


Title: Re: SMFShop - Shop MOD
Post by: EnigmaX on March 01, 2005, 06:50:03 PM
When I try to install the Shop MOD via Admin Panel for SMF 1.0 it doesn't do anything.  I click on Install and it brings me to the screen where it shows various "successfull" files and at the bottom ask me to provide FTP Info for the server.

It says some files need the CHMOD changed, which will be done via FTP Access.  It doesn't say which files though.  I plug in the info and click "Save" and it doesn't do anything at all.


Any help on the Mod installation?  I'm sure it's something simple as I'm rather new to SMF.
Title: Re: SMFShop - Shop MOD
Post by: [Unknown] on March 01, 2005, 08:10:08 PM
http://www.simplemachines.org/community/index.php?topic=28393.0

-[Unknown]
Title: Re: SMFShop - Shop MOD
Post by: russ on March 02, 2005, 10:21:02 AM
Quote from: Brian on February 27, 2005, 01:41:19 AM
Here is what I did to modify the removetopic.php and post.php to prevent users from editing and deleting posts to get credits.

removetopic.php


// Decrease the post counts.
if ($decreasePostCount)
{
$requestMembers = db_query("
SELECT m.ID_MEMBER, COUNT(m.ID_MSG) AS posts
FROM {$db_prefix}messages AS m, {$db_prefix}boards AS b
WHERE m.ID_TOPIC $condition
AND b.ID_BOARD = m.ID_BOARD
AND m.icon != 'recycled'
AND b.countPosts = 0
GROUP BY m.ID_MEMBER", __FILE__, __LINE__);




if (mysql_num_rows($requestMembers) > 0)
{
while ($rowMembers = mysql_fetch_assoc($requestMembers))

{
     //BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money - {$modSettings['shopPointsPerPost']}
                            WHERE ID_MEMBER = {$rowMembers['ID_MEMBER']}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD

updateMemberData($rowMembers['ID_MEMBER'], array('posts' => 'posts - ' . $rowMembers['posts']));
}
}
mysql_free_result($requestMembers);



}




// Only decrease post counts.
else
db_query("
UPDATE {$db_prefix}topics
SET numReplies = numReplies - 1
WHERE ID_TOPIC = $row[ID_TOPIC]
LIMIT 1", __FILE__, __LINE__);

db_query("
UPDATE {$db_prefix}boards
SET numPosts = numPosts - 1
WHERE ID_BOARD = $row[ID_BOARD]
LIMIT 1", __FILE__, __LINE__);

// If the poster was registered and the board this message was on incremented
// the member's posts when it was posted, decrease his or her post count.
if (!empty($row['ID_MEMBER']) && $decreasePostCount && empty($row['countPosts']))

{
updateMemberData($row['ID_MEMBER'], array('posts' => '-'));
               //BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money - {$modSettings['shopPointsPerPost']}
                            WHERE ID_MEMBER = {$ID_MEMBER}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD
}

// Only remove posts if they're not recycled.




The first code causes MYSQL errors on line 4 of subs, claiming that my database is not the correct version. once the top code was removed, these errors went...

is there soemthing wrong with the code?
Title: Re: SMFShop - Shop MOD
Post by: Brian on March 06, 2005, 12:42:24 AM
It's workin for me, I dunno???  I'm not that much of a coder.

We need some more items for the shop, suggestions:

Ban User for a week
Remove Thread making abilities for a week
Maybe some sort of bank heist?
Title: Re: SMFShop - Shop MOD
Post by: gusto5 on March 06, 2005, 10:37:44 PM
Quote from: EnigmaX on March 01, 2005, 06:50:03 PM
When I try to install the Shop MOD via Admin Panel for SMF 1.0 it doesn't do anything.  I click on Install and it brings me to the screen where it shows various "successfull" files and at the bottom ask me to provide FTP Info for the server.

It says some files need the CHMOD changed, which will be done via FTP Access.  It doesn't say which files though.  I plug in the info and click "Save" and it doesn't do anything at all.


Any help on the Mod installation?  I'm sure it's something simple as I'm rather new to SMF.

i get an identical problem. the installation keeps looping back to the beginning of the install, like nothing happened.

running the fix_ownership.php file gets me this error

Quote530 Authentication failed, sorry

what should i do?
Title: Re: SMFShop - Shop MOD
Post by: Mento on March 08, 2005, 11:32:20 AM
I'm a newbie as far as programming, but I keep getting duplicate table errors when I try to install this mod and not knowing it, it was installing 0.2 every attempt.

Now I have it 5 times on my website and no way to uninstall it besides manually, which I don't know how to do. As far as I can see, it installed 0.2, but failed to upgrade to 1.0 ...

The error was in the InstallScript.php in the /Sources/temp folder... Something about a duplicate table, MoneyBank

It's not a huge tragedy or anything because my website is in the beginning stages, but it'd be cool if someone could help a junior out, ;)

Thanks,
- MENTO

Title: Re: SMFShop - Shop MOD
Post by: kncye on March 08, 2005, 07:15:39 PM
i am noobing about these ! but i want to ask how to get it to work for another theme like my forum has 2-3 themes. (i did installed it on default theme)? now i wanna get it to work for another theme ! thanks in advance

kncye,
Title: Re: SMFShop - Shop MOD
Post by: gusto5 on March 09, 2005, 07:48:16 PM
i am having difficulties removing the shop mod. for some reason, there is no uninstaller.

SMF 1.0.2 (Link to site: http://www.x-revolt.net)

on my other forums, package manager doesnt even acknowledge shop mods precence

SMF 1.0.2 again (link to site: http://www.revxhost.com)

so how do i remove this, manually if needed?
Title: Re: SMFShop - Shop MOD
Post by: comitar on March 09, 2005, 08:10:16 PM
Fabulous Mod, you've done an amazing job.

One suggestion, maybe have the ability to make certain forums not count towards credits.  For example, I have an Off-Topic forum, and I want to encourage users to post in other topics using the credits, however they can just hang out in off-topic and accumulate credits.

Hope that made sense...

Good luck!
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on March 11, 2005, 09:45:13 PM
to manually remove the SMFShop mod, just delete all the MOD files from your forum, and then remove all the database stuff

(there was a previous post on this, search through the posts to find it)

sorry but i'm busy,
--daniel15
Title: Re: SMFShop - Shop MOD
Post by: umiya on March 12, 2005, 12:42:07 PM
when ppl post in a no post increase forum they still receicve credits, anyway to stop this?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on March 12, 2005, 10:38:56 PM
sorry, not yet... i'll try work on it either tonight (2:36 PM now) or tommorow... if i have time. ;)

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: umiya on March 12, 2005, 11:29:28 PM
thanks daniel!
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on March 13, 2005, 12:47:19 AM
remember, i said that i would work on it if i have time... if i don't get any time, sorry... but there's nothing i can do

hope you understand
Title: Re: SMFShop - Shop MOD
Post by: martp on March 14, 2005, 08:32:41 PM
The install worked ok, I see the icon in the menu, I have the Shop Administration in the Admin-Section. But evrytime I try to access any of these I get automatically logged out and asked to log in. If I try to the same begins again.
Any Ideas?
Title: Re: SMFShop - Shop MOD
Post by: PioneeR on March 15, 2005, 07:28:02 AM
I had problems installing this mod (installer failed on duplicate fieldnames). Now SMFShop seems to be installed 3 times.

Looking at the main index template (the Shop icon appears three times), credit is applied 3x..

Anyone have any instructions on how to full uninstall this mod??


Quote from: daniel15 on March 11, 2005, 09:45:13 PM
to manually remove the SMFShop mod, just delete all the MOD files from your forum, and then remove all the database stuff

(there was a previous post on this, search through the posts to find it)

sorry but i'm busy,
--daniel15
Title: Re: SMFShop - Shop MOD
Post by: flapper on March 16, 2005, 10:30:18 AM
ok instaled smfshop fresh install mod using package manager and got this:

Quote1. Extract File ./Sources/shop/items/AddToPostCount.php 
2. Extract File ./Sources/shop/items/ChangeUsername.php 
3. Extract File ./Sources/shop/items/ChangeUserTitle.php 
4. Extract File ./Sources/shop/items/IncreaseKarma.php 
5. Extract File ./Sources/shop/items/IncreaseTimeLoggedIn.php 
6. Extract File ./Sources/shop/items/RandomMoney.php 
7. Extract File ./Sources/shop/items/testitem.php 
8. Extract File ./Sources/shop/items/testitem2.php 
9. Extract File ./Sources/shop/items/ChangeOtherTitle.php 
10. Extract File ./Sources/shop/items/DecreasePost.php 
11. Extract File ./Sources/shop/item_engine.php 
12. Extract File ./Sources/shop/ShopAdmin.php 
13. Extract File ./Sources/shop/Shop.php 
14. Extract File ./Sources/shop/dointerest.php 
15. Extract File Themes/default/images/english/shop.gif 
16. Extract File Themes/default/languages/Shop.english.php 
17. Extract File Themes/default/ShopAdmin.template.php 
18. Extract File Themes/default/Shop.template.php 
19. Execute Modification ./index.php Success
20. Execute Modification ./Sources/Post.php Success
21. Execute Modification ./Sources/Subs.php Success
22. Execute Modification ./Themes/default/Display.template.php Success
23. Execute Modification ./Themes/default/index.template.php Success
24. Execute Code installScript.php 


seems installscript.php has not worked, what am i dong wrong all files in zip file are 777, is there a way i can instal manualy

thank you in advance
Title: Re: SMFShop - Shop MOD
Post by: gizzleweb on March 17, 2005, 03:28:20 PM
I installed this shop using the Package Manager inside of the board. When i did everything i started getting this

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

now i cant even access my site, any info?
Title: Re: SMFShop - Shop MOD
Post by: [Unknown] on March 17, 2005, 05:28:09 PM
Check your server error log.  Try changing files from 777 to 755.  Try pressing Ctrl-F5.

-[Unknown]
Title: Re: SMFShop - Shop MOD
Post by: gizzleweb on March 18, 2005, 11:03:46 AM
I just deleted the whole thing and reinstalled it fresh from Fantastico again, then i tired to reinstall i got the same error message, so i changed it to 855 but now i get this in my control panel.

Table 'kgreen_smf1.smf_shop_items' doesn't exist
File: /home/kgreen/public_html/lordsandkings/Packages/temp/updateScript.php
Line: 18
Title: Re: SMFShop - Shop MOD
Post by: flapper on March 18, 2005, 11:13:50 AM
Could someone please help me with reply 280, i would realy like this mod on my forum, and for some reason will not install using package manager, is there anyway i can install it manualy.

thank you in advance
Title: Re: SMFShop - Shop MOD
Post by: mank on March 18, 2005, 02:00:05 PM
i'm having the exact same problem...i tried installing manually but kept making errors in the code ...or at least i couldn't correct the errors that were found  :(
Title: Re: SMFShop - Shop MOD
Post by: [Unknown] on March 19, 2005, 03:16:50 AM
Those messages are only informative; nothing has yet been changed.  Hit proceed to actually make the changes.

-[Unknown]
Title: Re: SMFShop - Shop MOD
Post by: flapper on March 19, 2005, 12:53:40 PM
Quote from: [Unknown] on March 19, 2005, 03:16:50 AM
Those messages are only informative; nothing has yet been changed.  Hit proceed to actually make the changes.

-[Unknown]


I did that , hit proceed 3 times still nothing, dont know what to do now.
Title: Re: SMFShop - Shop MOD
Post by: Kindred on March 19, 2005, 03:52:50 PM
If you hit proceed multiple times, you will have to fix your SMF files...  it has been started to be installed and changes will have been made to your SMF files.

I couldn't get this to install via the package manager. It aborted (every time) when it started on the database modifications.  Unfortunately, because it aborted, it THOUGHT that nothing had been installed... but it had...
I finally did the database modifications "by hand" (as it were) and the mod works just dandy...  although it still believes that it was not installed...
Title: Re: SMFShop - Shop MOD
Post by: Pause on March 19, 2005, 09:05:57 PM
Quote from: kindred on March 19, 2005, 03:52:50 PM
If you hit proceed multiple times, you will have to fix your SMF files...  it has been started to be installed and changes will have been made to your SMF files.

I couldn't get this to install via the package manager. It aborted (every time) when it started on the database modifications.  Unfortunately, because it aborted, it THOUGHT that nothing had been installed... but it had...
I finally did the database modifications "by hand" (as it were) and the mod works just dandy...  although it still believes that it was not installed...

edit installed.list
Title: Re: SMFShop - Shop MOD
Post by: Jounouchi on March 19, 2005, 09:29:24 PM
This mod cannot work in SMF 1.0.2,right?
Title: Re: SMFShop - Shop MOD
Post by: Digital Frostbyte on March 19, 2005, 09:44:03 PM
seems to be working fine with mine so far an i am runnign 1.0.2

http://www.digital-frostbyte.com  in case you want to see it.
Title: Re: SMFShop - Shop MOD
Post by: Jounouchi on March 20, 2005, 01:31:47 AM
QuoteDuplicate column name 'moneyBank'
File: /home/www/gbaextreme.freefronthost.com/Forum/Packages/temp/updateScript.php
Line: 9

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.2, whereas your database is at version SMF 1.0.1. It is recommended that you execute the latest version of upgrade.php.
It say like that on my forum.
Someone please help me.
Title: Re: SMFShop - Shop MOD
Post by: teknikal on March 20, 2005, 08:23:02 AM
i was just wondering, if its possible if someone to make a mod to addon to this one
i was thinking of making one that allows people to gain different points in different forums/sections and is able to deduct points in different forums/sections for posting/new topic.
Title: Re: SMFShop - Shop MOD
Post by: PioneeR on March 20, 2005, 11:07:21 AM
Would be good (but oh so evil) to allow people to buy other members's titles in SMF Arcade  :D
Title: Re: SMFShop - Shop MOD
Post by: Gaia on March 21, 2005, 11:02:41 PM
Quote from: Jounouchi on March 20, 2005, 01:31:47 AM
QuoteDuplicate column name 'moneyBank'
File: /home/www/gbaextreme.freefronthost.com/Forum/Packages/temp/updateScript.php
Line: 9

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.2, whereas your database is at version SMF 1.0.1. It is recommended that you execute the latest version of upgrade.php.
It say like that on my forum.
Someone please help me.

hi, i'm getting the same error, any fix for this? Thanks.
Title: Re: SMFShop - Shop MOD
Post by: Gaia on March 23, 2005, 01:57:48 AM
*bump*
Title: Re: SMFShop - Shop MOD
Post by: Gaia on March 25, 2005, 10:08:29 AM
*cough*
Title: Re: SMFShop - Shop MOD
Post by: mennou on March 25, 2005, 11:21:36 AM
How you made it worked?  i've been fighting with it  long time ago...



Quote from: Digital Frostbyte on March 19, 2005, 09:44:03 PM
seems to be working fine with mine so far an i am runnign 1.0.2

http://www.digital-frostbyte.com  in case you want to see it.
Title: Re: SMFShop - Shop MOD
Post by: russ on March 26, 2005, 05:46:20 AM
I was wondering if any1 could code a small bit of code which will go in the karma functions, so if u smite or applaud sum1 u lose 10 credits, therefore people only smite or applaud when some1 has truely earnt it... and if they dont have enough credits then they cant use karma...?

Thanks :)
Title: Re: SMFShop - Shop MOD
Post by: Gaia on March 26, 2005, 10:36:23 PM
Is the mod supported anymore?
Title: Re: SMFShop - Shop MOD
Post by: umiya on March 27, 2005, 12:28:48 PM
it seems my users have found a bug

if you enter a negative amoung into bank you get it back so lets say i enter - 5000

i would recieve 5000 credits

anyone else getting this?
Title: Re: SMFShop - Shop MOD
Post by: Gaia on March 29, 2005, 09:54:39 PM
meh >_<
Title: Re: SMFShop - Shop MOD
Post by: Brian on March 30, 2005, 07:19:22 PM
Quote from: umiya on March 27, 2005, 12:28:48 PM
it seems my users have found a bug

if you enter a negative amoung into bank you get it back so lets say i enter - 5000

i would recieve 5000 credits

anyone else getting this?

I fixed this today after I read this.. I wonder if any of my users have figured this out  >:(

Find this in shop.php


//if user is trying to deposit more money than they have

            if ($_POST['amount'] > $row['money']) {

                $context['shop_buy_message'] = "You don't have that much money!";

            }


add this after it:


            if ($_POST['amount'] < 0) {

                $context['shop_buy_message'] = "Nice try!";

            }
Title: Re: SMFShop - Shop MOD
Post by: Gaia on March 31, 2005, 01:36:53 PM
ummm anything for the fix that was posted about a couple weeks ago or more?
Title: Re: SMFShop - Shop MOD
Post by: Kindred on March 31, 2005, 04:25:30 PM
hmmm....   This "bug" does not exist in the most current revision...  it already aborts and warns users if they enter a negative.


One thing I would like to see is all the text strings taken out and put into the theme/languages directory for ease of translation!
Title: Re: SMFShop - Shop MOD
Post by: umiya on March 31, 2005, 05:58:59 PM
i have the current version

1.0

and it had the problem
Title: Re: SMFShop - Shop MOD
Post by: umiya on March 31, 2005, 06:18:38 PM
here is what i used for fix

            if ($_POST['amount'] > $row['money'] ) {
                $context['shop_buy_message'] = "You don't have that much money!";
            }
            if ($_POST['amount'] < $row['money'] ) {

                $context['shop_buy_message'] = "Can not deposit negative amount!";
            }

it worked just fine but now they can desposit more than what they have in their account

this is getting frustrating
Title: Re: SMFShop - Shop MOD
Post by: AGMR_Rhino on April 01, 2005, 05:15:45 AM
does this work for 1.0.3 cause i got this error

Duplicate column name 'moneyBank'
File: /home/rhino/public_html/forum/Packages/temp/updateScript.php
Line: 9

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.3, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on April 01, 2005, 06:12:09 AM
i'm having trouble replying with more than a few lines... so i am making a simple faq now. it should be ready soon.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on April 01, 2005, 06:36:47 AM
SMFShop 1.0 FAQ now up! it contains a couple of answers to questions. i will be fixing it up a lot and the new one will be up tommorow. go to http://member.telpacific.com.au/daniel15/smfmods/smfshop_faq.htm to see it!
Title: Re: SMFShop - Shop MOD
Post by: Brian on April 01, 2005, 07:37:52 PM
Yeah, that second if statement should be an elseif

The withdraw portion of the code needs to be messed with too, the users can put in a negative amount there and get lots of money.
Title: Re: SMFShop - Shop MOD
Post by: Kindred on April 01, 2005, 11:03:49 PM
OK, guys....   I don't know what version you are working with, but the version that I installed does not let you do negative transfers, not negative withdrawals...

I tried it. The negative trasnfer says something like "are you trying to steal?"
Negative withdrawls result in a deposit
negative deposits result in a withdrawal....
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on April 02, 2005, 12:14:29 AM
Quote
The withdraw portion of the code needs to be messed with too, the users can put in a negative amount there and get lots of money.
i've already said that... in the FAQ file (http://member.telpacific.com.au/daniel15/smfmods/smfshop_faq.htm):

Quote
7. It seems my users have found a bug. if you enter a negative amoung into bank you get it back so lets say i enter - 5000, i would recieve 5000 credits!
I could swear i fixed that... anyway, To fix this, find lines similar to this in Sources/shop/shop.php:

if ($_POST['amount'] > $row['money']) {
    $context['shop_buy_message'] = "You don't have that much money!";
} else {

NOTE: There is code SIMILAR to this TWICE, once for depositing and once for withdrawing. The withdrawing code uses $row['moneyBank'] instead of $row['money'] but the code is similar.

insert this code AFTER the shop_buy_message but BEFORE the else:

} elseif ($_POST['amount'] < 0) {
    $context['shop_buy_message'] = "What are you trying to do? HUH??? You can't trick me!";
Title: Re: SMFShop - Shop MOD
Post by: eFishie on April 03, 2005, 08:48:05 PM
This mod has ruined my forum. I installed it with Package Manager, and the forum gives this all of a sudden:

QuoteThe server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Why?
Title: Re: SMFShop - Shop MOD
Post by: [Unknown] on April 03, 2005, 09:08:13 PM
Check your server error log - if you have means of viewing it.

-[Unknown]
Title: Re: SMFShop - Shop MOD
Post by: SkyFlyer on April 04, 2005, 04:02:44 AM
When is your timetable for the next update?

Some things you may want to consider adding:

Ability to make categories to put items into.

Ability to view other member's items. (maybe a link under the avatar in a post or something).
Title: Re: SMFShop - Shop MOD
Post by: eFishie on April 04, 2005, 08:42:16 AM
Server error log doesn't show the error messages, .
Title: Re: SMFShop - Shop MOD
Post by: russ on April 04, 2005, 12:29:41 PM
Quote from: SkyFlyer on April 04, 2005, 04:02:44 AM
Ability to view other member's items. (maybe a link under the avatar in a post or something).

yup, thats the main thing im looking forward to :)
Title: Re: SMFShop - Shop MOD
Post by: JakeA on April 05, 2005, 04:52:17 AM
I got "Internal Server Error" as well. Do you use cPanel?

I found that the script set the permissions of the pubic_html directory to 777. Change this back to 755 and everything should work.  :)

I'm currently investigating how to install it correctly.

Jake.

Title: Re: SMFShop - Shop MOD
Post by: JakeA on April 05, 2005, 05:00:43 AM
SOLUTION TO "INTERNAL SERVER ERROR"

If you get "INTERNAL SERVER ERROR" while you are installing SMFShop through package manager:

1. Proceed with installation until "Internal Server Error" page appears. LEAVE THIS PAGE AS IS.
2. FTP into your account. Look for the folder which has been chmodded to 777. This is typically the root folder of your forum. (eg. /public_html/forums)
3. CHMOD the directory back to 755.
4. Refresh the "Internal Server Error" page. You may need to : a) IE - hold CTRL and press Refresh; b) Firefox - hold SHIFT and press Reload.
5. The installation should be successful. It worked for me  :D
Title: Re: SMFShop - Shop MOD
Post by: JakeA on April 05, 2005, 05:30:23 AM
FOR MAMBO-SMF BRIDGE USERS:
If SMF is wrapped, you will need to make several changes:

1. Edit index.template.php in your themes folder. (usually in themes/default)

Find this:

    //BEGIN Shop MOD 0.2 Code
    there's code in here
    //END SHOP MOD

Replace with this:

    //BEGIN Shop MOD 0.2 Code
echo '<a href="', $scripturl, '?action=shop">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/shop.gif" alt="' . $txt['shop'] . '" style="margin: 2px 0;" border="0" />' : $txt['shop']), '</a>', $context['menu_separator'];
    //END SHOP MOD



2. Edit ShopAdmin.php (in Sources/shop)

Find this in Line 125:
include "Sources/shop/item_engine.php";

Replace with this:
include "$boarddir/Sources/shop/item_engine.php";


Find this in Line 130:
include "Sources/shop/items/$file";

Replace with this:
include "$boarddir/Sources/shop/items/$file";


This should hopefully work  :)
Title: Re: SMFShop - Shop MOD
Post by: eFishie on April 05, 2005, 08:39:32 AM
OMG, I have to wonder how you figured that out. It worked!
Title: Re: SMFShop - Shop MOD
Post by: jedi55555 on April 05, 2005, 11:27:02 PM
Some how my board is giving out double the amount of money.  Any Ideas on what is causing this?
Title: Re: SMFShop - Shop MOD
Post by: Justyne on April 07, 2005, 05:07:47 AM
I keep getting tons of these in my error log... any ideas how to fix that one... is there anyone else having the problem?

8: Undefined index: shopBuild
File: /home/justyne/public_html/rpg/Themes/default/languages/Shop.english.php (eval?)
Line: 172
Title: Re: SMFShop - Shop MOD
Post by: vikman on April 08, 2005, 11:38:12 PM
Hey everyone!  I help run a pay by post web hosting site also paid plans too www.hiya-host.com

I was wondering if there is anyway to not earn credits in certain forums.  Like we have a jokes forum and we don't want members to earn credits.  They don't gets posts counted from that forum but what about credits for the shop?  Thanks for the help!
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on April 10, 2005, 12:40:31 AM
Quote
I keep getting tons of these in my error log... any ideas how to fix that one... is there anyone else having the problem?

8: Undefined index: shopBuild
File: /home/justyne/public_html/rpg/Themes/default/languages/Shop.english.php (eval?)
Line: 172

This error means that the 'shopBuild' entry in the smf_settings table (from memory) isn't set. Open phpMyAdmin and go to the smf settings table. Near the end there should be entries for SMFShop. if there isn't, get the install package and have a look at the setup php file (inside the ZIP). You should see what database edits are needed.

And i'll be working on SMFShop tonight (currently 2:37 PM). Hopefully the next version will be ready in a couple of days (tommorow even!)
Title: Re: SMFShop - Shop MOD
Post by: SkyFlyer on April 10, 2005, 09:21:47 PM
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE ID_MEMBER = 4
LIMIT 1' at lin
File: /home/******/public_html/cf/forum/Sources/Post.php
Line: 1347


Help?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on April 11, 2005, 06:56:36 AM
SMFShop 1.1 released! and there are lots of fixes. Here's a list of changes in 1.1:

* When you disable the bank, it is completely hidden
* Items can now have custom fields on addition. For example, for the 'File Download' item, when you add it into your shop, you are prompted for the path to the file (no more having to manually edit the PHP file)
* View other members' inventories (FINALLY!!!)
* Unusable items (see included 'Rock')
* MOST useful text is now in the 'Themes/default/languages/Shop.english.php' file. Basically that means that you can change ANY of the text in SMFShop just by editing that file!
* 'You Need 0 Credits' bug fixed (if you had EXACTLY the right amount to purchase an item, it said 'You Need 0 Credits' instead of a link to buy)
* New items (Steal and File Download)
* Most items edited and updated for the 'custom fields on addition' feature
* Various code fixes
* And more... (there's ALWAYS more)

currently, there is only an upgrade package (no fresh install) but that might change.

NOTE: If you are using the 'File Download' item, ALL current 'File Download' items will be REMOVED from your shop (due to the newer File Download item included with SMFShop 1.1)
Title: Re: SMFShop - Shop MOD
Post by: 8218 on April 11, 2005, 02:03:49 PM
how do i add a custom item?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on April 12, 2005, 07:02:23 AM
Quote
how do i add a custom item?
Log in to the admin control panel, and click on 'Add/Edit Items' in the bottom-left. Then, just choose the item you want to add in to your shop. If the item you want is not listed, and you have the php file for it, just put the item's PHP file into Sources/shop/items. It will automatically show up in the item list.

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: russ on April 19, 2005, 09:04:30 AM
very nicely dun. as always im very impressed :)
Title: Re: SMFShop - Shop MOD
Post by: dragon52225 on April 19, 2005, 03:06:43 PM
can someone help me with version 1.1, i get this error:
QuoteWarning: realpath, tmpfile, link, mb_send_mail() has been disabled for security reasons in /data/members/free/tripod/uk/s/p/a/sparks/htdocs/SMF/Sources/Errors.php on line 249
can someone help me, my irl is "http://members.lycos.co.uk/sparks/SMF"
My real site is at Hiya-host but they got hacked:(
Title: Re: SMFShop - Shop MOD
Post by: sensovision on April 19, 2005, 04:28:55 PM
hi! this is a great Mod Daniel! I really like it ;) Thanks a lot!
BTW I've tried to make fresh install to 1.0.3 and have no problems with this but now when I try to upgrade to 1.1 it shows me that patch have older version and apply button isn't listed. Is it a bug?
Title: Re: SMFShop - Shop MOD
Post by: dragon52225 on April 20, 2005, 02:07:55 PM
Quote from: dragon52225 on April 19, 2005, 03:06:43 PM
can someone help me with version 1.1, i get this error:
QuoteWarning: realpath, tmpfile, link, mb_send_mail() has been disabled for security reasons in /data/members/free/tripod/uk/s/p/a/sparks/htdocs/SMF/Sources/Errors.php on line 249
can someone help me, my url is "http://members.lycos.co.uk/sparks/SMF"
My real site is at Hiya-host but they got hacked:(
can someone please help me??? it's not doing anything but the error appears about three times on a page,
you can see it by clicking the link above.
Title: Re: SMFShop - Shop MOD
Post by: dragon52225 on April 20, 2005, 02:09:14 PM
Quote from: sensovision on April 19, 2005, 04:28:55 PM
hi! this is a great Mod Daniel! I really like it ;) Thanks a lot!
BTW I've tried to make fresh install to 1.0.3 and have no problems with this but now when I try to upgrade to 1.1 it shows me that patch have older version and apply button isn't listed. Is it a bug?
ok look, here's what i did, since the names are the same it says it's installed, so I install 1.0 and then press delete without uninstalling it, then I upload 1.1 and install it, this worked for me
Title: Re: SMFShop - Shop MOD
Post by: Kindred on April 20, 2005, 02:54:04 PM
it would seem that the free accounts at tripod have some very important features turned off....
Title: Re: SMFShop - Shop MOD
Post by: dragon52225 on April 20, 2005, 05:16:57 PM
Quote from: kindred on April 20, 2005, 02:54:04 PM
it would seem that the free accounts at tripod have some very important features turned off....
yeah, does that affect my forum, if it doesn't, is there a code i can remove to make the error go away because it works fine, but the errors come up, I'm asking this here because before i installed SMFShop mod 1.1, there wern't those errors, also, when I fresh installed 1.0 there wern't these errors, so once I upgrded to 1.1, these errors came up.
Title: Re: SMFShop - Shop MOD
Post by: xd3vilx on April 21, 2005, 09:53:10 AM
(No Offence)Tripod Sux It Has 2 Much Ads Added On...
Title: Re: SMFShop - Shop MOD
Post by: russ on April 21, 2005, 01:50:22 PM
i would recommend going to buy a cheap server somewhere rather than using something free. more features, a LOT less errors, and generally better getting more members etc :)
Title: Re: SMFShop - Shop MOD
Post by: dragon52225 on April 21, 2005, 02:46:19 PM
Quote from: russ on April 21, 2005, 01:50:22 PM
i would recommend going to buy a cheap server somewhere rather than using something free. more features, a LOT less errors, and generally better getting more members etc :)
well ppl, don't insult me because as I said up there, my REAL host is hiya-host.com but they got hacked
Title: Re: SMFShop - Shop MOD
Post by: russ on April 22, 2005, 02:52:46 PM
didnt mean to "insult" u ... sorry if it appeared that way.
Title: Re: SMFShop - Shop MOD
Post by: dragon52225 on April 22, 2005, 04:01:14 PM
Quote from: russ on April 22, 2005, 02:52:46 PM
didnt mean to "insult" u ... sorry if it appeared that way.
it's ok, it just that was sorta mean, what if i said I don't have that much cash to spare
Title: Re: SMFShop - Shop MOD
Post by: russ on April 24, 2005, 11:16:51 AM
jus a small problem with the upgrade. the bank doesnt appear to function correctly.

QuoteYou currently have in the bank and in your pocket. Would you like to deposit or withdraw money?

The values are missing so people dont know how much to bank or withdraw....

apart from that the rest is fine! :) big woo to that
Title: Re: SMFShop - Shop MOD
Post by: dragon52225 on April 24, 2005, 06:24:22 PM
Quote from: russ on April 24, 2005, 11:16:51 AM
jus a small problem with the upgrade. the bank doesnt appear to function correctly.

QuoteYou currently have in the bank and in your pocket. Would you like to deposit or withdraw money?

The values are missing so people dont know how much to bank or withdraw....

apart from that the rest is fine! :) big woo to that
That worked for me, it's when I withdraw it says you now have % credits in the bank and % credits in your pocket, can I have a link to your site?
Title: Re: SMFShop - Shop MOD
Post by: Kindred on April 25, 2005, 10:06:10 PM
hmmm....  just had an issue pointed to me by a user:

Choose "random money"
Choose Use Now

it displays:
An Error Has Occurred!
2: mt_rand() expects parameter 1 to be long, string given
File: /PATH/Sources/shop/items/RandomMoney.php
Line: 32 

This line is, of course the mt_rand() call....

any ideas, anyone?
Title: Re: SMFShop - Shop MOD
Post by: dragon52225 on April 27, 2005, 10:52:50 PM
hmm, I got everyting to work, I set up my own web server, it took some time, but it is worth it!  does anyone know how to modify the e-mail an admin so I can have their e-mail adress?
Title: Re: SMFShop - Shop MOD
Post by: StormFire on April 28, 2005, 07:02:03 AM
how can I remove the smf shop from 1.0.3, I installed the version 1.0 and then used the 1.1 upgrade.  However now both have got no Uninstall option in the package manager...

Can anyone help?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on April 30, 2005, 05:22:01 AM
I've just discovered some errors in the Bank messages...

the welcome text displays properly: "You currently have 0 credits in the Bank and 3797 credits in your pocket. Would you like to Deposit or Withdraw money?"

but, there are problems with these texts:

Withdraw: " processed! You now have 3797 credits in your pocket and 0 credits in the Bank." (word 'Withdraw' missing from text)

Deposit: "{Deposit} processed! You now have 1 credits in the Bank and 3796 credits in your pocket." (curly brackets around 'Deposit)

To fix these errors, open your Themes/default/languages/Shop.english.php file.

Find:

$txt['shop_deposit'] = "{{$txt['shop_bank_deposit']}} processed! You now have %s in the {$txt['shop_bank']} and %s in your {$txt['shop_pocket']}.";

(notice the 2 pairs curly brackets instead of 1)
Replace this code with:


$txt['shop_deposit'] = "{$txt['shop_bank_deposit']} processed! You now have %s in the {$txt['shop_bank']} and %s in your {$txt['shop_pocket']}.";


And also, find:

$txt['shop_withdraw'] = "{$txt['shop_withdraw']} processed! You now have %s in your {$txt['shop_pocket']} and %s in the {$txt['shop_bank']}.";


and replace that with:

$txt['shop_withdraw'] = "{$txt['shop_bank_withdraw']} processed! You now have %s in your {$txt['shop_pocket']} and %s in the {$txt['shop_bank']}.";


---------------------
Quote
how can I remove the smf shop from 1.0.3, I installed the version 1.0 and then used the 1.1 upgrade.  However now both have got no Uninstall option in the package manager...

Can anyone help?
I'm really sorry, but there is currently no uninstall option...

Quote
hmm, I got everyting to work, I set up my own web server, it took some time, but it is worth it!  does anyone know how to modify the e-mail an admin so I can have their e-mail adress?
Do you mean the email address of the server admin? If you're using apache, look in the configuration files for the admin email (search for the current address)

Quote
mmm....  just had an issue pointed to me by a user:

Choose "random money"
Choose Use Now

it displays:
An Error Has Occurred!
2: mt_rand() expects parameter 1 to be long, string given
File: /PATH/Sources/shop/items/RandomMoney.php
Line: 32 

This line is, of course the mt_rand() call....

any ideas, anyone?
I believe this is because you have an 'old' RandomMoney item in your shop. This item doesn't have the additional information that the 'new' item needs.

To fix this, load up phpMyAdmin, go into the smf_shop_items table and click the 'Edit' button next to the Random Money row. Set 'info1' to -190, 'info2' to 190, and 'input_needed' to 0.

A simpler way to do this is to remove the item from your shop and then add one in again, but then all the members that have the deleted item wouldn't have one anymore (that's why i said about the phpMyAdmin thing)

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: StormFire on April 30, 2005, 05:44:15 AM
Quote
Quote
how can I remove the smf shop from 1.0.3, I installed the version 1.0 and then used the 1.1 upgrade.  However now both have got no Uninstall option in the package manager...

Can anyone help?
I'm really sorry, but there is currently no uninstall option...

How would you recommend uninstalling it?
Also is there a full install for version 1.1?
Title: Re: SMFShop - Shop MOD
Post by: Shannon on April 30, 2005, 06:39:25 PM
It appears I've installed 1.0 and the update, and all seems to be functioning correctly... but the postinfo for a user won't show their current number of credits (Razzles :P). The first time I tried installing the mod all seemed to work, but about five uninstall/reinstall attempt later, I can't seem to get the "X Razzles" to show up. Does anyone know why this is? If I'm just being a moron and overlooking an obvious detail, please let me know -- I know that's one of my worst faults. =P

My SMF forum where the mod is installed is here:
http://forums.sakuracard.com/forum/index.php

The pages I'm really concerned about are the threads. You don't see "X Razzles". =( Post.php in the ./Sources directory is the template that controls the postinfo, no? The coding is there, but it still won't show.  :'(
Title: Re: SMFShop - Shop MOD
Post by: Shannon on May 01, 2005, 12:49:16 AM
Nevermind! It works now  8)

amazing mod <3
Title: Re: SMFShop - Shop MOD
Post by: sensovision on May 01, 2005, 06:38:20 PM
bug:I'm not sure whenever it was already posted, but one of my member discovered that when you edit post you got credits as for reply to the existing thread...
Title: Re: SMFShop - Shop MOD
Post by: Kindred on May 03, 2005, 03:34:15 PM
Thanks for the tip on the random money issue...  glad that was easy to fix...

now I have a wierd one:

8: Undefined index: shop_withdraw
File: /SITE/Themes/default/Admin.template.php (eval?)
Line: 119

I get this once for EVERY admin page that is viewed....  but only for the admin pages.
shop_withdraw is a $txt string...   and it IS defined...  I'm oviously missing something, though.
Title: Re: SMFShop - Shop MOD
Post by: nubcakes on May 04, 2005, 11:41:53 PM
Ya, I get that same error on my site. It also happens on other pages too:

Quote
8: Undefined index: shop
File: /home/.oistin/*****/theprizebag.net/smf/Themes/default/BoardIndex.template.php (eval?)
Line: 451
   

8: Undefined index: shop
File: /home/.oistin/*****/theprizebag.net/smf/Themes/default/MessageIndex.template.php (eval?)
Line: 451
   

8: Undefined index: shop_withdraw
File: /home/.oistin/*****/theprizebag.net/smf/Themes/default/languages/Modifications.english.php (eval?)
Line: 119
   

8: Undefined index: shop_withdraw
File: /home/.oistin/*****/theprizebag.net/smf/Themes/default/Admin.template.php (eval?)
Line: 119
By the way, this is after I fixed the bank withdraw messages. Before that, I would only get it on admin pages too.
Title: Re: SMFShop - Shop MOD
Post by: dragon52225 on May 07, 2005, 12:29:08 PM
all those issues worked for me, and daniel, I was asking that if i could make it e-mail the web hosting application to me, also how can you add new lines because i wasnt one for the subdomain they want, their login name, a password, etc.
Title: Re: SMFShop - Shop MOD
Post by: Jericho on May 10, 2005, 09:40:40 PM
I really like the look of this mod.  I am pretty much a n00b with PHP and was wondering if somebody would be generous enough to give me the code so that I could be able create an item which would show an image, (GIF); or, alternatively, if that is too complex, then to be able to create an item to be able to take the person using it to an extrenal URL, where I could host aforementioned image.

Thanks in advance should anyone be able to aid me in my plight.  :)
Title: Re: SMFShop - Shop MOD
Post by: stargazer_1017 on May 11, 2005, 01:17:36 AM
Quote from: Jericho on May 10, 2005, 09:40:40 PM
I really like the look of this mod.  I am pretty much a n00b with PHP and was wondering if somebody would be generous enough to give me the code so that I could be able create an item which would show an image, (GIF); or, alternatively, if that is too complex, then to be able to create an item to be able to take the person using it to an extrenal URL, where I could host aforementioned image.
I'm waiting for that too :) I've been looking all over the net to see if I could try and do it on my own with php, but I haven't found anything that helped. Daniel said it was probably something he would work on in the future version, whenever he has time to do it.

-Shayna
Title: Re: SMFShop - Shop MOD
Post by: Jericho on May 11, 2005, 12:53:18 PM
To be honest, I would be content just knowing how to apply a hyperlink if an item is used...so take a test item:

Some one utilises the item.
It brings up a hyperlink to another URL.
User clicks on hyperlink to take them to image.
How would one program that?

Title: Re: SMFShop - Shop MOD
Post by: atambo on May 12, 2005, 06:42:45 PM
I get the same shop_withdraw errors basically everytime I load any page it adds 2 of these errors to the log...

Quote
8: Undefined index: shop_withdraw
File: twuclan.com/httpdocs/forums/Themes/default/Admin.template.php (eval?)
Line: 119
   
8: Undefined index: shop_withdraw
File: twuclan.com/httpdocs/forums/Themes/default/Admin.template.php (eval?)
Line: 127
Title: Re: SMFShop - Shop MOD
Post by: Helios_Zepp on May 13, 2005, 04:37:46 AM
Quote
Quote
how can I remove the smf shop from 1.0.3, I installed the version 1.0 and then used the 1.1 upgrade.  However now both have got no Uninstall option in the package manager...

Can anyone help?
I'm really sorry, but there is currently no uninstall option...

Then how do I update??
Just overwrite the files???
Title: Re: SMFShop - Shop MOD
Post by: dragon52225 on May 13, 2005, 09:47:15 AM
Quote from: Jericho on May 11, 2005, 12:53:18 PM
To be honest, I would be content just knowing how to apply a hyperlink if an item is used...so take a test item:

Some one utilises the item.
It brings up a hyperlink to another URL.
User clicks on hyperlink to take them to image.
How would one program that?


Hmmm...
I'll br glad to help, it doen't look that hard, I'll go and try to create something off the test item
Title: Re: SMFShop - Shop MOD
Post by: Jericho on May 13, 2005, 02:06:41 PM
If you could, that would be awesome.  Thanks, Dragon.  :)
Title: Re: SMFShop - Shop MOD
Post by: dragon52225 on May 14, 2005, 03:37:14 PM
But i just thought of something, if it brings them to the url, can't they copy it down and remember it?
Title: Re: SMFShop - Shop MOD
Post by: Jericho on May 15, 2005, 05:11:37 AM
You know how lazy some people are? LOL 

If they cannot click it, they don't want to know. 

It is okay, though; I'll think of something else.  ;)
Title: Re: SMFShop - Shop MOD
Post by: flapper on May 15, 2005, 03:24:29 PM
Installed SMFShop 1.0 fresh install and get this:


19. Execute Modification ./index.php Success
20. Execute Modification ./Sources/Post.php Success
21. Execute Modification ./Sources/Subs.php Success
22. Execute Modification ./Themes/default/Display.template.php Success
23. Execute Modification ./Themes/default/index.template.php Failure
24. Execute Code installScript.php 

all files seem to be 777

can anyone please help me.
Title: Re: SMFShop - Shop MOD
Post by: stargazer_1017 on May 16, 2005, 03:34:18 AM
Quote from: dragon52225 on May 14, 2005, 03:37:14 PM
But i just thought of something, if it brings them to the url, can't they copy it down and remember it?
I guess the link to the image will be in the person's actual inventory, instead of just being viewable by everyone.

-Shayna
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on May 17, 2005, 03:58:30 AM
does anyone know if this works on SMF 1.1 beta 2??
Title: Re: SMFShop - Shop MOD
Post by: flapper on May 17, 2005, 09:58:38 AM
Quote from: flapper on May 15, 2005, 03:24:29 PM
Installed SMFShop 1.0 fresh install and get this:


19. Execute Modification ./index.php Success
20. Execute Modification ./Sources/Post.php Success
21. Execute Modification ./Sources/Subs.php Success
22. Execute Modification ./Themes/default/Display.template.php Success
23. Execute Modification ./Themes/default/index.template.php Failure
24. Execute Code installScript.php 

all files seem to be 777

can anyone please help me.



guess no one can help me then  :(
Title: Re: SMFShop - Shop MOD
Post by: redone on May 18, 2005, 02:55:57 PM
Backup everything, well your sources and stuff the mod will change. Click proceed to make the changes the go into the .mod file and make the change to the index.template yourself and you should be fine.

Like I said make a backup though incase you have any issues.

;)
Title: Re: SMFShop - Shop MOD
Post by: diva_uno on May 20, 2005, 04:53:00 PM
I always wonder what this mod actually does.
I created a test board and added this mod and I still don't know what it does.
I thought that member could possibly upload avatars they created or other types of files for other member to download. You know...like actually buy things with their credits.
Is that what it does...or does it just change things within the board.
I think actually buying things would be fun.
I don't know about paying to change someones avatar...how fun is that?
Title: Re: SMFShop - Shop MOD
Post by: SaltedWeb on May 20, 2005, 11:46:38 PM
I too have installed this on a test board,

Cant figure what it does exactly. Looked through 25 pages here and their website. There basically isnt any help there at the designers site.

So I too amd hmmmm what is this ?


Paul
Title: Re: SMFShop - Shop MOD
Post by: Ndien on May 22, 2005, 12:41:06 PM
I don't have the tiem to look theu 25 pages, but my error log keeps getting full of this message:

Quote8: Undefined index: shop
File: /home/httpd/vhosts/ndien.com/httpdocs/forums/eqoa/Themes/default/BoardIndex.template.php (eval?)
Line: 451
Title: Re: SMFShop - Shop MOD
Post by: dragon52225 on May 22, 2005, 02:50:26 PM
I recently installed it and I get this:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY smf_shop_inventory.id' at line 8
File: E:\apachefriends\xampp\htdocs\xuz\forums\Sources\shop\ShopAdmin.php
Line: 90

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.3, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.

When I view a members inventory
Title: Re: SMFShop - Shop MOD
Post by: dragon52225 on May 22, 2005, 03:58:00 PM
daniel, can you code a "Send a PM to a Admin"?  I don't want e-mail I want PM
Title: Re: SMFShop - Shop MOD
Post by: SaltedWeb on May 23, 2005, 12:14:54 AM
Ok so anyone know what this Mod does ?
??? ??? ???

Not finding anything to explain what it is for.


Paul
Title: Re: SMFShop - Shop MOD
Post by: russ on May 23, 2005, 02:47:23 AM
basically as u post new topics or posts, u earn credits. these can then be used to "buy" items in a forum shop, for example additional icons to appear under your name, permissions, and many other items - some of which could be used on other members.

probably not a good description i know as im half asleep atm ....
Title: Re: SMFShop - Shop MOD
Post by: redone on May 23, 2005, 12:02:21 PM
Regarding the database update. You need to run upgrade.php from the old version of smf to 1.03.

Title: Re: SMFShop - Shop MOD
Post by: SaltedWeb on May 23, 2005, 02:53:11 PM
Hi Russ.

So this could be used to basically give a reward to a person.

I wonder if it can be topic area specific that would really be handy.
Thanks for some idea atleast I get the jist of it.


Paul
Title: Re: SMFShop - Shop MOD
Post by: russ on May 24, 2005, 04:02:28 AM
yeah thats what i do, or you can do stuff to other members which users have to pay to remove, steal credits off other members, etc etc :)
Title: Re: SMFShop - Shop MOD
Post by: diva_uno on May 24, 2005, 04:37:41 AM
I'm still lost...
I guess I don't understand how you get all these things to work.
Are these things already included when you apply the mod or do you have to add them?
And if you add them how exactly do they work? Or how do you get them to work?
And can this be used to buy avatar from other members? Like if a member creates and uploads some graphics or any type of supported files can they be bought?
Or is it a "let me buy an item so I can piss someone off" type of thing?

I actually think stealing credits is cool...but I just want to understand the full extent of this mod. And also if really cool things such as actually purchasing something semi-material is an option.
Title: Re: SMFShop - Shop MOD
Post by: subnet_rx on May 24, 2005, 07:53:41 PM
manual install instructions?
Title: Re: SMFShop - Shop MOD
Post by: flapper on May 25, 2005, 07:49:49 AM
Quote from: subnet_rx on May 24, 2005, 07:53:41 PM
manual install instructions?

Well no one seems to be able to help me, can someone please do a post on how to manual install please.
Title: Re: SMFShop - Shop MOD
Post by: dragon52225 on May 26, 2005, 06:13:54 PM
oh look into the, .mod file, and make the changes yourself, also put the files to where they belong
Title: Re: SMFShop - Shop MOD
Post by: ShadowStriker on June 02, 2005, 01:38:40 PM
in a newer version can u make it so that ppl can bid. also if i wanted to sell a pic for my friend how would i know somone has bought it so i can give the money to him?
Title: Re: SMFShop - Shop MOD
Post by: Xarcell on June 04, 2005, 09:44:47 PM
This might sound dumb, but I can't find a shop to make purcases. I have it successfully installed and have added items to the inventory.

-Xarcell
Title: Re: SMFShop - Shop MOD
Post by: Jericho on June 05, 2005, 06:06:35 AM
Quote from: atambo on May 12, 2005, 06:42:45 PM
I get the same shop_withdraw errors basically everytime I load any page it adds 2 of these errors to the log...

Quote
8: Undefined index: shop_withdraw
File: twuclan.com/httpdocs/forums/Themes/default/Admin.template.php (eval?)
Line: 119
   
8: Undefined index: shop_withdraw
File: twuclan.com/httpdocs/forums/Themes/default/Admin.template.php (eval?)
Line: 127

This is exactly what I am getting.  Does anyone have a fix for this, please?
Title: Re: SMFShop - Shop MOD
Post by: DoW Kid Rock on June 05, 2005, 11:22:32 AM
I just went into my error log and it seems that anytime anyone refreshes a page does any action it says in the error log that there is an undefined index : shop

the funny thing is that most of the files it mentions don't even have anything related to shop
Title: Re: SMFShop - Shop MOD
Post by: Xarcell on June 05, 2005, 09:55:50 PM
Quote from: Xarcell on June 04, 2005, 09:44:47 PM
This might sound dumb, but I can't find a shop to make purcases. I have it successfully installed and have added items to the inventory.

-Xarcell

I was browsing around the templates because I was modding them when I realized I didn't hav ethe apprpreaite code placed in teh display file of the theme I was using. Everthing works great.

Supercool mod by the way. Keep up the godo work.

-Xarcell
Title: Re: SMFShop - Shop MOD
Post by: stargazer_1017 on June 05, 2005, 11:26:53 PM
Quote from: DoW Kid Rock on June 05, 2005, 11:22:32 AM
I just went into my error log and it seems that anytime anyone refreshes a page does any action it says in the error log that there is an undefined index : shop

the funny thing is that most of the files it mentions don't even have anything related to shop

*nods* I run into that error too. I don't know what exactly could be causing it.

-Shayna
Title: Re: SMFShop - Shop MOD
Post by: Xandi on June 07, 2005, 11:16:49 AM
the same at my forum
Title: Re: SMFShop - Shop MOD
Post by: Kindred on June 07, 2005, 11:38:03 AM
the line 119 error comes from a self-reference in one of the shop text-strings...  that was easy to fix...

However, (as I reported 2 months ago!) I have been getting the other errors, ALWAYS in the admin pages (every page) and occasionally elsewhere (most frequently in the shout template).
I would assume that the location of the error is a spoof caused because SMF is loading the whole template...
Title: Re: SMFShop - Shop MOD
Post by: Jericho on June 07, 2005, 03:39:02 PM
Quote from: Kindred on June 07, 2005, 11:38:03 AM
the line 119 error comes from a self-reference in one of the shop text-strings...  that was easy to fix...

For those of us not as well versed in coding as yourself, would you mind explaining how to fix this, please?
Title: Re: SMFShop - Shop MOD
Post by: azuregenesis on June 11, 2005, 12:24:00 PM
Quote from: sensovision on May 01, 2005, 06:38:20 PM
bug:I'm not sure whenever it was already posted, but one of my member discovered that when you edit post you got credits as for reply to the existing thread...

i get the same bug and alsothe admin bug above. i'm guessing no fixes as of yet.. :(

edit: the bug above was solved in february :)

link!: http://www.simplemachines.org/community/index.php?topic=22396.msg209427#msg209427

i just have the admin bug to worry about now :(
Title: Re: SMFShop - Shop MOD
Post by: Kindred on June 14, 2005, 04:15:52 PM
ok.... here' the fix for the shop_withdraw undefined bug(s)

in shop.english.php

find the line starting with $txt['shop_withdraw']
(it should be one of the last lines of the file.)

change it to read as follows:
$txt['shop_withdraw'] = "Withdrawal processed! You now have %s in your {$txt['shop_pocket']} and %s in the {$txt['shop_bank']}.";

(For some reason, there was a self-reference in this string! calling for {$txt['shop_withdraw']} WITHIN the string titled just that... thank gods php won't enter an infinite loop trying to find the reference.)

After you have changed the text, move the whole line up to ABOVE line 119...  doesn't matter where... but it has to come before $txt['shop_no_negative']  (which ALSO references {$txt['shop_withdraw']})

now that the string is DEFINED before it is called for, everything is kosher...
Title: Re: SMFShop - Shop MOD
Post by: azuregenesis on June 15, 2005, 06:15:36 AM
Quote from: Kindred on June 14, 2005, 04:15:52 PM
ok.... here' the fix for the shop_withdraw undefined bug(s)

in shop.english.php

find the line starting with $txt['shop_withdraw']
(it should be one of the last lines of the file.)

change it to read as follows:
$txt['shop_withdraw'] = "Withdrawal processed! You now have %s in your {$txt['shop_pocket']} and %s in the {$txt['shop_bank']}.";

(For some reason, there was a self-reference in this string! calling for {$txt['shop_withdraw']} WITHIN the string titled just that... thank gods php won't enter an infinite loop trying to find the reference.)

After you have changed the text, move the whole line up to ABOVE line 119...  doesn't matter where... but it has to come before $txt['shop_no_negative']  (which ALSO references {$txt['shop_withdraw']})

now that the string is DEFINED before it is called for, everything is kosher...

thank you very much, Kindred!! :) *hugs*

i hope more people like you come and help with this mod. if not adding new stuff to it, just helping to change it a bit would be great (errors, idewas, etc)

thanks again :)
Title: Re: SMFShop - Shop MOD
Post by: russ on June 16, 2005, 09:35:05 AM
found a bug in the lottery function :(

2: mt_rand() expects parameter 1 to be long, string given

any idea people?
Title: Re: SMFShop - Shop MOD
Post by: † ÐëepÇuT¹ † on June 16, 2005, 05:04:07 PM
Can this mod work with SMF 1.0.4 since its almost same as 1.0.3?
Title: Re: SMFShop - Shop MOD
Post by: Kindred on June 16, 2005, 05:05:17 PM
yes, it shoudl work ok with 1.0.4... but you may have to edit the XML to include 1.0.4 as a valid target.
Title: Re: SMFShop - Shop MOD
Post by: Jako on June 16, 2005, 08:22:23 PM
Quote from: Kindred on June 16, 2005, 05:05:17 PM
yes, it shoudl work ok with 1.0.4... but you may have to edit the XML to include 1.0.4 as a valid target.

How an inept person do that?
Title: Re: SMFShop - Shop MOD
Post by: Kindred on June 16, 2005, 10:34:14 PM
find <install for="1.0.3">   or something similar... and change it to <install for="1.0.3, 1.0.4">
Title: Re: SMFShop - Shop MOD
Post by: Jako on June 17, 2005, 12:13:58 AM
And that would be in what file? o_O
Title: Re: SMFShop - Shop MOD
Post by: Kindred on June 17, 2005, 08:10:03 AM
the install.xml or shop.xml... or something of the sort.
Title: Re: SMFShop - Shop MOD
Post by: azuregenesis on June 17, 2005, 11:33:51 AM
could anyone help me with the "download file" item?

it seems that when you buy the item. it stays in your inventory. and that's not good at all. :(

can anyone help?
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on June 18, 2005, 03:36:25 AM
can someone please tell me if this works with either 1.1. beta 2 or 1.1 beta 3??
Title: Re: SMFShop - Shop MOD
Post by: c4smok on June 21, 2005, 10:48:29 PM
I dunno if anybody knows about the Modify Post  "money cheat"  bug..

But I fixed it if anybody needs to know..

mail me..
[email protected]
Title: Re: SMFShop - Shop MOD
Post by: Kindred on June 22, 2005, 08:35:12 AM
posting more details would be helpful!

like, say for example, what is this cheat anbd how did you fix it?
Title: Re: SMFShop - Shop MOD
Post by: c4smok on June 22, 2005, 01:34:13 PM
well if you press modify a post you get $...

if you remove the first statement for the shop in post.php that should fix it..
Title: Re: SMFShop - Shop MOD
Post by: stargazer_1017 on June 24, 2005, 03:03:05 AM
Quote from: russ on June 16, 2005, 09:35:05 AM
found a bug in the lottery function :(

2: mt_rand() expects parameter 1 to be long, string given

any idea people?

There's a lottery function? 0_o I didn't know that! How do you use that?

-Shayna
Title: Re: SMFShop - Shop MOD
Post by: Jako on June 25, 2005, 02:33:27 AM
All right, question time. And before anyone ******es me out, I actually did read every page of this topic and didn't find any answers. :)

Anyhow, and keep in mind that I only want items that are for looks only, I don't want any of this "items do things" crap,

1. How do I make custom items?
2. How do I get icons for said custom items?
3. How do I make it so that people can see your items [as in below your avatar and such]?
4. How can I give out money to people?
5. How can I set it so certain things will give people a fixed amount of money [I.E. Create five topics, post in certain threads, etc.]?


Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on June 25, 2005, 08:57:44 AM
I've said about the lottery item HEAPS of times...

To fix it, delete it out of your shop, and then add a new one in.

AND.... The shop_withdraw undefined bugs were caused by me using shop_withdraw INSTEAD of shop_bank_withdraw. A fixed Shop.english.php file is available at http://member.telpacific.com.au/daniel15/smfmods/Shop.english.php.txt

Title: Re: SMFShop - Shop MOD
Post by: mrselnombre on June 25, 2005, 10:12:39 AM
i can't find anything at all to do with a lottery feature?
Title: Re: SMFShop - Shop MOD
Post by: Jako on June 26, 2005, 02:45:10 AM
Quote from: mrselnombre on June 25, 2005, 10:12:39 AM
i can't find anything at all to do with a lottery feature?

I'm pretty sure she means that item in the Shop, the one where you'll get any number up to 190 and negative 190. :) Or I could be completely wrong. <<
Title: Re: SMFShop - Shop MOD
Post by: mrselnombre on June 26, 2005, 02:49:43 AM
ooh... wouldn't have called that a lottery, but i suppose it could be.
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on June 26, 2005, 04:56:45 AM
does this even work with any recent versions??

the last version it worked for me was like 1.0.2 :S
Title: Re: SMFShop - Shop MOD
Post by: azuregenesis on June 26, 2005, 08:18:33 AM
working on mine. running 1.0.5
Title: Re: SMFShop - Shop MOD
Post by: reznorsoft on June 26, 2005, 12:11:59 PM
does it work on 1.1 Beta 3?
Title: Re: SMFShop - Shop MOD
Post by: Jako on June 27, 2005, 06:31:16 AM
I'm running 1.0.5 and it runs just fine.

However, I kind of find it useless until Dan can make some of his [hers? Oh ******, we were talking over MSN, and I could've sworn you were a girl, and then I looked at your name and it wasn't Danielle. but Daniel. Whoops. ^_^] promised updates to the MOD. For example, to have icons for the items in the shop. Also, I would LOVE a more detailed interface for the admin panel. Like, specific things that would automatically give gil to members [i.e., posting in that topic n amount of times, posting in that forum n amount of times, etc.], a much more user-friendly interface for putting items in a shop because I DON'T want to have to spend time going into the right php file, editing it, to make custom items. Also, I would want a member's items to be seen under his/her avatar [or below the exp bar, whichever].

I was going to say something about letting the admin panel be more user-friendly with giving gil to members, but it is [after much complaining, I figured it out, heh]. All you have to do is edit someone's inventory and viola.

Thanks for your time, ~Jako.
Title: Re: SMFShop - Shop MOD
Post by: Sheepy on July 01, 2005, 08:06:44 AM
Daniel, I noticed a request for location of where $message['member'] is set, just above the place of a query (in the display template!) for money.

The member array is loaded through three functions, each responsible for different 'stage' of loading the user.  Here are the necessary changes to add money into $message['member'].

Here are the information:
Load.php -> loadMemberData -> add "mem.money," to normal and profile query
Load.php -> loadMemberContext -> add "'money' => $profile['money']" to member context array
Display.php -> prepareDisplayContext -> add "$themeUser[$message['ID_MEMBER']]['money'] = 0;" to unloaded member
After the above changes, you can use $message['member']['money'] for money in template.

Since my site is heavily modded (with about 50 mods) I can't tell you the line number.  Sorry for that.

I find it when I was looking for what is causing so much queries after all the mods are applied... Now I've cut it by a quarter. ;)
Title: Re: SMFShop - Shop MOD
Post by: atambo on July 01, 2005, 11:46:06 PM
Quotedoes it work on 1.1 Beta 3?

I'd like to second that question  ;D
Title: Re: SMFShop - Shop MOD
Post by: SiToS on July 03, 2005, 01:17:09 PM
yeah! does it work on 1.1 Beta 3?
Title: Re: SMFShop - Shop MOD
Post by: [Dark.Shadow] on July 03, 2005, 03:09:58 PM
I Think It Doesn´t because i got smf 1.1 beta 3 and when i try to install it it gets me the error "hacking attempt"  :'(
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on July 03, 2005, 08:48:07 PM
*sighs*

do any of the mods work on beta 3?

i haven't upgraded to it until i can see at least half of my mods working on it... it really sucks though cause i so want to upgrade :(
Title: Re: SMFShop - Shop MOD
Post by: russ on July 04, 2005, 01:18:16 PM
im sure u could manually install it - if you have a test forum runnign the latest beta :)
Title: Re: SMFShop - Shop MOD
Post by: atambo on July 04, 2005, 05:05:24 PM
when I try installing the 1.0 package of the shop mod again everything tests ok except the mod to the post.php file which need to do this:

Quote<file name="$sourcedir/Post.php">
        <operation>
            <search position="before"><![CDATA[
      $newTopic = true;
]]></search>
            <add><![CDATA[
        //BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money + {$modSettings['shopPointsPerTopic']}
                            WHERE ID_MEMBER = {$ID_MEMBER}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD
]]></add>
        </operation>
        <operation>
            <search position="before"><![CDATA[
      $newTopic = false;
]]></search>
            <add><![CDATA[
        //BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money + {$modSettings['shopPointsPerPost']}
                            WHERE ID_MEMBER = {$ID_MEMBER}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD
]]></add>
         </operation>
    </file>

now in the new post.php file there is no $newTopic = true; or $newTopic = false; so could someone who is advanced enough to understand how the post.php works tell me what would be the correct place to put the code above?

thanx, atambo
Title: Re: SMFShop - Shop MOD
Post by: nattydread on July 04, 2005, 05:13:23 PM
Hello all ,
.I am new of all that, I started reading all the posts  this forum but, after over 15 pages read on 29, I think better ask someone  :)

Just general informations.

1) Where is the "bank"? 8)  I mean , is it possible for board users to trade bucks with the bank?
2) Is it possible for users trade bucks between themselves ? (example: I buy something from another user after I have made the payment my account should be automatically decreased for that amount and the account of user who received the payment would be increased).

3) Is it there a feedback system?

thanks


Title: Re: SMFShop - Shop MOD
Post by: nattydread on July 04, 2005, 05:34:13 PM
OK , Question 1 and 2 are resolved, I had an error in trhe database but I resolved, I have a bank now!

The feedback option I can find it anywhere, is there a mod some where?

A friend me suggest me this board just yesterday, well I think I'm just falling in love.
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on July 06, 2005, 05:57:21 AM
Quote from: atambo on July 04, 2005, 05:05:24 PM
when I try installing the 1.0 package of the shop mod again everything tests ok except the mod to the post.php file which need to do this:

Quote    <file name="$sourcedir/Post.php">
        <operation>
            <search position="before"><![CDATA[
      $newTopic = true;
]]></search>
            <add><![CDATA[
        //BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money + {$modSettings['shopPointsPerTopic']}
                            WHERE ID_MEMBER = {$ID_MEMBER}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD
]]></add>
        </operation>
        <operation>
            <search position="before"><![CDATA[
      $newTopic = false;
]]></search>
            <add><![CDATA[
        //BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money + {$modSettings['shopPointsPerPost']}
                            WHERE ID_MEMBER = {$ID_MEMBER}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD
]]></add>
         </operation>
    </file>

now in the new post.php file there is no $newTopic = true; or $newTopic = false; so could someone who is advanced enough to understand how the post.php works tell me what would be the correct place to put the code above?

thanx, atambo

try checking the parent code of these code blocks...

i've actually found before expecially in this recent upgrade that some of the stuff from some files have been moved elsewhere... if you look at an old post.php and find the location and then compare it to the new post.php you might be able to discover where it went...

i'll have a look now and see if i can tell how it changed :)




i've tried looking for this... but in 1.1 it's been completely and utterly changed... sorry can't help you there :(
Title: Re: SMFShop - Shop MOD
Post by: nattydread on July 06, 2005, 09:27:33 PM
hello, I am little confused about how to use this forum, I hope  I am doing right to post the question here...

I need some help to interface paypal with the shop mod  .Users should be able to buy money from the bank thru paypal at a fixed exchange rate and at the occourrency  sale money back to the bank if they wish.

Would be that difficult to do? I have no ideas at all, can someone help me or just drive me in the right direction?

Thank you

Title: Re: SMFShop - Shop MOD
Post by: TheChicken on July 07, 2005, 02:13:51 PM
Hey I tryed to put smf shop but when i installed it i got
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: SMFShop - Shop MOD
Post by: stargazer_1017 on July 07, 2005, 03:02:06 PM
Quote from: Nbtk on July 07, 2005, 02:13:51 PM
Hey I tryed to put smf shop but when i installed it i got
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Actually, this is an error that sometimes happened. It was discussed within the. . .err. . .29 pages of posts, but I understand it's hard to go through all of it to find the answer :)

Your forum's directory's permission was changed to 777 from the installation. Just change it back to what it was previously, and it should work all right. I have mine at 755.

-Shayna
Title: Re: SMFShop - Shop MOD
Post by: TheChicken on July 07, 2005, 03:26:08 PM
Ok thanks ill try that
Worked thanks alot
Title: Re: SMFShop - Shop MOD
Post by: nattydread on July 07, 2005, 03:36:26 PM
Any suggestion/help?
Title: Re: SMFShop - Shop MOD
Post by: Zackman on July 07, 2005, 07:51:34 PM
Uhhh... I instaled it and it said it was installed (At the top of the forum a little message came up) But there seems to be no change in my forum, Any idea what is up?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on July 08, 2005, 02:40:59 AM
ATTENTION EVERYONE
Today and tommorow I will be working on a new version of SMFShop. Currently, my 'to do' list is as follows:

*Fixed language file
*Loans from the bank? Maybe.
*Fix the 'Email an Admin' item (some fields still hard coded)
*Remove download item from inventory after use
*Change username item should have option to change display name instead

Any other things to add?

!!IMPORTANT!!
If you are using SMFShop then you should DEFINATELY download the new Shop.english.php file
http://member.telpacific.com.au/daniel15/smfmods/Shop.english.php.txt
It fixes a number of errors in the language file, including the shop_withdraw errors!

Now, to answer people's questions:
Quote
...Users should be able to buy money from the bank thru paypal at a fixed exchange rate and at the occourrency  sale money back to the bank if they wish.
I might implement this... Thanks to the PayPal IPN, this would be easy to do. But what's a good exchange rate? I don't know

Quote
Uhhh... I instaled it and it said it was installed (At the top of the forum a little message came up) But there seems to be no change in my forum, Any idea what is up?
Have you tried clicking on the 'Shop' link at the top of your forum? If you are using a custom template (skin, whatever you want to call it), you will need to add a link somewhere to point to http://yoursitename.tld/forum/index.php?action=shop (replacing yoursitename.tld with the name of your site and /forum/ with the forum path)
Title: Re: SMFShop - Shop MOD
Post by: nattydread on July 08, 2005, 03:05:12 AM
 :D
Quote...Users should be able to buy money from the bank thru paypal at a fixed exchange rate and at the occourrency  sale money back to the bank if they wish.
I might implement this... Thanks to the PayPal IPN, this would be easy to do. But what's a good exchange rate? I don't know

The best exchange rate is that one could freely estabilish IMHO , since it depend of the use of the board, from the target, too many factors, but this is the only way to play it real, if a real countervalue is not being estabilished the system is not a bank system but merely a little advanced scoring system

but, i wonder does it would be more complicated, I dunno , once you have implemented the script then would be no hard for the admin to access the part where the rate exchange is set .

Please Do not forget the feedbacks.... this is the complementary part for the bank system that is much important, just imagine ebay without the feedback...no way to know who to trust!

I can't wait to see what will sort off but, man, if you succed you're great!
Title: Re: SMFShop - Shop MOD
Post by: azuregenesis on July 08, 2005, 09:54:35 AM
yay! a couple of the things i needed are in the updates for he next version!! :)

thanks daniel!!

*sits patiently*
Title: Re: SMFShop - Shop MOD
Post by: Zackman on July 08, 2005, 01:20:33 PM
There is no link at the top of the forum
Title: Re: SMFShop - Shop MOD
Post by: atambo on July 08, 2005, 01:34:56 PM
nice to see someone is finally going to update this I just hope it gets updated to 1.1 beta 3
Title: Re: SMFShop - Shop MOD
Post by: stargazer_1017 on July 08, 2005, 02:51:57 PM
Ooh yay! *squeals in delight*

I'm also hoping you'll add the option to put images in the item name.

-Shayna
Title: Re: SMFShop - Shop MOD
Post by: Charge on July 09, 2005, 12:13:13 AM
Hello, may i know how to install this mod ? and is it match with SMF 1.0.5 ?
Title: Re: SMFShop - Shop MOD
Post by: nattydread on July 09, 2005, 12:36:09 AM
I have installed the 1.05 just a couple day ago.
then I found the installer for the shop and I have installed.It seems works.

no, wait, I got a couple of errors somewhere, a friend who helped me  with this has reported he had to make some changes in some file and add a table that is missed.

Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on July 09, 2005, 05:57:56 AM
SMFShop 1.2 RELEASED! The bugs that were in SMFShop 1.1 are fixed (including the 'Post Modify Bug'), and there are many new features
* You can have images next to the item listing!!!!!!!! (FINALLY!!!!!)
*Fixed email an admin item (delete 'Sources/shop/items/morespace.php' file please)
*Remove 'Download a File' item from inventory after use
*Change Display Name item
*and also some minor changes

It is recommended that everyone using SMFShop upgrade to this version.
http://mods.simplemachines.org/index.php?mod=65
Title: Re: SMFShop - Shop MOD
Post by: DemonicInfluence on July 09, 2005, 06:25:12 AM
I get stuck on the ftp chmod step. It just doesn't let me  get past that. any ideas?
Title: Re: SMFShop - Shop MOD
Post by: DemonicInfluence on July 09, 2005, 06:34:07 AM
I gonna try to manually edit it. :( will tell when i'm done.
Title: Re: SMFShop - Shop MOD
Post by: stargazer_1017 on July 09, 2005, 06:34:50 AM
You mean you changed the chmod to 755 and it still doesn't work?

Ooh, thank you so much Daniel! *gives a huge hug* I'm in the middle of updating my forum, and I can't wait to try this one out!

Edit:I updated the shop, and everything works fine--except for when I try and buy something. Nothing is there. In fact, there's this really weird listing that comes up:

http://img.photobucket.com/albums/v247/stargazer_1017/31ebd87b.jpg

I think it was from when I was trying to put an image in the previous version and I think it screwed up the listing somewhere. Is there someway I can clean this up? The image took when I added it, but now it doesn't even show up in the inventory :(

Edit (again): Sorry about that. I went into phpMyAdmin and got rid of the things that were screwing it up.

Awesome mod, Daniel! I totally love it!

-Shayna
Title: Re: SMFShop - Shop MOD
Post by: Charge on July 09, 2005, 07:59:14 AM
wah ! cool ! new relase let me try lol !
Title: Re: SMFShop - Shop MOD
Post by: Charge on July 09, 2005, 08:21:41 AM
erm, maybe i know why i install the mod into my Black22 tempalates it only appear @ my default theme how  can i change it ?
Title: Re: SMFShop - Shop MOD
Post by: DemonicInfluence on July 09, 2005, 12:45:26 PM
Quote from: stargazer_1017 on July 09, 2005, 06:34:50 AM
You mean you changed the chmod to 755 and it still doesn't work?

Ooh, thank you so much Daniel! *gives a huge hug* I'm in the middle of updating my forum, and I can't wait to try this one out!

Edit:I updated the shop, and everything works fine--except for when I try and buy something. Nothing is there. In fact, there's this really weird listing that comes up:

http://img.photobucket.com/albums/v247/stargazer_1017/31ebd87b.jpg

I think it was from when I was trying to put an image in the previous version and I think it screwed up the listing somewhere. Is there someway I can clean this up? The image took when I added it, but now it doesn't even show up in the inventory :(

Edit (again): Sorry about that. I went into phpMyAdmin and got rid of the things that were screwing it up.

Awesome mod, Daniel! I totally love it!

-Shayna

Yep, but manually did the mod and it worked.

Quote from: Charge on July 09, 2005, 08:21:41 AM
erm, maybe i know why i install the mod into my Black22 tempalates it only appear @ my default theme how  can i change it ?
Did you mod the files (display.template.php and index.template.php) in Black 22 the way they tell you to? also the shop.gif file needs to be put in the images/english folder. Finally, the coding for the index.template.php is a bit messed up...
It should be echo '
                                <a href="', $scripturl, '?action=shop">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/shop.gif" alt="' . $txt['shop'] . '" style="margin: 2px 0;" border="0" />' : $txt['shop']), '</a>', $context['menu_separator'];


The edit bug is still there for the fresh install. In the update pakage, its fine, so ya. Just update the fresh install package cause the bug still is there :(
Title: Re: SMFShop - Shop MOD
Post by: Charge on July 09, 2005, 10:34:06 PM
so, i just copy the display.template.php and index.template.php from default theme and paste it in the Black 22  ??
Title: Re: SMFShop - Shop MOD
Post by: BigBoi on July 10, 2005, 12:43:19 AM
i am confused, i installed the Shop mod on SMF 1.0.5 , but the money and stuff does not show up and how am i  suppose to make the shop button appear
Title: Re: SMFShop - Shop MOD
Post by: BigBoi on July 10, 2005, 01:51:51 AM
i installed it and now it works but how to i get the shop thing to work with SMF Aqua Theme how do i add the button and make it display the credits under the Authors name
Title: Re: SMFShop - Shop MOD
Post by: Charge on July 10, 2005, 03:27:03 AM
hmm, i'm also waiting for the ans.. but to what i know the button only appear at the default theme.. which is the SMF Default
Title: Re: SMFShop - Shop MOD
Post by: DemonicInfluence on July 10, 2005, 05:03:27 AM
Quote from: Charge on July 09, 2005, 10:34:06 PM
so, i just copy the display.template.php and index.template.php from default theme and paste it in the Black 22  ??
ya. Also move the shop.gif file to the Black22 images/english folder.

Quote from: HypoRol on July 10, 2005, 01:51:51 AM
i installed it and now it works but how to i get the shop thing to work with SMF Aqua Theme how do i add the button and make it display the credits under the Authors name
Open the package- package manager- show files- install.xml or something like that.
Go to display.template.php. Open the display.template.php for the aqua theme and edit it according to the install.xml.

Quote from: HypoRol on July 10, 2005, 12:43:19 AM
i am confused, i installed the Shop mod on SMF 1.0.5 , but the money and stuff does not show up and how am i  suppose to make the shop button appear
For default theme? its already there. for another theme, get a copy of the shop.gif into the images/english folder.
Title: Re: SMFShop - Shop MOD
Post by: Charge on July 10, 2005, 07:20:35 AM
thank, by the way do you know how to uninstall the MOD ? just in case if there's something wrong.
Title: Re: SMFShop - Shop MOD
Post by: azuregenesis on July 10, 2005, 02:30:58 PM
there seems to be a price cap on the items..

i can't go over 100000 credits.

is there a way to fix this? i don't want t a cap, or at least i can set the cap to a million or something. :)

thanks!
Title: Re: SMFShop - Shop MOD
Post by: DemonicInfluence on July 10, 2005, 03:56:40 PM
Quote from: Charge on July 10, 2005, 07:20:35 AM
thank, by the way do you know how to uninstall the MOD ? just in case if there's something wrong.

You have to manually do it...

Quote from: azuregenesis on July 10, 2005, 02:30:58 PM
there seems to be a price cap on the items..

i can't go over 100000 credits.

is there a way to fix this? i don't want t a cap, or at least i can set the cap to a million or something. :)

thanks!
Why would u need that much? Also, how the heck would you get 1 million. that's rather pointless...
Title: Re: SMFShop - Shop MOD
Post by: azuregenesis on July 10, 2005, 04:12:27 PM
Quote from: Libo on July 10, 2005, 03:56:40 PM

Why would u need that much? Also, how the heck would you get 1 million. that's rather pointless...

i just want the cap to be higher and on my boards an over 100K gil account isn't rare.
Title: Re: SMFShop - Shop MOD
Post by: DemonicInfluence on July 10, 2005, 09:08:56 PM
oh, then ask daniel
Title: Re: SMFShop - Shop MOD
Post by: stargazer_1017 on July 11, 2005, 12:24:46 AM
I have two questions:

1. Can the updated SMFShop be installed on a 1.0.3 forum? I'm not going to be upgrading to 1.0.5. anytime soon.

2. For the images, is there anyway to make it larger than 32 x 32 (like maybe 50 x 50)?

-Shayna
Title: Re: SMFShop - Shop MOD
Post by: Metal_GunBlade on July 11, 2005, 07:01:54 AM
guys when will the SMF 1.1 Beta 3 Public version be released???
Title: Re: SMFShop - Shop MOD
Post by: [Dark.Shadow] on July 11, 2005, 03:11:41 PM
Quote from: Metal_GunBlade on July 11, 2005, 07:01:54 AM
guys when will the SMF 1.1 Beta 3 Public version be released???

it´s been about a month that it had been released..... :P
Title: Re: SMFShop - Shop MOD
Post by: BigBoi on July 11, 2005, 05:16:37 PM
hey is there a way go give points for making polls, and pple looking at ur topics
Title: Re: SMFShop - Shop MOD
Post by: DemonicInfluence on July 11, 2005, 06:54:15 PM
Quote from: stargazer_1017 on July 11, 2005, 12:24:46 AM
I have two questions:

1. Can the updated SMFShop be installed on a 1.0.3 forum? I'm not going to be upgrading to 1.0.5. anytime soon.

2. For the images, is there anyway to make it larger than 32 x 32 (like maybe 50 x 50)?

-Shayna

#1 yes
#2 if you change the shop.template.php file.
Title: Re: SMFShop - Shop MOD
Post by: stargazer_1017 on July 11, 2005, 10:36:31 PM
Ooh, cool Libo--thanks :)

-Shayna
Title: Re: SMFShop - Shop MOD
Post by: Metal_GunBlade on July 12, 2005, 04:33:08 AM
no, I'm talking about the shop mod... when will it support SMF 1.1 Beta 3 Public???
Title: Re: SMFShop - Shop MOD
Post by: Zeeblo on July 12, 2005, 10:46:31 AM
Well... I am also offering someone a domain registration with hosting if you look in the Help Wanted forum as i am completely dazzled as to how to install this mod...

If you can install SMF Shop, please have a look at my thread in Help Wanted.

Thanks..
Title: Re: SMFShop - Shop MOD
Post by: BigBoi on July 13, 2005, 03:29:03 PM
i there a way to give everybody a certain amount of money without going in admin and putting users name and giving the money...
and can i change that if u fail to steal money that ur karma does not go down by -10 (can i make it so they loose money not karma)
and is there a way to take money out of  members bank as a admin

please help i need  it
Title: Re: SMFShop - Shop MOD
Post by: BigBoi on July 13, 2005, 07:13:05 PM
anybody know how to do that
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on July 14, 2005, 01:30:15 AM
Quote from: Metal_GunBlade on July 12, 2005, 04:33:08 AM
no, I'm talking about the shop mod... when will it support SMF 1.1 Beta 3 Public???

daniel announced a couple of days ago that it works now with 1.1. beta 3...

you should be able to install it from the package manager :)
Title: Re: SMFShop - Shop MOD
Post by: atambo on July 14, 2005, 01:38:11 AM
Quote from: LostProphecy on July 14, 2005, 01:30:15 AM
Quote from: Metal_GunBlade on July 12, 2005, 04:33:08 AM
no, I'm talking about the shop mod... when will it support SMF 1.1 Beta 3 Public???

daniel announced a couple of days ago that it works now with 1.1. beta 3...

you should be able to install it from the package manager :)

if your tanking about this post:

http://www.simplemachines.org/community/index.php?topic=22396.msg300903#msg300903

then nope shop mod still doesn't work with 1.1 beta 3 it was just updated and I totally hope someone can get it working for 1.1 beta 3 lol I've got all my old mods working now except this one  :'(
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on July 14, 2005, 01:39:25 AM
oooh... oops... i probably was... *shrugs* sorry :( can't help you there...
Title: Re: SMFShop - Shop MOD
Post by: diplomat. on July 15, 2005, 08:42:25 AM
In the new release, If you post in a no post count forum it still raises your credits. Anyway to fix this in the 1.2 build?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on July 15, 2005, 10:22:29 AM
Quote
erm, maybe i know why i install the mod into my Black22 tempalates it only appear @ my default theme how  can i change it ?
Open install.xml and do the edits for the Display.template.php and Index.template.php files

Quote
Can the updated SMFShop be installed on a 1.0.3 forum? I'm not going to be upgrading to 1.0.5. anytime soon.
Sure, any version from 1.0RC2 and up is supported.

Quote
For the images, is there anyway to make it larger than 32 x 32 (like maybe 50 x 50)?
Go into the admin panel for the shop. There is a setting for the image size.

Quote
...there seems to be a price cap on the items......i can't go over 100000 credits...
Sounds like a database field limitation. Open phpMyAdmin, go into the SMF database and click on the shop_items table. Edit the 'price' field to hold larger values (default is 6 numbers before decimal point [.] and 2 after, so you can go up to 999999.99)

Quote
In the new release, If you post in a no post count forum it still raises your credits. Anyway to fix this in the 1.2 build?
Not yet...

Quote
i there a way to give everybody a certain amount of money without going in admin and putting users name and giving the money...
Give yourself heaps, and then click 'Send money to Someone' in the shop.

Quote
guys when will the SMF 1.1 Beta 3 Public version be released???
As it's a beta, i'm currently not changing SMFShop for SMF 1.1 Beta 3 (although I might if there is enough demand). Beta software tends to change a lot and therefore code breaks easily. Once SMF 1.1 hits a Release Candidate (RC) I will definately update SMFShop.

Anything I missed? Feel free to ask!
Title: Re: SMFShop - Shop MOD
Post by: diplomat. on July 15, 2005, 02:24:40 PM
Ok cool. One more thing I'm having problems with..

When I go to General Settings and try to edit the settings, when I click Save Changes it appears saved, but when I come back to the Settings page, everything is reset:

Currency Suffix: Nothing
Per new topic: 0
Per new post:  0
Bank Enabled: No

and now it wont change no matter how many times I try to edit it
Title: Re: SMFShop - Shop MOD
Post by: azuregenesis on July 15, 2005, 04:40:01 PM
hi daniel! thanks for the reply. and i also wanted to let you know that the download file itm works perfectly now. :)

i also wanted to know, in regards to the "giving users money" thing. is there a way to give  a set amount of money to a membergroup instead of doing it on a member by member basis?

i'm running a forum game right now and the winners get a set amount of money. however, there are at least 20+ ppl on a team.

thanks in advance! :)
Title: Re: SMFShop - Shop MOD
Post by: AlexHobbs on July 16, 2005, 08:39:39 AM
Everytime i run installScript.php i get the following:
Quote
Database Error
Incorrect table name ''
File: /home2/wide/public_html/forum/installScript.php
Line: 24

and when i try to read a post on the forum i now get
Quote
Database Error
Unknown column 'money' in 'field list'
File: /home2/wide/public_html/forum/Sources/Load.php(1484) : eval()'d code
Line: 348 

Any ideas?
Title: Re: SMFShop - Shop MOD
Post by: Metal_GunBlade on July 16, 2005, 10:02:22 AM
Guys I'm getting the following:

68. Execute Modification ./index.php Test successful
69. Execute Modification ./Sources/Post.php Test failed
70. Execute Modification ./Sources/Subs.php Test successful
71. Execute Modification ./Themes/default/Display.template.php Test successful
72. Execute Modification ./Themes/default/index.template.php Test successful
73. Execute Code installScript.php

I have SMF 1.1 Beta 3 Public...
Any help???
Title: Re: SMFShop - Shop MOD
Post by: AlexHobbs on July 16, 2005, 10:12:17 AM
i got that then none of my posts worked :l
Title: Re: SMFShop - Shop MOD
Post by: diplomat. on July 16, 2005, 01:00:50 PM
Quote from: Metal_GunBlade on July 16, 2005, 10:02:22 AM
Guys I'm getting the following:

68. Execute Modification ./index.php Test successful
69. Execute Modification ./Sources/Post.php Test failed
70. Execute Modification ./Sources/Subs.php Test successful
71. Execute Modification ./Themes/default/Display.template.php Test successful
72. Execute Modification ./Themes/default/index.template.php Test successful
73. Execute Code installScript.php

I have SMF 1.1 Beta 3 Public...
Any help???

Im not sure that this mod is not 1.1b3 compatible
Title: Re: SMFShop - Shop MOD
Post by: AlexHobbs on July 17, 2005, 06:20:55 AM
how do i get my posts back to readable?
Title: Re: SMFShop - Shop MOD
Post by: Smoothie on July 17, 2005, 10:52:41 AM
Looking forward to seeing a 1.1b3 compatible version of the mod, keep up the good work.
Title: Re: SMFShop - Shop MOD
Post by: littleone on July 17, 2005, 03:47:44 PM
Any Idea what this means?

Duplicate column name 'money'
File: /home/xxxxxxxx/public_html/siteforum/Packages/temp/installScript.php
Line: 36

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.5, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.
Title: Re: SMFShop - Shop MOD
Post by: diplomat. on July 18, 2005, 12:42:57 AM
Quote from: littleone on July 17, 2005, 03:47:44 PM
Any Idea what this means?

Duplicate column name 'money'
File: /home/xxxxxxxx/public_html/siteforum/Packages/temp/installScript.php
Line: 36

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.5, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.

It means that the column 'money' in smf_members already exists. It needs to be deleted.


I just found something out...when I try to send someone money with the characters < or > in their name, it doesnt send :-\
Title: Re: SMFShop - Shop MOD
Post by: Ndien on July 18, 2005, 12:02:56 PM
With this update i still get the undefined index error but not as often
Title: Re: SMFShop - Shop MOD
Post by: littleone on July 20, 2005, 07:37:26 AM
Table 'pogoaddi_smf1.smf_shop_items' doesn't exist
File: /home/xxxxxxxx/public_html/xxxxxxxxxxxxxxxxxx/Sources/shop/ShopAdmin.php
Line: 207

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.5, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.

Here is what is at line 206, 207 and 208
//        echo $sql;
        $result = db_query($sql, __FILE__, __LINE__);
        $context['shop_items_id'] = db_insert_id();
Title: Re: SMFShop - Shop MOD
Post by: russ on July 20, 2005, 02:42:16 PM
get the following error when trying to add a new rock

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '
,
'',

File: /homepages/29/d88864903/htdocs/smf/Sources/shop/ShopAdmin.php
Line: 207

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.5, whereas your database is at version SMF 1.0. It is recommended that you execute the latest version of upgrade.php.


if it cant be solved. anyway to add an item manually thru phpmyadmin?
Title: Re: SMFShop - Shop MOD
Post by: diplomat. on July 20, 2005, 10:39:07 PM
I having some problems. It seems, only in Firefox, that when i buy an item, it automatically buys two of them, but on my test forum, it doesnt do that (in firefox also). its not installed twice, ive checked. what could be wrong?
Title: Re: SMFShop - Shop MOD
Post by: scrawl on July 21, 2005, 05:56:35 AM
i'm stumped i cannot get this to work i have been through this thread and looked for install hints/instructions but nothing has helped i tried copying the display.template thing and index.template files over the the theme that's used but that didn't work. can anyone help me i'm installing on smf 1.5.

cheers in advance

^ignore that i ended up just going through the code and moving the shop code over to the theme i'm using and doing up a different shop button. cheers for the plugin it's just what i was looking for.

pce

scrawl
Title: Re: SMFShop - Shop MOD
Post by: Bogie on July 25, 2005, 02:42:25 AM
I'm trying to install the shopmod and it gets to this line and stops:

73.     Execute Code     installScript.php

Unlike the lines above there is no "success" next to it so I assume this is where it's having trouble.

I get this below it:

FTP Information Required
Some of the files this package needs to modify are not writable. This needs to be changed by logging into FTP and chmoding the files.

I enter my information and it does nothing, just returns to the same page.  Can I manually chmod these files, if so which ones do I need to chmod.
Title: Re: SMFShop - Shop MOD
Post by: scrawl on July 25, 2005, 08:08:06 AM
Quote from: Bogie on July 25, 2005, 02:42:25 AM
I'm trying to install the shopmod and it gets to this line and stops:

73.     Execute Code     installScript.php

Unlike the lines above there is no "success" next to it so I assume this is where it's having trouble.

I get this below it:

FTP Information Required
Some of the files this package needs to modify are not writable. This needs to be changed by logging into FTP and chmoding the files.

I enter my information and it does nothing, just returns to the same page.  Can I manually chmod these files, if so which ones do I need to chmod.

i had that same problem you need to log into your host (where your forum is stored) and in the main section you should find the file install.php i'm not sure how your server works but i just click on the name of the file then a link is shown on the right i clicked on that it ran the file and everything was set up. hope that helps i'm only new to this so yeh......
Title: Re: SMFShop - Shop MOD
Post by: azuregenesis on July 25, 2005, 08:41:27 AM
Quote from: Bogie on July 25, 2005, 02:42:25 AM
I'm trying to install the shopmod and it gets to this line and stops:

73.     Execute Code     installScript.php

Unlike the lines above there is no "success" next to it so I assume this is where it's having trouble.

I get this below it:

FTP Information Required
Some of the files this package needs to modify are not writable. This needs to be changed by logging into FTP and chmoding the files.

I enter my information and it does nothing, just returns to the same page.  Can I manually chmod these files, if so which ones do I need to chmod.

it's not supposed to have success next to it.

and after you enter your info, does that part diappear and you're able to proceed?
Title: Re: SMFShop - Shop MOD
Post by: Bogie on July 25, 2005, 10:29:25 AM
Quote from: azuregenesis on July 25, 2005, 08:41:27 AM
Quote from: Bogie on July 25, 2005, 02:42:25 AM
I'm trying to install the shopmod and it gets to this line and stops:

73.     Execute Code     installScript.php

Unlike the lines above there is no "success" next to it so I assume this is where it's having trouble.

I get this below it:

FTP Information Required
Some of the files this package needs to modify are not writable. This needs to be changed by logging into FTP and chmoding the files.

I enter my information and it does nothing, just returns to the same page.  Can I manually chmod these files, if so which ones do I need to chmod.

it's not supposed to have success next to it.

and after you enter your info, does that part diappear and you're able to proceed?

nope, it keeps coming back.
Title: Re: SMFShop - Shop MOD
Post by: azuregenesis on July 25, 2005, 10:31:56 AM
Quote from: Bogie on July 25, 2005, 10:29:25 AM
Quote from: azuregenesis on July 25, 2005, 08:41:27 AM
Quote from: Bogie on July 25, 2005, 02:42:25 AM
I'm trying to install the shopmod and it gets to this line and stops:

73.     Execute Code     installScript.php

Unlike the lines above there is no "success" next to it so I assume this is where it's having trouble.

I get this below it:

FTP Information Required
Some of the files this package needs to modify are not writable. This needs to be changed by logging into FTP and chmoding the files.

I enter my information and it does nothing, just returns to the same page.  Can I manually chmod these files, if so which ones do I need to chmod.

it's not supposed to have success next to it.

and after you enter your info, does that part diappear and you're able to proceed?

nope, it keeps coming back.

ah. then chmod the folder it need to do the changes in (to 777)
Title: Re: SMFShop - Shop MOD
Post by: Humbe on July 25, 2005, 03:04:06 PM
Can somebody tell me how can i install the shop files ??
Title: Re: SMFShop - Shop MOD
Post by: Humbe on July 25, 2005, 03:32:53 PM
Please Step By Step
Title: Re: SMFShop - Shop MOD
Post by: AlexHobbs on July 26, 2005, 09:04:21 AM
1) Go to your ftp and click the folder that the forum is situated under.
2) Click Sources
3) When in sources make a folder called 'shop' (yoururl.com/forum/Sources/shop/
4) In the shop folder make a folder called items and a folder called item_images
5) Upload all the items into the items folder and all the items images into the item_images folder
6) Upload all the files in 'sourcefiles' to the main shop folder (/shop) don't make a folder called sources.
7) Go to your theme directory and then default and upload the template.php files
8) After doing that go to images/english and upload shop.gif
9) go back to where your main index.php is (/forum) and upload installScript.php
10) If your doing it manually, open install.xml and search and replace what it tells you to etc.
11) Run installScript.php
12) Delete installScript.php
13) Your shop is finished.

Need anymore help pm me or reply here
Title: Re: SMFShop - Shop MOD
Post by: azuregenesis on July 26, 2005, 05:57:08 PM
i need help. how do i lessen the amnount of queries being done on my boards?

i'm getting over 50+ queries and it slows the site down a bit (i think :P)

if you look at the very bottom of this page, it shows you how many queries were used making this page.
Title: Re: SMFShop - Shop MOD
Post by: Orbit45244 on July 27, 2005, 05:50:39 PM
I found a bug when using SMFShop in SMF version 1.0.5.  When you change the number of points you get for events, it shows the new number you put in, in the Shop CP, but people still get the number of points that comes default with the mod.
Title: Re: SMFShop - Shop MOD
Post by: scrawl on July 27, 2005, 07:46:35 PM
is there any way to make the shop mod not credit accounts for posts in a certain section of the forum? i'm wanting to do this but am not sure how to. any help appreciated.

pce

scrawl
Title: Re: SMFShop - Shop MOD
Post by: Orbit45244 on July 28, 2005, 08:53:55 AM
Quote from: scrawl on July 27, 2005, 07:46:35 PM
is there any way to make the shop mod not credit accounts for posts in a certain section of the forum? i'm wanting to do this but am not sure how to. any help appreciated.

pce

scrawl

Request this for a future version or learn PHP and extend the mod.
Title: Re: SMFShop - Shop MOD
Post by: littleone on July 28, 2005, 11:25:10 AM
It has been reported to me that the bank is not doing the interest.  I have it set a 5% and its not awarding it to anyone.  Any help is appreciated.
Title: Re: SMFShop - Shop MOD
Post by: Kindred on July 28, 2005, 11:31:10 AM
As noted in the install, you have to set up a chron job to run the interest function...
Title: Re: SMFShop - Shop MOD
Post by: littleone on July 28, 2005, 12:52:04 PM
I've finally figure out how to apply mods but I have no Idea what a cron is.  Please explain set by step if possible. lol Thanks!  Appreciate it.
Title: Re: SMFShop - Shop MOD
Post by: Kindred on July 28, 2005, 01:21:24 PM
Chron, as in "time" is a "job" that is sety to be run every X period (once a day, once an hour, etc etc)

You set this in your CPanel. (there should be an option called Chron or Cron)...
Title: Re: SMFShop - Shop MOD
Post by: littleone on July 28, 2005, 01:38:30 PM
It is asking me for a command.  What command do I put in?
Title: Re: SMFShop - Shop MOD
Post by: diplomat. on July 28, 2005, 02:40:00 PM
Quote from: scrawl on July 27, 2005, 07:46:35 PM
is there any way to make the shop mod not credit accounts for posts in a certain section of the forum? i'm wanting to do this but am not sure how to. any help appreciated.

pce

scrawl

i found away to temporarily make that happen:

in Post.php look for

        //BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money + {$modSettings['shopPointsPerTopic']}
                            WHERE ID_MEMBER = {$ID_MEMBER}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD


replace with

if ($GLOBALS['board'] == ##)
{
  echo '';
}
else
{
        //BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money + {$modSettings['shopPointsPerTopic']}
                            WHERE ID_MEMBER = {$ID_MEMBER}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD
}


AND search for

        //BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money + {$modSettings['shopPointsPerPost']}
                            WHERE ID_MEMBER = {$ID_MEMBER}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD


and replace with

if ($GLOBALS['board'] == ##)
{
  echo '';
}
else
{
        //BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money + {$modSettings['shopPointsPerPost']}
                            WHERE ID_MEMBER = {$ID_MEMBER}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD
}


Where if ($GLOBALS['board'] == ##) is the boardID of the board you which to NOT increase money. Just replace the ## in them both. To add more boards, put
|| $GLOBALS['board'] == ##
after the first board, etc.

ex
if ($GLOBALS['board'] == ## || $GLOBALS['board'] == ##)

Worked for me
Title: Re: SMFShop - Shop MOD
Post by: Fiery on July 29, 2005, 01:33:51 AM
Hey,  I deleted the mod because im not really sure what I would use it for (what do you use it for)

Anyways I got everything deleted manually except in posts right under gender View Inventory still appears... What file do i need to modify to fix that?

THANKS
Title: Re: SMFShop - Shop MOD
Post by: Humbe on July 29, 2005, 03:58:10 AM
i followed all the steps and when i opened the file InstallScript.php this appeared

Database Error

Please try again. If you come back to this error screen, report the error to an administrator.
Title: Re: SMFShop - Shop MOD
Post by: Humbe on July 29, 2005, 04:32:12 AM
i already installed it but it doesnt show up
Title: Re: SMFShop - Shop MOD
Post by: Humbe on July 29, 2005, 12:26:47 PM
guys please can somebody install me the shop i cant i dont know why please
Title: Re: SMFShop - Shop MOD
Post by: Trekkie101 on July 30, 2005, 08:17:15 AM
All the tests pass apart from the two to Post.php, I believe what its looking for must still be there, they are pretty big functions, any chance of a quick glance, I think thats all thats needed for 1.1B3 compatability?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on July 31, 2005, 12:17:04 AM
Quote
All the tests pass apart from the two to Post.php, I believe what its looking for must still be there, they are pretty big functions, any chance of a quick glance, I think thats all thats needed for 1.1B3 compatability?

Sorry, not yet. Beta versions tend to change a lot before the final release, whereas once it's in the Release Candidate stage, i'll update SMFShop to support it.
-----
Quote
I found a bug when using SMFShop in SMF version 1.0.5.  When you change the number of points you get for events, it shows the new number you put in, in the Shop CP, but people still get the number of points that comes default with the mod.
This shouldn't happen, because Post.php and the admin panel both get the value from the same place. Try making a few more posts, and see if it still happens.
-----
Quote
It is asking me for a [cron] command.  What command do I put in?
On most hosts, this will be something like

/usr/bin/php -q /home/[username]/public_html/[forum]/Sources/shop/dointerest.php > /home/[username]/public_html/[forum]/interest_log.htm

Set this command to run every day at 12:00AM
-----
Quote
is there any way to make the shop mod not credit accounts for posts in a certain section of the forum? i'm wanting to do this but am not sure how to. any help appreciated.
Sorry, but this is not in-built yet. You could follow Diplömat's instructions (Reply 506 on Page 24) if you really wanted to.
-----
Quote
...Anyways I got everything deleted manually except in posts right under gender View Inventory still appears... What file do i need to modify to fix that?
The file you need to modify is Display.template.php. This is located in Themes/[themename]/Display.template.php
-----
Quote
i already installed it but it doesnt show up
Are you sure you installed it properly? Does it appear in the admin panel? Do you get points when you post? Please be more specific.

Any more questions, please feel free to ask!
Title: Re: SMFShop - Shop MOD
Post by: Fiery on July 31, 2005, 01:30:20 AM
Is there a list of stuff the mod can be used for.  I was sort of confused.. does the hamburger actually do anything?

Thanks
Title: Re: SMFShop - Shop MOD
Post by: azuregenesis on July 31, 2005, 07:58:36 AM
i had a couple of questions earlier in the pages daniel :)

like how to remove the price cap in the shop (it's capped at 100K)

and how to lower the number of queries made by the boards after this shopMOD was installed.
Title: Re: SMFShop - Shop MOD
Post by: greyknight17 on August 01, 2005, 12:41:03 PM
Quote from: pmp6nl on July 31, 2005, 01:30:20 AM
Is there a list of stuff the mod can be used for.  I was sort of confused.. does the hamburger actually do anything?

Thanks
Didn't know what you were talking about until I played around with it a little.  You meant the image?  It's just for show.  You can choose, say the hamburger, for increase 100 post count.  Then when you go to the shop, next to that 100 post count entry, you will see the hamburger picture.  At least that's what I think it's for.  Just for show?

I have a question.  If we wanted to add our own items, how do we do it?  I mean, do we need to create our own scripts to make it work?  For example, let's say I wanted to make a post so that the user can upload attachments in the forum.  How would I do this?

Also for these items (like Change your User Title), do we have to make sure they are enabled (maybe disabled) first?
Title: Re: SMFShop - Shop MOD
Post by: littleone on August 02, 2005, 01:42:04 PM
I have a question:

It keeps coming up in my errors page, that the shop and arcade have "undefined index" errors on like the boardindex, template.index, and so forth.  Any suggestions?
Title: Re: SMFShop - Shop MOD
Post by: Humbe on August 02, 2005, 02:04:58 PM
daniel can you install me the shop in my forum please ?
Title: Re: SMFShop - Shop MOD
Post by: mennou on August 04, 2005, 09:25:57 PM
i need help  with my buy   
everytime i click on buy i got this  message

Table 'mixspot_smf3.smf_shop_inventory' doesn't exist
File: /usr/home/mixspot/public_html/forum2/Sources/shop/Shop.php
Line: 208    how can i fix that??
Title: Re: SMFShop - Shop MOD
Post by: INIC on August 04, 2005, 10:15:45 PM
Is this an online store/shop mod where we can add and sell a product/s? The only info given about what is is/does is that is is "similar to IBStore" - Cool - what is IBStore?  And Pahlease, before suggesting I look up what an IBStore is, the SMFShop mod says "similar to".  Anyway, way things are going this week, if I find a IBStore description, it probably says it's similar to SMF Shop Mod. :)

Also, I installed the Mod to see if it is what I'm looking for and according the the instructions, once installed, and it did successfully, I should just click on the "Shop" button at the top of the Forum - but there isn't any - any where.

So, knowing what it is will help me decide if I should continue trying to make it work - or not.

Thanks MUCH
Title: Re: SMFShop - Shop MOD REMOVING It
Post by: INIC on August 05, 2005, 12:27:57 AM
OK so it's not a online store/shop. I tried to UNinstall it and get a error message saying it has no uninstaller - to contact the Author (who I see is on holdays) Any tips on getting this off the site - space being a premium right now?

TIA
Title: Re: SMFShop - Shop MOD
Post by: tentronik on August 05, 2005, 12:33:32 AM
As far as i encountered this issue (version incompatibility issue), the shop installer creates a theme folder somewhere in the root of the ftp server along with at least 1 database table and adding settings to the mos_settings table.
Also there is as always the shop.zip inside the package folder and try to uninstall it after you made a backup of your database.

To get a full list of the scripts which got modified read the install.xml inside the shop.zip or try reading them before uninstalling with the package manager..

Cheers
Title: Re: SMFShop - Shop MOD
Post by: azuregenesis on August 05, 2005, 06:37:57 AM
^^ for removal instructions check the FAQ for shopmod (first post)

sorry, daniel. i'm removing this mod from my boards since it's not fully supported anymore and my members have styooped using the shop.

take care and good luck with your other projects ;)
Title: Re: SMFShop - Shop MOD
Post by: mennou on August 05, 2005, 10:37:13 AM
i need help  with my buy   
everytime i click on buy i got this  message

Table 'mixspot_smf3.smf_shop_inventory' doesn't exist
File: /usr/home/mixspot/public_html/forum2/Sources/shop/Shop.php
Line: 208    how can i fix that??
Title: Re: SMFShop - Shop MOD
Post by: INIC on August 05, 2005, 11:25:18 AM
Quote from: azuregenesis on August 05, 2005, 06:37:57 AM
^^ for removal instructions check the FAQ for shopmod (first post)

Thanks - I had fun following the map to the first post and from there finding the link to the FAQ.
The instructions are clear, to do what is UNclear so, the quick way, was to UNinstall SMF, databases and all. FTP and Detele cleared up any flack left over.
It's all gone now. Thanks.
Title: Re: SMFShop - Shop MOD
Post by: azuregenesis on August 05, 2005, 11:18:58 PM
Quote from: INIC on August 05, 2005, 11:25:18 AM
Quote from: azuregenesis on August 05, 2005, 06:37:57 AM
^^ for removal instructions check the FAQ for shopmod (first post)

Thanks - I had fun following the map to the first post and from there finding the link to the FAQ.
The instructions are clear, to do what is UNclear so, the quick way, was to UNinstall SMF, databases and all. FTP and Detele cleared up any flack left over.
It's all gone now. Thanks.


1. Anyone have any instructions on how to full uninstall this mod??
Open all the files that SMFShop edits:
/index.php
/Sources/Post.php
/Sources/Subs.php
/Themes/default/Display.template.php
/Themes/default/index.template.php

and remove the marked sections (search for 'Shop' if you can't find them)


unclear? ??? i don't see what you mean
Title: Re: SMFShop - Shop MOD
Post by: INIC on August 06, 2005, 12:18:40 AM
Quote from: azuregenesis on August 05, 2005, 11:18:58 PM
unclear? ??? i don't see what you mean
Thanks, but I guess I didnt make my self clear. I read the FAQ, as I stated, so there was no need to quote back the FAQ. I thought I was clear - to UNinstall SMF, the MySql databases and any folders in the root pertaining to SMF will definately get rid of Shop without the possibility of missing something and wondering down the road why a certain glitch burps now and then. The FAQ doesn't mention if there is an affect on the databases that needs cleaning up, nor mention deleting any folders and their contents. Soooo - it's not very clear.
Any way - I got rid of everything my way. 

Thanks anyhow.


Title: Re: SMFShop - Shop MOD
Post by: Gerico on August 10, 2005, 12:11:50 AM
Could someone possibly help me with this? I don't really know what to do and how to install the shop.
If you know, please message me.
Title: Re: SMFShop - Shop MOD
Post by: AlexHobbs on August 10, 2005, 09:16:20 AM
Either use the Package Manager or do it manually, sometimes package manager dosent work
Title: Re: SMFShop - Shop MOD
Post by: scrawl on August 12, 2005, 02:20:31 AM
how do i go about creating a new item. i want to supply actual items like shirts etc so i figure the user makes the purchase and a email is sent to admin confirming the purchase and includes details like price paid and purchasers delivery addres. i've looked around but can't figure out how to do it. thanks in advance.


^^ignore that^^ basically what i've done is modded the emailadmin item for the item i want in the shop my problem though is when it gets to the user input part i want them to type in their username and that to be sent to the admin email account in the body of the email which is apparently what it should do with the $post code but it doesn't heres the code

function getAddInput() {
        return 'Your email address: <input type="text" name="info1" size="50"><br>
                Subject of message: <input type="text" name="info2" size="50"><br>
                Additional fields needed:<br>
                    <textarea name="info3" rows="6" cols="40">
Your Username: <input type="text" name="username">
                    </textarea><br>

                Message to send:<br>
                    <textarea name="info4" rows="10" cols="80">
100MB Extra webspace has been bought from the Forum Shop by user {$_POST["username"]}. Please add it to his/her account
  --Shop Mailer
                    </textarea><br>
<b>NOTE:</b> The additional fields will be filled in by the user when they use the item.
To use one of your additional fields in either the message or subject, use the {$_POST["varname"]}
format, where "varname" is the name of the field (see the above dummy data for an example)';
    }
    function getUseInput() {
        global $item_info;
        //the 'additional fields needed' entered during item setup
        return $item_info[3];
    }

    function onUse() {
        global $item_info;
        $to = $item_info[1];
        $subject = $item_info[2];
        $message = $item_info[4];
        mail($to, $subject, $message) or die("Error sending message to admin! Please inform the Admin of this error. This item will still be available in your inventory.");

        return "Message sent to admin!";
    }
}


?>


and heres what arrives in the email

100MB Extra webspace has been bought from the Forum Shop by user
{$_POST["username"]}. Please add it to his/her account
  --Shop Mailer


so obviously the $_POST thing doesn't work can you help me fix this?

thanks
scrawl
Title: Re: SMFShop - Shop MOD
Post by: desibhupi on August 12, 2005, 05:29:10 AM
I want to add an item in SMF Shop, by which my users can purchase graphics and/or other things with the points they have in their respective acounts. I tried to do that by selecting 'add items' in shop administration. But it show a list of items to choose from. No items suits to my requirement. Please suggest what to do......   ??? ??? ???
Title: Re: SMFShop - Shop MOD
Post by: ViV on August 14, 2005, 07:16:55 AM
wat do u mean by creating a cron job for bank interest.... how I am supposed to create it and set it for a specific time.
Title: Re: SMFShop - Shop MOD
Post by: ryansdistricyt on August 14, 2005, 10:43:35 AM
hello
i inslalled the shop and adpplied the mod but icant see any changes to my boards
can u help me plz
the message i got when i applied mod  is
QuoteApply Mod
Please remember to always make regular backups of your sources and database before installing mods, especially beta versions. 

Installation Readme

Please read this WHOLE readme before starting installation!

This MOD will add a Forum Shop to your Forum (similar to IBStore for Invision Board).

This is the FRESH INSTALL package. If you've installed SMFShop 1.1, please download the SMFShop 1.1 to 1.2 update package instead!

Changes in 1.2:
* Images next to the item names!!! Finally!!!!!
* Email an Admin item fixed (message can be changed now! PLEASE delete ALL your current 'Email an Admin' items OUT of your shop and then re-add them!)
* Random Money item fixed (mt_rand errors)
* Option to remove 'Download a File' item from user's inventory after downloading
* A 'Change Display Name' item
* 'Bank' link dissapearing when on another page FIXED
* And more... (there's ALWAYS more)

To edit any of the text in the shop (for example, if you want to call it 'Store' rather than 'Shop', or 'Money Storage' rather than 'Bank'), open the 'Themes/default/languages/Shop.english.php' file and look around.

!!!!!!!IMPORTANT!!!!!!!!!!! READ BEFORE INSTALLING!!!!!
Please read the following BEFORE you install.

If you get a 'Internal Server Error' message while installing (this happens rarely, but does happen), do the following:
1. Proceed with installation until "Internal Server Error" page appears. LEAVE THIS PAGE AS IS.
2. FTP into your account. Look for the folder which has been chmodded to 777. This is typically the root folder of your forum. (eg. /public_html/forums)
3. CHMOD the directory back to 755.
4. Refresh the "Internal Server Error" page. You may need to : a) IE - hold CTRL and press Refresh; b) Firefox - hold SHIFT and press Reload.

<b>!!!!!!!IMPORTANT!!!!!!!!!!!</b>

(c) 2005 <a href="http://www.dansoftaustralia.info/">DanSoft Australia - http://www.dansoftaustralia.info/</a>
Version: 1.2 (Build 5)
Release Date: 9th July 2005



Package Manager - Install Actions
Install Actions for archive SMFShop_1.2_Fresh_Install.zip:
Installing this package will perform the following actions:  Type Action Description
1. Extract File ./Sources/shop/items/AddToPostCount.php 
2. Extract File ./Sources/shop/items/ChangeDisplayName.php 
3. Extract File ./Sources/shop/items/ChangeOtherTitle.php 
4. Extract File ./Sources/shop/items/ChangeUsername.php 
5. Extract File ./Sources/shop/items/ChangeUserTitle.php 
6. Extract File ./Sources/shop/items/EmailAdmin.php 
7. Extract File ./Sources/shop/items/filedownload.php 
8. Extract File ./Sources/shop/items/IncreaseKarma.php 
9. Extract File ./Sources/shop/items/IncreaseTimeLoggedIn.php 
10. Extract File ./Sources/shop/items/RandomMoney.php 
11. Extract File ./Sources/shop/items/Rock.php 
12. Extract File ./Sources/shop/items/Steal.php 
13. Extract File ./Sources/shop/items/testitem.php 
14. Extract File ./Sources/shop/items/testitem2.php 
15. Extract File ./Sources/shop/items/ChangeOtherTitle.php 
16. Extract File ./Sources/shop/items/DecreasePost.php 
17. Extract File ./Sources/shop/item_images/Airplane.gif 
18. Extract File ./Sources/shop/item_images/Bear.gif 
19. Extract File ./Sources/shop/item_images/blank.gif 
20. Extract File ./Sources/shop/item_images/Boardarrow.gif 
21. Extract File ./Sources/shop/item_images/Breadandbutter.gif 
22. Extract File ./Sources/shop/item_images/Claspknife.gif 
23. Extract File ./Sources/shop/item_images/Clip.gif 
24. Extract File ./Sources/shop/item_images/Compactdiscs.gif 
25. Extract File ./Sources/shop/item_images/Controller.gif 
26. Extract File ./Sources/shop/item_images/Darkbeer.gif 
27. Extract File ./Sources/shop/item_images/Dousojin.gif 
28. Extract File ./Sources/shop/item_images/Dutchoven.gif 
29. Extract File ./Sources/shop/item_images/Dxtwoburner.gif 
30. Extract File ./Sources/shop/item_images/Figure.gif 
31. Extract File ./Sources/shop/item_images/Filefolder.gif 
32. Extract File ./Sources/shop/item_images/Fish.gif 
33. Extract File ./Sources/shop/item_images/Fishingtackle.gif 
34. Extract File ./Sources/shop/item_images/Flyingobject.gif 
35. Extract File ./Sources/shop/item_images/Gamepad.gif 
36. Extract File ./Sources/shop/item_images/Hamburger.gif 
37. Extract File ./Sources/shop/item_images/iBook.gif 
38. Extract File ./Sources/shop/item_images/Icecream.gif 
39. Extract File ./Sources/shop/item_images/IronDevil.gif 
40. Extract File ./Sources/shop/item_images/Kettle.gif 
41. Extract File ./Sources/shop/item_images/Lantern.gif 
42. Extract File ./Sources/shop/item_images/Lighterfluid.gif 
43. Extract File ./Sources/shop/item_images/Makecoffee.gif 
44. Extract File ./Sources/shop/item_images/Markers.gif 
45. Extract File ./Sources/shop/item_images/Moneys.gif 
46. Extract File ./Sources/shop/item_images/Peas.gif 
47. Extract File ./Sources/shop/item_images/Percolator.gif 
48. Extract File ./Sources/shop/item_images/Scotchtape.gif 
49. Extract File ./Sources/shop/item_images/Tent.gif 
50. Extract File ./Sources/shop/item_images/Titaniummug.gif 
51. Extract File ./Sources/shop/item_images/Tomatoes.gif 
52. Extract File ./Sources/shop/item_images/Toypiano.gif 
53. Extract File ./Sources/shop/item_images/Train.gif 
54. Extract File ./Sources/shop/item_images/Tree.gif 
55. Extract File ./Sources/shop/item_images/Truck.gif 
56. Extract File ./Sources/shop/item_images/Videocassettes.gif 
57. Extract File ./Sources/shop/item_images/Wheel.gif 
58. Extract File ./Sources/shop/item_images/Woodenpuzzle.gif 
59. Extract File ./Sources/shop/item_images/Woodentoy.gif 
60. Extract File ./Sources/shop/item_engine.php 
61. Extract File ./Sources/shop/ShopAdmin.php 
62. Extract File ./Sources/shop/Shop.php 
63. Extract File ./Sources/shop/dointerest.php 
64. Extract File Themes/default/images/english/shop.gif 
65. Extract File Themes/default/languages/Shop.english.php 
66. Extract File Themes/default/ShopAdmin.template.php 
67. Extract File Themes/default/Shop.template.php 
68. Execute Modification ./index.php Success
69. Execute Modification ./Sources/Post.php Success
70. Execute Modification ./Sources/Subs.php Success
71. Execute Modification ./Themes/default/Display.template.php Success
72. Execute Modification ./Themes/default/index.template.php Success
73. Execute Code installScript.php 

Title: Re: SMFShop - Shop MOD
Post by: tentronik on August 14, 2005, 07:53:31 PM

65. Extract File Themes/default/languages/Shop.english.php
66. Extract File Themes/default/ShopAdmin.template.php
67. Extract File Themes/default/Shop.template.php

This must be copyed in your themes folder.
and
71. Execute Modification ./Themes/default/Display.template.php Success
72. Execute Modification ./Themes/default/index.template.php Success

Are only affecting the default theme - do you using or tested yet if the changes occure in the default theme?
If you use a diffrent theme you might need to do this manual - with modifieng the install xml and changing the default to your themes name and then try and run the script again.
Or open the xml after you extracted the mod file and checked which additions/modifications where done to the default/themes files.
Title: Re: SMFShop - Shop MOD
Post by: ryansdistricyt on August 15, 2005, 04:09:17 AM
i am using defualt theme and am still facing that problem
Title: Re: SMFShop - Shop MOD
Post by: tentronik on August 15, 2005, 07:00:17 PM
Extract the shop_mod and look at the *.xml files which contain the modifications and additions.
Then check if those are present in your theme files as mentioned.
If not try them to add manually.
If yes wait for more help.
Title: Re: SMFShop - Shop MOD
Post by: scrawl on August 15, 2005, 09:53:07 PM
Quote from: scrawl on August 12, 2005, 02:20:31 AM
how do i go about creating a new item. i want to supply actual items like shirts etc so i figure the user makes the purchase and a email is sent to admin confirming the purchase and includes details like price paid and purchasers delivery addres. i've looked around but can't figure out how to do it. thanks in advance.


^^ignore that^^ basically what i've done is modded the emailadmin item for the item i want in the shop my problem though is when it gets to the user input part i want them to type in their username and that to be sent to the admin email account in the body of the email which is apparently what it should do with the $post code but it doesn't heres the code

function getAddInput() {
        return 'Your email address: <input type="text" name="info1" size="50"><br>
                Subject of message: <input type="text" name="info2" size="50"><br>
                Additional fields needed:<br>
                    <textarea name="info3" rows="6" cols="40">
Your Username: <input type="text" name="username">
                    </textarea><br>

                Message to send:<br>
                    <textarea name="info4" rows="10" cols="80">
100MB Extra webspace has been bought from the Forum Shop by user {$_POST["username"]}. Please add it to his/her account
  --Shop Mailer
                    </textarea><br>
<b>NOTE:</b> The additional fields will be filled in by the user when they use the item.
To use one of your additional fields in either the message or subject, use the {$_POST["varname"]}
format, where "varname" is the name of the field (see the above dummy data for an example)';
    }
    function getUseInput() {
        global $item_info;
        //the 'additional fields needed' entered during item setup
        return $item_info[3];
    }

    function onUse() {
        global $item_info;
        $to = $item_info[1];
        $subject = $item_info[2];
        $message = $item_info[4];
        mail($to, $subject, $message) or die("Error sending message to admin! Please inform the Admin of this error. This item will still be available in your inventory.");

        return "Message sent to admin!";
    }
}


?>


and heres what arrives in the email

100MB Extra webspace has been bought from the Forum Shop by user
{$_POST["username"]}. Please add it to his/her account
  --Shop Mailer


so obviously the $_POST thing doesn't work can you help me fix this?

thanks
scrawl
Title: Re: SMFShop - Shop MOD
Post by: ryansdistricyt on August 16, 2005, 04:25:04 AM
ok how to do it maually
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on August 16, 2005, 06:23:09 AM
It sort of works with 1.1 beta 3 Public except for one line that doesn't work

69. Execute Modification ./Sources/Post.php Test failed
Title: Re: SMFShop - Shop MOD
Post by: SmackDaddy on August 16, 2005, 07:25:46 PM
Working with SMF 1.0.5 and SMFShop 1.2 and I have loads of errors in my forum log such as the following:

8: Undefined index: shop
File: /public_html/forum/Themes/default/BoardIndex.template.php (eval?)
Line: 456

There are some like this as well:

8: Undefined index: shop
File: /public_html/forum/Themes/default/languages/Admin.english.php (eval?)
Line: 456

They are all "line 456" but where and how can I fix this?!?!  Thank you in advance.
Title: Re: SMFShop - Shop MOD
Post by: Kajin_Style on August 18, 2005, 06:46:14 PM
Quote from: ViV on August 14, 2005, 07:16:55 AM
wat do u mean by creating a cron job for bank interest.... how I am supposed to create it and set it for a specific time.

Well I'm having the same problem as this guy. I'm trying to figure out how to do a cron job, but I have no idea what that is exactly. So if someone could help us out with this, that would be great.

Hey I was also wondering if it's possible to get a mod for the shop that lets you have multiple shops at once.  Each with there own name, and if possible have it so that you can put a description and even a image to be like the mascot of the shop.

just a thought.
Title: Re: SMFShop - Shop MOD
Post by: scrawl on August 18, 2005, 08:24:29 PM
Quote from: Kajin_Style on August 18, 2005, 06:46:14 PM
Quote from: ViV on August 14, 2005, 07:16:55 AM
wat do u mean by creating a cron job for bank interest.... how I am supposed to create it and set it for a specific time.

Well I'm having the same problem as this guy. I'm trying to figure out how to do a cron job, but I have no idea what that is exactly. So if someone could help us out with this, that would be great.

Hey I was also wondering if it's possible to get a mod for the shop that lets you have multiple shops at once.  Each with there own name, and if possible have it so that you can put a description and even a image to be like the mascot of the shop.

just a thought.

cron = cronological. basically it's job you setup to run at certain times such as once a day. you need to do this from your server control panel there should be a cron option/section somewhere in your control panel all you need to do is point it to your file (dointerest.php) and set the timing of it.
Title: Re: SMFShop - Shop MOD
Post by: scrawl on August 18, 2005, 08:25:51 PM
basically what i've done is modded the emailadmin item for the item i want in the shop my problem though is when it gets to the user input part i want them to type in their username and that to be sent to the admin email account in the body of the email which is apparently what it should do with the $post code but it doesn't heres the code

function getAddInput() {
        return 'Your email address: <input type="text" name="info1" size="50"><br>
                Subject of message: <input type="text" name="info2" size="50"><br>
                Additional fields needed:<br>
                    <textarea name="info3" rows="6" cols="40">
Your Username: <input type="text" name="username">
                    </textarea><br>

                Message to send:<br>
                    <textarea name="info4" rows="10" cols="80">
100MB Extra webspace has been bought from the Forum Shop by user {$_POST["username"]}. Please add it to his/her account
  --Shop Mailer
                    </textarea><br>
<b>NOTE:</b> The additional fields will be filled in by the user when they use the item.
To use one of your additional fields in either the message or subject, use the {$_POST["varname"]}
format, where "varname" is the name of the field (see the above dummy data for an example)';
    }
    function getUseInput() {
        global $item_info;
        //the 'additional fields needed' entered during item setup
        return $item_info[3];
    }

    function onUse() {
        global $item_info;
        $to = $item_info[1];
        $subject = $item_info[2];
        $message = $item_info[4];
        mail($to, $subject, $message) or die("Error sending message to admin! Please inform the Admin of this error. This item will still be available in your inventory.");

        return "Message sent to admin!";
    }
}


?>


and heres what arrives in the email

100MB Extra webspace has been bought from the Forum Shop by user
{$_POST["username"]}. Please add it to his/her account
  --Shop Mailer


so obviously the $_POST thing doesn't work can you help me fix this?

thanks
scrawl
Title: Re: SMFShop - Shop MOD
Post by: -ripper- on August 18, 2005, 10:25:01 PM
Added you to msn so I dont need to spam the forum :P
Title: Re: SMFShop - Shop MOD
Post by: scrawl on August 19, 2005, 03:32:31 AM
please can somebody help me with this, i need it urgently.

this is the standard code of the EmailAdmin.php file and it doesn't work i need to get this working.

<?php
/**********************************************\
| SMFSHOP (Shop MOD for Simple Machines Forum) |
|         (c) 2005 DanSoft Australia           |
|      http://www.dansoftaus.uni.cc/           |
\**********************************************/

//File: EmailAdmin.php
//      Email the admin item

//VERSION: 1.2 (Build 5)
//DATE: 9th July 2005

class item_EmailAdmin extends itemTemplate {

    function 
getItemDetails() {
        
$this->name "Send Email to Admin v2";
        
$this->desc "Send off an email to the admin. A good use for this (for a web host) is an 'Add 100MB of Webspace to your hosting account'";
        
$this->price 10;
    }

    function 
getAddInput() {
        return 
'Your email address: <input type="text" name="info1" size="50"><br>
                Subject of message: <input type="text" name="info2" size="50"><br>
                Additional fields needed:<br>
                    <textarea name="info3" rows="6" cols="40">
Web Hosting Username: <input type="text" name="host_user">
                    </textarea><br>

                Message to send:<br>
                    <textarea name="info4" rows="10" cols="80">
100MB Extra webspace has been bought from the Forum Shop by user {$_POST["host_user"]}. Please add it to his/her account
  --Shop Mailer
                    </textarea><br>

<b>NOTE:</b> The additional fields will be filled in by the user when they use the item.
To use one of your additional fields in either the message or subject, use the {$_POST["varname"]}
format, where "varname" is the name of the field (see the above dummy data for an example)'
;
    }
    function 
getUseInput() {
        global 
$item_info;
        
//the 'additional fields needed' entered during item setup
        
return $item_info[3];
    }

    function 
onUse() {
        global 
$item_info;
        
$to $item_info[1];
        
$subject $item_info[2];
        
$message $item_info[4];
        
mail($to$subject$message) or die("Error sending message to admin! Please inform the Admin of this error. This item will still be available in your inventory.");

        return 
"Message sent to admin!";
    }
}


?>



i need to get this working can someone please tell me whats wrong with it? i've checked all versions of the emailadmin.php file and they all don't work. cheers for any help
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on August 20, 2005, 12:30:07 PM
Hi. I am new here. ANyway, I installed a fresh smf, and downloaded the SMF Shop packagae planning to install it. I downloaded the latest version, 1.2. I uploaded the package, ran the installation from the admin anel. Everything worked, I clicked on [Proceed] when everything was done, and then i got the eroor. The page wont even load. It just tells me that there is an error and I should contact the administrator and the server could not find the eroor 404 file which is why it is showing that error.

So, I am going to ask, did I do something wrong with the installation? I dont know what is goiong on.

Please Help.

EDIT: I forgot to say i am using smf version 1.0.5

this is what is says:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.33 Server at www.virtualhogwarts.co.za Port 80
Title: Re: SMFShop - Shop MOD
Post by: zhoushi on August 22, 2005, 03:05:25 AM
Quote from: scs on August 16, 2005, 06:23:09 AM
It sort of works with 1.1 beta 3 Public except for one line that doesn't work

69. Execute Modification ./Sources/Post.php Test failed

Oh, no, how painful.......Is there anyone who can make it work with 1.1 beta 3 Public??
Help! why not support 1.1 beta 3 Public?
Title: Re: SMFShop - Shop MOD
Post by: stargazer_1017 on August 23, 2005, 09:05:43 PM
Quote from: Insanitary on August 20, 2005, 12:30:07 PM
Hi. I am new here. ANyway, I installed a fresh smf, and downloaded the SMF Shop packagae planning to install it. I downloaded the latest version, 1.2. I uploaded the package, ran the installation from the admin anel. Everything worked, I clicked on [Proceed] when everything was done, and then i got the eroor. The page wont even load. It just tells me that there is an error and I should contact the administrator and the server could not find the eroor 404 file which is why it is showing that error.

So, I am going to ask, did I do something wrong with the installation? I dont know what is goiong on.

Please Help.

EDIT: I forgot to say i am using smf version 1.0.5

this is what is says:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.33 Server at www.virtualhogwarts.co.za Port 80


Your forum's directory was chmodded to 777. Just change that back to what it used to be (I think it was 755?) and you should be able to view it again. This was also in the mod's description that Daniel wrote. It should've came up when you were installing, right before you hit "Proceed".

Hope that helps.

-Shayna
Title: Re: SMFShop - Shop MOD
Post by: scrawl on August 24, 2005, 02:06:56 AM
Quote from: scrawl on August 19, 2005, 03:32:31 AM
please can somebody help me with this, i need it urgently.

this is the standard code of the EmailAdmin.php file and it doesn't work i need to get this working.

<?php
/**********************************************\
| SMFSHOP (Shop MOD for Simple Machines Forum) |
|         (c) 2005 DanSoft Australia           |
|      http://www.dansoftaus.uni.cc/           |
\**********************************************/

//File: EmailAdmin.php
//      Email the admin item

//VERSION: 1.2 (Build 5)
//DATE: 9th July 2005

class item_EmailAdmin extends itemTemplate {

    function 
getItemDetails() {
        
$this->name "Send Email to Admin v2";
        
$this->desc "Send off an email to the admin. A good use for this (for a web host) is an 'Add 100MB of Webspace to your hosting account'";
        
$this->price 10;
    }

    function 
getAddInput() {
        return 
'Your email address: <input type="text" name="info1" size="50"><br>
                Subject of message: <input type="text" name="info2" size="50"><br>
                Additional fields needed:<br>
                    <textarea name="info3" rows="6" cols="40">
Web Hosting Username: <input type="text" name="host_user">
                    </textarea><br>

                Message to send:<br>
                    <textarea name="info4" rows="10" cols="80">
100MB Extra webspace has been bought from the Forum Shop by user {$_POST["host_user"]}. Please add it to his/her account
  --Shop Mailer
                    </textarea><br>

<b>NOTE:</b> The additional fields will be filled in by the user when they use the item.
To use one of your additional fields in either the message or subject, use the {$_POST["varname"]}
format, where "varname" is the name of the field (see the above dummy data for an example)'
;
    }
    function 
getUseInput() {
        global 
$item_info;
        
//the 'additional fields needed' entered during item setup
        
return $item_info[3];
    }

    function 
onUse() {
        global 
$item_info;
        
$to $item_info[1];
        
$subject $item_info[2];
        
$message $item_info[4];
        
mail($to$subject$message) or die("Error sending message to admin! Please inform the Admin of this error. This item will still be available in your inventory.");

        return 
"Message sent to admin!";
    }
}


?>



i need to get this working can someone please tell me whats wrong with it? i've checked all versions of the emailadmin.php file and they all don't work. cheers for any help
Title: Re: SMFShop - Shop MOD
Post by: stargazer_1017 on August 24, 2005, 08:43:40 PM
I upgraded to 1.0.5 from 1.0.3 and when I tried the 1.2 update package, I got an error on my post.php I don't see a .mod file in the package--what do I need to manually update in post.php? Any help offered would be helpful :)

-Shayna
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on August 25, 2005, 10:51:19 AM
I have installed PJirc chat and the portal to along with the shop. when I got to the irc chat, right at the very top I get this error:

Notice: Undefined index: shop in /home/bigguy/public_html/smf/Sources/Load.php(1068) : eval()'d code on line 477
Can ayone help ?? The shop version is Powered by SMFShop 1.1 (Build 4) my smf version is 1.0.5

I must also say that the shop works great to but look at this screenshot of my Package manager there is something wierd here,lol

(http://img52.imageshack.us/img52/8395/packageman2sv.jpg)
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on August 25, 2005, 03:16:26 PM
Can know one help ???
Title: Re: SMFShop - Shop MOD
Post by: raiden_nrl on August 26, 2005, 04:36:34 PM
In my forum it is post to pay, I would like to limit them to only 1$ a day, 3 cents a post 4 cents a topic. SMFShop 1.2, but i still want them to be able to post just not recieve money.
Title: Re: SMFShop - Shop MOD
Post by: zhoushi on August 29, 2005, 10:13:00 PM
NOT compatible with SMF 1.1 Beta, cause SMF 1.1 Beta is not reasonable.
Title: Re: SMFShop - Shop MOD
Post by: Elijah Bliss on August 30, 2005, 02:36:58 AM
Quote from: zhoushi on August 22, 2005, 03:05:25 AM
Quote from: scs on August 16, 2005, 06:23:09 AM
It sort of works with 1.1 beta 3 Public except for one line that doesn't work

69. Execute Modification ./Sources/Post.php Test failed

Oh, no, how painful.......Is there anyone who can make it work with 1.1 beta 3 Public??
Help! why not support 1.1 beta 3 Public?

Because 1.1 is not final yet...

Quote from: zhoushi on August 29, 2005, 10:13:00 PM
NOT compatible with SMF 1.1 Beta, cause SMF 1.1 Beta is not reasonable.

ooookay, not quite sure what you mean by that, but from installing and playing around with it in Beta 3, it looks like the only code that has to be modified is the code applied to the Post.php
Title: Re: SMFShop - Shop MOD
Post by: trenchteam on August 30, 2005, 03:13:34 AM
(http://img52.imageshack.us/img52/8395/packageman2sv.jpg)


OUCH I.E. USER! :P
Title: Re: SMFShop - Shop MOD
Post by: scrawl on August 30, 2005, 09:01:02 AM
Quote from: trenchteam on August 30, 2005, 03:13:34 AM
(http://img52.imageshack.us/img52/8395/packageman2sv.jpg)


OUCH I.E. USER! :P

ahaha
Title: Re: SMFShop - Shop MOD
Post by: zhoushi on August 30, 2005, 12:10:52 PM
Quote from: Elijah Bliss on August 30, 2005, 02:36:58 AM

Because 1.1 is not final yet...

Quote from: zhoushi on August 29, 2005, 10:13:00 PM
NOT compatible with SMF 1.1 Beta, cause SMF 1.1 Beta is not reasonable.

ooookay, not quite sure what you mean by that, but from installing and playing around with it in Beta 3, it looks like the only code that has to be modified is the code applied to the Post.php

Just don't know why 1.1bata lasting for so long.
Title: Re: SMFShop - Shop MOD
Post by: stargazer_1017 on August 30, 2005, 03:12:43 PM
Is there anyone that can help with 1.0.5.? I still get the test fail on post.php. . .

-Shayna
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on August 30, 2005, 05:39:48 PM
So theres no one that can help cause I`m an ie user ?? I do use firefox to but my page was open with that.

Quote from: trenchteam on August 30, 2005, 03:13:34 AM
(http://img52.imageshack.us/img52/8395/packageman2sv.jpg)


OUCH I.E. USER! :P
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on August 30, 2005, 05:43:18 PM
So theres no one that can help cause I`m an ie user ?? I do use firefox to but my page was open with that,lol.

My original problem is with an error message when I use PJirc chat this is the error I get.
Notice: Undefined index: shop in /home/bigguy/public_html/smf/Sources/Load.php(1068) : eval()'d code on line 477

can someone help ??

Quote
OUCH I.E. USER! :P
Title: Re: SMFShop - Shop MOD
Post by: scrawl on August 30, 2005, 06:40:30 PM
Quote from: Bigguy on August 30, 2005, 05:43:18 PM
So theres no one that can help cause I`m an ie user ?? I do use firefox to but my page was open with that,lol.

My original problem is with an error message when I use PJirc chat this is the error I get.
Notice: Undefined index: shop in /home/bigguy/public_html/smf/Sources/Load.php(1068) : eval()'d code on line 477

can someone help ??

Quote
OUCH I.E. USER! :P

it looks as if you haven't installed the shop mod correctly as it's saying "Apply Mod" i'd say give that a go man.
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on August 30, 2005, 11:56:09 PM
well thats the funny thing the shop is installed and runs great no problems at all. and the error I posted comes up when you go into PJirc chat. They figure its a shop problem. So I posted here.
Title: Re: SMFShop - Shop MOD
Post by: scrawl on August 31, 2005, 12:11:56 AM
Quote from: Bigguy on August 30, 2005, 11:56:09 PM
well thats the funny thing the shop is installed and runs great no problems at all. and the error I posted comes up when you go into PJirc chat. They figure its a shop problem. So I posted here.

yes but have you tried pressing "apply mod" ?
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on August 31, 2005, 02:05:08 AM
Yeah, I get errors. I had the forum installed then the server did a php upgrade. My forum smf 1.0.3 all modded out didn`t work after the upgrade on the server so I upgraded to smf 1.0.5, used the same database as before and reinstalled some mods. When I uploaded the shop it took off great. So did the rest of the mods they all work. Now I get this one error that I need to get rid of.
Title: Re: SMFShop - Shop MOD
Post by: zhoushi on September 01, 2005, 10:33:06 AM
Well, 2 months past, I guess I have to keep waiting for another one to two months to get a new version for my website, which is Mambo+smf 1.1 beta p3
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on September 01, 2005, 01:21:53 PM
When I press aply this is the error I get:

71.   Execute Modification    ./Themes/default/Display.template.php    Failure
72.   Execute Modification    ./Themes/default/index.template.php      Failure

If I ignore these and continue anyway what is going to happen ? Keep in mine I have coolmetal theme installed to.
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on September 03, 2005, 04:10:39 AM
this is probably a rediculous question...but....How do you get this modification to work with other templates. Which files should you edit, etc. Is there some way I can find out. For instance the Apollo theme.
Title: Re: SMFShop - Shop MOD
Post by: trenchteam on September 03, 2005, 09:11:46 AM
Quote from: Bigguy on September 01, 2005, 01:21:53 PM
When I press aply this is the error I get:

71.   Execute Modification    ./Themes/default/Display.template.php    Failure
72.   Execute Modification    ./Themes/default/index.template.php      Failure

If I ignore these and continue anyway what is going to happen ? Keep in mine I have coolmetal theme installed to.

Manually add the needed code to those two templates in the default theme.  I just continued anyway, then added the areas that failed. It works good.
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on September 03, 2005, 12:01:04 PM
ok so what code has to go in those 2 files. I have edited one of those files quite alot to so it might be hard to find the exact place to put it.
Title: Re: SMFShop - Shop MOD
Post by: Elmacik on September 03, 2005, 12:43:30 PM
dooooeeeesss this work for smf 1.1 b 3?
Title: Re: SMFShop - Shop MOD
Post by: xenovanis on September 03, 2005, 04:55:31 PM
Quote from: Insanitary on September 03, 2005, 04:10:39 AM
this is probably a rediculous question...but....How do you get this modification to work with other templates. Which files should you edit, etc. Is there some way I can find out. For instance the Apollo theme.

How to make mods work with themes? (http://www.simplemachines.org/community/index.php?topic=34526.0)
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on September 04, 2005, 09:51:55 AM
Thank you!
Title: Re: SMFShop - Shop MOD
Post by: Elmacik on September 04, 2005, 04:42:24 PM
Quote from: xenovanis on September 03, 2005, 04:55:31 PM
Quote from: Insanitary on September 03, 2005, 04:10:39 AM
this is probably a rediculous question...but....How do you get this modification to work with other templates. Which files should you edit, etc. Is there some way I can find out. For instance the Apollo theme.

How to make mods work with themes? (http://www.simplemachines.org/community/index.php?topic=34526.0)


i didnt ask to make it work in a template.
i asked to make it work for a different version ;)
Title: Re: SMFShop - Shop MOD
Post by: zhoushi on September 06, 2005, 12:08:06 PM
Quote from: elmacik on September 03, 2005, 12:43:30 PM
dooooeeeesss this work for smf 1.1 b 3?
unfortunately, it never.
Title: Re: SMFShop - Shop MOD
Post by: Elmacik on September 06, 2005, 01:02:01 PM
thanks for the answer :(
Title: Re: SMFShop - Shop MOD
Post by: crev on September 07, 2005, 05:28:37 PM
I installed the SMFSHOP 1.2  fresh copy onto my SMF 1.0.5 forums.
However:
1. No shop link button is place with other buttons at top of forums.
2. Members $ credits do not show in members replys where the members name is + there is no link to inventory where members name is when they make a post.

Because of this i tried to install 1.1 - 1.2 update, but when i apply the update i get an error:

Quote53. Execute Modification ./Sources/Post.php Failure

when i click 'proceed' i then get the following error:

QuoteDuplicate column name 'image'
File: /home/crev/public_html/teen-vision/Packages/temp/updateScript.php
Line: 15

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.5, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.
I think possibly i have to set a cron job but im not sure how to do this.

QuoteNOTE: In order to get the bank interest working, you MUST set a cron job. Use something like:
Code:/usr/bin/php -q /home/[username]/public_html/[forum]/Sources/shop/dointerest.php > /home/[username]/public_html/[forum]/interest_log.htm
replacing [username] with your cPanel username and [forum] with the directory name of your forum. This will work on most hosts.

I dont have a clue with php etc... only installed a few mods before.
Any help greatly appreciated.
Thanks,
Crev
http://www.Lexiks.com - TeenVision

Ps.
I also get the follwing error when trying to post a new post.... but the post stil goes through... and i expect there a more errors since installing this mod.

QuoteUnknown column 'money' in 'field list'
File: /home/crev/public_html/teen-vision/Sources/Post.php
Line: 1357

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.5, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.
Title: Re: SMFShop - Shop MOD
Post by: crev on September 07, 2005, 06:45:56 PM
i just uploaded my forum backup from the other day but im still getting the same problem

crev
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on September 09, 2005, 09:22:57 PM
Quote
I installed the SMFSHOP 1.2  fresh copy onto my SMF 1.0.5 forums.
However:
1. No shop link button is place with other buttons at top of forums.
2. Members $ credits do not show in members replys where the members name is + there is no link to inventory where members name is when they make a post.

This is because you're using a different theme. You need to make changes to Index.template.php and Display.template.php. Here's some instructions for you:

Quote
Open '/Themes/[themename]/Display.template.php'
Search for: [line 294]

// Show how many posts they have made.
echo ' ', $txt[26], ': ', $message['member']['posts'], '<br /> <br />';


Replace with: (this is a long section)

// Show how many posts they have made.
// echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />
// <br />';

            //BEGIN Shop MOD 0.2 Code
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';

            //I couldn't find where all these $message['member'][whatever] variables
            //are set, so I just send an extra database query to get the member's
            //money. Can someone tell me where (file and line) the $message variables
            //are set?
            global $ID_MEMBER, $db_prefix;

            $result_money = db_query("SELECT money
                                      FROM {$db_prefix}members
                                      WHERE ID_MEMBER = {$message['member']['id']}
                                      LIMIT 1", __FILE__, __LINE__);
            $row_money = mysql_fetch_array($result_money, MYSQL_ASSOC);

            echo $modSettings['shopCurrencyPrefix'].$row_money['money'].$modSettings['shopCurrencySuffix']."<br><br>";
            //END SHOP MOD


Save, and open '/Themes/default/index.template.php'
Search for: [line 446]

// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];

NOTE: That bottom line (from echo '<a..... to ....seperator'];) is all 1 long line. If you have trouble finding it, just search for // The [calendar]! and it's near there

Add after:

    //BEGIN Shop MOD 0.2 Code
    echo "<a href='{$scripturl}?action=shop'>", ($settings['use_image_buttons'] ? "<img src='{$settings['images_url']}/{$context['user']['language']}/shop.gif' alt='{$txt['shop']}' style='margin: 2px 0;' border='0' />" : $txt['shop']), "</a>{$context['menu_separator']}";
    //END SHOP MOD

(source: SMFShop 0.2 readme file - All the edits have been the same since SMFShop 0.2)

Quote
Because of this i tried to install 1.1 - 1.2 update, but when i apply the update i get an error......
The errors are because the SMFShop 1.2 modifications are already in place, and it's trying to add them again.

Quote
Ps.
I also get the follwing error when trying to post a new post.... but the post stil goes through... and i expect there a more errors since installing this mod.
This means that the SMFShop MySQL fields were removed, but the code is still in there. I suggest you delete all traces of SMFShop and start over from scratch.

Files that are edited by SMFShop:
Index.php
Post.php
Subs.php
Themes/default/Display.template.php
Themes/default/Index.template.php

Just open all those files and search for a 'Shop MOD' section in them. Delete all the SMFShop code (as well as the SMFShop files at /Sources/shop) and try re-installing.
Title: error
Post by: TANDIONO.COM on September 11, 2005, 10:01:07 PM
Hi! I received the following error when i open chat.php ::

Notice: Undefined index: shop in /home/xxxxx/public_html/Sources/Load.php(1119) : eval()'d code on line 547

here is the following forum error log:

8: Undefined index: shop
File: /home/xxxxx/public_html/Themes/default/Admin.template.php (eval?)
Line: 547

Please assist me. Thanks
Title: Re: SMFShop - Shop MOD
Post by: TANDIONO.COM on September 14, 2005, 04:57:59 AM
Hello! Anyone??
Title: Re: SMFShop - Shop MOD
Post by: kennyod on September 14, 2005, 10:35:22 PM
Just wondered if I could use this item  ---  Send Email to Admin v2   for say purchasing the right to use a custom made siggy etc.

I have not worked out the code for the input boxes

Additional fields needed:
Web Hosting Username: <input type="text" name="host_user">

Message to send:
100MB Extra webspace has been bought from the Forum Shop by user {$_POST["host_user"]}. Please add it to his/her account
  --Shop Mailer

If I change the message send to say " Mr Admin, I have purchased the custom Avatar"

would it, or more to the point is it possible for the input box to be the place were the member puts there name and it is e-mailed.

Sorry if this is simple, I just ccan't fathom it

Cheers and well done
                   
Title: Re: SMFShop - Shop MOD
Post by: Erinyes on September 15, 2005, 05:10:44 AM
Hi, the shop works brilliantly!

Just two quick things. 
Firstly, can you gain points to decimal places? For example: instead of gaining 1 cred per post you earn 0.5.
Secondly, can you limit who uses the bank? For example,  One person can but another one can't?
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on September 15, 2005, 02:47:46 PM
Heres one problem

You can't unistall by package mananger
Title: Re: SMFShop - Shop MOD
Post by: stargazer_1017 on September 15, 2005, 10:01:02 PM
Quote from: scs on September 15, 2005, 02:47:46 PM
Heres one problem

You can't unistall by package mananger

I think that was stated before :)

I realized something--I have an error on my post.php and I checked on the Shop Admin to see what version, and somehow 1.2 is on there. I think it was from the first time I tried to install 1.2, but I thought I wrote over the 1.2 files. Should I just manually remove the shop and then start over?

-Shayna
Title: Re: SMFShop - Shop MOD
Post by: DirkDiggler on September 16, 2005, 01:34:31 PM
Error when I try to add items


2: shopitemsadd(Sources/shop/item_engine.php): failed to open stream: No such file or directory
File: /home/browns/public_html/community/Sources/shop/ShopAdmin.php
Line: 133

The file is there I have reuploaded the file and changed permissions
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on September 16, 2005, 04:26:37 PM
Can someone please maybe tell me when this mod will be compatible with SMF 1.1 beta 3?
Title: Re: SMFShop - Shop MOD
Post by: raiden_nrl on September 16, 2005, 05:35:05 PM
Bump for my old question... How do you limit money earned per day but still allow posts without earning after they reach limit...
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on September 17, 2005, 02:23:38 AM
Quote from: DirkDiggler on September 16, 2005, 01:34:31 PM
Error when I try to add items


2: shopitemsadd(Sources/shop/item_engine.php): failed to open stream: No such file or directory
File: /home/browns/public_html/community/Sources/shop/ShopAdmin.php
Line: 133

The file is there I have reuploaded the file and changed permissions

Try to have a look at line 133 of that phpbb file, or the lines around it. It should give you a clue of what is going on.

I am not the expert, though. See what file it is trying to access.
Title: Re: SMFShop - Shop MOD
Post by: zhoushi on September 17, 2005, 07:44:51 AM
Quote from: ExistenZ on September 16, 2005, 04:26:37 PM
Can someone please maybe tell me when this mod will be compatible with SMF 1.1 beta 3?
please...
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on September 17, 2005, 11:36:52 AM
Quote from: zhoushi on September 17, 2005, 07:44:51 AM
Quote from: ExistenZ on September 16, 2005, 04:26:37 PM
Can someone please maybe tell me when this mod will be compatible with SMF 1.1 beta 3?
please...

PLEASE can someone tell me. I am on my knees and begging! :P
Title: Using SMFShop can I make it so the members can give each other points ?
Post by: mikeote on September 18, 2005, 06:09:58 PM
Hi

Thanks for looking at my Thread  :)

With the shop at the moment I can give people points, I want them to be able to give each other some of their points if they want to. Does any one know how I can do this ?

Any help would be much apprediated =)

Regards...
Mike
Title: Re: SMFShop - Shop MOD
Post by: Oldiesmann on September 20, 2005, 06:54:25 PM
Topics merged...
Title: Re: Using SMFShop can I make it so the members can give each other points ?
Post by: ExistenZ on September 21, 2005, 03:09:53 PM
Quote from: mikeote on September 18, 2005, 06:09:58 PM
Hi

Thanks for looking at my Thread  :)

With the shop at the moment I can give people points, I want them to be able to give each other some of their points if they want to. Does any one know how I can do this ?

Any help would be much apprediated =)

Regards...
Mike

They can do this by going to the shop, then clicking on "send money to someone" and insert the name and amount. Voilla!
Title: Re: SMFShop - Shop MOD
Post by: vizion on September 22, 2005, 08:49:24 PM
Quote from: ExistenZ on September 17, 2005, 11:36:52 AM
Quote from: zhoushi on September 17, 2005, 07:44:51 AM
Quote from: ExistenZ on September 16, 2005, 04:26:37 PM
Can someone please maybe tell me when this mod will be compatible with SMF 1.1 beta 3?
please...

PLEASE can someone tell me. I am on my knees and begging! :P

Me tooooo

Perhaps the problem could be solved radically for the future???

What is needed is a mod to provide a standard mod interface for mods that is guaranteed not to change with smf versions.

later versions might offer additional features but will implement earlier versions.

Now wouldn't that be great?

david
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on September 23, 2005, 01:17:36 AM
Ok, this is rediculous. Who is the one who started this mo. He should be able to tell us.
Title: Re: SMFShop - Shop MOD
Post by: Dinagyang on September 23, 2005, 05:09:26 PM
I looked at your site and you seem to have it working. Although I didn't register. How do you like it so far?
Title: Re: SMFShop - Shop MOD
Post by: Matthuffy on September 23, 2005, 09:34:44 PM
will this ever work with 1.1 ?   i upgraded and now i really wish i had now :( the main feature was the shop and i did not realise that it will not work :(  is there anything that i can do to convert it ???  desperate help needed  :o
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on September 24, 2005, 04:18:36 AM
Quote from: ExistenZ on September 23, 2005, 01:17:36 AM
Ok, this is rediculous. Who is the one who started this mo. He should be able to tell us.

I'm the author of SMFShop, in case you were wondering. I'm still around, just in case you though I'd run off.

SMFShop is NOT compatible with SMF 1.1 (yet). Just look on the SMFShop MOD page: http://mods.simplemachines.org/index.php?mod=65

Anyway, I'm working on the next version now. It will have a feature to choose what forums you gain points in. Hopefully, it will be released really soon.

EDIT: SMFShop 1.3 is now out! It is recommended that all users of SMFShop upgrade to the new version. You can download it either from it's page on the SMF Mods site, or my website (http://www.dansoftaustralia.net/)

--daniel15
Title: Re: SMFShop - Shop MOD
Post by: mogadishu on September 24, 2005, 05:07:38 PM
I Hope This MOD Will Be Also Compatible with SMF Beta ! Greate MOD !!!! Thanx 4 it !
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on September 24, 2005, 08:37:42 PM
I'm working on a version which will be compatible with SMF 1.1... It might be out soon, but I have other things to do so maybe not... We'll just see :D
Title: Re: SMFShop - Shop MOD
Post by: BNX on September 24, 2005, 09:54:16 PM
I can't wait :)

Really, I can't. My members are all angry because I upgraded and they lost the shop XD
Title: How to upgrade.
Post by: houston on September 26, 2005, 02:00:39 PM
Not quite sure how to upgrade to latest version. How does one go about accomplishing it?

Inquiring minds need to know.

Thanks
Title: Re: SMFShop - Shop MOD
Post by: zhoushi on September 27, 2005, 12:54:13 AM
Quote from: daniel15 on September 24, 2005, 08:37:42 PM
I'm working on a version which will be compatible with SMF 1.1... It might be out soon, but I have other things to do so maybe not... We'll just see :D
Oh, that's great! I've kept waiting for months! I just can't wait anymore...
Title: Re: SMFShop - Shop MOD
Post by: alpinestaRR on September 27, 2005, 04:39:52 AM
I just installed a fresh install of 1.3......


and I went to uninstall it and I can't because there is no uninstall file!!!

HOW DO I GET RID OF IT NOW??
Title: Re: SMFShop - Shop MOD
Post by: Elmacik on September 27, 2005, 05:41:36 PM
open the .mod or .xml install file, then rechange the things that were done by the mod.
you will do this manually, editing the .php files
Title: Re: SMFShop - Shop MOD
Post by: MULITRI on September 28, 2005, 12:49:51 PM
Hello, first ofall hats up to Daniel creating this great mod.

I've installed successfuly SHOPv1.2 into SMFv1.0.5, i've been off from webwork for a few days, and when i went to continue with my SMF forum, when i click the shop button it brings me to the forum index, same happens if i try to click any link from Admin section to manage the shop.
It's weird because i have not taken anything since i installed it, and any link related with shop points to the forum index page.

I need help with this please, what could be wrong?
see it for yourself
Click HERE (http://www.funsquare.zeeblo.com/forum2)

Thanks in advance
Title: Re: SMFShop - Shop MOD
Post by: alpinestaRR on September 28, 2005, 02:10:44 PM
Quote from: elmacik on September 27, 2005, 05:41:36 PM
open the .mod or .xml install file, then rechange the things that were done by the mod.
you will do this manually, editing the .php files

dang - that's a lot of work. :p I wish i'da known there was no uninstall file before I installed it! (I was just testing the shop cuz i didn't know what it was..... cool mod - just not my thing!)

thanks though.
Title: Re: SMFShop - Shop MOD
Post by: Matthuffy on September 28, 2005, 02:30:37 PM
I really do hope that you manage to get the shop working with 1.1, my whole forum revolved around that and now i am stuck as i upgraded without knowthing that the shop will nto work :(  Help!!
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on September 28, 2005, 02:54:11 PM
Quote from: Matthuffy on September 28, 2005, 02:30:37 PM
I really do hope that you manage to get the shop working with 1.1, my whole forum revolved around that and now i am stuck as i upgraded without knowthing that the shop will nto work :(  Help!!

That happened to me too, so I downgraded again and toko me a few days to fiddle with my SQL databasis in order to get my forum working again and putting the shop mod back in.
Title: Re: SMFShop - Shop MOD
Post by: russ on October 04, 2005, 10:13:28 AM
Hi there,

Currently im running version: 1.2. And ive had no problems with it for a long time. Its been great. But recently, when ive tried to add an item, i get the following error:

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '
,
'',

File: /homepages/**/*******/htdocs/smf/Sources/shop/ShopAdmin.php
Line: 207


Just wondering if anyone got a similar error, or knows how to fix this one :)

Many thanks in advance,

Cheers daniel for a great mod
Title: Inserting Code manually
Post by: houston on October 05, 2005, 02:15:57 PM
I am trying to insert the code manually into Post.php of RC1 and am unable to locate the following code in the file.

$newTopic = true;

The .xml script asks to insert the follow in code:

//BEGIN SMFShop Shop MOD 1.3 (Build 6) code
      $result_shop = db_query("SELECT countMoney
                         FROM {$db_prefix}boards
                         WHERE ID_BOARD = $board
                         LIMIT 1", __FILE__, __LINE__);
      $row_shop = mysql_fetch_array($result_shop, MYSQL_ASSOC);
      
      if (isset($row_shop['countMoney']) && $row_shop['countMoney'] == "1") {
         $result_shop = db_query("UPDATE {$db_prefix}members
                             SET money = money + {$modSettings['shopPointsPerTopic']}
                              WHERE ID_MEMBER = {$ID_MEMBER}
                             LIMIT 1", __FILE__, __LINE__);
      }
      //END Shop MOD code

before

$newTopic = true;

Has $newTopic = true; been removed from the latest version of Post.php? and if so where does one insert the code into the Post.php file that the SMFshop .xml file is asking you to?

Are you confused because I sure am.
Title: Re: SMFShop - Shop MOD
Post by: joshkol on October 05, 2005, 02:47:57 PM
Thx for updating the mod soon
Title: Re: SMFShop - Shop MOD
Post by: brandondrury on October 06, 2005, 02:01:37 AM
Hello,

I'm brand new to SMF.  I installed SMF 1.05 just a week ago and now I'm trying to get a little more advanced with it.    I was wondering if there was a safe, stable version of SMFShop available for 1.05.

If not, I'm looking for a points system for this forum and I'd be willing to pay to have it done.  Any ideas on where to go?

Brandon
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on October 06, 2005, 03:40:15 PM
I dont know how to say this, but it is ONLY availible on 1.0.5, so there is no reason to pay for one.
Title: Re: SMFShop - Shop MOD
Post by: littleone on October 07, 2005, 12:50:21 AM
The Description section for each item is not big enough.  I type everything in how I want to explain it, but on the "Buy Item" screen most of it is just cut off.  How do I make this bigger?
Title: Re: SMFShop - Shop MOD
Post by: zhoushi on October 07, 2005, 09:02:15 AM
Quote from: daniel15 on September 24, 2005, 08:37:42 PM
I'm working on a version which will be compatible with SMF 1.1... It might be out soon, but I have other things to do so maybe not... We'll just see :D

OK, I'll keep waiting. And will it be Compatible With smf 1.1 beta3 public?
Title: Re: SMFShop - Shop MOD
Post by: hel8itch on October 07, 2005, 01:54:45 PM
have a problem when trying to access inventorys

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY smf_shop_inventory.id' at line 8
File: /home/***/public_html/Sources/shop/ShopAdmin.php
Line: 90
Title: Re: SMFShop - Shop MOD
Post by: Matthuffy on October 11, 2005, 02:55:19 AM
will this ever work with 1.1? or is that it? :(
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on October 11, 2005, 04:17:15 PM
I am sorry, but I just have to say that if you read about two posts up you will see that your question has alreadybeen ansered.

Some people....
Title: Re: SMFShop - Shop MOD
Post by: Matthuffy on October 12, 2005, 04:27:35 AM
Quote from: ExistenZ on October 11, 2005, 04:17:15 PM
I am sorry, but I just have to say that if you read about two posts up you will see that your question has alreadybeen ansered.

Some people....

very funny, maybe you should look at the tone of my question and you may find out that it was a retoricle question, as i would have thought that the mod would have been updated a long time before now.  i have been trying to do it myself as i can not beleive that it takes so long to upgrade it. i make many things for other sites and i am always making sure that i keep them up to date soi that what i made before is not for nothing. i am always there to help them out and i never reply with patronising response.

So, next time you decide to patronise someone like that, i think that you should look at the tone first and edit that SOME PEOPLE!

shame on you!

P.S.  Quote from: daniel15 on September 24, 2005, 08:37:42 PM

Also, this is not in anyway a complaint to the mod maker, as i understand BUSY, but what i do not like is comments like.... SOME PEOPLE!
Title: Re: SMFShop - Shop MOD
Post by: brandondrury on October 15, 2005, 04:28:39 PM
Quote from: azuregenesis on July 25, 2005, 10:31:56 AM
Quote from: Bogie on July 25, 2005, 10:29:25 AM
Quote from: azuregenesis on July 25, 2005, 08:41:27 AM
Quote from: Bogie on July 25, 2005, 02:42:25 AM
I'm trying to install the shopmod and it gets to this line and stops:

73.     Execute Code     installScript.php

Unlike the lines above there is no "success" next to it so I assume this is where it's having trouble.

I get this below it:

FTP Information Required
Some of the files this package needs to modify are not writable. This needs to be changed by logging into FTP and chmoding the files.

I enter my information and it does nothing, just returns to the same page.  Can I manually chmod these files, if so which ones do I need to chmod.

it's not supposed to have success next to it.

and after you enter your info, does that part diappear and you're able to proceed?

nope, it keeps coming back.

ah. then chmod the folder it need to do the changes in (to 777)


I'm having the same exact problems as described above.  If I cdmod 777 the entire folder, the install script gives a 500 Server Error. If I cdmod the entire forum folder to 755,  it's as if I just refreshed the page with the "proceed" button.  Ironically, typing in the wrong ftp information on purpose will also refresh the page. 

I've tried working backwards by chmodding the entire directory to 777, getting the server error, and then changing deeper level directories to 755, but that doesn't seam to work.  I guess I'll try 755ing the entire directory and slowly 777 each folder. 

Any thoughts?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on October 15, 2005, 10:02:10 PM
Sorry everyone, but I won't be able to work on SMFShop for a while. I've got lots of school work, then end-of-year school exams. I've got school for another 6 weeks (then it's holidays). Please remember that I'm not some guy that has heaps of spare time and sits at his computer all day. I'm a 15 year old with other stuff more important than SMFShop to do (I hope everyone understands this  :D)

Converting SMFShop for SMF 1.1 shouldn't be that hard; it just needs a little time and effort. Unfortunately, I'm too busy to do so

See you soon (hopefully),
daniel15
Title: Re: SMFShop - Shop MOD
Post by: Elijah Bliss on October 15, 2005, 11:55:09 PM
Quote from: houston on October 05, 2005, 02:15:57 PM
I am trying to insert the code manually into Post.php of RC1 and am unable to locate the following code in the file.

$newTopic = true;

The .xml script asks to insert the follow in code:

//BEGIN SMFShop Shop MOD 1.3 (Build 6) code
      $result_shop = db_query("SELECT countMoney
                         FROM {$db_prefix}boards
                         WHERE ID_BOARD = $board
                         LIMIT 1", __FILE__, __LINE__);
      $row_shop = mysql_fetch_array($result_shop, MYSQL_ASSOC);
      
      if (isset($row_shop['countMoney']) && $row_shop['countMoney'] == "1") {
         $result_shop = db_query("UPDATE {$db_prefix}members
                             SET money = money + {$modSettings['shopPointsPerTopic']}
                              WHERE ID_MEMBER = {$ID_MEMBER}
                             LIMIT 1", __FILE__, __LINE__);
      }
      //END Shop MOD code

before

$newTopic = true;

Has $newTopic = true; been removed from the latest version of Post.php? and if so where does one insert the code into the Post.php file that the SMFshop .xml file is asking you to?

Are you confused because I sure am.

Once you figure out this part the mod should work with RC 1.1.
If I get some time I'll tinker with this.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on October 16, 2005, 12:18:37 AM
It's Post.php and ManageBoards.php that have changed in SMF 1.1

And... Please try to upgrade all your boards to SMFShop 1.3!
Title: Re: SMFShop - Shop MOD
Post by: Elijah Bliss on October 16, 2005, 12:56:36 AM
Quote from: daniel15 on October 16, 2005, 12:18:37 AM
It's Post.php and ManageBoards.php that have changed in SMF 1.1

And... Please try to upgrade all your boards to SMFShop 1.3!

These operations in the mod:

<file name="$sourcedir/ManageBoards.php">
        <operation>
            <search position="before"><![CDATA['override_theme' => 0,]]></search>
           <add><![CDATA[

//BEGIN SMFShop Shop MOD 1.3 (Build 6) code
            'countMoney' => 1,
//END Shop MOD

]]></add>
        </operation>
<operation>
<search position="before"><![CDATA[$_POST['override_theme'] = isset($_POST['override_theme']) ? '1' : '0';]]></search>
<add><![CDATA[

//BEGIN SMFShop Shop MOD 1.3 (Build 6) code
$_POST['countMoney'] = isset($_POST['countMoney']) ? '1' : '0';
//END Shop MOD
]]></add>
</operation>

<operation>
<search position="before"><![CDATA[override_theme = $_POST[override_theme]]]></search>
<add><![CDATA[, countMoney = $_POST[countMoney]]]></add>
</operation>

<operation>
<search position="before"><![CDATA[c.canCollapse]]></search>
<add><![CDATA[, b.countMoney]]></add>
</operation>

<operation>
<search position="before"><![CDATA['override_theme' => $row['override_theme'],]]></search>
<add><![CDATA[

//BEGIN SMFShop Shop MOD 1.3 (Build 6) code
'countMoney' => $row['countMoney'],
//END Shop MOD
]]></add>
</operation>
    </file>


moved from ManageBoards.php to Subs-Boards.php.
I believe I have the Post.php figured out, but I don't have time to test this tonight, but maybe that can help someone get started.
Title: Re: SMFShop - Shop MOD
Post by: AcidBurN on October 16, 2005, 04:42:03 PM
Hi will this work on smf1.1 rc1? if not, will there you Plzzzz release one for that version of smf??
Title: Re: SMFShop - Shop MOD
Post by: Zernz on October 21, 2005, 10:51:05 AM
My Shop MOD doesnt work it say :
1. Extract File ./Sources/shop/items/AddToPostCount.php 
2. Extract File ./Sources/shop/items/ChangeOtherTitle.php 
3. Extract File ./Sources/shop/items/filedownload.php 
4. Extract File ./Sources/shop/items/IncreaseKarma.php 
5. Extract File ./Sources/shop/items/IncreaseTimeLoggedIn.php 
6. Extract File ./Sources/shop/items/morespace.php 
7. Extract File ./Sources/shop/items/RandomMoney.php 
8. Extract File ./Sources/shop/items/Rock.php 
9. Extract File ./Sources/shop/items/Steal.php 
10. Extract File ./Sources/shop/items/testitem.php 
11. Extract File ./Sources/shop/items/testitem2.php 
12. Extract File ./Sources/shop/item_engine.php 
13. Extract File ./Sources/shop/Shop.php 
14. Extract File ./Sources/shop/ShopAdmin.php 
15. Extract File Themes/default/Shop.template.php 
16. Extract File Themes/default/ShopAdmin.template.php 
17. Extract File Themes/default/languages/Shop.english.php 
18. Execute Modification ./Themes/default/Display.template.php               Failure  
19. Execute Code updateScript.php

What should i do ?
Title: Re: SMFShop - Shop MOD
Post by: Coolio10 on October 21, 2005, 10:12:13 PM
I Couldnt Even Get It Installed! :'( >:(

Wheres The Instructions For This Thing?

I Put It In Same Directory As SMF Index.php And It Siad Installed Successfully And It Didnt Even Touch My SMF!

How Do I Get This Thing Working? Someone Please Send Me Step By Step Instructions Via PM.

I HAD A SERIOUS HEADACHE AFTER TRYING TO INSTALL THIS AND I GOT SO MAD I NEARLY CRIED!

>:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'( >:( :'(
Title: Re: SMFShop - Shop MOD
Post by: deathwantsme on October 22, 2005, 10:20:06 AM
Is there an uninstaller for this? If not i can uninstal my board, but i installed it twice and now i cant uninstal it.
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on October 22, 2005, 11:27:19 AM
Theres an FAQ (http://member.telpacific.com.au/daniel15/smfmods/smfshop_faq.htm) Which contains the unistall instructions
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on October 22, 2005, 08:32:13 PM
maybe we should first check whether the mod is even compatible with the version of SMF that you are using before you even attempt to try and install it *suggestion*
Title: Re: SMFShop - Shop MOD
Post by: deathwantsme on October 23, 2005, 01:01:02 AM
I did, then i didnt like what the mod did. Then I wanted to unistal it and couldnt.
Title: Re: SMFShop - Shop MOD
Post by: deathwantsme on October 23, 2005, 10:02:04 PM
I uninstalled every file that was in the FAQ. The mod is off my mod list, but its effects are still there. I want to COMPLETELY get rid of it. In the admin CP when managing boards, it still has count shop points. I think i installed the mod twice since i can count the shop points twice, anyone know how i can undo that or just get it down to 1 time i can do this so i can set boards to count for shop points and boards not to? the way it is now i cant do that.
Title: Re: SMFShop - Shop MOD
Post by: zhoushi on October 24, 2005, 12:55:45 AM
Quote from: daniel15 on October 15, 2005, 10:02:10 PM
Sorry everyone, but I won't be able to work on SMFShop for a while. I've got lots of school work, then end-of-year school exams. I've got school for another 6 weeks (then it's holidays). Please remember that I'm not some guy that has heaps of spare time and sits at his computer all day. I'm a 15 year old with other stuff more important than SMFShop to do (I hope everyone understands this  :D)

Converting SMFShop for SMF 1.1 shouldn't be that hard; it just needs a little time and effort. Unfortunately, I'm too busy to do so

See you soon (hopefully),
daniel15

Is this what in the last months I've kept waiting for?
Yes, 3 weeks ago, you said "maybe", but it is "maybe" and it was 3 weeks ago. Now you say "it just needs a little time and effort". Daniel, I think you really get some people mad.
Title: Re: SMFShop - Shop MOD
Post by: deathwantsme on October 24, 2005, 06:44:42 PM
sorry to bump, but i really need to know if my problem can be fixed OR if i can install the mod later and it will give users the "money" they should have had if the mod were installed @ the opening of the forum. This is the last mod i need finished for my forum to go public so i REALLY want to know about this.
Title: Re: SMFShop - Shop MOD
Post by: Elijah Bliss on October 25, 2005, 03:41:32 AM
Quote from: deathwantsme on October 24, 2005, 06:44:42 PM
sorry to bump, but i really need to know if my problem can be fixed OR if i can install the mod later and it will give users the "money" they should have had if the mod were installed @ the opening of the forum. This is the last mod i need finished for my forum to go public so i REALLY want to know about this.

Download the 1.1 RC1 update and apply it, all the changes will go away (that also includes any other mods you have installed).
Title: Re: SMFShop - Shop MOD
Post by: 1MileCrash on October 26, 2005, 05:22:06 PM
do i have to have custom titles enabled in order for a user to be able to buy one?
Title: Re: SMFShop - Shop MOD
Post by: deathwantsme on October 26, 2005, 06:12:18 PM
Quote from: deathwantsme on October 24, 2005, 06:44:42 PM
sorry to bump, but i really need to know if my problem can be fixed OR if i can install the mod later and it will give users the "money" they should have had if the mod were installed @ the opening of the forum. This is the last mod i need finished for my forum to go public so i REALLY want to know about this.

Im not upgrading untill i know EVERY mod that i have installed will work. Is there another way? ill start checking now but hope that upgrading works.
Title: Re: SMFShop - Shop MOD
Post by: TruthElixirX on October 27, 2005, 10:11:37 PM
I'm running 1.0.5 and whrn I try to isntall the mod it says:

   Execute Modification     ./Sources/Post.php     Failure

I've chmodded this file to 7777 (4 7's intentional)

Any help?
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on October 28, 2005, 08:31:55 AM
Other mods?
Title: Re: SMFShop - Shop MOD
Post by: 1MileCrash on October 28, 2005, 02:40:26 PM
well, im finally getting time t mess around with it, pretty cool.

i made my own custom template because i didnt like the way it looked.

came out pretty cool.
(http://img491.imageshack.us/img491/7571/shoptemplate9sv.png)

Title: Re: SMFShop - Shop MOD
Post by: houston on October 28, 2005, 02:58:45 PM
Quote from: zhoushi on October 24, 2005, 12:55:45 AM
Quote from: daniel15 on October 15, 2005, 10:02:10 PM
Sorry everyone, but I won't be able to work on SMFShop for a while. I've got lots of school work, then end-of-year school exams. I've got school for another 6 weeks (then it's holidays). Please remember that I'm not some guy that has heaps of spare time and sits at his computer all day. I'm a 15 year old with other stuff more important than SMFShop to do (I hope everyone understands this  :D)

Converting SMFShop for SMF 1.1 shouldn't be that hard; it just needs a little time and effort. Unfortunately, I'm too busy to do so

See you soon (hopefully),
daniel15

Is this what in the last months I've kept waiting for?
Yes, 3 weeks ago, you said "maybe", but it is "maybe" and it was 3 weeks ago. Now you say "it just needs a little time and effort". Daniel, I think you really get some people mad.

Come on give the guy a break. Theirs more to life than developing mods. If everybody continues to piss this guy off we may never see the upgrade. Instead of complaining about the delay why don't you work on it yourself.
Title: Re: SMFShop - Shop MOD
Post by: 1MileCrash on October 28, 2005, 08:44:06 PM
word.

dude your only 15 and you wrote this mod? wow. i feel like an idiot.

ok, how can i let people steal stuff without it affecting their karma?
Title: Re: SMFShop - Shop MOD
Post by: TruthElixirX on October 29, 2005, 03:01:36 PM
Quote from: scs on October 28, 2005, 08:31:55 AM
Other mods?

Arcade and PHP Compatiblity update 1.0 something.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on November 03, 2005, 06:27:54 AM
Quote from: houston on October 28, 2005, 02:58:45 PM
Quote from: zhoushi on October 24, 2005, 12:55:45 AM
Quote from: daniel15 on October 15, 2005, 10:02:10 PM
Sorry everyone, but I won't be able to work on SMFShop for a while. I've got lots of school work, then end-of-year school exams. I've got school for another 6 weeks (then it's holidays). Please remember that I'm not some guy that has heaps of spare time and sits at his computer all day. I'm a 15 year old with other stuff more important than SMFShop to do (I hope everyone understands this  :D)

Converting SMFShop for SMF 1.1 shouldn't be that hard; it just needs a little time and effort. Unfortunately, I'm too busy to do so

See you soon (hopefully),
daniel15

Is this what in the last months I've kept waiting for?
Yes, 3 weeks ago, you said "maybe", but it is "maybe" and it was 3 weeks ago. Now you say "it just needs a little time and effort". Daniel, I think you really get some people mad.

Come on give the guy a break. Theirs more to life than developing mods. If everybody continues to piss this guy off we may never see the upgrade. Instead of complaining about the delay why don't you work on it yourself.
That's just what I was thinking... I mean, I would work on SMFShop, but I've got real-life stuff like school work to do. SMF 1.1 isn't even a final version yet... The announcement clearly stated that most MODs don't work with SMF 1.1. It also stated that if you aren't comfortable with final version software, don't use SMF 1.1:

Quote.....If you feel uncomfortable using software that's not gone gold yet, we recommend using the fully tested and stable 1.0.5 version of SMF. If you do upgrade, it will not be possible to "downgrade" except by using a backup......

.....Mods and themes which worked with previous versions may very well not work without significant change with this new version.  This includes integration with Mambo, MKPortal, and Coppermine.  If you are not comfortable with this, please do not upgrade to this version.....
(source: http://www.simplemachines.org/community/index.php?topic=50176.0)

So yeah, real life is a lot more important that writing SMFShop... Having said that, maybe someone could help me with making it compatible? If someone finds out where the lines have moved to, I'll update the SMFShop install package. For now, you'll just have to live with it being incompatible.

Quoteok, how can i let people steal stuff without it affecting their karma?
Edit the Sources/shop/items/steal.php file. Delete the database query line that mentions karma.
Title: Re: SMFShop - Shop MOD
Post by: Elijah Bliss on November 03, 2005, 08:17:50 AM
Quote from: daniel15 on November 03, 2005, 06:27:54 AM
So yeah, real life is a lot more important that writing SMFShop... Having said that, maybe someone could help me with making it compatible? If someone finds out where the lines have moved to, I'll update the SMFShop install package. For now, you'll just have to live with it being incompatible.

http://www.simplemachines.org/community/index.php?topic=22396.msg375212#msg375212

I haven't had time (tell that to the bellyachers of this thread) to test the changes, but they should work.
Title: Questions about the Shop
Post by: Foreverpurple on November 03, 2005, 10:07:08 PM
I'm not sure where to ask this question so I'm starting here.

I have some questions on the Shop.

First on 'change someone's title',  how do you keep that person from changing it back?  This applies to any of the items where you change a feature of someone else. Title, Username, Karma, Avatar is what I have in mind.

How do you create new things to buy? What are the limitations?
Title: Re: SMFShop - Shop MOD
Post by: Oldiesmann on November 03, 2005, 10:37:06 PM
Topics merged
Title: Re: SMFShop - Shop MOD
Post by: Foreverpurple on November 04, 2005, 01:00:25 AM
Thanks for moving this for me  ;)
Title: Re: SMFShop - Shop MOD
Post by: yamato on November 05, 2005, 10:32:15 AM
How do you get it to work in other themes?

Having it only work in only the default installation theme of SMF is a bit pointless. So I assume there must be a way to get it to work in other themes. Anyone know how?
Title: Re: SMFShop - Shop MOD
Post by: 1MileCrash on November 05, 2005, 11:13:57 AM
you have to apply the changes manually.
Title: Re: SMFShop - Shop MOD
Post by: yamato on November 05, 2005, 11:17:50 AM
Oh right....

How?

There are a million files.

The Mod doesn't unintstall itself, and when I follow someones post on how to remove it, it doens't mention about removing table from your SQL database. Once you uninstall it, it won't reinstall...

./Themes/default/Display.template.php Failure

Duplicate column name 'money'
File: /home/yamato/public_html/GSeed/Packages/temp/installScript.php
Line: 36

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.5, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.

I am running SMF1.0.5, that 'note' is a bunch of crap

So I'll ask again, How do you get it to work in other Themes.

I know you can and it has to be done manually, but HOW!
Title: Re: SMFShop - Shop MOD
Post by: 1MileCrash on November 05, 2005, 11:21:14 AM
what do you mean how? open install.xml, and follow the instructions to theme files.
Title: Re: SMFShop - Shop MOD
Post by: yamato on November 05, 2005, 11:24:52 AM
okay i opened the install.xml and all i see is a bunch of code... no legible 'instructions'
Title: Re: SMFShop - Shop MOD
Post by: yamato on November 05, 2005, 11:39:19 AM
I have seen this on here before, but no one seems to answer many questions properly on here, so here goes again:

70. Execute Modification ./Sources/Subs.php Success
71. Execute Modification ./Sources/ManageBoards.php Success
72. Execute Modification ./Themes/default/ManageBoards.template.php Success
73. Execute Modification ./Themes/default/Display.template.php Failure
74. Execute Modification ./Themes/default/index.template.php Success
75. Execute Code installScript.php

Why? and how do I fix?

-EDIT- Fixed it by uploading a un-modded version of index.template.php

To uninstall this MOD compeltely you have to delete the mod from the Package manager, remove the tables from SQL database and remove the directory from FTP in Sources. Replace all affected files with unmodded ones I got from my SMF install folder and it is completely gone now.
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on November 05, 2005, 11:54:37 PM
If your board has other mods installed on it you wouldnt be able to "replace infected files" with new ones because the other mods wouldnt work then ?
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on November 06, 2005, 02:03:30 AM
I just want to say that is doesn't matter whether it is compatible with other versions or not. i am quite happ using 1.0.5 until 1.1 comes out. But before I upgrade I will have to wait for the shop mod to be upgraded adwell, becuase my entire forum depends on it...

Oh well, I hope you find the time to fix it.
Title: Re: SMFShop - Shop MOD
Post by: yamato on November 06, 2005, 03:11:21 PM
You can't change the size of the shop images from 32 pixels. Any change entered and saved in the box reverts back to 32.
Title: Re: SMFShop - Shop MOD
Post by: akysiev on November 06, 2005, 07:29:41 PM
For those of you interested, it's not too difficult to modify the mod for 1.1 RC1. There are only 2 files where any changes have to be made. I don't have time to make a packaged version.

For my instructions, you'll have to manually apply them.

In Post.php - Ignore the entire section and do this instead:

Search for
createPost($msgOptions, $topicOptions, $posterOptions);
Around line 1539

Add after
// Get if this board gives credits for posting
$result_shop = db_query("SELECT countMoney
FROM {$db_prefix}boards
WHERE ID_BOARD = $board
LIMIT 1", __FILE__, __LINE__);
$row_shop = mysql_fetch_array($result_shop, MYSQL_ASSOC);

// If we do give credits, then how much?
if (isset($row_shop['countMoney']) && $row_shop['countMoney'] == "1") {
//For a new topic, you get...
if ($newTopic)
$result_shop = db_query("UPDATE {$db_prefix}members
SET money = money + {$modSettings['shopPointsPerTopic']}
      WHERE ID_MEMBER = {$ID_MEMBER}
LIMIT 1", __FILE__, __LINE__);
else
$result_shop = db_query("UPDATE {$db_prefix}members
SET money = money + {$modSettings['shopPointsPerPost']}
      WHERE ID_MEMBER = {$ID_MEMBER}
LIMIT 1", __FILE__, __LINE__);
}


In ManageBoards.php, do the first operation in install.xml but skip the rest. Instead, do this:

In Subs-Boards.php:

Search for
// Should the board theme override the user preferred theme?
if (isset($boardOptions['override_theme']))
$boardUpdates[] = 'override_theme = ' . ($boardOptions['override_theme'] ? '1' : '0');


Add after
// Should posts in this board give credits?
if (isset($boardOptions['countMoney']))
$boardUpdates[] = 'countMoney = ' . ($boardOptions['override_theme'] ? '1' : '0');


Search for
'override_theme' => false,

Add after
'countMoney' => 1,

Search for
b.override_theme,

Add after
b.countMoney,

Search for
'override_theme' => $row['override_theme'],

Add after
'countMoney' => $row['countMoney'],

And that's it. Your board should work with the latest version of ShopMod. Just make sure that you apply EVERYTHING else as the package-info and install xmls say. Remember, these are the modifications you need to make for 1.1 RC1.
Title: Re: SMFShop - Shop MOD
Post by: zhoushi on November 10, 2005, 10:38:08 PM
Hi, Daniel, I really don't know what to say...The good thing is I never used SMFShop..."maybe" is not a wrong word, but NOT A GOOD ONE to leave it alone for 3 weeks, especially when there's guys who have kept waiting for months(not just me, right?), and then changed it to "too busy". When you were busy, just tell us ASAP, please! We know nothing of your school work, but you know.
To be honest, I don't like any excuses you made. There are no excuses on any Open Source projects. It's your guy's choice to keep going or not. The only thing we care and we need is A Good Communicating Way, including progress map or info.
I'm sorry for I was a little over-reacted, I just couldn't and can't be calm.
Title: Re: SMFShop - Shop MOD
Post by: kckel on November 11, 2005, 03:19:39 PM
Quote from: zhoushi on November 10, 2005, 10:38:08 PM
Hi, Daniel, I really don't know what to say...The good thing is I never used SMFShop..."maybe" is not a wrong word, but NOT A GOOD ONE to leave it alone for 3 weeks, especially when there's guys who have kept waiting for months(not just me, right?), and then changed it to "too busy". When you were busy, just tell us ASAP, please! We know nothing of your school work, but you know.
To be honest, I don't like any excuses you made. There are no excuses on any Open Source projects. It's your guy's choice to keep going or not. The only thing we care and we need is A Good Communicating Way, including progress map or info.
I'm sorry for I was a little over-reacted, I just couldn't and can't be calm.

that was pretty rude..

for one thing, he doesn't have to code anything at all..

secondly, the post right before yours, is the fix for it to work on rc 1.1 (and it works, i have it working perfectly on mine)

third, it's most likely going to need fixing again when 1.1 is gold (officially released)

if everyones in that big of a hurry, learn some php and sql (there are tutorials all over the net) and start re-coding

most of the complaints in this topic seem to be people's lack of reading all the posts.. most of the questions are answered (more than once in most cases)

and may I add that you made a post on here saying smf isn't good enough for you (back in February, 2005)... so why are you still here? http://www.simplemachines.org/community/index.php?topic=28259.msg222610#msg222610
Title: Re: SMFShop - Shop MOD
Post by: Xarcell on November 11, 2005, 04:42:50 PM
Quote from: zhoushi on November 10, 2005, 10:38:08 PM
Hi, Daniel, I really don't know what to say...The good thing is I never used SMFShop..."maybe" is not a wrong word, but NOT A GOOD ONE to leave it alone for 3 weeks, especially when there's guys who have kept waiting for months(not just me, right?), and then changed it to "too busy". When you were busy, just tell us ASAP, please! We know nothing of your school work, but you know.
To be honest, I don't like any excuses you made. There are no excuses on any Open Source projects. It's your guy's choice to keep going or not. The only thing we care and we need is A Good Communicating Way, including progress map or info.
I'm sorry for I was a little over-reacted, I just couldn't and can't be calm.

Your outta line. Go code the thing yourself.
Title: Re: SMFShop - Shop MOD
Post by: brandondrury on November 12, 2005, 02:21:36 PM
Daniel, I'd like to pay you a few bucks for creating the Shop Mod.  It's been an extremely valuable tool for building my forum (which has went from 20 to 85 members in the past 5 days). 

Thanks,
Brandon Drury
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on November 13, 2005, 01:36:13 AM
Quote from: Xarcell on November 11, 2005, 04:42:50 PM
Quote from: zhoushi on November 10, 2005, 10:38:08 PM
Hi, Daniel, I really don't know what to say...The good thing is I never used SMFShop..."maybe" is not a wrong word, but NOT A GOOD ONE to leave it alone for 3 weeks, especially when there's guys who have kept waiting for months(not just me, right?), and then changed it to "too busy". When you were busy, just tell us ASAP, please! We know nothing of your school work, but you know.
To be honest, I don't like any excuses you made. There are no excuses on any Open Source projects. It's your guy's choice to keep going or not. The only thing we care and we need is A Good Communicating Way, including progress map or info.
I'm sorry for I was a little over-reacted, I just couldn't and can't be calm.

Your outta line. Go code the thing yourself.

exactly...

it takes all of 10mins to do.... how hard can that be... some ppl are just too lazy to do things for themselves
Title: Re: SMFShop - Shop MOD
Post by: ssnapier on November 15, 2005, 09:20:49 PM
I cannot seem to make this mod install... it gets to the last step "75.     Execute Code     installScript.php" and it just stops. I have tried netering the FTP info and it seems to have no effect at all. I even tried maiing every single folder in SMF 777, and that still did not work.

I would REALLY love to get this thing going, but I need a bit of help it would seem!
Title: Re: SMFShop - Shop MOD
Post by: Pause on November 16, 2005, 06:41:33 AM
Quote from: akysiev on November 06, 2005, 07:29:41 PM
Using those instructions by akysiev I have edited the install.xml file to reflect the changes and have attached the file to the first post of this topic (daniel15's obviously).
Title: Re: SMFShop - Shop MOD
Post by: kckel on November 16, 2005, 01:31:36 PM
Quote from: ssnapier on November 15, 2005, 09:20:49 PM
I cannot seem to make this mod install... it gets to the last step "75.     Execute Code     installScript.php" and it just stops. I have tried netering the FTP info and it seems to have no effect at all. I even tried maiing every single folder in SMF 777, and that still did not work.

I would REALLY love to get this thing going, but I need a bit of help it would seem!

installscript.php is the file that creates the sql database, your problem is msot lielly in the settings you put in for your database. or the database itself
Title: Re: SMFShop - Shop MOD
Post by: Xarcell on November 17, 2005, 12:09:31 AM
I'll chip in a few bucks for you to fix smfshop...
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on November 17, 2005, 10:30:52 AM
Right, it doesnt want to install on my SMF rc1.1 with the file attached. The test works, and then when it asks me for ftp info, i give it, and then it tells me some nonsense about a hacking attempt.
Title: Re: SMFShop - Shop MOD
Post by: Resident on November 17, 2005, 11:19:03 AM
im geting the same thing hack attempt..

would realy like to get this up and running..

Thanks
Title: Re: SMFShop - Shop MOD
Post by: houston on November 17, 2005, 12:23:42 PM
Quote from: Mattitude on November 16, 2005, 06:41:33 AM
Quote from: akysiev on November 06, 2005, 07:29:41 PM
Using those instructions by akysiev I have edited the install.xml file to reflect the changes and have attached the file to the first post of this topic (daniel15's obviously).

Thanks a lot man. It worked great.

;D                   ;D
Title: Re: SMFShop - Shop MOD
Post by: Purplemadness on November 17, 2005, 12:36:10 PM
Same here, i upload it, trying to run is but then i must type in my ftp-info, when i did that, i must type it in again!
And then again, and again..

Can someone fix it :'(
Title: Re: SMFShop - Shop MOD
Post by: ssnapier on November 17, 2005, 05:45:38 PM
I am trying this on 1.05 not 1.1 and I do nto understand what you mean by a database problem... what could be wrong with it? this is the only mod Ihave had trouble with, and I have never made any changes (or even logged in) to the DB at all!
Title: Re: SMFShop - Shop MOD
Post by: tX on November 17, 2005, 08:25:45 PM
I cant get it to work with RC1, even after following the extra intructions :/
Title: Re: SMFShop - Shop MOD
Post by: houston on November 17, 2005, 09:35:58 PM
Quote from: XTECHFORUM.COM on November 17, 2005, 08:25:45 PM
I cant get it to work with RC1, even after following the extra intructions :/

Have you tried d/ling the modified script for rc1 tagged onto the first post of this thread as an attachment?.
Title: Re: SMFShop - Shop MOD
Post by: Elijah Bliss on November 18, 2005, 05:49:02 AM
Quote from: Alisha on January 25, 2005, 12:57:10 AM
That would be GREAT! :)  Now I just need to learn to SPEAK IPB and items unlimited! :) 

Also, Unknown, if you get a CHANCE, can use PLEASE! Pretty Please take this items code and add the Find Members link to it?

Once I see it done, and know how it works I can modify the others to work... 

Thanks! :)

//File: ChangeUserTitle.php
//      Item

//VERSION: 0.2
//DATE: 29th December 2004

class item_ChangeUserTitle extends itemTemplate {
    function getItemDetails() {
        $this->name = "Change User Title";
        $this->desc = "Change your user title";
        $this->price = 50;
    }

    function getUseInput() {
        return "New Title: <input type='text' name='newtitle' size='50'>";
    }

    function onUse() {
        global $db_prefix, $ID_MEMBER;

        $result = db_query("UPDATE {$db_prefix}members
                            SET usertitle = '{$_POST['newtitle']}'
                            WHERE ID_MEMBER = {$ID_MEMBER}",
                            __FILE__, __LINE__);
        return "Successfully changed your user title to {$_POST['newtitle']}";
    }

}

?>




I really don't feel like reading through 45+ pages to find out whether your problem was solved, but in the event it wasn't, here you go:


    function getUseInput() {
    global $context, $settings;
        return 'User\'s name: <input id="username" type="text" name="username" size="50"> <a href="'. $scripturl. '?action=findmember;input=username;quote=1;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 Members</a>' . $txt[748] .
'<br />New title: <input type="text" name="newtitle" size="50">';
    }
Title: Re: SMFShop - Shop MOD
Post by: Elijah Bliss on November 18, 2005, 05:51:29 AM
After a bit of tinkering (not much) I got this working like a charm on 1.1RC1.

Fun mod.
Title: Re: SMFShop - Shop MOD
Post by: Pause on November 18, 2005, 07:23:48 AM
Admittedly I haven't installed it onto my own website but using test_modification.php it tested successfully.
Title: Re: SMFShop - Shop MOD
Post by: Elijah Bliss on November 18, 2005, 01:40:04 PM
Quote from: Mattitude on November 18, 2005, 07:23:48 AM
Admittedly I haven't installed it onto my own website but using test_modification.php it tested successfully.

The major problem is the installScript.php not executing properly, I had to manually run those queries in phpMyadmin. I don't know how to fix that, however if someone has the know how we could make this a brief team effort, because I would like tho change the shops "Find Member" functions of the mod to the more convenient and easy to use SMF pop-up Find Member function.
Title: Re: SMFShop - Shop MOD
Post by: goukilord on November 19, 2005, 12:49:55 AM
installed shop mod 1.3 on smf 1.0.5 but however whan i click the shop button it bring me back to the forum index
also i do earn points for posts (how do i change the amount)
thanks.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on November 19, 2005, 02:14:01 AM
Quote
I would like tho change the shops "Find Member" functions of the mod to the more convenient and easy to use SMF pop-up Find Member function.

If you find out how to make that function work, I'll implement it :D

I was trying to a while ago (way back when SMFShop 0.2 came out), but I couldn't figure out how to do it.
Title: Re: SMFShop - Shop MOD
Post by: goukilord on November 19, 2005, 02:25:14 AM
ok installed manualy and it work but why im getting this ?
admin page:
http://img514.imageshack.us/img514/7458/admin9oe.png
shop page:
http://img514.imageshack.us/img514/8294/shop4eg.png
plz anyone tell me what to do :(
Title: Re: SMFShop - Shop MOD
Post by: Elijah Bliss on November 19, 2005, 02:51:44 AM
Quote from: daniel15 on November 19, 2005, 02:14:01 AM
Quote
I would like tho change the shops "Find Member" functions of the mod to the more convenient and easy to use SMF pop-up Find Member function.

If you find out how to make that function work, I'll implement it :D

I was trying to a while ago (way back when SMFShop 0.2 came out), but I couldn't figure out how to do it.


    function getUseInput() {
         global $context, $settings;
        return 'User\'s name: <input id="username" type="text" name="username" size="50"> <a href="'. $scripturl. '?action=findmember;input=username;quote=1;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 Members</a>' . $txt[748] .
           '<br />New title: <input type="text" name="newtitle" size="50">';
    }
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on November 19, 2005, 03:01:58 AM
Quote from: goukilord on November 19, 2005, 02:25:14 AM
ok installed manualy and it work but why im getting this ?
admin page:
http://img514.imageshack.us/img514/7458/admin9oe.png
shop page:
http://img514.imageshack.us/img514/8294/shop4eg.png
plz anyone tell me what to do :(


It looks like your language file is missing. Check that the Themes/default/languages/Shop.english.php file exists. See the forum error log if you still have problems.

Quote from: Elijah Bliss on November 19, 2005, 02:51:44 AM
Quote from: daniel15 on November 19, 2005, 02:14:01 AM
Quote
I would like tho change the shops "Find Member" functions of the mod to the more convenient and easy to use SMF pop-up Find Member function.

If you find out how to make that function work, I'll implement it :D

I was trying to a while ago (way back when SMFShop 0.2 came out), but I couldn't figure out how to do it.


    function getUseInput() {
         global $context, $settings;
        return 'User\'s name: <input id="username" type="text" name="username" size="50"> <a href="'. $scripturl. '?action=findmember;input=username;quote=1;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 Members</a>' . $txt[748] .
           '<br />New title: <input type="text" name="newtitle" size="50">';
    }

OK, maybe I'll implement it in the next SMFShop version. Thanks :D
Title: Re: SMFShop - Shop MOD
Post by: Pause on November 19, 2005, 04:54:40 AM
Quote from: Elijah Bliss on November 18, 2005, 01:40:04 PM
Quote from: Mattitude on November 18, 2005, 07:23:48 AM
Admittedly I haven't installed it onto my own website but using test_modification.php it tested successfully.

The major problem is the installScript.php not executing properly, I had to manually run those queries in phpMyadmin. I don't know how to fix that, however if someone has the know how we could make this a brief team effort, because I would like tho change the shops "Find Member" functions of the mod to the more convenient and easy to use SMF pop-up Find Member function.
I'll take a look when I can - has the database you've got it installed on had SMFShop before? Albeit on an earlier version of SMF. If so it might just need a few 'IF NOT EXISTS' adding in...
Title: Re: SMFShop - Shop MOD
Post by: Elijah Bliss on November 19, 2005, 04:27:29 PM
Quote from: Mattitude on November 19, 2005, 04:54:40 AM
Quote from: Elijah Bliss on November 18, 2005, 01:40:04 PM
Quote from: Mattitude on November 18, 2005, 07:23:48 AM
Admittedly I haven't installed it onto my own website but using test_modification.php it tested successfully.

The major problem is the installScript.php not executing properly, I had to manually run those queries in phpMyadmin. I don't know how to fix that, however if someone has the know how we could make this a brief team effort, because I would like tho change the shops "Find Member" functions of the mod to the more convenient and easy to use SMF pop-up Find Member function.
I'll take a look when I can - has the database you've got it installed on had SMFShop before? Albeit on an earlier version of SMF. If so it might just need a few 'IF NOT EXISTS' adding in...

I removed all the earlier shop tables from the database before I did the fresh install. After the fresh install I noticed the inventory table was not installed, something is wrong with that particular query.
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on November 22, 2005, 01:36:14 AM
So is that the reason I get the forum hacked error when trying to install the mod?
Title: Re: SMFShop - Shop MOD
Post by: totenmaske on November 22, 2005, 03:05:07 AM
Hello All,

My shop seems to be working fine with the following exceptions.


PS - I fixed a few weird thing by directly editing the mySQL database.  For instance I couldn't get the credit values to "stick" (per topic/post) nor the currency "Suffix" or "Prefix".

[UPDATE] Item number one is now fixed, I found several duplicate code sections in some templates (ie: ManageBoards.php)...but I still can't seem to locate the issue for number two!

Quote from: .diplomat on July 20, 2005, 10:39:07 PM
I having some problems. It seems, only in Firefox, that when i buy an item, it automatically buys two of them, but on my test forum, it doesnt do that (in firefox also). its not installed twice, ive checked. what could be wrong?
Title: Re: SMFShop - Shop MOD
Post by: Elijah Bliss on November 22, 2005, 05:34:24 AM
Quote from: ExistenZ on November 22, 2005, 01:36:14 AM
So is that the reason I get the forum hacked error when trying to install the mod?

Yes, you have to run those queries manually in phpMyadmin until that particular script is fixed.
Title: Re: SMFShop - Shop MOD
Post by: ArkServer on November 22, 2005, 08:39:49 AM
Can anyone make me a sql phpmyadmin dump?
Title: Re: SMFShop - Shop MOD
Post by: totenmaske on November 22, 2005, 01:42:51 PM
Until there is a solution for the FireFox bug how about a sub-routine for "returns" or "refunds" so that members can return unused items for credit.
Title: Re: SMFShop - Shop MOD
Post by: Foreverpurple on November 22, 2005, 09:01:20 PM
I've got issues with the members banked and pocketed money amounts fluctuating wildly.  This member is a Firefox user also.  Could it be related?
Title: Re: SMFShop - Shop MOD
Post by: Kajin_Style on November 24, 2005, 04:03:47 AM
Sorry for side tracking everyone with this:

I know that Daniel is pretty busy but I was wondering if someone could make a few added mods I need for my smf shop so that the shop can fit better my the rpg my forum has. I am willing to pay for the work, if that at all helps in anyway.
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on November 24, 2005, 10:31:31 AM
I tried to post this before, this time I included some screenshots so ppl could see what I`m talking about. I reall dont know what to do about it. My shop is NOT installed, but it works fine. Dont believe me, here you go. I really dont know what to do about this.Its the only error I get on the forum right now. 

(http://img.photobucket.com/albums/v704/bigguy982/pman.jpg)

(http://img.photobucket.com/albums/v704/bigguy982/shop.jpg)



Title: Re: SMFShop - Shop MOD
Post by: Aaron on November 24, 2005, 10:33:39 AM
Quote from: Bigguy on November 24, 2005, 10:31:31 AM
I tried to post this before, this time I included some screenshots so ppl could see what I`m talking about. I reall dont know what to do about it. My shop is NOT installed, but it works fine. Dont believe me, here you go. I really dont know what to do about this.Its the only error I get on the forum right now. 

You're using an old version of the mod, I suggest you upgrade it to 1.3 build 6. :)

Aaron.
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on November 24, 2005, 10:35:15 AM
How do I upgrade when its not installed ??? I dont want to delete the entry in case it screws up the rest of the board. there are 2 screenshots.
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on November 24, 2005, 12:30:14 PM
Well, i think you just run it the standard way...i don't know, though.
Title: Re: SMFShop - Shop MOD
Post by: Elijah Bliss on November 24, 2005, 03:25:49 PM
I'd also recommend to Daniel to use "realName" instead of "memberName" to display names. Also, stay away from showing user ids as well.
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on November 24, 2005, 04:04:12 PM
My site went down once since its been up and i had to use a backup to restore everything. This I think is why the shop works but doesnt say it is installed.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on November 25, 2005, 05:50:16 AM
I just wanted to say that I'm working on the next version of SMFShop :D It should be available soon!

Quote from: totenmaske on November 22, 2005, 03:05:07 AM
Hello All,

My shop seems to be working fine with the following exceptions.


  • When starting topics or replying to threads...credits are credited to members twice (X2)!
  • When purchasing items the system gives the purchaser 2 of the same item but only in Firefox (not IE)?!
  • These two problems could be related.  When I edit a board the following field is listed twice "Count Shop Points - Members will receive Shop credits for posting in this forum."
Check for duplicate code sections in Post.php and ManageBoards.php... Actually, it would be best to check for duplicate sections in all of the files SMFShop edits (see the .xml file in the ZIP for the file names).

QuoteHow do I upgrade when its not installed
Don't worry about it. Just install the upgrade package. It should work fine :D

QuoteI'd also recommend to Daniel to use "realName" instead of "memberName" to display names.
OK, in the next release I'll use realName as opposed to memberName.

Title: Re: SMFShop - Shop MOD
Post by: Bigguy on November 25, 2005, 09:41:58 AM
Ok I did what you said and upgraded to the new version without problem. I have just cleared my error log before I did the install. (Sorry for all the screenshots) Heres one more pic maybe this will help figure out whats going on.

(http://img.photobucket.com/albums/v704/bigguy982/error.jpg)
Title: Re: SMFShop - Shop MOD
Post by: ArkServer on November 25, 2005, 10:20:18 AM
I Still cant install it using the attachment in the first post. Can anony give me a sql dump of the shop?
Title: Re: SMFShop - Shop MOD
Post by: tX on November 26, 2005, 02:10:49 AM
Quote from: daniel15 on November 25, 2005, 05:50:16 AM
I just wanted to say that I'm working on the next version of SMFShop :D It should be available soon!

Quote from: totenmaske on November 22, 2005, 03:05:07 AM
Hello All,

My shop seems to be working fine with the following exceptions.


  • When starting topics or replying to threads...credits are credited to members twice (X2)!
  • When purchasing items the system gives the purchaser 2 of the same item but only in Firefox (not IE)?!
  • These two problems could be related.  When I edit a board the following field is listed twice "Count Shop Points - Members will receive Shop credits for posting in this forum."
Check for duplicate code sections in Post.php and ManageBoards.php... Actually, it would be best to check for duplicate sections in all of the files SMFShop edits (see the .xml file in the ZIP for the file names).

QuoteHow do I upgrade when its not installed
Don't worry about it. Just install the upgrade package. It should work fine :D

QuoteI'd also recommend to Daniel to use "realName" instead of "memberName" to display names.
OK, in the next release I'll use realName as opposed to memberName.



cool cool cool!!!! I hope it installed easy on a RC1 board. :) I cant wait, I'm setting up a new forum soon and it'll be cool to try this.
Title: Re: SMFShop - Shop MOD
Post by: Foreverpurple on November 26, 2005, 06:06:02 AM
ANyone know if I uninstall the Shop and the reinstall it, will my members lose their money??
Title: HELP NEEDED 4 new theme SMFShop - Shop MOD
Post by: kadhumia_flo on November 26, 2005, 07:36:10 AM
I have a new theme, and i want it to have the amount of credit one has with the post, just like my old theme

Please advise
1) If I uninstall and reinstall , will everones credit be reset? If NO, go to 4
2) Is there another way? If Yes go to number 4
3) is there anthing else? If NO press Alt+F4
4) Thanks, now reply and tell me
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on November 26, 2005, 10:32:43 AM
Yes I do believe they will.

Quote from: Foreverpurple on November 26, 2005, 06:06:02 AM
ANyone know if I uninstall the Shop and the reinstall it, will my members lose their money??
Title: Re: HELP NEEDED 4 new theme SMFShop - Shop MOD
Post by: WedgeTalon on November 26, 2005, 10:51:05 AM
Quote from: kadhumia_flo on November 26, 2005, 07:36:10 AM
I have a new theme, and i want it to have the amount of credit one has with the post, just like my old theme

Please advise
1) If I uninstall and reinstall , will everones credit be reset? If NO, go to 4

I would bet that if you backed up the database, un/re-install, then restore the database, that they will keep the amounts.

Also, couldn't you just manually edit the new theme in the right spot to show it? Seems to me lke that would be easiest. :-\
Title: Re: SMFShop - Shop MOD
Post by: Foreverpurple on November 28, 2005, 01:42:22 AM
Quote from: Bigguy on November 26, 2005, 10:32:43 AM
Yes I do believe they will.

Quote from: Foreverpurple on November 26, 2005, 06:06:02 AM
ANyone know if I uninstall the Shop and the reinstall it, will my members lose their money??

Well turns out there's not an uninstall option anyhow.
Title: Re: SMFShop - Shop MOD
Post by: liljdude on November 28, 2005, 05:03:39 PM
help!!!

ok so i am having problems installing my this mod... everytime i click apply it says success all the way down and when i check to see if it is installed it does not work what am i doing wrong... i am kind of new to smf but i like the software just having problems anyone wanna help me either reply or pm me
Title: Re: SMFShop - Shop MOD
Post by: Saku on November 28, 2005, 07:24:57 PM
Quote from: Brian on February 27, 2005, 01:41:19 AM
Here is what I did to modify the removetopic.php and post.php to prevent users from editing and deleting posts to get credits.

removetopic.php


// Decrease the post counts.
if ($decreasePostCount)
{
$requestMembers = db_query("
SELECT m.ID_MEMBER, COUNT(m.ID_MSG) AS posts
FROM {$db_prefix}messages AS m, {$db_prefix}boards AS b
WHERE m.ID_TOPIC $condition
AND b.ID_BOARD = m.ID_BOARD
AND m.icon != 'recycled'
AND b.countPosts = 0
GROUP BY m.ID_MEMBER", __FILE__, __LINE__);




if (mysql_num_rows($requestMembers) > 0)
{
while ($rowMembers = mysql_fetch_assoc($requestMembers))

{
     //BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money - {$modSettings['shopPointsPerPost']}
                            WHERE ID_MEMBER = {$rowMembers['ID_MEMBER']}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD

updateMemberData($rowMembers['ID_MEMBER'], array('posts' => 'posts - ' . $rowMembers['posts']));
}
}
mysql_free_result($requestMembers);



}




// Only decrease post counts.
else
db_query("
UPDATE {$db_prefix}topics
SET numReplies = numReplies - 1
WHERE ID_TOPIC = $row[ID_TOPIC]
LIMIT 1", __FILE__, __LINE__);

db_query("
UPDATE {$db_prefix}boards
SET numPosts = numPosts - 1
WHERE ID_BOARD = $row[ID_BOARD]
LIMIT 1", __FILE__, __LINE__);

// If the poster was registered and the board this message was on incremented
// the member's posts when it was posted, decrease his or her post count.
if (!empty($row['ID_MEMBER']) && $decreasePostCount && empty($row['countPosts']))

{
updateMemberData($row['ID_MEMBER'], array('posts' => '-'));
               //BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money - {$modSettings['shopPointsPerPost']}
                            WHERE ID_MEMBER = {$ID_MEMBER}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD
}

// Only remove posts if they're not recycled.





post.php


// Lock and or sticky the post.
if ((isset($_POST['sticky']) && !empty($modSettings['enableStickyTopics'])) || isset($_POST['lock']) || isset($_REQUEST['poll']))
{
if (isset($_POST['sticky']) && !empty($modSettings['enableStickyTopics']))
$setString = 'isSticky = ' . (int) $_POST['sticky'];
else
$setString = '';

if (isset($_POST['lock']) && $setString != '')
$setString .= ', locked = ' . (int) $_POST['lock'];
elseif (isset($_POST['lock']))
$setString = 'locked = ' . (int) $_POST['lock'];

if (isset($_REQUEST['poll']) && $setString != '')
$setString .= ", ID_POLL = $ID_POLL";
elseif (isset($_REQUEST['poll']))
$setString = "ID_POLL = $ID_POLL";

db_query("
UPDATE {$db_prefix}topics
SET $setString
WHERE ID_TOPIC = $topic
LIMIT 1", __FILE__, __LINE__);
}

// Might've changed the subject/poster.
updateLastMessages($board);

$newTopic = false;

        //BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money - {$modSettings['shopPointsPerPost']}
                            WHERE ID_MEMBER = {$ID_MEMBER}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD


}



how can i do that with SMF 1.1 RC1, my members spam and delete theirs posts to get credit
thanks
Title: Re: SMFShop - Shop MOD
Post by: Gigerm-Unit on November 28, 2005, 10:00:56 PM
please make a version where it works on all themes check my site it only works on default please make one that works for all even if the button does not match.
Title: Re: SMFShop - Shop MOD
Post by: houston on November 28, 2005, 10:23:53 PM
Quote from: Gigerm-Unit on November 28, 2005, 10:00:56 PM
please make a version where it works on all themes check my site it only works on default please make one that works for all even if the button does not match.

That would be a lot of work. If you want to edit all your themes you need to do it manually. Just follow the .xml files in the mod and do only the edits that change files within the themes directory(i.e. classic,default, and any other theme that you may have installed.). everything else the the xml file changes (i.e. anything in the sources directory that it modifies) would only have to be done once,

Remember always make backups first befrore you do any manual modifications
Title: Re: SMFShop - Shop MOD
Post by: desistyle on November 29, 2005, 12:45:40 AM
How should i uninstall this mod i am running 1.05 smf and when i now try to uninstall this mod it says

An Error Has Occurred!
This package cannot be uninstalled, because there is no uninstaller!

Please contact the mod author for more information.


Can someone help please
Title: Re: SMFShop - Shop MOD
Post by: Saku on November 30, 2005, 09:54:29 AM
Quote from: Sakuragi on November 28, 2005, 07:24:57 PM
Quote from: Brian on February 27, 2005, 01:41:19 AM
Here is what I did to modify the removetopic.php and post.php to prevent users from editing and deleting posts to get credits.

removetopic.php


// Decrease the post counts.
if ($decreasePostCount)
{
$requestMembers = db_query("
SELECT m.ID_MEMBER, COUNT(m.ID_MSG) AS posts
FROM {$db_prefix}messages AS m, {$db_prefix}boards AS b
WHERE m.ID_TOPIC $condition
AND b.ID_BOARD = m.ID_BOARD
AND m.icon != 'recycled'
AND b.countPosts = 0
GROUP BY m.ID_MEMBER", __FILE__, __LINE__);




if (mysql_num_rows($requestMembers) > 0)
{
while ($rowMembers = mysql_fetch_assoc($requestMembers))

{
     //BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money - {$modSettings['shopPointsPerPost']}
                            WHERE ID_MEMBER = {$rowMembers['ID_MEMBER']}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD

updateMemberData($rowMembers['ID_MEMBER'], array('posts' => 'posts - ' . $rowMembers['posts']));
}
}
mysql_free_result($requestMembers);



}




// Only decrease post counts.
else
db_query("
UPDATE {$db_prefix}topics
SET numReplies = numReplies - 1
WHERE ID_TOPIC = $row[ID_TOPIC]
LIMIT 1", __FILE__, __LINE__);

db_query("
UPDATE {$db_prefix}boards
SET numPosts = numPosts - 1
WHERE ID_BOARD = $row[ID_BOARD]
LIMIT 1", __FILE__, __LINE__);

// If the poster was registered and the board this message was on incremented
// the member's posts when it was posted, decrease his or her post count.
if (!empty($row['ID_MEMBER']) && $decreasePostCount && empty($row['countPosts']))

{
updateMemberData($row['ID_MEMBER'], array('posts' => '-'));
               //BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money - {$modSettings['shopPointsPerPost']}
                            WHERE ID_MEMBER = {$ID_MEMBER}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD
}

// Only remove posts if they're not recycled.





post.php


// Lock and or sticky the post.
if ((isset($_POST['sticky']) && !empty($modSettings['enableStickyTopics'])) || isset($_POST['lock']) || isset($_REQUEST['poll']))
{
if (isset($_POST['sticky']) && !empty($modSettings['enableStickyTopics']))
$setString = 'isSticky = ' . (int) $_POST['sticky'];
else
$setString = '';

if (isset($_POST['lock']) && $setString != '')
$setString .= ', locked = ' . (int) $_POST['lock'];
elseif (isset($_POST['lock']))
$setString = 'locked = ' . (int) $_POST['lock'];

if (isset($_REQUEST['poll']) && $setString != '')
$setString .= ", ID_POLL = $ID_POLL";
elseif (isset($_REQUEST['poll']))
$setString = "ID_POLL = $ID_POLL";

db_query("
UPDATE {$db_prefix}topics
SET $setString
WHERE ID_TOPIC = $topic
LIMIT 1", __FILE__, __LINE__);
}

// Might've changed the subject/poster.
updateLastMessages($board);

$newTopic = false;

        //BEGIN Shop MOD 0.2 code
        $result = db_query("UPDATE {$db_prefix}members
                            SET money = money - {$modSettings['shopPointsPerPost']}
                            WHERE ID_MEMBER = {$ID_MEMBER}
                            LIMIT 1", __FILE__, __LINE__);
        //END SHOP MOD


}



how can i do that with SMF 1.1 RC1, my members spam and delete theirs posts to get credit
thanks
Any one can help me??

Bug : You must modify the name of dointerest.php, if not the members can add the interests when they want.
http://www.site.com/forum/Sources/shop/dointerest.php
Title: Re: SMFShop - Shop MOD
Post by: Gigerm-Unit on November 30, 2005, 06:34:05 PM
can
Quote from: desistyle on November 29, 2005, 12:45:40 AM
How should i uninstall this mod i am running 1.05 smf and when i now try to uninstall this mod it says

An Error Has Occurred!
This package cannot be uninstalled, because there is no uninstaller!

Please contact the mod author for more information.


Can someone help please
anyone please tell me a way to uninstall this?
Title: Re: SMFShop - Shop MOD
Post by: Luistov on November 30, 2005, 06:57:39 PM
ok i downloaded SMFShop 1.3 Fresh. i uploaded the .zip 2 my package manager, i clicked on apply mod. this is what it tells me

Installation Readme

Please read this WHOLE readme before starting installation!

This MOD will add a Forum Shop to your Forum (similar to IBStore for Invision Board).

This is the FRESH INSTALL package. If you've installed SMFShop 1.2, please download the SMFShop 1.2 to 1.3 update package instead!

Changes in 1.3:
* You can now choose what forums members gain points in! This was a frequently requested addition.
* Admins can now change a member's money in the bank (as well as in pocket)
* Email an Admin item fixed (yet another problem was discovered!)
* Link to DanSoft Australia was changed to new URL

To edit any of the text in the shop (for example, if you want to call it 'Store' rather than 'Shop', or 'Money Storage' rather than 'Bank'), open the 'Themes/default/languages/Shop.english.php' file and look around.

!!!!!!!IMPORTANT!!!!!!!!!!! READ BEFORE INSTALLING!!!!!
Please read the following BEFORE you install.

If you get a 'Internal Server Error' message while installing (this happens rarely, but does happen), do the following:
1. Proceed with installation until "Internal Server Error" page appears. LEAVE THIS PAGE AS IS.
2. FTP into your account. Look for the folder which has been chmodded to 777. This is typically the root folder of your forum. (eg. /public_html/forums)
3. CHMOD the directory back to 755.
4. Refresh the "Internal Server Error" page. You may need to : a) IE - hold CTRL and press Refresh; b) Firefox - hold SHIFT and press Reload.

!!!!!!!IMPORTANT!!!!!!!!!!!

(c) 2005 DanSoft Australia - http://www.dansoftaustralia.net/
Version: 1.3 (Build 6)
Release Date: 24th September 2005



Install Actions for archive SMFShop_111.3_FRESH_INSTALL.zip:
Installing this package will perform the following actions:  Type Action Description
1. Extract File ./Sources/shop/items/AddToPostCount.php  
2. Extract File ./Sources/shop/items/ChangeDisplayName.php  
3. Extract File ./Sources/shop/items/ChangeOtherTitle.php  
4. Extract File ./Sources/shop/items/ChangeUsername.php  
5. Extract File ./Sources/shop/items/ChangeUserTitle.php  
6. Extract File ./Sources/shop/items/EmailAdmin.php  
7. Extract File ./Sources/shop/items/filedownload.php  
8. Extract File ./Sources/shop/items/IncreaseKarma.php  
9. Extract File ./Sources/shop/items/IncreaseTimeLoggedIn.php  
10. Extract File ./Sources/shop/items/RandomMoney.php  
11. Extract File ./Sources/shop/items/Rock.php  
12. Extract File ./Sources/shop/items/Steal.php  
13. Extract File ./Sources/shop/items/testitem.php  
14. Extract File ./Sources/shop/items/testitem2.php  
15. Extract File ./Sources/shop/items/ChangeOtherTitle.php  
16. Extract File ./Sources/shop/items/DecreasePost.php  
17. Extract File ./Sources/shop/item_images/Airplane.gif  
18. Extract File ./Sources/shop/item_images/Bear.gif  
19. Extract File ./Sources/shop/item_images/blank.gif  
20. Extract File ./Sources/shop/item_images/Boardarrow.gif  
21. Extract File ./Sources/shop/item_images/Breadandbutter.gif  
22. Extract File ./Sources/shop/item_images/Claspknife.gif  
23. Extract File ./Sources/shop/item_images/Clip.gif  
24. Extract File ./Sources/shop/item_images/Compactdiscs.gif  
25. Extract File ./Sources/shop/item_images/Controller.gif  
26. Extract File ./Sources/shop/item_images/Darkbeer.gif  
27. Extract File ./Sources/shop/item_images/Dousojin.gif  
28. Extract File ./Sources/shop/item_images/Dutchoven.gif  
29. Extract File ./Sources/shop/item_images/Dxtwoburner.gif  
30. Extract File ./Sources/shop/item_images/Figure.gif  
31. Extract File ./Sources/shop/item_images/Filefolder.gif  
32. Extract File ./Sources/shop/item_images/Fish.gif  
33. Extract File ./Sources/shop/item_images/Fishingtackle.gif  
34. Extract File ./Sources/shop/item_images/Flyingobject.gif  
35. Extract File ./Sources/shop/item_images/Gamepad.gif  
36. Extract File ./Sources/shop/item_images/Hamburger.gif  
37. Extract File ./Sources/shop/item_images/iBook.gif  
38. Extract File ./Sources/shop/item_images/Icecream.gif  
39. Extract File ./Sources/shop/item_images/IronDevil.gif  
40. Extract File ./Sources/shop/item_images/Kettle.gif  
41. Extract File ./Sources/shop/item_images/Lantern.gif  
42. Extract File ./Sources/shop/item_images/Lighterfluid.gif  
43. Extract File ./Sources/shop/item_images/Makecoffee.gif  
44. Extract File ./Sources/shop/item_images/Markers.gif  
45. Extract File ./Sources/shop/item_images/Moneys.gif  
46. Extract File ./Sources/shop/item_images/Peas.gif  
47. Extract File ./Sources/shop/item_images/Percolator.gif  
48. Extract File ./Sources/shop/item_images/Scotchtape.gif  
49. Extract File ./Sources/shop/item_images/Tent.gif  
50. Extract File ./Sources/shop/item_images/Titaniummug.gif  
51. Extract File ./Sources/shop/item_images/Tomatoes.gif  
52. Extract File ./Sources/shop/item_images/Toypiano.gif  
53. Extract File ./Sources/shop/item_images/Train.gif  
54. Extract File ./Sources/shop/item_images/Tree.gif  
55. Extract File ./Sources/shop/item_images/Truck.gif  
56. Extract File ./Sources/shop/item_images/Videocassettes.gif  
57. Extract File ./Sources/shop/item_images/Wheel.gif  
58. Extract File ./Sources/shop/item_images/Woodenpuzzle.gif  
59. Extract File ./Sources/shop/item_images/Woodentoy.gif  
60. Extract File ./Sources/shop/item_engine.php  
61. Extract File ./Sources/shop/ShopAdmin.php  
62. Extract File ./Sources/shop/Shop.php  
63. Extract File ./Sources/shop/dointerest.php  
64. Extract File Themes/default/images/english/shop.gif  
65. Extract File Themes/default/languages/Shop.english.php  
66. Extract File Themes/default/ShopAdmin.template.php  
67. Extract File Themes/default/Shop.template.php  
68. Execute Modification ./index.php Success
69. Execute Modification ./Sources/Post.php Success
70. Execute Modification ./Sources/Subs.php Success
71. Execute Modification ./Sources/ManageBoards.php Success
72. Execute Modification ./Themes/default/ManageBoards.template.php Success
73. Execute Modification ./Themes/default/Display.template.php Success
74. Execute Modification ./Themes/default/index.template.php Success
75. Execute Code installScript.php



FTP Information Required
Some of the files this package needs to modify are not writable. This needs to be changed by logging into FTP and chmoding the files.
FTP Server: Port: localhost  
Username:   XXXX
Password:   XXXXXX
Local path to SMF: public_html/forums

after i enterall my FTP information, i click on the Proceed button. it takes me back 2 the same page. IDK what 2 do anymore. I need help

Title: Re: SMFShop - Shop MOD
Post by: Ceroscuro on December 03, 2005, 01:34:44 PM
I actually don't see the "FRESH" install anywhere... anyone got a link?
Title: Re: SMFShop - Shop MOD
Post by: greyknight17 on December 03, 2005, 06:30:17 PM
Quote from: Dark Zero on December 03, 2005, 01:34:44 PM
I actually don't see the "FRESH" install anywhere... anyone got a link?
Get it from the Mods Page (http://mods.simplemachines.org/index.php?mod=65)  :)
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 04, 2005, 09:15:43 PM
I really need help with this mod. I`m getting alot of errors from it. These are some of the errors i`m getting from it.

EDIT: Umm, I have just looked at this file and the last line in it is like 350 or something, there is no lines after that so there cant be a line 936 is this why there is an error ??

    
QuoteToday at 09:12:16 PM
Apply Filter: Only show the error messages of this IP address *******      Apply Filter: Only show the error messages of this session 511940c7ee4f8d357bac0ffa41591f6a
Apply Filter: Only show the error messages of this URL http://www.mywworld.com/smf/index.php?board=67.0
Apply Filter: Only show the errors with the same message
8: Undefined index: shop
File: /home/****/public_html/smf/Themes/cold/MessageIndex.template.php (eval?)
Line: 936
   
Apply Filter: Only show the error messages of this member zvez    Today at 09:12:26 PM
Apply Filter: Only show the error messages of this IP address ********      Apply Filter: Only show the error messages of this session 511940c7ee4f8d357bac0ffa41591f6a
Apply Filter: Only show the error messages of this URL http://www.mywworld.com/smf/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: shop
File: /home/***/public_html/smf/Themes/cold/BoardIndex.template.php (eval?)
Line: 936
   
Apply Filter: Only show the error messages of this member Bigguy    Today at 09:12:58 PM
Apply Filter: Only show the error messages of this IP address *******      Apply Filter: Only show the error messages of this session 766b2a4ada7a4a46400d2b8d91ccaba8
Apply Filter: Only show the error messages of this URL http://www.mywworld.com/smf/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: shop
File: /home/****/public_html/smf/Themes/cold/MessageIndex.template.php (eval?)
Line: 936
Title: sources/subs.boards.php installation error
Post by: houston on December 05, 2005, 01:42:18 PM
I keep getting this error when I go to the Manage Boards and Categories Panel

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '=> 1,
b.permission_mode, c.ID_CAT, c.name AS cName, c.catOrd
File: /home/eaglebay/public_html/forum/Sources/Subs-Boards.php
Line: 1468


The problem lies with this install.xml command

<operation>
<search position="before"><![CDATA[b.override_theme,
]]></search>
<add><![CDATA'countMoney' => 1,
]]></add>
</operation>


I know that this code <add><![CDATA'countMoney' => 1,

Should actually be <add><![CDATA['countMoney' => 1,

The installation adds this to the file <![CDATA['countMoney' => 1, and I change it to this 'countMoney' => 1, as it should be.

So why am I getting the error and not able to access the Manage Boards and Categories Panel

Thanks for any help.
Title: Re: SMFShop - Shop MOD
Post by: Saku on December 05, 2005, 02:16:56 PM
on Subs-Boards.php
search
b.override_theme,

replace:

b.override_theme, b.countMoney,
Title: Re: SMFShop - Shop MOD
Post by: houston on December 05, 2005, 04:22:22 PM
Quote from: Sakuragi on December 05, 2005, 02:16:56 PM
on Subs-Boards.php
search
b.override_theme,

replace:

b.override_theme, b.countMoney,

That did it. Thanks alot for your quick response.  ;)
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 05, 2005, 04:45:44 PM
Quote from: Bigguy on December 04, 2005, 09:15:43 PM
I really need help with this mod. I`m getting alot of errors from it. These are some of the errors i`m getting from it.

EDIT: Umm, I have just looked at this file and the last line in it is like 350 or something, there is no lines after that so there cant be a line 936 is this why there is an error ??

    
QuoteToday at 09:12:16 PM
Apply Filter: Only show the error messages of this IP address *********      Apply Filter: Only show the error messages of this session 511940c7ee4f8d357bac0ffa41591f6a
Apply Filter: Only show the error messages of this URL http://www.mywworld.com/smf/index.php?board=67.0
Apply Filter: Only show the errors with the same message
8: Undefined index: shop
File: /home/*****/public_html/smf/Themes/cold/MessageIndex.template.php (eval?)
Line: 936
   
Apply Filter: Only show the error messages of this member zvez    Today at 09:12:26 PM
Apply Filter: Only show the error messages of this IP address ********      Apply Filter: Only show the error messages of this session 511940c7ee4f8d357bac0ffa41591f6a
Apply Filter: Only show the error messages of this URL http://www.mywworld.com/smf/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: shop
File: /home/*****/public_html/smf/Themes/cold/BoardIndex.template.php (eval?)
Line: 936
   
Apply Filter: Only show the error messages of this member Bigguy    Today at 09:12:58 PM
Apply Filter: Only show the error messages of this IP address *******      Apply Filter: Only show the error messages of this session 766b2a4ada7a4a46400d2b8d91ccaba8
Apply Filter: Only show the error messages of this URL http://www.mywworld.com/smf/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: shop
File: /home/*****/public_html/smf/Themes/cold/MessageIndex.template.php (eval?)
Line: 936
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 06, 2005, 02:45:09 PM
I have looked at my "boardindex.template.php" and my "Messageindex.template.php" and neither one of them contain info about the shop. Is this the problem. ???
Title: Re: SMFShop - Shop MOD
Post by: Purplemadness on December 07, 2005, 09:17:03 AM
Quote from: Luistov on November 30, 2005, 06:57:39 PM

FTP Information Required
Some of the files this package needs to modify are not writable. This needs to be changed by logging into FTP and chmoding the files.
FTP Server: Port: localhost   
Username:   XXXX
Password:   XXXXXX
Local path to SMF: public_html/forums

after i enterall my FTP information, i click on the Proceed button. it takes me back 2 the same page. IDK what 2 do anymore. I need help


Same here =(
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 07, 2005, 03:39:13 PM
Can anyone help.or am I asking a stupid question or something. I have searched for answers.
Title: Re: SMFShop - Shop MOD
Post by: Saku on December 07, 2005, 04:06:30 PM
<file name="$boarddir/Themes/default/ManageBoards.template.php">
<operation>
<search position="before"><![CDATA[<input type="checkbox" name="override_theme"', $context['board']['override_theme'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';]]></search>
<add><![CDATA[
    //BEGIN SMFShop Shop MOD 1.3 (Build 6) code
loadLanguage("Shop");
echo '                     <tr>
<td>
<b>', $txt['shop_count_points'], '</b><br />
', $txt['shop_count_points_msg'], '<br /><br />
</td>
<td valign="top" align="right">
<input type="checkbox" name="countMoney"', $context['board']['countMoney'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';
//END SHOP MOD
]]></add>
</operation>
</file>

    <file name="$boarddir/Themes/default/Display.template.php">
        <operation>
            <search position="replace"><![CDATA[
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';
]]></search>
           <add><![CDATA[
// Show how many posts they have made.
// echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />
// <br />';

            //BEGIN Shop MOD 0.2 Code
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';

            //I couldn't find where all these $message['member'][whatever] variables
            //are set, so I just send an extra database query to get the member's
            //money. Can someone tell me where (file and line) the $message variables
            //are set?
            global $ID_MEMBER, $db_prefix;

            $result_money = db_query("SELECT money
                                      FROM {$db_prefix}members
                                      WHERE ID_MEMBER = {$message['member']['id']}
                                      LIMIT 1", __FILE__, __LINE__);
            $row_money = mysql_fetch_array($result_money, MYSQL_ASSOC);

            echo $modSettings['shopCurrencyPrefix'].$row_money['money'].$modSettings['shopCurrencySuffix']."<br><br>";
            //END SHOP MOD
           

            //BEGIN SMFShop MOD 1.1 (Build 4) CODE
            echo "<a href='$scripturl?action=shop;do=invother2;membertype=id;member={$message['member']['id']}'>View Inventory</a><br>";
            //END SMFShop MOD 1.1 code
]]></add>
        </operation>
    </file>
    <file name="$boarddir/Themes/default/index.template.php">
        <operation>
            <search position="before"><![CDATA[
<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];
]]></search>
            <add><![CDATA[
    //BEGIN Shop MOD 0.2 Code
    echo "<a href='{$scripturl}?action=shop'>", ($settings['use_image_buttons'] ? "<img src='{$settings['images_url']}/{$context['user']['language']}/shop.gif' alt='{$txt['shop']}' style='margin: 2px 0;' border='0' />" : $txt['shop']), "</a>{$context['menu_separator']}";
    //END SHOP MOD
]]></add>
        </operation>
    </file>

the are no change to be made in BoardIndex.template.php and MessageIndex.template.php
put here the line 936 of your files...
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 07, 2005, 04:50:01 PM
But there is NO line 936, the lines only go up to 350 or something then its all blank after that. How do I know this ??? I`m using a program called php designer 2005 and it counts the rows of code in a file. I only have 350 lines of code so HOW DO I put this on line 936.

If anyone wants a complete history of this problem please refer to these posts in this thread :

#550
#551
#562
#566
#569
#694
#701
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 09, 2005, 10:00:25 PM
Hi everyone,
Due to the inability to handle everyone's support questions in this one thread, I have created a bug tracker on my site. You may visit the support area of my site at http://support.dansoftaus.uni.cc/. Use the bug tracker for bugs, and the support ticket system for anything else (feature requests, installation help, etc, etc). Also, if I'm online, there is a live support feature, which is basically like a live chat site.

Also, about the FTP problem, I don't think that's related to SMFShop. Maybe it's something to do with the package manager.

Please also remember that the SMFShop install package for SMF 1.1 is UNOFFICIAL.

ANOTHER NOTE: The dansoftaustralia.net domain is currently unavailable. Pleas access my site by going to http://www.dansoftaus.uni.cc/
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 09, 2005, 10:09:41 PM
IMPORTANT! A security vulnerability has been found in the dointerest.php file. To fix it, please replace your dointerest.php file with this:


if(!isset($_SERVER["HTTP_HOST"])) {

include("../../SSI.php");

$interest_rate = $modSettings['shopInterest'] / 100;
db_query("UPDATE {$db_prefix}members
  SET moneyBank = moneyBank + (moneyBank*{$interest_rate})", __FILE__, __LINE__);

echo "Interest added at ".date("d/m/Y h:i:s A");
}


Thanks,
--daniel15
Title: Re: SMFShop - Shop MOD
Post by: Yuri on December 09, 2005, 10:31:34 PM
1.     Extract File     ./Sources/shop/items/AddToPostCount.php     
2.    Extract File    ./Sources/shop/items/ChangeOtherTitle.php    
3.    Extract File    ./Sources/shop/items/filedownload.php    
4.    Extract File    ./Sources/shop/items/IncreaseKarma.php    
5.    Extract File    ./Sources/shop/items/IncreaseTimeLoggedIn.php    
6.    Extract File    ./Sources/shop/items/morespace.php    
7.    Extract File    ./Sources/shop/items/RandomMoney.php    
8.    Extract File    ./Sources/shop/items/Rock.php    
9.    Extract File    ./Sources/shop/items/Steal.php    
10.    Extract File    ./Sources/shop/items/testitem.php    
11.    Extract File    ./Sources/shop/items/testitem2.php    
12.    Extract File    ./Sources/shop/item_engine.php    
13.    Extract File    ./Sources/shop/Shop.php    
14.    Extract File    ./Sources/shop/ShopAdmin.php    
15.    Extract File    Themes/default/Shop.template.php    
16.    Extract File    Themes/default/ShopAdmin.template.php    
17.    Extract File    Themes/default/languages/Shop.english.php    
18.    Execute Modification    ./Themes/default/Display.template.php    Failure
19.    Execute Code    updateScript.php    


help , plz ?? I use 1.0.5  ???
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 10, 2005, 01:10:44 AM
VERSION 1.31 RELEASED! This fixes a number of bugs, and also fixed a major security hole in dointerest.php. It is recommended that all users of SMFShop upgrade to the newest version.

Good news for SMF 1.1 users! SMFShop 1.31 now has a SMF 1.1 package! This, however, is not tested by me. I recommend that you test it on a testing board before installing it on a public site!

Changes in 1.31:
* A MAJOR security update to dointerest.php file!
* The Display Name is now used to display members' names, instead of their login name
* Everywhere where you had to manually enter in a member's name has now been replaced with the SMF 'Select Member' function (frequently requested)
* View Other Members' Inventory function can no longer use a member's ID to get their inventory (due to feedback from the SMF developers)

Files which have been changed in 1.31:
* Sources/shop/ShopAdmin.php
* Sources/shop/ShopAdmin.template.php
* Sources/shop/Shop.php
* Sources/shop/Shop.template.php
* Sources/shop/dointerest.php
* Themes/default/language/Shop.english.php
* Sources/shop/items/ChangeOtherTitle.php
* Sources/shop/items/DecreasePost.php
* Sources/shop/items/Steal.php

Modified Edits:
* Themes/default/Display.template.php

Texts which have been removed:
* $txt['shop_member_type_error']

Get it from the SMFShop MOD page (http://mods.simplemachines.org/?mod=65)

Also, remember that official SMFShop support is available at http://support.dansoftaus.uni.cc/ Use the bug tracker for bug reports, and the support ticket system for everything else.
Title: Re: SMFShop - Shop MOD
Post by: Moocat on December 10, 2005, 01:47:43 AM
EXCELLENT JOB, DAN!

this is matt, btw, the guy who put that ticket in your site :D i can't wait to try it!
Title: Re: SMFShop - Shop MOD
Post by: Moocat on December 10, 2005, 04:40:09 AM
ummm... unfortunately, the package doesn't work... either get "fatal error" and some long string of godknowswhat (only saw it once and can't replicate... had to reinstall smf and delete table entries). when it doesn't do that, i get "hacking attempt". like the file said in the case of the "internal server error", my public_html folder did get changed to 777, so i chmodded it back to 755.... refreshed... and it told me that smf_shop_items or whatever had already been created. a little help please?

ps : stupidly forgot to mention: using the 1.1 RC1 version.... with smf 1.1 RC1, ofc.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 10, 2005, 05:42:51 AM
Try the SMF 1.1 version again (can you please try it with a fresh install of SMF - no mods). There was a slight problem with one of the SQL statements which made it think that there was a hacking attempt...
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on December 10, 2005, 06:19:08 AM
Excellent work daniel15

Hope that smf 1.1 will treat it with care (hopefully but it might not)
Title: Re: SMFShop - Shop MOD
Post by: ArkServer on December 10, 2005, 11:20:18 AM
Unknown column 'countMoney' in 'field list'
File: Sources\Post.php
Line: 1604

Can anyone make export the SQL file for me? i cant install it with the install file!

http://arkserver.servehttp.com/forum/index.php
When i click "shop" i only see a blank screen.

Download the modified files here if you want: http://arkserver.servehttp.com/smf/
maybe you guys/girls can see what i did wrong..
Title: Re: SMFShop - Shop MOD
Post by: ArkServer on December 10, 2005, 01:20:12 PM
Ok ignore the post before me, i fixed it all. Did manual install and manually added the SQL. Tho i have 1 more question: How can i add an item?

Item Administration
|--- Add Items

doesnt work, it shows an empty itemlist
Title: Re: SMFShop - Shop MOD
Post by: Moocat on December 10, 2005, 04:12:52 PM
the first three tries i made were with the original smf install. re-downloading and trying agian. thanks.
Title: Re: SMFShop - Shop MOD
Post by: Moocat on December 10, 2005, 04:16:24 PM
excellent! it worked! :D
Title: Re: SMFShop - Shop MOD
Post by: ArkServer on December 10, 2005, 04:24:26 PM
Good to hear that it works for some ppl but i cant seem to fix it, now i also have an error when i want too use an item, when i click on a bought item it gives me another blank screen..
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 10, 2005, 08:38:44 PM
Hi ArkServer,

Quotehttp://arkserver.servehttp.com/forum/index.php
When i click "shop" i only see a blank screen.

Download the modified files here if you want: http://arkserver.servehttp.com/smf/
maybe you guys/girls can see what i did wrong..
I guess that you forgot to modify the index.php file? That would explain why clicking the 'Shop' button doesn't work.

Quote
How can i add an item?

Item Administration
|--- Add Items

doesnt work, it shows an empty itemlist
It reads all the items from Sources/shop/items. Make sure you have put all the item files in the correct location.

QuoteCan anyone make export the SQL file for me? i cant install it with the install file!
The entire SQL is in the installScript.php file. To run it without installing the package, put it in your SMF directory and then run it from http://arkserver.servehttp.com/forum/installScript.php. If it says anything about duplicate tables or fields, just comment out the respective line from installScript.php

Quoteexcellent! it worked!
Glad to hear that. That stupid 'Hacking Attempt' was caused by having a single semicolon (;) at the end of one of the SQL statements.....

If you still need further support, feel free to open a support ticket at http://support.dansoftaus.uni.cc/. If you've found a bug, then please report it in the bug tracker.
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 10, 2005, 10:32:57 PM
Not trying to be a pest but is there any help for my problem or did I do something wrong ???
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on December 11, 2005, 04:56:18 AM
I get that exact error! Except, I only get that Hackning attemt and so forth error.
Title: Re: SMFShop - Shop MOD
Post by: ArkServer on December 11, 2005, 06:03:54 AM
Quote from: daniel15 on December 10, 2005, 08:38:44 PM
-

Hi, i managed to fix it. Thank a lot! i changed the map itemfiles into items and it worked  :D

Tho i have another request if possible.. is it possible to make a new item like a credit converter?
Basicly it means that you can buy an item in the shop with credits and when you use it you get another type of credit like points and show that in the member profile.

Thanks, the mod is cool  8)
Title: Re: SMFShop - Shop MOD
Post by: Foreverpurple on December 11, 2005, 07:46:30 PM
The option to change someone's user title has stopped working on my forum.  Any tips on how to fix it?
Title: Re: SMFShop - Shop MOD
Post by: joshkol on December 12, 2005, 03:44:30 PM
Whats a cron job and how do I make the intrest thing work? And can I make my own items like a item that pm's me?
Title: Re: SMFShop - Shop MOD
Post by: Foreverpurple on December 12, 2005, 04:24:51 PM
This mod can't be uninstalled manually even.  Trust me I tried last night with my host helping me.  We ended up having to restore my database.

This is my favorite mod and my members favorite mod but it really needs a uninstall option and some fixes for the bugs people are having.
Title: Re: SMFShop - Shop MOD
Post by: Foreverpurple on December 12, 2005, 05:03:24 PM
Okay to see if part of the problem was my database or existing mods, I created a second SMF installation.  Then I installed only this mod.  Same errors.  On install you get a variety of errors like this:

Database Error   
Table 'smf_shop_items' already exists
File: /home/purpleme/public_html/smftest/Packages/temp/installScript.php
Line: 24

And the Change User Title option is still not working.

So there is something wrong in the installer and or files.
Title: Re: SMFShop - Shop MOD
Post by: Senkusha on December 13, 2005, 09:44:26 AM
Hi, I've run acrossed something I've never seen before.  I run SMF on my local PC/server.  Why am I running into the FTP upload screen?  I've never had to do this for any other mod before.  Thanks!

Quote
FTP Information Required
Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager.
FTP Server: Port:   
Username:   
Password:   
Local path to SMF:   

Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 13, 2005, 11:45:21 AM
I do the same as you. I run a forum off a server on my computer (well one site off there, I have another) I find to install mods you have to go into package manager like you usually would to get a modification, but instead of using package manager to get the mod click on the download link of that mod and save it to your package folder. Refresh the package manager and there it is and it will install. Some mods wont because they actually need ftp.

EDIT: this works with almost all the mds, but shop wont install for me I dont think on my home computer I have it installed on my other forum and am having problems with it.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 13, 2005, 07:00:50 PM
About the FTP errors, unfortunately, I don't know what causes that. I was having that problem with the SMF 1.1 package on my Windows testing machine, but it worked fine on another testing machine running Debian Linux 3.1. I've never got the problem with the SMF 1.0 package, both on Windows and Linux servers.

QuoteDatabase Error   
Table 'smf_shop_items' already exists
File: /home/purpleme/public_html/smftest/Packages/temp/installScript.php
Line: 24
That means that the installScript.php file has already been run before. If it has been run (ie. you're using a database backup), you can safely ignore that error. I'll try to make a 'smarter' installScript.php file that detects if the database edits have already been done.

And please, as I've said before, use my support ticket system (at http://support.dansoftaus.uni.cc/ ) for support requests and the bug tracker (at http://bugs.dansoftaus.uni.cc/ ) for reporting bugs, and feature requests. It makes it a LOT easier to see all the problems, and a lot easier to fix them (since I can keep track of each problem individually)
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 13, 2005, 10:49:38 PM
I have a support ticket in and am awaiting an answer. Hope to hear from you soon.

Quote from: daniel15 on December 13, 2005, 07:00:50 PM
About the FTP errors, unfortunately, I don't know what causes that. I was having that problem with the SMF 1.1 package on my Windows testing machine, but it worked fine on another testing machine running Debian Linux 3.1. I've never got the problem with the SMF 1.0 package, both on Windows and Linux servers.

QuoteDatabase Error   
Table 'smf_shop_items' already exists
File: /home/purpleme/public_html/smftest/Packages/temp/installScript.php
Line: 24
That means that the installScript.php file has already been run before. If it has been run (ie. you're using a database backup), you can safely ignore that error. I'll try to make a 'smarter' installScript.php file that detects if the database edits have already been done.

And please, as I've said before, use my support ticket system (at http://support.dansoftaus.uni.cc/ ) for support requests and the bug tracker (at http://bugs.dansoftaus.uni.cc/ ) for reporting bugs, and feature requests. It makes it a LOT easier to see all the problems, and a lot easier to fix them (since I can keep track of each problem individually)
Title: Re: SMFShop - Shop MOD
Post by: Pause on December 14, 2005, 09:04:03 AM
Quote from: daniel15 on December 13, 2005, 07:00:50 PM
About the FTP errors, unfortunately, I don't know what causes that. I was having that problem with the SMF 1.1 package on my Windows testing machine, but it worked fine on another testing machine running Debian Linux 3.1. I've never got the problem with the SMF 1.0 package, both on Windows and Linux servers.

QuoteDatabase Error   
Table 'smf_shop_items' already exists
File: /home/purpleme/public_html/smftest/Packages/temp/installScript.php
Line: 24
That means that the installScript.php file has already been run before. If it has been run (ie. you're using a database backup), you can safely ignore that error. I'll try to make a 'smarter' installScript.php file that detects if the database edits have already been done.

And please, as I've said before, use my support ticket system (at http://support.dansoftaus.uni.cc/ ) for support requests and the bug tracker (at http://bugs.dansoftaus.uni.cc/ ) for reporting bugs, and feature requests. It makes it a LOT easier to see all the problems, and a lot easier to fix them (since I can keep track of each problem individually)
Simply adding in 'IF NOT EXISTS' into the creation should do that  ;)
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 14, 2005, 12:16:58 PM
I got my answer, thanks daniel15 for clearing things up.
Title: Re: SMFShop - Shop MOD
Post by: mogadishu on December 14, 2005, 02:10:49 PM
UUm..Ive maded  the mystake to install SMFShop To SMF 1.1 RC 1 Forum ...
Install Testing was OK.... But Now I'm Not Able To make New Boards I Get This ERROR:

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=> 1, b.permission_mode, c.ID_CAT, c.name AS cName, c.catOrder, c.canCollapse
' at line 4
File: /home/alexz/public_html/forum/Sources/Subs-Boards.php
Line: 1468
What can I DO ??? (ive thinked to UNINSTALL This Mod But don't Know HOW!?!???? )

Please Somebudy HELP Me  :-\
Title: Re: SMFShop - Shop MOD
Post by: Saku on December 14, 2005, 02:28:23 PM
Quote from: Sakuragi on December 05, 2005, 02:16:56 PM
on Subs-Boards.php
search
b.override_theme,

replace:

b.override_theme, b.countMoney,
Title: Re: SMFShop - Shop MOD
Post by: mogadishu on December 14, 2005, 04:56:51 PM
umm.. :((  :'( Now I Get Other Error..What Can I DO ? ( :'( I think ive installed a Wrong Version..The Version for: (For SMF 1.0RC1 - SMF 1.0.5) )...
And Maby This Is The Reason Of ErrOrs :-X..
Now What To Do To Save My FORUM ???
How To UNINSTALL The SMFShop  And Install the Good Versin (for 11.RC1) ???

Please Help Me (really Need This HELP )
Title: Re: SMFShop - Shop MOD
Post by: Sledgemoto on December 15, 2005, 04:50:00 PM
I am receiving this as well for 1.1 RC1

QuoteYou have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '=> 1, b.permission_mode, c.ID_CAT, c.name AS cName, c.catOrde
File: /home/extreme/public_html/forum/Sources/Subs-Boards.php
Line: 1458

I tried the above code

on Subs-Boards.php
search
b.override_theme,

replace:

b.override_theme, b.countMoney,


But I'm still getting the same error. Does the below code look right ?


IFNULL(b.ID_BOARD, 0) AS ID_BOARD, b.ID_PARENT, b.name AS bName, b.description, b.childLevel,
b.boardOrder, b.countPosts, b.memberGroups, b.ID_THEME, b.override_theme, b.countMoney,
'countMoney' => 1, b.permission_mode, c.ID_CAT, c.name AS cName, c.catOrder, c.canCollapse
FROM {$db_prefix}categories AS c
LEFT JOIN {$db_prefix}boards AS b ON (b.ID_CAT = c.ID_CAT)
ORDER BY c.catOrder, b.childLevel, b.boardOrder", __FILE__, __LINE__);
Title: Re: SMFShop - Shop MOD
Post by: Saku on December 15, 2005, 06:37:59 PM
you have to remove this :
'countMoney' => 1,
Title: Re: SMFShop - Shop MOD
Post by: Sledgemoto on December 15, 2005, 07:13:41 PM
Thank you that did it.
Title: Re: SMFShop - Shop MOD
Post by: yellow1912 on December 15, 2005, 08:06:05 PM
I have 1.1 beta3, which version og shop should I use? I tried to use 1.31 for smf1.1 and couldnt find the lines need to be edited in Subs-Boards.php . When I try the other 1.31, I get the error: "Hacking attempt..." :(
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 15, 2005, 08:53:15 PM
Quote from: Sakuragi on December 15, 2005, 06:37:59 PM
you have te remove this :
'countMoney' => 1,

Sorry about that. It must have been a problem with the install package (I got the SMF 1.1 package from somebody else that submitted it, I just changed it for SMFShop 1.31). I updated the install package so that error no longer happens.

QuoteSimply adding in 'IF NOT EXISTS' into the creation should do that
True, that would work for the table creation, but the MOD also adds a new field to the user table, and the forums table. I'm thinking it should check if the shop version variables exist in the settings table. I'll try to do that soon.

EDIT: I just edited the installScript.php file. It will now detect if the database has already been modded, and if so, skip the modifications. I've uploaded the new package to my site, and I'm currently uploading it here.
Title: Re: SMFShop - Shop MOD
Post by: tX on December 15, 2005, 09:13:05 PM
i CHMODDED EVERYTHING to 777, and it says it needs my ftp info stuff, which wont work on my forum anyways....RC1. I'm going to try and install the forum with 1.0.5 and then use that package, since right now its a test forum, that if all goes well will go live on a new site.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 15, 2005, 09:31:32 PM
Quote from: yellow1912 on December 15, 2005, 08:06:05 PM
I have 1.1 beta3, which version og shop should I use? I tried to use 1.31 for smf1.1 and couldnt find the lines need to be edited in Subs-Boards.php . When I try the other 1.31, I get the error: "Hacking attempt..." :(

You should use the SMFShop for SMF 1.1 package. The other package is for SMF 1.0RC1 - 1.0.5, not 1.1

And please remember that the SMF 1.1 package is not really supported by me. Someone else made the package (I can't remember who) and I just updated it for SMFShop 1.31....

And anyone that could help with the FTP problems, please do. This is why I couldn't test the SMF 1.1 package; on every computer I tested (2 testing computers running Debian and Ubuntu Linux) plus my own computer (running Windows XP) all asked for FTP information. Any information on it would be great!

Thanks,
--daniel15
Title: Re: SMFShop - Shop MOD
Post by: yellow1912 on December 15, 2005, 09:57:09 PM
Thanks ^^
I think my problem is that I use chatbuble theme which is not for 1.1 beta 3 (it's for older version),  huhm, so complicated. maybe I should try another theme but I love that theme so much and put so much effort in it :(
Title: Re: SMFShop - Shop MOD
Post by: yellow1912 on December 16, 2005, 12:08:04 AM
- <file name="$sourcedir/Subs-Boards.php" error="fatal">
- <operation error="fatal">
- <search position="before" regexp="false" whitespace="exact">
- <![CDATA[    // Should the board theme override the user preferred theme?
   if (isset($boardOptions['override_theme']))
      $boardUpdates[] = 'override_theme = ' . ($boardOptions['override_theme'] ? '1' : '0');


  ]]>
  </search>
- <add>
- <![CDATA[                 //BEGIN SMFShop Shop MOD 1.3 (Build 6) code
      // Should posts in this board give credits?
                if (isset($boardOptions['countMoney']))
                    $boardUpdates[] = 'countMoney = ' . ($boardOptions['override_theme'] ? '1' : '0');
                //End Shop MOD

  ]]>
  </add>



There is no such line in the file :(

PS:
And if I use the one for non 1.1 then
$newTopic = true; cannot be found in Post.php
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 16, 2005, 12:30:19 AM
Yes, the line does exist... Lines 985-987, well in SMF 1.1RC1 anyway.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 16, 2005, 01:30:23 AM
A problem was discovered with the SMF 1.1 package. I accidentally caused that 'Hacking Error' again. This was only for the new package I submitted a few hours ago. It's now fixed, so anyone that downloaded the SMFShop for SMF 1.1 package  within the last few hours should instead get this package

Thanks for understanding :D
Title: Re: SMFShop - Shop MOD
Post by: yellow1912 on December 16, 2005, 01:48:54 AM
Hi Daniel,
I believe that line dosent exist in 1.1 b3, someone pls corrects me if im wrong.

Uhm, anyway, so I cant use the ppk for 1.1, and the other one doesnt work for me too. Anyone installed this one beta3? can you please tell me how you did it?

Cheer
Title: Re: SMFShop - Shop MOD
Post by: animeJAX on December 16, 2005, 05:56:39 PM
For some reason I do not have a shop button appear on my forum, any ideas?
Title: Re: SMFShop - Shop MOD
Post by: yellow1912 on December 16, 2005, 08:59:40 PM
You must check if you edited the template (if you dont use defaul theme then u must manually edit yours). Also check if the shop.gif is in where it's supposed to be
Title: Re: SMFShop - Shop MOD
Post by: animeJAX on December 16, 2005, 10:03:33 PM
Wow, I have no idea how to modify the YaBB SE theme appropriately for this...  Any topics someone could point me to?  Thanks!
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 16, 2005, 10:37:36 PM
You need to make sure that the "shop.gif" file is in the "images" folder of the theme you want it to show up in. Then you have to add the appropriate php string to the "indx.template.php" file for it to work.
Title: Re: SMFShop - Shop MOD
Post by: tropicallili on December 16, 2005, 11:05:28 PM
QuoteInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Really frustrated. :'(  This is the second time I've tried to install this mod and I keep getting the Internal Server Error.  I've looked for the directory 777 to change it back to 755 but can't find it anywhere.  What am I doing wrong here?

QuoteIf you get a 'Internal Server Error' message while installing (this happens rarely, but does happen), do the following:
  1. Proceed with installation until "Internal Server Error" page appears. LEAVE THIS PAGE AS IS.
  2. FTP into your account. Look for the folder which has been chmodded to 777. This is typically the root folder of your forum. (eg. /public_html/forums)
  3. CHMOD the directory back to 755.
  4. Refresh the "Internal Server Error" page. You may need to : a) IE - hold CTRL and press Refresh; b) Firefox - hold SHIFT and press Reload.


Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 16, 2005, 11:16:33 PM
What directory is your forum in ? This is the one you want to look for.
Title: Re: SMFShop - Shop MOD
Post by: tropicallili on December 16, 2005, 11:30:32 PM
Well I went to public_html/thelastgate (which is the forum) But I have no idea where to go from there.  I'm pretty new to all this stuff.
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on December 17, 2005, 06:56:49 AM
i think its packages
Title: Re: SMFShop - Shop MOD
Post by: kiddodee on December 17, 2005, 10:25:15 AM
I got the problem. ...
Quote
1. When I go to "Shop Administration" -> "Add Item"

... It occers error....

Fatal error: Cannot instantiate non-existent class: item_changeusertitle in /home/kiddodee/domains/kid-do-dee.com/public_html/forum/Sources/shop/ShopAdmin.php(146) : eval()'d code on line 1


Quote
2. When I click Button "Shop" -> "Your Inventory" -> Use Item

... It occers error

Fatal error: shop(): Failed opening required 'Sources/shop/item_engine.php' (include_path='.:/usr/local/lib/php') in /home/kiddodee/domains/kid-do-dee.com/public_html/forum/Sources/shop/Shop.php on line 352


.. Please help me ... Thank You.
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 17, 2005, 12:25:07 PM
If "thelastgate" is the name of the forum folder chmod it to 755 that should do it I think.

Quote from: tropicallili on December 16, 2005, 11:30:32 PM
Well I went to public_html/thelastgate (which is the forum) But I have no idea where to go from there.  I'm pretty new to all this stuff.
Title: Re: SMFShop - Shop MOD
Post by: yellow1912 on December 17, 2005, 11:43:00 PM
Quote from: kiddodee on December 17, 2005, 10:25:15 AM
I got the problem. ...
Quote
1. When I go to "Shop Administration" -> "Add Item"

... It occers error....

Fatal error: Cannot instantiate non-existent class: item_changeusertitle in /home/kiddodee/domains/kid-do-dee.com/public_html/forum/Sources/shop/ShopAdmin.php(146) : eval()'d code on line 1


Quote
2. When I click Button "Shop" -> "Your Inventory" -> Use Item

... It occers error

Fatal error: shop(): Failed opening required 'Sources/shop/item_engine.php' (include_path='.:/usr/local/lib/php') in /home/kiddodee/domains/kid-do-dee.com/public_html/forum/Sources/shop/Shop.php on line 352


.. Please help me ... Thank You.

It seems like you missing some files? Use ftp to check
PS: again, anyone did install this on SMF 1.1 beta 3, I need your help
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on December 18, 2005, 05:31:13 AM
1.1 beta 3 is out of date
Title: Re: SMFShop - Shop MOD
Post by: kiddodee on December 18, 2005, 11:35:14 AM
I think ... My DoInterest.php .. is not work....  :'(

Title: Re: SMFShop - Shop MOD
Post by: Prasad007 on December 18, 2005, 11:47:46 AM
my version 1.1 RC 1
doesnt work
gives errors in installation
please help
i also tried wid 1.0.5
didnt work either!
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on December 18, 2005, 03:25:03 PM
What errors are you getting?
Title: Re: SMFShop - Shop MOD
Post by: yellow1912 on December 19, 2005, 01:29:34 AM
1 question: If the post-topic get deleted by moderator, does it take back points from user(s)?
I ask this question because many time ppl just go spamming around the forum to get points.
Title: Re: SMFShop - Shop MOD
Post by: Prasad007 on December 19, 2005, 03:21:57 AM
Quote from: ExistenZ on December 18, 2005, 03:25:03 PM
What errors are you getting?
it just says in red text "failed"
Title: Re: SMFShop - Shop MOD
Post by: Valiantheart on December 19, 2005, 03:59:08 PM
Is it possible to make it so that a fixed amount is given to a member for logging in? There can be a 24 hour delay before the next time they gain this amount of money again. Sort of like a daily pay. Is it possible?
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on December 19, 2005, 04:56:25 PM
A little something more, add a feature where you could set a salary for membergroups.
Title: Re: SMFShop - Shop MOD
Post by: mogadishu on December 19, 2005, 06:38:54 PM
I Need An UNINSTALLER For SMFShop (Or Help To UNINSTALL)
Title: Re: SMFShop - Shop MOD
Post by: yellow1912 on December 20, 2005, 01:10:32 AM
You can use ur the package uninstall from admin cp. Or you can do it manually: open the zip file you downloaded, find the install file (something .xml) and do all the backward
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on December 20, 2005, 03:21:10 AM
Quote from: yellow1912 on December 20, 2005, 01:10:32 AM
You can use ur the package uninstall from admin cp. Or you can do it manually: open the zip file you downloaded, find the install file (something .xml) and do all the backward

Thats the thing, you cant uninstall from the admin panel. At least not what i can see. You cant click on "Unnistall". And the manual way is just so much WORK!
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 20, 2005, 09:13:54 AM
There is no uninstall with the shop mode, you are either going to have to leave it or uninstall it manually. I`m afraid these are your only choices.
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on December 20, 2005, 10:51:53 AM
S O M E O N E  is too lazy to make an uninstall, eh?
Title: Re: SMFShop - Shop MOD
Post by: Valiantheart on December 20, 2005, 11:22:27 AM
Another idea. Give member money for referring members?
Title: Re: SMFShop - Shop MOD
Post by: yellow1912 on December 20, 2005, 11:24:04 AM
Speaking about lazy, I did the install MANUALLY, it's not that much work. Why dont you uninstall it manually then?
Title: Re: SMFShop - Shop MOD
Post by: quasar on December 20, 2005, 04:05:43 PM
Dan,

I'm getting an issue with the install I've got at the moment.

The shop install is 1.31 (Build 7) and I'm running SMF 1.1 RC1.

I had everything running fine, but now I've lost the amount of cash that each person has in the profile to the left of the post.

Also, I'm getting a lot of the following errors in my error log:

8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/BoardIndex.template.php (eval?)
Line: 452
  This one I'm getting a lot.



8: Undefined offset: 748
File: /home/user/public_html/forum/Themes/default/ShopAdmin.template.php (eval?)
Line: 81


8: Undefined variable: scripturl
File: /home/user/public_html/forum/Sources/shop/ShopAdmin.php
Line: 99


8: Use of undefined constant EOT - assumed 'EOT'
File: /home/user/public_html/forum/Themes/default/ShopAdmin.template.php (eval?)
Line: 90


8: Undefined index: shop_currency
File: /home/user/public_html/forum/Themes/default/ShopAdmin.template.php (eval?)
Line: 164


8: Undefined offset: 748
File: /home/user/public_html/forum/Themes/default/Shop.template.php (eval?)
Line: 118


8: Undefined offset: 748
File: /home/user/public_html/forum/Themes/default/Shop.template.php (eval?)
Line: 170


8: Undefined index: membertype
File: /home/user/public_html/forum/Sources/shop/Shop.php
Line: 629


8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/Display.template.php (eval?)
Line: 452
  This one I'm getting a lot.

8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/MessageIndex.template.php (eval?)
Line: 452
  This one I'm getting a lot.

8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/Search.template.php (eval?)
Line: 452


8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/Profile.template.php (eval?)
Line: 452


8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/Login.template.php (eval?)
Line: 452


8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/Memberlist.template.php (eval?)
Line: 452


8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/languages/Who.english.php (eval?)
Line: 452


8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/languages/PersonalMessage.english.php (eval?)
Line: 452


8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/Post.template.php (eval?)
Line: 452


8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/languages/Post.english.php (eval?)
Line: 452


8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/Stats.template.php (eval?)
Line: 452


8: Undefined index: ".$postKey."
File: /home/user/public_html/forum/Sources/shop/items/EmailAdmin.php
Line: 57


8: Undefined index: ".$getKey."
File: /home/user/public_html/forum/Sources/shop/items/EmailAdmin.php
Line: 62


8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/Register.template.php (eval?)
Line: 452


8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/languages/Profile.english.php (eval?)
Line: 452


8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/Poll.template.php (eval?)
Line: 452


8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/Reminder.template.php (eval?)
Line: 452


8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/Errors.template.php (eval?)
Line: 452


8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/Recent.template.php (eval?)
Line: 452


8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/PersonalMessage.template.php (eval?)
Line: 452


8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/languages/Errors.english.php (eval?)
Line: 452


8: Undefined index: countMoney
File: /home/user/public_html/forum/Themes/default/languages/Shop.english.php (eval?)
Line: 416


8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/Display.template.php (eval?)
Line: 452


8: Undefined index: shop
File: /home/user/public_html/forum/Themes/default/BoardIndex.template.php (eval?)
Line: 452


Where I've put that I get a lot of errors, I'm talking over twenty pages over ten days.

I've made a few small changes to the layout of the theme I'm using, mainly where the avatar picture is located in the poster's info bit to the left of the post, but I've only moved the code, not deleted anything.

I'm sure some of the above errors are similar, but I thought I'd put all of them on so that you could quickly indentify if their is a problem.

Any suggestions?  Everything else seems to be working fine apart from the cash not displaying, and then these errors, which may or may not be connected.  If you have any questions ask away or PM me if you want.

Hope this helps.

PS I think the mod is great, and I appreciate that you've got a lot of work on with school and all.  For your age you are doing fantastic!  Keep it up.
Title: Re: SMFShop - Shop MOD
Post by: Senkusha on December 20, 2005, 04:26:06 PM
I found out how to install this mod on WINDOWS!!

The problem is the ZIP format.  TAR.GZ works fine.  You can extract the files in a directory, and then use another ZIP utility that supports compressing TAR.GZ files, recompress the files using that format, and then upload to your server.  You will not get the Package Manager Requires FTP when you do this.  (At least it worked for me).  Make sure you turn off "Store file paths".
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 20, 2005, 11:45:04 PM
quasar,
Thank you for the error report. Please submit this to my bug tracker at http://bugs.dansoftaustralia.net/ so I remember to fix it.

Senkusha,
Thanks for the information. I'll try this myself next week some time, and if it works, I'll use .tar.gz files from now on ;)

QuoteAnother idea. Give member money for referring members?
That was planned, but I didn't get around to actually doing it. Maybe I will, soon...

Quoteit just says in red text "failed"
Please submit a support ticket at my website (http://support.dansoftaustralia.net/). Include the entire error text, and I'll see what I can do

QuoteIs it possible to make it so that a fixed amount is given to a member for logging in? There can be a 24 hour delay before the next time they gain this amount of money again. Sort of like a daily pay. Is it possible?
Quote
A little something more, add a feature where you could set a salary for membergroups.

Nice ideas, please submit them at my bug tracker at http://bugs.dansoftaustralia.net/ under the SMFShop section, Feature category. Even though it's not a bug, I use the bug tracker to track feature requests as well :D

I may do some work on SMFShop next week, in order to release a special anniversary edition of SMFShop. I can't believe it. Almost one year since the original release of SMFShop 0.1 Beta :D:D
Title: Re: SMFShop - Shop MOD
Post by: Liaoese on December 21, 2005, 12:41:15 AM
I spent a lot of time to read all the posts. But very sorry, My problem still remains.
I believe this shop mod IS interesting and try to install it.

1, I am using SMF1.1RC1
2, The mod I downloaded is SMFShop1.31[SMFShop_1.31_Fresh_Install_SMF_1.1.zip (59KB)]
3, Uploaded the Zip file through Admin--->Packages
4,When I try to apply mod, the following message appeared

"FTP Information Required
Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager."
5, I changed all the folders to "777",  tried again and again, the prolem is the same.

I must admit that I am not good at using computer, please help.

IF you guys can write a "step by step"installation guide, I think it will help people a lot and save your time.:)

Wish you all a merry Xmas and a happy new year2006.
Title: Re: SMFShop - Shop MOD
Post by: quasar on December 21, 2005, 01:24:46 AM
Thanks Dan.  Issue reported.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 21, 2005, 01:31:26 AM
Try this package for SMF 1.1 and see if it works: http://users.tpg.com.au/dan15/smfmods/SMFShop%201.31%20Fresh%20Install%20(SMF%201.1).tar.gz

Use this package instead of the other SMF 1.1 package. According to Senkusha, it should work (as it's a different type of archive)
Title: Re: SMFShop - Shop MOD
Post by: Liaoese on December 21, 2005, 03:08:55 AM
THANKS FOR YOUR HELP. DANIEL.
BUT, I AM SORRY TO LET YOU KNOW THAT IT STILL DOESN'T WORK.

SO THERE NO PROBLEM OF WHAT I'VE DONE FOR INSTALLATION? I AM NOT SURE. I GUESS IT MUST BE MY FAULT.
Title: Re: SMFShop - Shop MOD
Post by: Illeana on December 21, 2005, 05:07:11 AM
I am attempting to install this.

everything is fine apart from this one bit....it says

74. Execute Modification ./Themes/default/Display.template.php      TEST Failed

any  ideas.

Thanks in advance
Title: Re: SMFShop - Shop MOD
Post by: Pause on December 21, 2005, 05:36:12 AM
daniel15, to make SMFShop uninstallable, simply do the following:

In package-info.xml
Find

</package-info>

Add Above
<uninstall>
<modification reverse="true">install.xml</modification>
</uninstall>
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 21, 2005, 07:20:49 AM
Quote from: Mattitude on December 21, 2005, 05:36:12 AM
daniel15, to make SMFShop uninstallable, simply do the following:

In package-info.xml
Find

</package-info>

Add Above
<uninstall>
<modification reverse="true">install.xml</modification>
</uninstall>

Sure, but there's also the SMFShop files, and the database edits.
Title: Re: SMFShop - Shop MOD
Post by: Pause on December 21, 2005, 07:39:19 AM
Quote from: daniel15 on December 21, 2005, 07:20:49 AM
Quote from: Mattitude on December 21, 2005, 05:36:12 AM
daniel15, to make SMFShop uninstallable, simply do the following:

In package-info.xml
Find

</package-info>

Add Above
<uninstall>
<modification reverse="true">install.xml</modification>
</uninstall>

Sure, but there's also the SMFShop files, and the database edits.

<uninstall>
<modification reverse="true">install.xml</modification>

<remove-dir name="$sourcedir/shop" />
<code>uninstallScript.php</code>
</uninstall>


How about that? You'd have to tell put instructions into uninstallScript.php to tell it to drop the SMFShop table obviously.

It might be that you can remove the other files with
<remove-file name="$themedir/Shop.template.php" />
<remove-file name="$languagedir/Shop.english.php" />

etc. but I'm not entirely sure.
Title: Re: SMFShop - Shop MOD
Post by: Valiantheart on December 21, 2005, 11:09:22 AM
Posted the feature request! can't wait for the next release! Anniversary! Yay!
Title: Re: SMFShop - Shop MOD
Post by: Prasad007 on December 21, 2005, 12:15:22 PM
yay! its now working for me!! :)
Title: Re: SMFShop - Shop MOD
Post by: joshkol on December 21, 2005, 12:44:27 PM
I have this error when I go to boards in admin pannel.

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '=> 1,'countMoney' => 1, b.permission_mode, c.ID_CAT, c.name A
File: /home/soluhost/public_html/forums/Sources/Subs-Boards.php
Line: 1464

This happens when I click boards in admin, so I can not edit boards, please help me.
Title: Re: SMFShop - Shop MOD
Post by: yellow1912 on December 21, 2005, 02:58:17 PM
Can you go copy that line here so we can see what's wrong with it?
Title: Re: SMFShop - Shop MOD
Post by: tropicallili on December 21, 2005, 03:44:01 PM
Just wanted to thank you guys for all your help.  I was able to install and it worked but now I have a new issue.  lol!  For some reason the button for the marketplace disappeared.  What do I need to do to fix this?  Thanks again!
Title: Re: SMFShop - Shop MOD
Post by: NezumiRyu on December 21, 2005, 09:51:55 PM
I'm trying to install it on 1.0.5 and I'm also getting the ftp error. I have no idea how to fix the problem. O_o I'm running the forum off my own server and I tried doing the chmod and I could not find any of those numbers in the properties. So yeah.

It's still asking me for FTP information and I tried setting up an FTP with IIS to the directory my forum is installed too and still no change.

Any solutions yet? I've read this forum again and again and again and I don't see any direct responses to the issue. =/

~Nez~
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 22, 2005, 12:42:41 PM
I have tried setting this up to on my own server but to no avail. It needs ftp and mines not running so I`m outta luck. I have been able to get mods installed though, by downloading then to my desktop and then putting them in the packages folder they show up in the package manager ready to be installed.
Title: Re: SMFShop - Shop MOD
Post by: Senkusha on December 22, 2005, 02:02:43 PM
Have you tried the TAR.GZ file listed above?
Title: Re: SMFShop - Shop MOD
Post by: joshkol on December 22, 2005, 10:27:02 PM
I run a business and I really need help.

I have this error when I go to boards in admin panel.

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '=> 1,'countMoney' => 1, b.permission_mode, c.ID_CAT, c.name A
File: /home/soluhost/public_html/forums/Sources/Subs-Boards.php
Line: 1464

This happens when I click boards in admin, so I can not edit boards, please help me.
Title: Re: SMFShop - Shop MOD
Post by: salems_dolls on December 23, 2005, 01:43:06 AM
Quote from: tropicallili on December 21, 2005, 03:44:01 PM
Just wanted to thank you guys for all your help.  I was able to install and it worked but now I have a new issue.  lol!  For some reason the button for the marketplace disappeared.  What do I need to do to fix this?  Thanks again!

Ironically, I was having the same problem.. Can someone PLEASE help me? Thanks all.  :D
Title: Re: SMFShop - Shop MOD
Post by: Senkusha on December 23, 2005, 07:21:55 PM
Quote from: salems_dolls on December 23, 2005, 01:43:06 AM
Quote from: tropicallili on December 21, 2005, 03:44:01 PM
Just wanted to thank you guys for all your help.  I was able to install and it worked but now I have a new issue.  lol!  For some reason the button for the marketplace disappeared.  What do I need to do to fix this?  Thanks again!

Ironically, I was having the same problem.. Can someone PLEASE help me? Thanks all.  :D

Are you using a different theme than the 'default'?  If so, try coping over the default/index.template.php file to your theme directory.
Title: Re: SMFShop - Shop MOD
Post by: kadhumia_flo on December 23, 2005, 07:26:33 PM
Suggestion:

The installed edits the template.php files of the default theme

how about editing the template files of the current theme?
Title: Re: SMFShop - Shop MOD
Post by: Senkusha on December 23, 2005, 07:30:32 PM
Quote from: joshkol on December 22, 2005, 10:27:02 PM
I run a business and I really need help.

I have this error when I go to boards in admin panel.

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '=> 1,'countMoney' => 1, b.permission_mode, c.ID_CAT, c.name A
File: /home/soluhost/public_html/forums/Sources/Subs-Boards.php
Line: 1464

This happens when I click boards in admin, so I can not edit boards, please help me.

change this (in subs.post.php)

'countMoney' => 1, b.permission_mode, c.ID_CAT, c.name AS cName, c.catOrder, c.canCollapse


to this:

b.countMoney, b.permission_mode, c.ID_CAT, c.name AS cName, c.catOrder, c.canCollapse
Title: Re: SMFShop - Shop MOD
Post by: joshkol on December 23, 2005, 10:02:04 PM
I do not see the file subs.post.php anywhere.
Title: Re: SMFShop - Shop MOD
Post by: tropicallili on December 23, 2005, 11:05:33 PM
Quote from: Senkusha on December 23, 2005, 07:21:55 PM
Quote from: salems_dolls on December 23, 2005, 01:43:06 AM
Quote from: tropicallili on December 21, 2005, 03:44:01 PM
Just wanted to thank you guys for all your help.  I was able to install and it worked but now I have a new issue.  lol!  For some reason the button for the marketplace disappeared.  What do I need to do to fix this?  Thanks again!

Ironically, I was having the same problem.. Can someone PLEASE help me? Thanks all.  :D

Are you using a different theme than the 'default'?  If so, try coping over the default/index.template.php file to your theme directory.

No... Using the default theme... Just edited it from there... But loaded the shop after and the button showed up but then disappeared.  Is there a way I can manually add it?  Where do I need to go and what do I need to put, if there is.  Thanks.
Title: Re: SMFShop - Shop MOD
Post by: Senkusha on December 24, 2005, 12:31:06 PM
Quote from: joshkol on December 23, 2005, 10:02:04 PM
I do not see the file subs.post.php anywhere.

I'm sorry it's the subs-boards.php in your sources folder
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 24, 2005, 07:07:36 PM
I`ll try that a bit later, I must have missed that post, thanks.

Quote from: Senkusha on December 22, 2005, 02:02:43 PM
Have you tried the TAR.GZ file listed above?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 25, 2005, 05:52:46 AM
QuoteNo... Using the default theme... Just edited it from there... But loaded the shop after and the button showed up but then disappeared.  Is there a way I can manually add it?  Where do I need to go and what do I need to put, if there is.  Thanks.
You need to edit index.template.php to put the button in. Search for 'calendar' and copy the whole calendar button segment and change the references to 'shop'. For example, this is the calendar segment from the default theme:

<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];


The SMFShop code for the default theme is:
    //BEGIN Shop MOD 0.2 Code
    echo "<a href='{$scripturl}?action=shop'>", ($settings['use_image_buttons'] ? "<img src='{$settings['images_url']}/{$context['user']['language']}/shop.gif' alt='{$txt['shop']}' style='margin: 2px 0;' border='0' />" : $txt['shop']), "</a>{$context['menu_separator']}";
    //END SHOP MOD


And, I'll work on a new version soon, but unfortunately CWH Networks (my web host) is performing mainenance of their network (and are therefore down at the moment) so the release won't be until my site is back up.

EDIT: For the benefit of all the SMFShop users, I'm asking the SMF community for help regarding the FTP problem. You may see my post at http://www.simplemachines.org/community/index.php?topic=62184.0
Title: Re: SMFShop - Shop MOD
Post by: Alein_Atryda_III on December 25, 2005, 06:50:17 AM
I installed newest version of this MOD manually because it just wouldn't otherwise:x I don't know any php so I propabbly did something wrong, but as long as it works it's OK.

I have one issue when managing boards, if i try to modify allowed groups I get following error:

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' countMoney = 1]
override_theme = 0
WHERE ID_BOARD = 9

File: /home/vhosts/ariath.6te.net/forum/Sources/ManageBoards.php
Line: 611

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.5, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.

(It's proppably just my installation of everything... And I installed fresh installation of SMF so I don't know where did 1.02 version of database came from o.o;

I've got some suggestions considering shop administration. When you create some special items you can change it properities, like chance for succesfull steal etc. but there is no such possibility once item is created. Sometimes it can be a problem, especially when you see that item is wrong and some people already purchased it.
Considering steal: every item that can steal should have it's own max money stolen setting and different decrease in karma. There might be item to steal from bank too:o

There are some strings that you forgot to put into language files. word "stuff" in shop, succesfull/failed steal... I think there were some more but less important;p

Well, it doesn't change the fact this mod is great:D
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 25, 2005, 07:03:23 AM
Quote
I installed newest version of this MOD manually because it just wouldn't otherwise:x I don't know any php so I propabbly did something wrong, but as long as it works it's OK.

I have one issue when managing boards, if i try to modify allowed groups I get following error:

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' countMoney = 1]
override_theme = 0
WHERE ID_BOARD = 9

File: /home/vhosts/ariath.6te.net/forum/Sources/ManageBoards.php
Line: 611

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.5, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.


Please paste lines 600-620 from the Sources/ManageBoards.php file here. I'll try and see what's wrong with it.

Quote
I've got some suggestions considering shop administration. When you create some special items you can change it properities, like chance for succesfull steal etc. but there is no such possibility once item is created. Sometimes it can be a problem, especially when you see that item is wrong and some people already purchased it.
I'll definately consider that for the next release!

QuoteThere might be item to steal from bank too:o
That's the whole point of the bank: to safely store credits.

Quote
There are some strings that you forgot to put into language files. word "stuff" in shop, succesfull/failed steal... I think there were some more but less important;p
I added the language file just as a last-minute, quick afterthough as I was uploading a new SMFShop version (1.0 or 1.1 I think). Therefore, I'll see what I can do about putting all the strings in the language file

Quote
Well, it doesn't change the fact this mod is great:D
Thanks :D:D:D
Title: Re: SMFShop - Shop MOD
Post by: mogadishu on December 25, 2005, 12:07:56 PM
Quote from: Bigguy on December 20, 2005, 09:13:54 AM
There is no uninstall with the shop mode, you are either going to have to leave it or uninstall it manually. I`m afraid these are your only choices.
Um..Is So BAD ..Coz I Really Don't Know To Much PHP......  :-X ..I Waiting maby daniel15 will make an UNINSTALLER of this mod (is the easy Way 4 me ).. ::)
Title: Re: SMFShop - Shop MOD
Post by: Saku on December 25, 2005, 12:47:39 PM
members can set a display name = 0 (empty) so they become invisibles, how to impose a minlength for the display name?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 25, 2005, 08:39:00 PM
Quote from: Sakuragi on December 25, 2005, 12:47:39 PM
members can set a display name = 0 (empty) so they become invisibles, how to impose a minlength for the display name?

You need to edit your Sources/shop/items/ChangeDisplayName.php file. Change it to the following:

<?php
/**********************************************\
| SMFSHOP (Shop MOD for Simple Machines Forum) |
|         (c) 2005 DanSoft Australia           |
|           http://dansoftaus.uni.cc/          |
\**********************************************/

//File: ChangeDisplayName.php
//      Item

//VERSION: New Version (Build 8)
//DATE: 26th December


class item_ChangeDisplayName extends itemTemplate {
var $minLength 5;

    function 
getItemDetails() {
        
$this->name "Change Display Name";
        
$this->desc "Change your display name!";
        
$this->price 50;
    }

    function 
getUseInput() {
        return 
"New Display Name: <input type='text' name='newDisplayName' size='50'><br>
                Please choose a name which is at least 
{$this->minLength} characters long.";
    }

    function 
onUse() {
        global 
$db_prefix$ID_MEMBER;

if (strlen($_POST['newDisplayName']) < $this->minLength
die("ERROR: The name you chose was not long enough! Please go back and choose a name which is at least {$this->minLength} characters long.");

        
$result db_query("UPDATE {$db_prefix}members
                            SET realName = '
{$_POST['newDisplayName']}'
                            WHERE ID_MEMBER = 
{$ID_MEMBER}",
                            
__FILE____LINE__);
        return 
"Successfully changed your display name to {$_POST['newDisplayName']}";
    }

}

?>




Save that as Sources/shop/items/ChangeDisplayName.php.
See the 'var $minLength = 5;' at the top? Well, that is the minumum length. Change the '5' to whatever you want. :D
Title: Re: SMFShop - Shop MOD
Post by: Alein_Atryda_III on December 26, 2005, 03:51:27 PM
Here it is:
// Commit the changes.
if (!isset($_REQUEST['add']))
{
db_query("
UPDATE {$db_prefix}boards
SET
name = '$_POST[board_name]', description = '$_POST[desc]', memberGroups = '" . implode(',', $_POST['groups']) . "',
countPosts = $_POST[count], ID_CAT = $ID_CAT, ID_PARENT = $ID_PARENT,
childLevel = $childLevel, boardOrder = $spot, ID_THEME = $_POST[boardtheme],  , countMoney = $_POST[countMoney]]
override_theme = $_POST[override_theme]
WHERE ID_BOARD = $_POST[ID_BOARD]
LIMIT 1", __FILE__, __LINE__);
}
else
{
db_query("
INSERT INTO {$db_prefix}boards
(name, description, memberGroups, countPosts, ID_CAT, ID_PARENT,
childLevel, boardOrder, ID_THEME, override_theme)
VALUES
('$_POST[board_name]', '$_POST[desc]', '" . implode(',', $_POST['groups']) . "', $_POST[count], $ID_CAT, $ID_PARENT,
$childLevel, $spot, $_POST[boardtheme], $_POST[override_theme])", __FILE__, __LINE__);

I hope I didn't mess up too much:o
Title: Re: SMFShop - Shop MOD
Post by: Saku on December 26, 2005, 05:39:18 PM
Quote from: daniel15 on December 25, 2005, 08:39:00 PM
Save that as Sources/shop/items/ChangeDisplayName.php.
See the 'var $minLength = 5;' at the top? Well, that is the minumum length. Change the '5' to whatever you want. :D
thanks!
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 26, 2005, 07:08:44 PM
Quote from: Alein_Atryda_III on December 26, 2005, 03:51:27 PM
Here it is:
// Commit the changes.
if (!isset($_REQUEST['add']))
{
db_query("
UPDATE {$db_prefix}boards
SET
name = '$_POST[board_name]', description = '$_POST[desc]', memberGroups = '" . implode(',', $_POST['groups']) . "',
countPosts = $_POST[count], ID_CAT = $ID_CAT, ID_PARENT = $ID_PARENT,
childLevel = $childLevel, boardOrder = $spot, ID_THEME = $_POST[boardtheme],  , countMoney = $_POST[countMoney]]
override_theme = $_POST[override_theme]
WHERE ID_BOARD = $_POST[ID_BOARD]
LIMIT 1", __FILE__, __LINE__);
}
else
{
db_query("
INSERT INTO {$db_prefix}boards
(name, description, memberGroups, countPosts, ID_CAT, ID_PARENT,
childLevel, boardOrder, ID_THEME, override_theme)
VALUES
('$_POST[board_name]', '$_POST[desc]', '" . implode(',', $_POST['groups']) . "', $_POST[count], $ID_CAT, $ID_PARENT,
$childLevel, $spot, $_POST[boardtheme], $_POST[override_theme])", __FILE__, __LINE__);

I hope I didn't mess up too much:o
Nah, you didn't mess it up too much ;)

In fact, it's just a simple fix. See this section:

ID_THEME = $_POST[boardtheme],  , countMoney = $_POST[countMoney]]
override_theme = $_POST[override_theme]

Just change it to:

ID_THEME = $_POST[boardtheme],  countMoney = $_POST[countMoney]],
override_theme = $_POST[override_theme]

It was just a misplaced comma ;)
Title: Re: SMFShop - Shop MOD
Post by: Alein_Atryda_III on December 26, 2005, 08:49:17 PM
Thank's alot:D I would never quess it was this coma, but it appears it wasn't the only error. I had to change
countMoney = $_POST[countMoney]]
to
countMoney = $_POST[countMoney]
Otherwise it wouldn't work:o There was double ']'
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 27, 2005, 02:41:59 AM
Hello again everyone,
  The next version of SMFShop is almost done. I haven't decided the version number yet :P. I'm considering making it SMFShop 2.0 as it is a pretty major release.

Here's what's new:
* Version Checker: Like the SMF admin panel, the SMFShop admin panel now tells you what version of SMFShop you have installed, and what the latest version is.
* Errors are gone! All the SMFShop-related errors in your error log will now all be gone!
* Item description can be longer
* An item trade centre! This was frequently requested. Basically, users can sell their items to other users!
* A manual install guide (just in case the package doesn't work)

However, due to server maintenance, this release won't be available for at least another day. Please, be patient ;)

If you're considering installing SMFShop, then please be patient and wait for the new release.
Title: Re: SMFShop - Shop MOD
Post by: Valiantheart on December 27, 2005, 04:09:29 AM
Sounds good! I'll be waiting!
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on December 27, 2005, 05:15:54 AM
The Trade Centre Feature can be abused if one user is selling for a much higher price than original
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 27, 2005, 05:19:25 AM
Quote from: J J Williams on December 27, 2005, 05:15:54 AM
The Trade Centre Feature can be abused if one user is selling for a much higher price than original

Well, that's actually a feature. The user can choose how much they want to sell it for, and then it appears on another page (the Trade Centre page). If another user wants to buy it, they can do so.

If they put the price too high, most likely no-one will buy it. Simple :D
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on December 27, 2005, 05:30:21 AM
A price limit would be good then.
Title: Re: SMFShop - Shop MOD
Post by: Sledgemoto on December 27, 2005, 08:25:50 AM
Quote from: daniel15 on December 27, 2005, 05:19:25 AM
Quote from: J J Williams on December 27, 2005, 05:15:54 AM
The Trade Centre Feature can be abused if one user is selling for a much higher price than original

Well, that's actually a feature. The user can choose how much they want to sell it for, and then it appears on another page (the Trade Centre page). If another user wants to buy it, they can do so.

If they put the price too high, most likely no-one will buy it. Simple :D

Hello Daniel,

Will we have the ability to turn this feature off in the admin panel?
I deal with real funds and see nothing but potential problems with this addition.


I am delighted that the log errors are now gone though :D
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 27, 2005, 12:52:17 PM
Has the new version of the shop been released yet ???

EDIT: Sorry for askin I didnt totally read the posts.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 27, 2005, 07:14:19 PM
Quote from: Bigguy on December 27, 2005, 12:52:17 PM
Has the new version of the shop been released yet ???

EDIT: Sorry for askin I didnt totally read the posts.
No, not yet ;)
It will be released today, though.
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 27, 2005, 07:50:25 PM
thats good news. So all I`ll have to do is upgrade, right on. Thank you sir. :)
Title: Re: SMFShop - Shop MOD
Post by: Veej on December 28, 2005, 12:32:29 AM
So any updates as yet?

I can't wait to get my hands on this mod - it rules!
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 28, 2005, 01:09:58 AM
Quote from: Veej on December 28, 2005, 12:32:29 AM
So any updates as yet?

I can't wait to get my hands on this mod - it rules!
Sorry, not yet.

The new version of SMFShop will be coming out soon, although it has been delayed a bit. It will be released within the next week.

This is because I could release it today, but then I wouldn't be available to help people with it, as I'm really busy. I don't think this is fair on you guys, and therefore, I'll be releasing it next week when I have more time. Sorry about this, but I'm sure you'll think it's worth it :D. After all, you don't want to download the new version, only to find out it doesn't work, do you?

And I'm also writing a manual install guide, just in case the package still doesn't work for some of you.

EDIT: Another thing that I should mention is that my web host had a problem with their server and lost all the data stored on it, including my web site. I'll need to spend some time restoring my web site (and get a new hosting account).
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 28, 2005, 01:42:33 AM
Take your time man. Better having a mod that works then one that doesnt. I can put up with the errors in the log a bit longer. I hope you find a host. If your looking for a free one www.x10hosting.com is a real good free host.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 28, 2005, 01:58:52 AM
Quote from: Bigguy on December 28, 2005, 01:42:33 AM
Take your time man. Better having a mod that works then one that doesnt. I can put up with the errors in the log a bit longer. I hope you find a host. If your looking for a free one www.x10hosting.com is a real good free host.

It's OK, I'm staying with my current host.

They explained that the data loss was caused by the data centre, not by them. Needless to say, they've moved all their servers to a new data centre now.

I'm with CWH Networks by the way, on their free (forum posting) plan. I'm happy with the service (except for this problem) and I don't really want to change provider (after switching 4 times in the past 2 months).
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 28, 2005, 02:10:03 AM
Yeah thats alot of switching around. I hope things go good for you man with you host.
Title: Re: SMFShop - Shop MOD
Post by: Rain501 on December 28, 2005, 05:51:59 AM
Quote from: daniel15 on December 28, 2005, 01:09:58 AM

This is because I could release it today, but then I wouldn't be available to help people with it, as I'm really busy. I don't think this is fair on you guys, and therefore, I'll be releasing it next week when I have more time. Sorry about this, but I'm sure you'll think it's worth it :D. After all, you don't want to download the new version, only to find out it doesn't work, do you?


Booo! ;)

I'm more than happy to beta test it briefly if you'd like.. I'm quite happy bug hunting and I'm pretty au fait with php/sql :D Only found the Mod yesterday and I got all excited.. Running 1.1rc1 so I can't even download the old version.... If not though I'm happy to wait :D
Title: Re: SMFShop - Shop MOD
Post by: NezumiRyu on December 28, 2005, 10:40:50 AM
Quote from: Senkusha on December 22, 2005, 02:02:43 PM
Have you tried the TAR.GZ file listed above?

Where IS the tar.gz file for the shop mod? O_o And I'm assuming I can open it with winzip?
Title: Re: SMFShop - Shop MOD
Post by: Pause on December 28, 2005, 11:48:50 AM
No, Winzip doesn't support it - 7-zip does though (see SourceForge.net).
Title: Re: SMFShop - Shop MOD
Post by: macndabox on December 28, 2005, 12:26:21 PM
Hi, I'm new to this Forum and very interested in this mod in general, I read the release notes as well as a few forum pages but I haven't really gotton a feature packed understanding of how this mod actually works.  I'm wondering if someone could give me a run down on what this mod can do and whether or not it will work with paypal.

:D Happy New Year
Title: Re: SMFShop - Shop MOD
Post by: the bot on December 28, 2005, 11:17:00 PM
2: in_array(): Wrong datatype for second argument
File: /home/flashbot/public_html/talk/Sources/BoardIndex.php
Line: 268 error after I installed it
Title: Re: SMFShop - Shop MOD
Post by: yellow1912 on December 29, 2005, 06:15:48 AM
Just 1 idea:
How about letting user lend some money to others:
He can set the amount to lend, the prefered interest rate, and when it should be paid. A pm or something will be sent to the borrower, if he confirm it then loan is made ^^. It'll be fun, there's gonna be some loan sharks, lol.
Title: Re: SMFShop - Shop MOD
Post by: Valiantheart on December 30, 2005, 10:56:58 AM
I shifted my database so I backed it up and uploaded it at the new host. Everything worked fine except this part:

SQL query:

CREATE TABLE `smf_shop_items` (
id int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
name varchar( 50 ) NOT NULL default '',
DESC varchar( 100 ) NOT NULL default '',
price decimal( 8, 2 ) unsigned NOT NULL default 0.00,
module tinytext NOT NULL default '',
stock smallint( 6 ) NOT NULL default 0,
info1 text NOT NULL default '',
info2 text NOT NULL default '',
info3 text NOT NULL default '',
info4 text NOT NULL default '',
input_needed tinyint( 3 ) unsigned NOT NULL default 1,
can_use_item tinyint( 3 ) unsigned NOT NULL default 1,
image tinytext NOT NULL default '',
PRIMARY KEY ( id )
) TYPE = MYISAM

MySQL said: Documentation
#1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DESC varchar( 100 ) NOT NULL default '',
price decimal( 8, 2 )


Any idea how to fix this cos I have no knowledge of SQL. Thanks!
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on December 30, 2005, 03:31:25 PM
Try changing DESC to desc
Title: Re: SMFShop - Shop MOD
Post by: Sledgemoto on December 31, 2005, 10:15:14 AM
Error with RC2   :(

Anybody have a fix for this yet?



68. Execute Modification ./index.php Test successful
69. Execute Modification ./Sources/Post.php Test successful
70. Execute Modification ./Sources/Subs.php Test successful
71. Execute Modification ./Sources/ManageBoards.php Test successful
72. Execute Modification ./Sources/Subs-Boards.php Test successful
73. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
74. Execute Modification ./Themes/default/Display.template.php Test successful
75. Execute Modification ./Themes/default/index.template.php Test failed
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on December 31, 2005, 01:53:25 PM
Sledgemoto

Daniel15 said a new version will next week which will work with 1.1!
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 31, 2005, 04:25:24 PM
You could always try adding that particular modification manually. "75. Execute Modification ./Themes/default/index.template.php Test failed" Thats just one idea, but thats not saying thats going to work either.
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on December 31, 2005, 04:31:25 PM
Big guy,daniel15 ain't released it for 1.1 series if you ever read the note!
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on December 31, 2005, 04:37:50 PM
Ok, I`m sorry if I`m giving wrong info. I do remember Daniel15 saying the next release will take care of all the errors in the log file and ppl should wait but it doesnt look like he wants to wait. It was only an idea, I`m sorry.
Title: Re: SMFShop - Shop MOD
Post by: Sledgemoto on December 31, 2005, 05:05:44 PM
Quote from: J J Williams on December 31, 2005, 04:31:25 PM
Big guy,daniel15 ain't released it for 1.1 series if you ever read the note!

Good news for SMF 1.1 users! SMFShop 1.31 now has a SMF 1.1 package! This, however, is not tested by me. I recommend that you test it on a testing board before installing it on a public site!

It worked fine on 1.1 rc1 other than all the error logs and a few other bugs.

It also looks like it should work fine on RC 2. I think the issue now is the tab's have replaced the buttons.

I'm assuming this is the code that need to be altered.
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

// Work out where we currently are.
$current_action = 'home';
if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
$current_action = 'admin';
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'membermap')))
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';



Title: Re: SMFShop - Shop MOD
Post by: J. Williams on December 31, 2005, 06:14:49 PM
It was removed!

QuoteNOTE: Several problems were found with the SMF 1.1 package, and it has been removed for now. When the next version of SMFShop comes out, these problems (should) be fixed. I'm sorry for the inconvienience
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 31, 2005, 08:19:58 PM
Quote from: Valiantheart on December 30, 2005, 10:56:58 AM
I shifted my database so I backed it up and uploaded it at the new host. Everything worked fine except this part:

SQL query:

CREATE TABLE `smf_shop_items` (
id int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
name varchar( 50 ) NOT NULL default '',
DESC varchar( 100 ) NOT NULL default '',
price decimal( 8, 2 ) unsigned NOT NULL default 0.00,
module tinytext NOT NULL default '',
stock smallint( 6 ) NOT NULL default 0,
info1 text NOT NULL default '',
info2 text NOT NULL default '',
info3 text NOT NULL default '',
info4 text NOT NULL default '',
input_needed tinyint( 3 ) unsigned NOT NULL default 1,
can_use_item tinyint( 3 ) unsigned NOT NULL default 1,
image tinytext NOT NULL default '',
PRIMARY KEY ( id )
) TYPE = MYISAM

MySQL said: Documentation
#1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DESC varchar( 100 ) NOT NULL default '',
price decimal( 8, 2 )


Any idea how to fix this cos I have no knowledge of SQL. Thanks!

Put DESC in backquotes, ie. use `desc` instead of desc:

CREATE TABLE `smf_shop_items` (
id int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
name varchar( 50 ) NOT NULL default '',
`desc` varchar( 100 ) NOT NULL default '',
price decimal( 8, 2 ) unsigned NOT NULL default 0.00,
module tinytext NOT NULL default '',
stock smallint( 6 ) NOT NULL default 0,
info1 text NOT NULL default '',
info2 text NOT NULL default '',
info3 text NOT NULL default '',
info4 text NOT NULL default '',
input_needed tinyint( 3 ) unsigned NOT NULL default 1,
can_use_item tinyint( 3 ) unsigned NOT NULL default 1,
image tinytext NOT NULL default '',
PRIMARY KEY ( id )
) TYPE = MYISAM



This is because I used the name 'desc' for the description of the items, but it is a reserved word (it means 'Descending' in SQL). So, you need to put it in backquotes (`desc`) to fix that.

And about the new version, yes it will be coming out soon, but I'm currently working on some major web projects. But, I will be working on SMFShop, and it will be released soon

My website is finally getting fixed, and will be up soon.
Title: Re: SMFShop - Shop MOD
Post by: yellow1912 on January 01, 2006, 01:43:55 AM
There are some sections in my 4rum that I cant modify to count shop points, which is very weird; it works for other sections tho. Every time I modify and save the setting, the new setting is not saved...

Edit: Ok, I think I just found what's wrong: if a room have more than 2 child rooms, the post in the 3rd rooms and so on wont be counted for pints. weird.

New edit: Ok, I go directly to mysql database and set it myself, but I sill hope you can find what goes wrong here and fix it ^^.
Title: Re: SMFShop - Shop MOD
Post by: Tech o.O; on January 01, 2006, 07:12:38 AM
Can anyone tell me how to know what my local path to SMF is?  I can't install the smf shop if I don't know it.  >.<
Title: Re: SMFShop - Shop MOD
Post by: TUNDERPHOENIX on January 01, 2006, 07:16:41 AM
In my forum the shop icon only appears in the default theme and i want it to appear in my theme :'(, what should i do?
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on January 01, 2006, 08:07:53 AM
Quote from: TUNDERPHOENIX on January 01, 2006, 07:16:41 AM
In my forum the shop icon only appears in the default theme and i want it to appear in my theme :'(, what should i do?

Edit the theme,its not like easymod(on phpbb,easymod edits all themes which is stupid)
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on January 01, 2006, 03:20:15 PM
I want to know whether the next Shop mod will be compatible with RC2. Also, could you include a feature for members to have to "buy" the privilidge to have a signature and avatar? Please.
Title: Re: SMFShop - Shop MOD
Post by: Tech o.O; on January 01, 2006, 08:09:16 PM
Quote from: Heli Tech on January 01, 2006, 07:12:38 AM
Can anyone tell me how to know what my local path to SMF is?  I can't install the smf shop if I don't know it.  >.<

I need a response to this, please.  ;o;
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 02, 2006, 01:49:50 AM
Quote from: Heli Tech on January 01, 2006, 08:09:16 PM
Quote from: Heli Tech on January 01, 2006, 07:12:38 AM
Can anyone tell me how to know what my local path to SMF is?  I can't install the smf shop if I don't know it.  >.<

I need a response to this, please.  ;o;
If you're on a cPanel server, your local path is /home/[username]/public_html/[forums], replacing [username] with your username and [forums] with the directory you installed the forum into.

If you mean the FTP path, then it will be /public_html/[forums].

QuoteIn my forum the shop icon only appears in the default theme and i want it to appear in my theme , what should i do?
You need to manually edit the theme. I'll be making a tutorial on how to do that later.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 02, 2006, 04:28:20 AM
SMFShop 2.0 is now out!

Changes in 2.0:
* Version checker. When you go into the admin panel, it will say what version of SMFShop you have installed, and what the current version is.
* All of the SMFShop-related error log messages are now gone!
* The SMFShop template was changed so it is easier to manage
* A trade centre! Basically, users can sell their inventory items to other users.
* A 'restock' option in the admin panel
* An uninstaller!!
* Small 'Email an Admin' error fixed
* Minor bug fixes

Files which have been changed in 2.0:
* Sources/shop/ShopAdmin.php
* Sources/shop/ShopAdmin.template.php
* Sources/shop/Shop.php
* Sources/shop/Shop.template.php
* Themes/default/language/Shop.english.php
* Sources/shop/items/EmailAdmin.php

Modified Edits:
* Index.php
* Sources/RemoveTopic.php
* Sources/Subs.php
* Themes/default/index.template.php

New texts in the language file:
* $txt['shop_admin_restock']
* $txt['shop_restock_amount']
* $txt['shop_restock_lessthan']
* $txt['shop_stoptrade']
* $txt['shop_trade']
* $txt['shop_tradeitem']
* $txt['shop_trade_saleby']
* $txt['shop_trading']
* $txt['shop_no_sale']
* $txt['shop_trade_bought_item']
* $txt['shop_trade_cancelled']
* $txt['shop_trade_list']
* $txt['shop_trade_message']
* $txt['shop_trade_negative']
* $txt['shop_trade_success']
* $txt['shop_unable_connect']
* $txt['shop_wanna_trade']
Title: Re: SMFShop - Shop MOD
Post by: Purplemadness on January 02, 2006, 04:43:02 AM
It installs but i get this:

An Error Has Occurred!
Unable to load the 'main' template.

On 1-1 RC1
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 02, 2006, 05:06:21 AM
Purplemadness, Try this package instead and tell me if it works: http://users.tpg.com.au/dan15/SMFShop_2.0_test_install.tar.gz
Title: Re: SMFShop - Shop MOD
Post by: Prasad007 on January 02, 2006, 05:07:52 AM
will an updated version of SMF shop be released for SMF 1.1 RC2 anytime soon?
or does the latest version work with it?
Title: Re: SMFShop - Shop MOD
Post by: Purplemadness on January 02, 2006, 05:21:11 AM
Quote from: daniel15 on January 02, 2006, 05:06:21 AM
Purplemadness, Try this package instead and tell me if it works: http://users.tpg.com.au/dan15/SMFShop_2.0_test_install.tar.gz
I installed thta and i don't see a link or button to the shop, and in the admin panel i can't see the shopadmin options..

And all the files that belong to this mod are 0 kB when installed ???
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 02, 2006, 05:32:49 AM
Quote from: Purplemadness on January 02, 2006, 05:21:11 AM
Quote from: daniel15 on January 02, 2006, 05:06:21 AM
Purplemadness, Try this package instead and tell me if it works: http://users.tpg.com.au/dan15/SMFShop_2.0_test_install.tar.gz
I installed thta and i don't see a link or button to the shop, and in the admin panel i can't see the shopadmin options..

And all the files that belong to this mod are 0 kB when installed ???
It's a known problem with SMF 1.1RC1. You need to manually upload all the files. It was also a problem with the Location MOD (http://66.102.7.104/search?q=cache:qVV7hagdmqcJ:www.simplemachines.org/community/index.php%3Ftopic%3D20168.msg370459+site:simplemachines.org+%22Unable+to+load+the+%27main%27+template.%22&hl=en&client=opera).
Title: Re: SMFShop - Shop MOD
Post by: Purplemadness on January 02, 2006, 08:22:00 AM
Quote from: daniel15 on January 02, 2006, 05:32:49 AM
Quote from: Purplemadness on January 02, 2006, 05:21:11 AM
Quote from: daniel15 on January 02, 2006, 05:06:21 AM
Purplemadness, Try this package instead and tell me if it works: http://users.tpg.com.au/dan15/SMFShop_2.0_test_install.tar.gz
I installed thta and i don't see a link or button to the shop, and in the admin panel i can't see the shopadmin options..

And all the files that belong to this mod are 0 kB when installed ???
It's a known problem with SMF 1.1RC1. You need to manually upload all the files. It was also a problem with the Location MOD (http://66.102.7.104/search?q=cache:qVV7hagdmqcJ:www.simplemachines.org/community/index.php%3Ftopic%3D20168.msg370459+site:simplemachines.org+%22Unable+to+load+the+%27main%27+template.%22&hl=en&client=opera).
Ok, now it works, thanks! :D
Title: Re: SMFShop - Shop MOD
Post by: Rain501 on January 02, 2006, 08:59:41 AM
Hi Daniel,
Cheers for the release!  :D

Installed via the package manager, everything went OK, then had to go in and manually apply the template specifics such as the file editing and uploading. All seems to be working ok :D Cheers!

Got a question for you, regarding the inventory -

1) How do I add my own items? For example, the cashMod for phpbb had items of BBCode, so that a user had to purchase the ability to use italics/larger font etc.. Is there anyway to implement this?

Once again, Cheers! :D
Title: Re: SMFShop - Shop MOD
Post by: TUNDERPHOENIX on January 02, 2006, 09:21:14 AM
Great! A new version, I can't open files with the extention ".tar" can some one give the mod with a ".zip" extention

Oh and thanks for the awnser Daniel and JJ Williams
Title: Re: SMFShop - Shop MOD
Post by: duock on January 02, 2006, 10:08:06 AM
wow, thx....work very well...u r great person i met here...
Title: Re: SMFShop - Shop MOD
Post by: Saku on January 02, 2006, 03:55:30 PM
when i try to View Other Member's Inventory  i get this error:
Unable to load the 'otherInventory' template.

and when i try te delete a message :

Parse error: parse error, unexpected $ in /smf/Sources/RemoveTopic.php on line 623
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 02, 2006, 04:25:38 PM
Quote from: Sakuragi
when i try to View Other Member's Inventory  i get this error:
Unable to load the 'otherInventory' template.
That was a really stupid mistake on my half. I've uploaded a fixed installer now. To the 18 people who downloaded the new version, please open Themes/default/Shop.template.php, and then do this:

Find:
function otherInventory()

Change to:
function template_otherInventory()

Quote
and when i try te delete a message :

Parse error: parse error, unexpected $ in /smf/Sources/RemoveTopic.php on line 623
Please paste lines 620-630 here, and I'll help you.
Title: Re: SMFShop - Shop MOD
Post by: Saku on January 02, 2006, 04:34:54 PM
thanks

608 updateStats('message');
609 updateStats('topic');
610 updateStats('calendar');
611
612 // And now to update the last message of each board we messed with.
613 require_once($sourcedir . '/Subs-Post.php');
614 if ($recycle)
615 updateLastMessages(array($row['ID_BOARD'], $modSettings['recycle_board']));
616 else
617 updateLastMessages($row['ID_BOARD']);
618
619 return false;
620    }
621
622
623    ?>
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on January 02, 2006, 04:42:37 PM
Is the new version of the shop out ?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 02, 2006, 04:45:33 PM
Don't worry, I found the solution...

Open Sources/RemoveTopic.php. Find the SMFShop section
Just before the '//END SMFShop 2.0 code', add a '}'. The section should now look like:

//BEGIN SMFShop 2.0 (Build 8) MOD code
while ($rowMembers = mysql_fetch_assoc($requestMembers)) {
updateMemberData($rowMembers['ID_MEMBER'], array('posts' => 'posts - ' . $rowMembers['posts']));
global $modSettings;
db_query("UPDATE {$db_prefix}members
  SET money = money - {$modSettings['shopPointsPerPost']}
  WHERE ID_MEMBER = {$rowMembers['ID_MEMBER']}
  LIMIT 1", __FILE__, __LINE__);
}
//END SMFShop 2.0 code

Notice the new '}' just before the ending. Me forgetting a single character in the install package caused that stupid error. Time to upload yet another new package...
Title: Re: SMFShop - Shop MOD
Post by: Saku on January 02, 2006, 04:49:46 PM
Fixed, thanks
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on January 02, 2006, 05:01:29 PM
I`m getting an error in the error log after upgrading to the new version. It all works and everything. Great job.
Here is the error in the log I am getting:

8: Undefined index: shop
File: /home/***/public_html/smf/Themes/cold/BoardIndex.template.php (eval?)
Line: 943
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 02, 2006, 05:13:25 PM
Quote from: Bigguy on January 02, 2006, 05:01:29 PM
I`m getting an error in the error log after upgrading to the new version. It all works and everything. Great job.
Here is the error in the log I am getting:

8: Undefined index: shop
File: /home/***/public_html/smf/Themes/cold/BoardIndex.template.php (eval?)
Line: 943

That's because you're using a different theme. Open your Themes/cold/Index.template.php file, find the SMFShop section, and add this on top:
loadLanguage('shop');

Also, my forum is now up! Please use that instead of here for posting messages regarding SMFShop. You may find my forum at http://daniel15.be

EDIT:
QuoteIs the new version of the shop out ?
Yes, SMFShop 2.0 is out now. You can get it from the SMF Mods site (http://mods.simplemachines.org/?mod=65) or my site at http://www.dansoftaustralia.net/
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on January 02, 2006, 05:18:20 PM
ok I did that and now it says this:

Unable to load the 'shop.english' language file.

Here is the part about the shop:
Quote
    //BEGIN Shop MOD 0.2 Code
    loadLanguage('shop');
    echo "<a href='{$scripturl}?action=shop'>", ($settings['use_image_buttons'] ? "<img src='{$settings['images_url']}/{$context['user']['language']}/shop.gif' alt='{$txt['shop']}' style='margin: 2px 0;' border='0' />" : $txt['shop']), "</a>{$context['menu_separator']}";

    //END SHOP MOD
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 02, 2006, 05:30:30 PM
Quote from: Bigguy on January 02, 2006, 05:18:20 PM
ok I did that and now it says this:

Unable to load the 'shop.english' language file.

Here is the part about the shop:
Quote
    //BEGIN Shop MOD 0.2 Code
    loadLanguage('shop');
    echo "<a href='{$scripturl}?action=shop'>", ($settings['use_image_buttons'] ? "<img src='{$settings['images_url']}/{$context['user']['language']}/shop.gif' alt='{$txt['shop']}' style='margin: 2px 0;' border='0' />" : $txt['shop']), "</a>{$context['menu_separator']}";

    //END SHOP MOD
Since that didn't work, if you're not using any other languages other than english, you can replace $txt['shop'] with 'Shop':

    //BEGIN Shop MOD 0.2 Code
    echo "<a href='{$scripturl}?action=shop'>", ($settings['use_image_buttons'] ? "<img src='{$settings['images_url']}/{$context['user']['language']}/shop.gif' alt='Shop' style='margin: 2px 0;' border='0' />" : Shop), "</a>{$context['menu_separator']}";

    //END SHOP MOD

That should work for you.
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on January 02, 2006, 05:34:50 PM
Ok so replace what I have with this ?

EDIT: ok I replaced it and it looks like all the errors are gone, thats awesome. If I have anymore questions I will ask on your forum. Actually I`m going there right now. (I have another question,lol)
Title: Re: SMFShop - Shop MOD
Post by: ArkServer on January 02, 2006, 05:59:17 PM
im unable to load main template :/

1.1rc1

http://arkserver.servehttp.com/forum/index.php?action=shop

//edit
fixed, stupid package manager
Title: Re: SMFShop - Shop MOD
Post by: Kajin_Style on January 03, 2006, 07:41:59 AM
Hey when you go to add a item, it will ask you to put a price but now how many you wanted stocked.  Though you could go and edit the stock amount later, after you had created the item. 

It be better if you could edit the amount of stock in the shop before the item is created.

PS: I was going to post in your site about the problem, but your site won't let me register! Each time I click to register and fill out the information it asks, I submit it and it reloads me back to the registeration page. It just keeps looping me around. Don't know why...
Title: Re: SMFShop - Shop MOD
Post by: kckel on January 03, 2006, 12:55:28 PM
May have found a bug...

I got it to install no problem on 1.1 rc2, but when I now go to manage boards from the admin panel, the page is blank...mark as read from the main index also gives a blank page, and doesn't mark anything as read.

I removed the shop coding from subs-boards.php in the sources folder, and everything works again (except for adding money when posting/creating topic)...

not sure if it's a problem in subs-boards.php or another file linked with it (just because everything works again with the shop mod removed from that file doesn't mean it's that file, but a good place to start)
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on January 03, 2006, 04:27:25 PM
Ok, I want to ask, I have the previous shop mod installed. What must I do to install this one? Must I manually remove the other one and install this one, because if I don't do that, will I not have doubles of everything (like tickboxes in the board editor) to ask whther to allow credits to be earned. That happened before...

so what do i do?
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on January 03, 2006, 04:31:17 PM
Use the upgrade package on the mods page: http://mods.simplemachines.org/index.php?mod=65
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on January 04, 2006, 01:51:07 AM
OH NO! I did that, and the install went well, but now I have the old shop mod on the package managet still listed there! I have the upgrade listed and the old one!? Is that normal?

Also, is there a way to give $00.50 for a post, instead of a whole $1?
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on January 04, 2006, 01:58:25 AM
Its the same on my board so I would say yeah its normal. If its not I guess i have a bit of work to do to , lol.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 04, 2006, 07:21:04 AM
Yes, it's normal. It's just how the update package works (the update is seperate from the actual SMFShop, but this will change in the future.)

I've just updated SMFShop to work with SMF 1.1RC2! I must say, SMF 1.1RC2 is awesome! The template is nice, and all the package manager bugs are GONE! NO MORE FTP ERRORS! :D:D

<offtopic>900th reply to this thread!!! :D:D:D:D
Title: Re: SMFShop - Shop MOD
Post by: blainex on January 04, 2006, 07:32:59 AM
when i try to install on 1.1 RC2 i get
Duplicate column name 'info1'
File: /home/advance/public_html/forums/Packages/temp/updateScript.php
Line: 18
Title: Re: SMFShop - Shop MOD
Post by: Kajin_Style on January 04, 2006, 08:18:45 AM
I got some ideas for features for the Shop. Though I don't know if I should post them here or in your site.

Speaking of it, I still can't register.

EDIT:
I figured out what the problem was. For some reason I can't register with IE Explorer but with Firefox I could. If it was only me that has this problem, it's fine. But if it's the same with everyone else who uses IE....
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 04, 2006, 08:28:31 AM
What can't you register for?

Title: Re: SMFShop - Shop MOD
Post by: J. Williams on January 04, 2006, 09:43:59 AM
Daniel i think you need to edit the mod page,it says not avaliable for 1.1 rc 2 when it actually is.
Title: Re: SMFShop - Shop MOD
Post by: theintensity on January 04, 2006, 01:10:49 PM
I've done a fresh install of this mod on my forums ( SMF 1.1 RC2  )
it works perfectly on a firefox browser, but on IE, the only time the Shop image shows is if an Administrator enters the Admin panel

I am at a loss as to what the problem is.  Does anyone have any suggestions?
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on January 04, 2006, 01:44:16 PM
No, I am sorry, but that is happening to me, exept it does not work in the firefox browser....only when I am in admin.
Title: Re: SMFShop - Shop MOD
Post by: Kajin_Style on January 04, 2006, 06:35:00 PM
Quote from: daniel15 on January 04, 2006, 08:28:31 AM
What can't you register for?



I wasn't able to register on your forum. Though I can now, since I use the firefox browser instead of the IE one.
Title: Re: SMFShop - Shop MOD
Post by: backend on January 04, 2006, 11:17:10 PM
Can this be downloaded and installed automatically from the Package Manager in control panel? I went there and I didn't find this MOD.

Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 05, 2006, 12:50:09 AM
QuoteI wasn't able to register on your forum. Though I can now, since I use the firefox browser instead of the IE one.
I successfully registered an account using IE (with the username 'test'). I have no idea as to why it didn't work for you.

QuoteCan this be downloaded and installed automatically from the Package Manager in control panel? I went there and I didn't find this MOD.
You need to download the mod from my site at http://www.dansoftaustralia.net/ and then install it using the package manager.

And remember, be CAREFUL with this mod on SMF 1.1 RC1!! SMF 1.1 RC2 is fine, but SMF 1.1 RC1 has heaps of bugs in the package manager, including not uploading the files from a MOD properly, strange 'File not found' errors and more. If you're using the release candidate version of SMF, make sure you upgrade to SMF 1.1RC2

QuoteDaniel i think you need to edit the mod page,it says not avaliable for 1.1 rc 2 when it actually is.
I'll do that tonight.
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on January 05, 2006, 03:09:50 AM
Hello? Are people not getting that the SHOP button dissapears in RC2, exept when I am in the Admin Panel, at which time I can see it.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 05, 2006, 03:29:05 AM
Quote from: ExistenZ on January 05, 2006, 03:09:50 AM
Hello? Are people not getting that the SHOP button dissapears in RC2, exept when I am in the Admin Panel, at which time I can see it.

SMFShop seems to work fine for me under SMF 1.1 RC2 (screenshot, taken yesterday (http://img480.imageshack.us/img480/5846/untitled3cq.png))

Make a few screenshots, and upload them to imageshack.us or something.

Also, the official support forum for SMFShop is at http://daniel15.be/. Alternatively, you can use my support ticket software at http://support.dansoftaustralia.net/
Title: Re: SMFShop - Shop MOD
Post by: † ÐëepÇuT¹ † on January 05, 2006, 03:21:23 PM
Yes thats happening to me as well.. the button disappears, appears only when your in admin panel.
Title: Re: SMFShop - Shop MOD
Post by: ArkServer on January 05, 2006, 03:22:46 PM
im having trouble setting up a "cronjob" for the bank interest, any help?
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on January 05, 2006, 04:22:43 PM
There is actually instructions on how to do that in this thread somewhere, I think about half way back.
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on January 05, 2006, 05:57:56 PM
Well, at leats I am not alone. I thought it could be something in the lang file, but to no avail. Every single file seemed to be edited perfectly and there are no errors to speak of in the error log.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 05, 2006, 07:58:45 PM
Hi,
I made a post at my forum regarding the dissapearing shop button. See if this helps you: http://daniel15.da.funpic.org/forum/index.php?topic=11.0
Title: Re: SMFShop - Shop MOD
Post by: lindawww on January 05, 2006, 08:54:23 PM
Yes, after apply the patch, the button is visible for me, thanks :)
Title: Re: SMFShop - Shop MOD
Post by: Valiantheart on January 06, 2006, 04:07:57 AM
How would I go about doing that cron job?
Title: Re: SMFShop - Shop MOD
Post by: rockwell on January 06, 2006, 09:47:06 AM
Is this possible?

If they edit post, lost credits?  If they get a topic deleted, lose credits.   If they double post, lose credits?   

Thank you.
Title: Re: SMFShop - Shop MOD
Post by: rockwell on January 06, 2006, 03:39:44 PM
Also, no matter if I set it to 1, it still gives 2 dollars per post.

On the gambling option, it will not take out what is in bank, only what is in the pocket.  If, it also took out of bank, would be a lot better.   People are cheating that little system.
Title: Re: SMFShop - Shop MOD
Post by: DarkGoku on January 06, 2006, 05:25:12 PM
Erm, I know that I sound stupid, but what do I do after running the installScript.php ? It doesn't show up on my forum or anything. Do I need to chmodd something, or run something else?
Title: Re: SMFShop - Shop MOD
Post by: vincent on January 06, 2006, 06:47:52 PM
How can I reset everyone to 0 money on the bank and pocket?

i've got it allready :)
Title: Re: SMFShop - Shop MOD
Post by: spicyjoe on January 07, 2006, 10:19:50 AM
i know this has been asked many times but i cannot go thur 62 pages of post... so i though i'll just ask it... how can i add item... :D
Title: Re: SMFShop - Shop MOD
Post by: umiya on January 07, 2006, 01:09:38 PM
I did an install on this and i now get this error

Unknown column 'countMoney' in 'field list'
File: /home/hiyahost/public_html/forum/Sources/Post.php
Line: 1565

i looked inthe sql so i can create this table but couldnt find it. Can anyone provide this for me?
Title: Re: SMFShop - Shop MOD
Post by: houston on January 08, 2006, 10:04:27 PM
Quote from: umiya on January 07, 2006, 01:09:38 PM
I did an install on this and i now get this error

Unknown column 'countMoney' in 'field list'
File: /home/hiyahost/public_html/forum/Sources/Post.php
Line: 1565

i looked inthe sql so i can create this table but couldnt find it. Can anyone provide this for me?

This post here might be what you are looking for. I had the same problem but I can not remember what I did to correct it.

http://www.simplemachines.org/community/index.php?topic=60953.0 (http://www.simplemachines.org/community/index.php?topic=60953.0)
Title: Re: SMFShop - Shop MOD
Post by: regan on January 09, 2006, 02:37:15 AM
Hey everyone. Today I installed the latest shop version and I have a problem, but I really don't want to read through this whole thread in case I just waste my time.

I was wondering if there was a way you could set no limit to your shop image size? I have lots of pixels but they are sized differently, and because of that they are getting all stretched out. It's automatically set to 32 x 32, but can I change it?

Please help, thanks.
Title: Re: SMFShop - Shop MOD
Post by: yellow1912 on January 09, 2006, 07:44:59 PM
Hi there, I wonder if you minus the points if post get deleted ? Im using an older version and this can be a serious problem, a member can post any spam, then delete it, the post again and again. Everytime he does that he get points *_*.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 09, 2006, 08:53:57 PM
Quote from: yellow1912 on January 09, 2006, 07:44:59 PM
Hi there, I wonder if you minus the points if post get deleted ? Im using an older version and this can be a serious problem, a member can post any spam, then delete it, the post again and again. Everytime he does that he get points *_*.
Yes, this has been done in the later versions of SMFShop.

QuoteHow can I reset everyone to 0 money on the bank and pocket?
SQL Query:
UPDATE smf_members SET money = 0, moneyBank = 0

QuoteHow would I go about doing that cron job?
If you have cPanel, there's an option for cron jobs. The SMFShop Mod page (http://mods.simplemachines.org/?mod=65 ) explains what to do.
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on January 09, 2006, 09:30:15 PM
just another question for you daniel, is it at all possible at the moment or in the future to have an email or IM sent to admins everytime some one buys something, just giving a detail of who brought what :)

or does this already do that...
Title: Re: SMFShop - Shop MOD
Post by: Moocat on January 10, 2006, 03:10:19 AM
a purchase log would be really nice to have. ;)
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on January 10, 2006, 03:39:09 AM
ppl being able to sell sigs and graphics that they made would be great to ?
Title: Re: SMFShop - Shop MOD
Post by: Alein_Atryda_III on January 10, 2006, 05:30:59 AM
Hmm, It would be great if users could choose one item to show above their avatar. You know, that kind of show-off:p Possibility to give initial stock for new items, and as I said before - complete edit in edit mode:D

There could be image item too. If you buy it and click on "use" it will pop-up window with big picture and item itself wouldn't dissapear:o
Title: Re: SMFShop - Shop MOD
Post by: kadhumia_flo on January 10, 2006, 06:08:00 AM
I havnt used this mod before so this is a good guess

Were the purchasing form is sent (the file)
Add the mail(,,,,); script (Close to were the purchase successful message maybe)

As I said, I think I have used this mod in another forum before, but dont really know the exact procedure
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on January 10, 2006, 11:14:31 PM
I`m getting this error with the latest shop that is out on RC2 :

QuoteUndefined index: shopImageHeight
File: /home/****/public_html/smf/Themes/default/ShopAdmin.template.php (eval?)
Line: 53

Is there something I can do about this ???
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on January 10, 2006, 11:48:29 PM
Quote from: Moocat on January 10, 2006, 03:10:19 AM
a purchase log would be really nice to have. ;)

that would be good to have as well :)
Title: Re: SMFShop - Shop MOD
Post by: trio on January 12, 2006, 02:30:38 AM
Template Parse Error!
There was a problem loading the /Themes/default/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

546: echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '

I got this error. Anyone got a solution plss?? coz i noob in coding
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on January 13, 2006, 09:15:54 AM
Yes, and image selling thing sould be super, but people must be able to submit their own images. Like sugnature images and avatars....


Oh...but members will just be able to give that image to each other...like image piracy. Oh well....there goes that idea.
Title: Re: SMFShop - Shop MOD
Post by: yellow1912 on January 14, 2006, 06:15:17 PM
I have SMF 1.1 RC 1, and I want to upgrade to 1.1RC2 and upgrade the shop to the newest version also.
1. Can I keep all the old data (member's points, inventory,....)?
2. In what order should I upgrade? Should I upgrade the shop first or the forum first?

Thanks a lot. I tried uhm, lost all my old data, luckily I did it on my test server first.
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on January 14, 2006, 06:17:07 PM
Upgrade the forum first, uninstall all the modifications you have installed, if possible. Upgrade and then reinstall all your mods.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 14, 2006, 08:53:14 PM
Quote from: trio on January 12, 2006, 02:30:38 AM
Template Parse Error!
There was a problem loading the /Themes/default/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

546: echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '

I got this error. Anyone got a solution plss?? coz i noob in coding
As it says, access the file directly, and see what error you get.

Quote from: Bigguy on January 10, 2006, 11:14:31 PM
I`m getting this error with the latest shop that is out on RC2 :

QuoteUndefined index: shopImageHeight
File: /home/****/public_html/smf/Themes/default/ShopAdmin.template.php (eval?)
Line: 53

Is there something I can do about this ???
Do this query on your database in phpMyAdmin: INSERT INTO `smf_settings` (`variable`,`value`) VALUES ('shopImageHeight', '32')
Title: Re: SMFShop - Shop MOD
Post by: yellow1912 on January 14, 2006, 11:07:14 PM
Quote from: Bigguy on January 14, 2006, 06:17:07 PM
Upgrade the forum first, uninstall all the modifications you have installed, if possible. Upgrade and then reinstall all your mods.

Wouldnt the shop old data be erased if we do that?
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on January 14, 2006, 11:17:16 PM
well I`m not an expert and I`m not saying its going to work for you but when I upgraded my site I had to leave the mods in because the forum was so heavily modified none of them would uninstall. So I took a chance and UPGRADED (Not updated) the site from smf 1.0.5 to rc2 with 18 mods installed. It all went great, not one single problem other than all the mods I had installed where now just sitting in the package manager doing nothing. I have installed more mods on my new upgraded forum and I have no errors at all in the error log. I re-installed the shop and because the tables in the database werent touched everyone had there money still.

I`m not saying this will work for you I COUNT MYSELF LUCKY that the upgrade worked with all those mods installed.
Title: Re: SMFShop - Shop MOD
Post by: yellow1912 on January 15, 2006, 05:11:43 AM
Hi there, I just wanted to make sure, coz I did it 1 time and failed ^^.
Anyway, I followed your instruction and the mod showed up, so I suppose it's a success ^^. Thanks a lot mate.
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on January 15, 2006, 09:01:34 PM
someone mentioned before something about either a purchase log or an automated email to admins (or just my account) when anything is brought from the shop...

does anyone know how one of these could be down with code?
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on January 15, 2006, 10:19:31 PM
Yeah. I get an email whenever something is bought from the shop...

Look:

QuoteCongratulations! Nikster has purchased your 'Change User Title' item from you for 5 Galleons.

Have a good day,
--Forum Management

Anyway, something is off, because the Change User Title item in the shop costs 50 galleons. And, if this is from the trade centre, then I am confused, because I never had that itme in my inventory, even.
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on January 16, 2006, 05:40:21 PM
yeah but isn't that a personal member getting an email when someone buys something off them personally from the trade centre...

what i want is me myself, an admin recieving an email everytime anything is brought whether in the trade centre, the shop... basicly an email for every action that is taken to do with the shop mod
Title: Re: SMFShop - Shop MOD
Post by: ExistenZ on January 17, 2006, 03:50:46 AM
Quote from: LostProphecy on January 16, 2006, 05:40:21 PM
yeah but isn't that a personal member getting an email when someone buys something off them personally from the trade centre...

what i want is me myself, an admin recieving an email everytime anything is brought whether in the trade centre, the shop... basicly an email for every action that is taken to do with the shop mod

Although that might work better if it is ebedded in the adminn panel like an event log. Or something.
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on January 17, 2006, 05:51:32 AM
yeah that would be good either way...

just wish i knew how to code that sort of thing *sighs*
Title: Re: SMFShop - Shop MOD
Post by: kiddodee on January 17, 2006, 12:35:10 PM
At ShopAdministrator---> At Add Item

Fatal error: Cannot instantiate non-existent class: item_changeusertitle in /home/kiddodee/domains/kid-do-dee.com/public_html/forum/Sources/shop/ShopAdmin.php(163) : eval()'d code on line 1



At Shop Inventory .... when I click UseItem ....

Fatal error: shop(): Failed opening required 'Sources/shop/item_engine.php' (include_path='.:/usr/local/lib/php') in /home/kiddodee/domains/kid-do-dee.com/public_html/forum/Sources/shop/Shop.php on line 337





Please help me solve ... about these errors
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on January 17, 2006, 01:09:57 PM
Kiddodee,please state smf version & shop version.
Title: Re: SMFShop - Shop MOD
Post by: Vranx on January 18, 2006, 10:04:11 AM
SMF 1.1 RC2, Shop 2.0 (build 8 )

Sorry if this has been posted already, 64 pages is a bit much to look through for answers.

I successfully installed the mod but nobody is getting any points for posting. If I go into the admin panel and check the box to count posts for individual forums it doesnt stay. The next time I go in the box is unchecked once again.
Title: Re: SMFShop - Shop MOD
Post by: Vranx on January 18, 2006, 10:30:52 AM
Uninstalled and reinstalled the mod and now it works. I installed the mod then created the forums, guess it didnt like that.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 18, 2006, 08:26:37 PM
Quote from: ExistenZ on January 15, 2006, 10:19:31 PM
Yeah. I get an email whenever something is bought from the shop...

Look:

QuoteCongratulations! Nikster has purchased your 'Change User Title' item from you for 5 Galleons.

Have a good day,
--Forum Management

Anyway, something is off, because the Change User Title item in the shop costs 50 galleons. And, if this is from the trade centre, then I am confused, because I never had that itme in my inventory, even.
That email is meant to go to whoever owned the original item, and put it in the trade centre.

If the emails aren't working for you (at the moment I don't know why they aren't working properly), then do the fix at http://www.daniel15.be/forum/index.php?topic=10.0 to completely turn off email notifications for the Trade Centre.

And please, continue discussion about SMFShop at my forums at http://www.daniel15.be/ . Do not reply here, as I don't usually check back here anymore (due to lack of time). Also, having seperate topics instead of just posting in this one topic is a lot better.
Title: Re: SMFShop - Shop MOD
Post by: kiddodee on January 19, 2006, 04:52:14 AM
Quote from: J J Williams on January 17, 2006, 01:09:57 PM
Kiddodee,please state smf version & shop version.
SMF 1.1 RC2, Shop 2.0  :'(

My installation is no problem.... but I found these problem when I need to use it  >:(
Title: Re: SMFShop - Shop MOD
Post by: Pod on January 20, 2006, 11:01:29 AM
im having some problems..whenever i click shop and click any of the links inside shop such as,bank,buy stuff...etc the top of my site goes down and doesnt look right..iv tried fixing this myself but i have no idea which file it could be..

http://www.wicked-messenger.info/forum/index.php

Username:test
Password:12345
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on January 20, 2006, 03:39:53 PM
The "test" user account doesnt work. The e-mail needs to be validated.
Title: Re: SMFShop - Shop MOD
Post by: thewierdone2000 on January 20, 2006, 07:21:37 PM
Some (not all) of my members are not getting credits for their posts.

Is there a way to fix this?

I have made sure that the boards are checked to give them money, and some of them even used to get money for posts, but no longer do.

these people have also had their banks/pockets emptied (one of our guys had around 135, then got reset to 0)

Any ideas?
Title: Re: SMFShop - Shop MOD
Post by: Pod on January 21, 2006, 11:31:55 AM
ok fixed should work now..sorry about that was a bit tired when i made the account..

heres the info again

http://www.wicked-messenger.info/forum/index.php

username:test
pass:12345
Title: Re: SMFShop - Shop MOD
Post by: Ndien on January 21, 2006, 02:03:25 PM
I just upgraded from 1.05 to 1.1 RC2 and must have forgotten to remove something from the database.  After several attempts at fixing my DB, the installer didnt give me any issues, but didnt update my database either.  I tried running the installscript separate from the mod but this didnt help.

current forum is at http://www.torridgimps.com/smf

I have the old one still up as well at http://www.torridgimps.com/forum
Title: Re: SMFShop - Shop MOD
Post by: Vi31 on January 21, 2006, 02:23:05 PM
When I try to upgrade to the new version i get this error:

2: unlink(/home/msvi007/public_html/timeout/Packages/temp/maps/_vti_cnf/1pin.gif): Permission denied
File: /home/msvi007/public_html/timeout/Sources/Subs-Package.php
Line: 910

Please help

THanks in advance
Title: Re: SMFShop - Shop MOD
Post by: LordSimion on January 21, 2006, 03:54:49 PM
hmmm... this is strange,

  I added the mod and then I added it to my template. No problems there... right?
well, I can open the shop mod, but when you click on view shop, view inventory, bank... any of the links within the mod I am getting an error that says   **** template can not be loaded


  Does anyone know what I am doing wrong?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 26, 2006, 03:20:49 AM
Quote from: Pod on January 21, 2006, 11:31:55 AM
ok fixed should work now..sorry about that was a bit tired when i made the account..

heres the info again

http://www.wicked-messenger.info/forum/index.php

username:test
pass:12345
Pfft...
Quote
Sorry test, you are banned from using this forum!
faggot?
------------------

QuoteWhen I try to upgrade to the new version i get this error:

2: unlink(/home/msvi007/public_html/timeout/Packages/temp/maps/_vti_cnf/1pin.gif): Permission denied
File: /home/msvi007/public_html/timeout/Sources/Subs-Package.php
Line: 910

Please help

THanks in advance
That file has nothing to do with SMFShop... I honestly have no idea about that.

Quotehmmm... this is strange,

  I added the mod and then I added it to my template. No problems there... right?
well, I can open the shop mod, but when you click on view shop, view inventory, bank... any of the links within the mod I am getting an error that says   **** template can not be loaded


  Does anyone know what I am doing wrong?

Please post a support ticket at http://support.dansoftaustralia.net/. Please include a link to the forum. If my site is down, please try tommorow (we recently had our web host move servers).

And please, no more replies here, I don't check here often. Read  the first post in this topic, which explains where to post.
Title: Re: SMFShop - Shop MOD
Post by: Vi31 on January 28, 2006, 01:32:21 AM
Since I updated to the newest version of shop I now get an error when I click on the View Inventory link under the users title.  Here is the error:

ERROR: The member you typed ('1') doesn't exist!

Can anyone help with this please????
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on January 28, 2006, 03:07:10 AM
Vi31

I'd recommend unistalling the mod,then reinstalling.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 28, 2006, 06:24:36 AM
Quote from: Vi31 on January 28, 2006, 01:32:21 AM
Since I updated to the newest version of shop I now get an error when I click on the View Inventory link under the users title.  Here is the error:

ERROR: The member you typed ('1') doesn't exist!

Can anyone help with this please????
I've posted the solution at my website. Please see http://www.daniel15.be/forum/index.php?topic=20.0
Title: Re: SMFShop - Shop MOD
Post by: Pause on January 28, 2006, 06:32:25 AM
The MOD author has requested this topic be locked, and any problems to be directed to him at the addresses listed below.

Link to MOD (http://mods.simplemachines.org/?mod=65)

If you would like to submit any comments to do with SMFShop, please post them at forums, available at http://www.daniel15.be/

If you find a bug, or have a feature request, then please submit it to his bug tracker at http://bugs.dansoftaustralia.net/

For any other support issues, please use his support ticket system at http://support.dansoftaustralia.net/



Note: See the MOD page (http://mods.simplemachines.org/?mod=65) for the latest files!
Title: Re: SMFShop - Shop MOD
Post by: blazin6543 on April 05, 2006, 02:42:22 PM
i just installed the shop mod works good. i was wondering where do i go to add items, change amount of credits per post, etc...

also i noticed it says i have like 10010 credits but on my mini profile says 10 ... how do i go about change the 10010 to 10?
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on April 05, 2006, 08:46:03 PM
*points up*

you need to go to daniels own forum to ask questions and get answers
Title: Re: SMFShop - Shop MOD
Post by: Gaia on April 06, 2006, 03:35:48 PM
Hi,

I'm downloaded this at your website and i was wondering how i can install this manually as whenever i try to install it through the package manager i get the following error from my host:

Quote
Script or Action Blocked

The requested URL /forums/index.php?action=packages;sa=install;package=SMFShop%202.1%20Fresh%20Install.zip contains a script or action that has has been deteremined unsafe. It has been disabled to prevent abuse.

This server protected by: SecurePHPx

Thanks
Title: Re: SMFShop - Shop MOD
Post by: pianogal86 on April 07, 2006, 09:11:37 AM
I've had the shop mod for a while, but just uploaded the update package. Unfortunately, now when I try to go to my personal inventory or the Trade Centre, I get this error:

QuoteDatabase Error
Unknown column 'inv.tradecost' in 'field list'
File: /........./........./.........../blessedmaidens.com/discussion/forums/Sources/shop/Shop.php
Line: 798

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.7, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on April 07, 2006, 11:06:04 AM
Quote from: pianogal86 on April 07, 2006, 09:11:37 AM
I've had the shop mod for a while, but just uploaded the update package. Unfortunately, now when I try to go to my personal inventory or the Trade Centre, I get this error:

QuoteDatabase Error
Unknown column 'inv.tradecost' in 'field list'
File: /........./........./.........../blessedmaidens.com/discussion/forums/Sources/shop/Shop.php
Line: 798

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.7, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.

Did you update correctly? It sounds like you had SMFShop 1.31 installed, and then upgraded straight to SMFShop 2.1... If so, use this code to fix your database:


<?php
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');
// Hmm... no SSI.php and no SMF?
elseif (!defined('SMF'))
die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');

//Make description field longer
db_query("ALTER TABLE `{$db_prefix}shop_items` CHANGE `desc` `desc` TEXT NOT NULL"__FILE____LINE__);

//Change 'amount paid' field to decimal (it should have been like this in the first place
db_query("ALTER TABLE `{$db_prefix}shop_inventory` CHANGE `amtpaid` `amtpaid` DECIMAL(8, 2) DEFAULT '0.00' NOT NULL"__FILE____LINE__);

//Change member's money fields to decimal
db_query("ALTER TABLE `{$db_prefix}members` CHANGE `money` `money` DECIMAL(9, 2) UNSIGNED DEFAULT '0' NOT NULL, CHANGE `moneyBank` `moneyBank` DECIMAL(9, 2) UNSIGNED DEFAULT '0' NOT NULL"__FILE____LINE__);

//Add trading fields to inventory
db_query("ALTER TABLE `{$db_prefix}shop_inventory` ADD `trading` TINYINT(1) UNSIGNED NOT NULL, ADD `tradecost` DECIMAL(8, 2) NOT NULL"__FILE____LINE__);

//add trade enabled setting
db_query("INSERT INTO `{$db_prefix}settings` ( `variable` , `value` ) VALUES ('shopTradeEnabled', '1')"__FILE____LINE__);
echo 
"<b><center>Complete</center></b>";

?>



Save this into your forum's directory, and then run it. It should fix that problem.
Quote from: Gaia on April 06, 2006, 03:35:48 PM
Hi,

I'm downloaded this at your website and i was wondering how i can install this manually as whenever i try to install it through the package manager i get the following error from my host:

Quote
Script or Action Blocked

The requested URL /forums/index.php?action=packages;sa=install;package=SMFShop%202.1%20Fresh%20Install.zip contains a script or action that has has been deteremined unsafe. It has been disabled to prevent abuse.

This server protected by: SecurePHPx

Thanks

Bleh, some sort of stupid security measure. If you really want to install manually, look at the package-info.xml and install.xml files for details. Hopefully, you understand how to install it by following the guiadance of those files :)
Title: Re: SMFShop - Shop MOD
Post by: pianogal86 on April 07, 2006, 03:50:36 PM
Ok, where do I put this code, and what do I save it as?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on April 07, 2006, 07:39:37 PM
Quote from: pianogal86 on April 07, 2006, 03:50:36 PM
Ok, where do I put this code, and what do I save it as?
You put it in your forum's directory, and call it anything you like, with .php on the end (maybe fixShop.php or something?). Then, you run it by going to the URL (for example, if your forum is at http://www.daniel15.be/forum/, you'd go to http://www.daniel15.be/forum/fixShop.php).
Title: Re: SMFShop - Shop MOD
Post by: pianogal86 on April 08, 2006, 11:01:50 AM
Good grief, if it's not one thing, it's another. I named it fixshop.php, uploaded it to /discussion/forums, and this is the error I get:

Database Error
Duplicate entry 'shopTradeEnabled' for key 1
File: /......../........./........./blessedmaidens.com/discussion/forums/fixshop.php
Line: 21
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on April 08, 2006, 11:18:35 AM
Well, now it should be working anyway...
Title: Re: SMFShop - Shop MOD
Post by: pianogal86 on April 08, 2006, 11:28:46 AM
Haha, sure 'nuff!  :D Thanks.  ;D
Title: Re: SMFShop - Shop MOD
Post by: Cottelletje on April 10, 2006, 06:20:28 PM
i have a 3 questions
first
where can you see the shop? in admin panel i can add items or modify them but can't find the shop where the things are located
second
i don't see the credits in the posts of people,i see how many posts they have but not the credits they have
third
where can you see the things that the members have bought

thats it  ;D
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on April 10, 2006, 06:31:57 PM
It sounds like it didnt install correctly. Did you get any errors will installing through package manager.
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on April 10, 2006, 09:45:02 PM
Quote from: Cottelletje on April 10, 2006, 06:20:28 PM
i have a 3 questions
first
where can you see the shop? in admin panel i can add items or modify them but can't find the shop where the things are located
second
i don't see the credits in the posts of people,i see how many posts they have but not the credits they have
third
where can you see the things that the members have bought

thats it  ;D

do you have your own custom theme? cause all those 3 things don't show up in a custom thing you have to go into each and every custom theme and add the code for it
Title: Re: SMFShop - Shop MOD
Post by: Cottelletje on April 11, 2006, 03:43:03 AM
no i installed it with the babylon theme and also i get 10020 credits and not 20  :'(
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on April 11, 2006, 05:25:31 AM
Well cottelletje,you start off with 10000 when you install if you are the main admin AKA the board installer.
Title: Re: SMFShop - Shop MOD
Post by: LostProphecy on April 11, 2006, 08:52:23 AM
yes but isn't the babylon theme still classified as a custom theme or basicly "non-default"

this mod only inserts all the code for the default smf theme and maybe (not too sure) the classic theme
Title: SMFShop Problem
Post by: Epixx on April 12, 2006, 09:26:55 PM
I just recently installed SMFShop, and have the whole shop set up. But when you click the link to the shop, even if you're already logged in, it'll log you out and say that you need to log in. Then if you do log in, the same thing happens. If you wanna see for your self, visit http://kinkymedia.net/forum (http://kinkymedia.net/forum) and then register and click on the KinkyMedia Shop. How can I fix this?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on April 13, 2006, 02:27:20 AM
Quotei have a 3 questions
first
where can you see the shop? in admin panel i can add items or modify them but can't find the shop where the things are located
second
i don't see the credits in the posts of people,i see how many posts they have but not the credits they have
third
where can you see the things that the members have bought
Yeah, if you're using a custom theme, you'll either need to change the code yourself, or ask me at my forum (http://www.daniel15.be/)

QuoteI just recently installed SMFShop, and have the whole shop set up. But when you click the link to the shop, even if you're already logged in, it'll log you out and say that you need to log in. Then if you do log in, the same thing happens. If you wanna see for your self, visit http://kinkymedia.net/forum and then register and click on the KinkyMedia Shop. How can I fix this?
It works fine for me... What browser are you using?
Title: Re: SMFShop - Shop MOD
Post by: Epixx on April 13, 2006, 03:31:00 PM
I'm using Fire Fox. So you could log into the shop and buy stuff?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on April 13, 2006, 09:08:48 PM
I don't have any credits, so I couldn't test it :P But I could log in to it fine.

Also, if you'd like a Shop button, you can request one on my forum at http://www.daniel15.be/
Title: Re: SMFShop - Shop MOD
Post by: mogadishu on April 14, 2006, 11:23:59 AM
will work this mod with: SMF 1.0.7
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on April 14, 2006, 11:35:33 AM
Yes, it will
My forum runs SMF 1.0.7, so I can assure you that it will work ;)
Title: Re: SMFShop - Shop MOD
Post by: KyleWood on April 14, 2006, 12:13:44 PM
I just download SMF and the ShopMOD, but how do i install it??Got a guide or anything :S
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on April 14, 2006, 04:57:08 PM
Go into the admin panel and upload it through the package manager. After that click on packages in the admin panel and you should see it listed there, press apply. That should do it.If you have any errors DO NOT PPROCEED. Go to this board ( http://www.daniel15.be/ ) For more help with the shop.
Title: Re: SMFShop - Shop MOD
Post by: KyleWood on April 15, 2006, 07:32:47 AM
It says i can only upload ZIP files and this other type. I tried uploading it up in a ZIP and it did not work :S
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on April 15, 2006, 07:49:48 AM
Hmmm... The SMFShop file should be a ZIP file.

Are you sure you're getting the right file? Go to http://www.dansoftaustralia.net/index.dsa , and click on the 'SMFShop 2.1' link. Choose 'SMFShop 2.1 FRESH INSTALL'
Title: Re: SMFShop - Shop MOD
Post by: KyleWood on April 15, 2006, 09:20:09 AM
Dont worry i got it working now. Thanks.
Title: Re: SMFShop - Shop MOD
Post by: blur on April 15, 2006, 11:27:29 PM
i get this. I am on 1.1 RC2 and got the fresh install. Also even tho i didnt install this mod cus these tests failed a shop button appeared and the shop is there with no items and credits appear but you cant gain any. wierd stuff.


Type Action Description
1. Extract Tree ./Sources/shop 
2. Extract File ./Themes/default/images/english/shop.gif 
3. Extract File ./Themes/default/languages/Shop.english.php 
4. Extract File ./Themes/default/ShopAdmin.template.php 
5. Extract File ./Themes/default/Shop.template.php 
6. Execute Modification ./index.php Test successful
7. Execute Modification ./Sources/RemoveTopic.php Test failed
8. Execute Modification ./Sources/Post.php Test successful
9. Execute Modification ./Sources/Subs.php Test successful
10. Execute Modification ./Sources/ManageBoards.php Test successful
11. Execute Modification ./Sources/Subs-Boards.php Test successful
12. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
13. Execute Modification ./Themes/default/Display.template.php Test failed
14. Execute Modification ./Themes/default/index.template.php Test successful
15. Execute Code installScript.php
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on April 16, 2006, 03:49:45 AM
Those files must be modified then,not the original 1.1 RC 2 files & You didn't the mod yourself,so they could lie!
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on April 16, 2006, 10:11:00 AM
Display.template.php and RemoveTopic.php Must be manually changed with the code that is in the .xml file of the shop zip. You could always ask at http://www.daniel15.be
Title: Shop Item Display in Posts
Post by: godzirrraaaaa on April 16, 2006, 10:45:20 PM
Is there a way to make shop item purchases display in the profile of a person's posts? If so, can someone explain please?

For example:
(http://www.ilumine.net/xxx/img/itemdisplay01.gif)
(that was photoshopped, original display: http://www.ilumine.net/xxx/img/itemdisplay02.gif)
Title: Re: SMFShop - Shop MOD
Post by: godzirrraaaaa on April 16, 2006, 11:14:52 PM
Oh sorry about that. I wasn't aware it was merged and thought that perhaps I accidentally posted it as a reply instead of creating a topic.
Title: Re: SMFShop - Shop MOD
Post by: londonhogfan on April 19, 2006, 12:03:49 AM
anyway for karma to raise/reduce the money?

I would love that.
Title: Need help with coding problem
Post by: theunder-ground on April 19, 2006, 04:51:27 PM
I am trying to make the shop mod fit my needs.  I've almost got it done, but there is one but that is confusing me.

One of the main things that I want to be able to do is edit the currency amount through the profile.  I got the box to show up, it edits the database as needed, but unlike the place you edit the posts it doesn't show how much they currently have.

I am also trying to get this amount to show up in the profile summary and it will not.

These are all the changes I made:

in sources/profile.php

find

// Change the number of posts.
if (isset($_POST['posts']) && allowedTo('moderate_forum'))
$profile_vars['posts'] = $_POST['posts'] != '' ? (int) $_POST['posts'] : '\'\'';


Add after
// Change the number of Diamonds.
if (isset($_POST['money']) && allowedTo('moderate_forum'))
$profile_vars['money'] = $_POST['money'] != '' ? (int) $_POST['money'] : '\'\'';


in themes/default/Profile.template.php

Find

<tr>
<td><b>', $txt[86], ': </b></td>
<td>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</td>
</tr><tr>


Add After
               <td><b>', $modSettings['shopCurrencyPrefix'], ' </b></td>
<td>', $context['member']['money'], '</td>
</tr><tr>


Find

   // If karma is enabled let the admin edit it...
if ($user_info['is_admin'] && !empty($modSettings['karmaMode']))
{
echo '
<tr>
<td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td>
</tr><tr>
<td valign="top"><b>', $modSettings['karmaLabel'], '</b></td>
<td>
', $modSettings['karmaApplaudLabel'], ' <input type="text" name="karmaGood" size="4" value="', $context['member']['karma']['good'], '" onchange="setInnerHTML(document.getElementById(\'karmaTotal\'), this.value - this.form.karmaBad.value);" style="margin-right: 2ex;" /> ', $modSettings['karmaSmiteLabel'], ' <input type="text" name="karmaBad" size="4" value="', $context['member']['karma']['bad'], '" onchange="this.form.karmaGood.onchange();" /><br />
(', $txt[94], ': <span id="karmaTotal">', ($context['member']['karma']['good'] - $context['member']['karma']['bad']), '</span>)
</td>
</tr>';
}

Add After   

// Diamonds
if ($user_info['is_admin'])
{
echo '
<tr>
<td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td>
</tr><tr>
<td valign="top"><b>', $modSettings['shopCurrencyPrefix'], '</b></td>
<td><input type="text" name="money" size="4" value="', $context['member']['money'], '" /></td>

</tr>';
}
Title: Re: SMFShop - Shop MOD
Post by: mikedats on April 20, 2006, 10:22:17 PM
i cant seem to find any help through search....

shop mod works fine, well installed fine, i suppose. anyways, someone bought a rock and of course it doesnt do anything now a member tried to buy a changer user title and nothing happened. i have the option for members to change customer title off in the settings.....am i missing something here? gamble your money one works as well...just the change customer title or change other members customer title...it deducts money but wont allow them to do anything after that...solution?
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on April 21, 2006, 03:13:44 AM
Mikedats

They need to go to inventory
The rock does nothing :)
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on April 21, 2006, 04:03:40 AM
@theunder-ground: I haven't really played around with the profile functions, so I don't know how to make that work
@mikedats: The user needs to go to the 'Inventory' section in order to be able to use the item...
Quotei have the option for members to change customer title off in the settings
This is irrevalent, the items don't follow the setting ;). However, if you don't want members to be able to use the item, you can remove it from your shop.
Title: Re: SMFShop - Shop MOD
Post by: mikedats on April 21, 2006, 06:16:56 AM
yes i know that. i tried it. i bought change user title and then went into my inventory, saw it there, used it, entered my custom title but nothing happened. i still have the preset user title still....

what i mean in my last post was, i turned off "allow members to change custom title". i dont know if that anything to do with when a member buys "change custom title" it wont allow them to change it.
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on April 21, 2006, 07:04:52 AM
Mike,did you click the button next to it. Remember enter isn't that much of working in some mods.
Title: Re: SMFShop - Shop MOD
Post by: theunder-ground on April 21, 2006, 10:01:23 AM
Quote from: daniel15 on April 21, 2006, 04:03:40 AM
@theunder-ground: I haven't really played around with the profile functions, so I don't know how to make that work

I figured that.  This post was merged into yours when in reality all I need is help with general coding.
Title: Re: SMFShop - Shop MOD
Post by: Muse on April 21, 2006, 10:36:54 PM
Quote from: jenncarino on April 16, 2006, 10:45:20 PM
Is there a way to make shop item purchases display in the profile of a person's posts? If so, can someone explain please?

Ooh, I'd be interested in that if it were possible!

(Also, thanks again Daniel for helping fix my install!)
Title: Re: SMFShop - Shop MOD
Post by: mikedats on April 22, 2006, 02:10:17 AM
Quote from: J J Williams on April 21, 2006, 07:04:52 AM
Mike,did you click the button next to it. Remember enter isn't that much of working in some mods.

can i ask which button that would be?
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on April 22, 2006, 05:07:05 AM
When you enter the custom title,the button next to it must be clicked.
Title: Re: SMFShop - Shop MOD
Post by: mikedats on April 22, 2006, 06:01:17 AM
alright, just bought something: You successfully bought a 'Change User Title'. To use it, click on the 'Your Inventory' link on the left.

i clicked on my inventory...

"       Change User Title      Change your User Title      Paid: 150.00
                                                                                Use Item
                                                                                Trade Item

                                                                                                       "
i clicked on "use item"

This item requires further input. Please complete the fields below, and then press 'Use Item'
New Title: [new title]
[enter button]


theres no check box for anything..


Title: Re: SMFShop - Shop MOD
Post by: Bigguy on April 22, 2006, 11:09:33 AM
After you fill in the fields can you hit Use Item again ???
Title: Re: SMFShop - Shop MOD
Post by: mikedats on April 22, 2006, 07:21:34 PM
nope...maybe the installation wasnt as smooth as i thought it was.
Title: Re: SMFShop - Shop MOD
Post by: londonhogfan on April 24, 2006, 05:06:25 PM
Quote from: londonhogfan on April 19, 2006, 12:03:49 AM
anyway for karma to raise/reduce the money?

I would love that.

anyone know if this can be done?

I would like it to add or subtract 5 credits if someone gets positive or negative karma.
Title: Re: SMFShop - Shop MOD
Post by: MikeB on May 01, 2006, 06:04:01 PM
Hi

I need a mod whereby members are charged for posting within a certain category (all I want is a fixed charge for creating a new topic so they can sell stuff). Can someone tell me if this mod (or any other available) does that?

I'd be prepared to pay someone to write it for me if it doesn't exist.

Thanks in advance

Mike B
Title: Re: SMFShop - Shop MOD
Post by: geezmo on May 05, 2006, 12:24:12 AM
I tried adding more images in Sources/shop/item_images/ but it won't let me add anything, I get a Permission Denied error when trying to upload things. How to solve this?
Title: Re: SMFShop - Shop MOD
Post by: chrisjs162216 on May 10, 2006, 05:59:18 AM
I can also confirm the permission denied errors, as I couldn't add the file it said to for his Reset CSS Display Name adon.


I've PMed him on a different forum about it, and see what's wrong.


Usually in cPanel, you can just click the folder and click Change Permissions, but it always reverts back to the default, 755.  I think the owner must be SMF in this case, otherwise it should work.

Just to confirm, the error is "[a fatal error or timeout occurred while processing this directive]" right?


Chris
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on May 10, 2006, 09:15:51 AM
Chris

This is what happens in SMF,You'd if using 1.1 rc 2,go to package manager & install options then you have the cleanup permissions option.
Title: Re: SMFShop - Shop MOD
Post by: squirrelof09 on May 10, 2006, 08:30:14 PM
How come I can't download the mod?

Its not in the list..
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on May 10, 2006, 09:35:45 PM
Try going here: http://www.daniel15.be/forum/index.php This is the mod makers forum. It should be there somewhere.
Title: Re: SMFShop - Shop MOD
Post by: Vinspire on May 11, 2006, 12:00:56 AM
Ermm ... I am sorry i didnt read thru the 68 pages as it is too long. Only read thru 2 pages.

My question is

1. What does this mod do ? For the forummers to sell stuff or the founder of the site ?

2. Any screenshot of the mod ?

3. I am using SMF 1.1 RC 2. Does it work in SMF 1.1 RC 2 ?
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on May 11, 2006, 10:58:47 AM
1.) Its a shop, like a store. No members can`t sell things unless you put it up for them.
2.) There might be but I don`t have any.
3.) Yes it does.

Quote from: Bigguy on May 10, 2006, 09:35:45 PM
Try going here: http://www.daniel15.be/forum/index.php This is the mod makers forum. It should be there somewhere.
Title: Re: SMFShop - Shop MOD
Post by: Vinspire on May 11, 2006, 11:04:25 AM
I think i've got a rough idea on how the mod work ... Great mods. Exactly what i am looking for.

Thanks to the mod maker :)
Title: Re: SMFShop - Shop MOD
Post by: squirrelof09 on May 11, 2006, 05:05:36 PM
I've looked through the site but I can't find it..
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on May 11, 2006, 05:22:33 PM
Try this (http://www.dansoftaustralia.net/developers/smfmods.dsa) link for the shop.
Title: Re: SMFShop - Shop MOD
Post by: squirrelof09 on May 11, 2006, 05:38:51 PM
ahhh, thanks.
Title: Re: SMFShop - Shop MOD
Post by: Vinspire on May 12, 2006, 01:36:57 AM
Can SMF shop do this ? Sell avatar or inventory ...

(http://img138.imageshack.us/img138/3060/shop14ou.jpg) (http://imageshack.us)

(http://img138.imageshack.us/img138/6905/shop29zi.jpg) (http://imageshack.us)
Title: Re: SMFShop - Shop MOD
Post by: onijin on May 12, 2006, 07:43:25 AM
possible, but pointless?

what's to stop members from right clicking and save image as for the avas?

could manually disable right-click, but anyone with half a decent browser can find ways around it.

I think the shop is best suited for database manipulation

(buy postcounts, karma, hours added to total time, change name color, etc.)
Title: Re: SMFShop - Shop MOD
Post by: Vinspire on May 13, 2006, 12:09:57 AM
Quote from: onijin on May 12, 2006, 07:43:25 AM
possible, but pointless?

what's to stop members from right clicking and save image as for the avas?

could manually disable right-click, but anyone with half a decent browser can find ways around it.

I think the shop is best suited for database manipulation

(buy postcounts, karma, hours added to total time, change name color, etc.)

They bought the angel or monkey and put it in the inventories but come to think about it. I do agree with what you said .... Pointless :)
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on May 13, 2006, 02:44:18 AM
Just to make a correction on the image: Aries is supposed to be Aeris
Title: Re: SMFShop - Shop MOD
Post by: dzembak on May 15, 2006, 06:12:00 AM
Well, working perfect but I need to sell goods for the real money with delivery and order forming and sending it to seller (as a order) and to buyer (as a notifycation and confirmation).

Trying to understand if it possible to modify it and how...

Anyway, nice work! :)
Title: Re: SMFShop - Shop MOD
Post by: dzembak on May 15, 2006, 06:44:00 AM
Just wonder what this MOD is made for? For fun? As a toy?
It`s hard to imagine for me it`s commercial use. Am I wrong?
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on May 15, 2006, 12:52:29 PM
Dzembak,this mod if you have enough knowledge of php,html and css ;you can make it so its for that use but you would require daniel15's permission to do heavy modifications to his mod.
Title: Re: SMFShop - Shop MOD
Post by: frozendice on May 19, 2006, 06:15:46 PM
Are there any additional item packages we can add to the shop?  Anyone have ideas for things the shop could sell?  My users really want stuff to buy in the shop and I have the time to code stuff but I can't think of anything to sell.  Any ideas?
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on May 19, 2006, 06:19:45 PM
I used to sell sig backgrounds that my members and I made in the shop. You can place them ina  download directory and I think there are more instructions at the shops website. Just a thought. Give them a preview of the sig somewhere that is watermarked so they cant use it but know what it looks like.
Title: Re: SMFShop - Shop MOD
Post by: Dieter on May 19, 2006, 08:27:19 PM
Just love this mod.

There is just one more thing I wish it could do.

I want a list over who is buying, is this possible?
Title: Re: SMFShop - Shop MOD
Post by: SergeantAsh on May 21, 2006, 11:57:59 AM
I'd find it really useful to be actually able to put real items for sale into the shop, buying such an item would not require any credits, instead the user is forwarded to PayPal to make payment, following which an email is sent to designated email addresses.
Title: Re: SMFShop - Shop MOD
Post by: Grommit on May 21, 2006, 09:45:09 PM
I am running the Helios Multi theme and the shop tag is not showing ....... how can I get the Shop tag/link to show in this theme..?

Thanks
Title: Re: SMFShop - Shop MOD
Post by: smartmouse on May 25, 2006, 02:38:42 AM
I'm using SMFShop module, i need help:

1) How to assign some free credits to members? I have seen in the database but i can't find a way to add credits to some members.

2) When a member get a file from his inventary, that file is deleted from inventory.
How to change this option? I would that the inventory keep the file in there even they are downloaded from the user.

I hope you can help me. Thank you.
Sorry for my english.
Title: Re: SMFShop - Shop MOD
Post by: onijin on May 25, 2006, 07:41:39 AM
1) Admin => Member's Inventory => Enter Name => Add the credits


2) I don't now.  That would be cool to have it listed even though they used it.  Just labled "used" or something.
Title: Re: SMFShop - Shop MOD
Post by: smartmouse on May 25, 2006, 09:22:04 AM
Quote from: onijin on May 25, 2006, 07:41:39 AM
1) Admin => Member's Inventory => Enter Name => Add the credits


2) I don't now.  That would be cool to have it listed even though they used it.  Just labled "used" or something.


1) Is there a faster way to add credits? I have to add credits to almost 200 members!

2) When i add a file, there is an option named "Delete item from inventory after use".
I have already listed all the files. Now if i want to edit every files, that option there is not there!
Is it possible maybe to edit in the mysql ?

Please tell me if my english is not clear :P
Title: Re: SMFShop - Shop MOD
Post by: Vinspire on May 25, 2006, 01:07:06 PM
Can we set membergroup that could use this shop ?

It would be great if could do so coz i plan to restrict it to a certain groups only can access this board to promote them to post more in the forum if they want to access the shop.

:) :) :)
Title: Re: SMFShop - Shop MOD
Post by: geezmo on May 25, 2006, 02:04:34 PM
Just a question. In the Bank, when is interest added to the account deposited in the Bank? Is it everyday? every week? every month?
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on May 25, 2006, 09:14:47 PM
I`m almost certain you have to set a cron job in cpanel for interest to be added to accounts
Title: Re: SMFShop - Shop MOD
Post by: smartmouse on May 26, 2006, 06:57:05 PM
Quote from: smartmouse on May 25, 2006, 09:22:04 AM
Quote from: onijin on May 25, 2006, 07:41:39 AM
1) Admin => Member's Inventory => Enter Name => Add the credits


2) I don't now.  That would be cool to have it listed even though they used it.  Just labled "used" or something.


1) Is there a faster way to add credits? I have to add credits to almost 200 members!

2) When i add a file, there is an option named "Delete item from inventory after use".
I have already listed all the files. Now if i want to edit every files, that option there is not there!
Is it possible maybe to edit in the mysql ?

Please tell me if my english is not clear :P

Anyone can help me? Thank you...
Title: Re: SMFShop - Shop MOD
Post by: KingOfMyWorld on May 26, 2006, 10:53:43 PM
Quote12.     Execute Modification     ./Themes/default/ManageBoards.template.php     Test failed

When I try to install the 2.1 shop, this is what I get with my fresh install of 1.1 RC2. I got it fine with my other one yesterday when I upgraded from whatever godaddy is offering. So today I installed a new install and converted my 2.0 IPB to SMF, but now the shop isn't going to work. :(

That file isn't in my smf install file or the shop file. Where can I find it? I have a manageboards.php, but I'm not sure that is the same.
Title: Re: SMFShop - Shop MOD
Post by: littleone on May 28, 2006, 10:15:07 AM
Where can I find: Web Hosting Username.  As in what file is that found in.  I check several and couldnt find it.  I need to change it so that I can specify what needs to be put there.  Thanks
Title: Re: SMFShop - Shop MOD
Post by: geezmo on May 28, 2006, 10:21:50 AM
Quote from: Bigguy on May 25, 2006, 09:14:47 PM
I`m almost certain you have to set a cron job in cpanel for interest to be added to accounts


This means bank interest is not automatic and we still have to run some cron in order to activate bank interest?
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on May 28, 2006, 12:33:04 PM
Yes I think so. This is the way it was on previous versions anyway.

Quote from: geezmo on May 28, 2006, 10:21:50 AM
Quote from: Bigguy on May 25, 2006, 09:14:47 PM
I`m almost certain you have to set a cron job in cpanel for interest to be added to accounts


This means bank interest is not automatic and we still have to run some cron in order to activate bank interest?
Title: Re: SMFShop - Shop MOD
Post by: geezmo on May 28, 2006, 12:55:05 PM
Hmm does that have to be run everytime we want interest to be credited or can it just be done one-time? Also, how do I set up this cron job for the bank interest?
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on May 28, 2006, 01:23:13 PM
either in this thread or on the homepage of this mod there is instructions on how to set up a cron job for this. If you can`t find info here about it try this site:

http://www.daniel15.be/forum/index.php
Title: Re: SMFShop - Shop MOD
Post by: KingOfMyWorld on May 28, 2006, 10:35:57 PM
Quote from: KingOfMyWorld on May 26, 2006, 10:53:43 PM
Quote12.     Execute Modification     ./Themes/default/ManageBoards.template.php     Test failed

When I try to install the 2.1 shop, this is what I get with my fresh install of 1.1 RC2. I got it fine with my other one yesterday when I upgraded from whatever godaddy is offering. So today I installed a new install and converted my 2.0 IPB to SMF, but now the shop isn't going to work. :(

That file isn't in my smf install file or the shop file. Where can I find it? I have a manageboards.php, but I'm not sure that is the same.

If you guys here can't help me, can you please point me to the or a place that can?  :(
Title: Re: SMFShop - Shop MOD
Post by: geezmo on May 29, 2006, 12:23:22 AM
It's in the smf install file: Themes > default > ManageBoards.template.php if you can't find it, re-upload a fresh copy from the smf installation file. If the mod shop still gets a Test failed error after a fresh install, just try manually updating the affected file with the modifications from the shop mod files.
Title: Re: SMFShop - Shop MOD
Post by: Vinspire on May 29, 2006, 03:54:28 AM
Quote from: KingOfMyWorld on May 28, 2006, 10:35:57 PM
If you guys here can't help me, can you please point me to the or a place that can?  :(

Try asking it from the mod creator at his site. http://www.daniel15.be/
Title: Re: SMFShop - Shop MOD
Post by: sbclansite.com on May 30, 2006, 03:07:37 AM
Aah i get this message when trying to install on latest 1.1rc2 using version 2.1 from dans site .
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Anyclue to fix it ?

This is where its giving error :
11.     Execute Modification     ./Sources/Subs-Boards.php     Test failed
12.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test failed
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on May 30, 2006, 05:27:25 AM
Overwrite those files to see if that fixes the failed tests problem.
Title: Re: SMFShop - Shop MOD
Post by: sbclansite.com on May 31, 2006, 04:05:58 AM
Hmm that worked but i wonder if it broke any old mods, so probably i will reinstall smf and the mods. First will install shop mod.
Title: Re: SMFShop - Shop MOD
Post by: sbclansite.com on June 03, 2006, 08:45:41 PM
Ok guys for those of you using latest version of smf shop 2.1 there were some errors in it and some code was missing i have taken the privilage of editing the shop mod and following are the changes made :

Bug Fixed :

Can now disable/enable shop points from admin panel properly ( there were 2 files which had problem with code).

If anyone who is using current version of smf shop and would like to mannually fix the codes in their files  than just look at these two files 

Manageboards.php and Subs-boards.php look in the xml file for the changes made to those 2 files.

Fresh download of SMF 2.1 (modified version)  : http://sbclansite.com/downloads/mods-smf/SMFShop%202.1%20Fresh%20Install.zip
Title: Re: SMFShop - Shop MOD
Post by: Lainie Kyshia on June 04, 2006, 08:40:42 AM
Hi!
Firstly, I'm spanish and my english is not very well....xDDD So sorry! xD

Well, I have a problem  :-[
The package manager doesn't work because the server is miarroba and miarroba hasn't support for zlib.
Well, I want to know... how can I install the Shop Mod? I transfered all the files of mod in the Packages folder and I copy installScript.php in the forum directory. Then I have writen in explorer: www.mypage.com/forum/installScript.php (for example) and Shop Mod is installed succesfully but...now what do I do? The Admin panel is like always... :(
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on June 04, 2006, 08:42:23 AM
You have to do the edits in the .xml file
Title: Re: SMFShop - Shop MOD
Post by: Lainie Kyshia on June 04, 2006, 08:50:17 AM
Ok! Thanks so much!
But I don't understand very well the .xml file...

For example, this:

- <add>
- <![CDATA[
//Begin Shop MOD 0.2 code
'shop' => array('shop/Shop.php', 'Shop'),
'shop_general' => array('shop/ShopAdmin.php', 'ShopGeneral'),
'shop_inventory' => array('shop/ShopAdmin.php', 'ShopInventory'),
'shop_items_add' => array('shop/ShopAdmin.php', 'ShopItemsAdd'),
'shop_items_edit' => array('shop/ShopAdmin.php', 'ShopItemsEdit'),
//Begin SMFShop MOD 2.0 (Build 8) code
'shop_restock' => array('shop/ShopAdmin.php', 'ShopRestock'),
//END SMFShop MOD code
//END SHOP MOD


  ]]>
  </add>


Where do I edit that? Thank you!!!

EDITED: Hi! I understand the xml file!!!^^. But now I have another doubt xDD

file name="$boarddir/index.php" error="fatal">


Where is this file??? I didn't find it  :(

Title: Re: SMFShop - Shop MOD
Post by: J. Williams on June 04, 2006, 09:32:14 AM
$boarddir is like forum :P
Title: Re: SMFShop - Shop MOD
Post by: Lainie Kyshia on June 04, 2006, 09:58:18 AM
Oh! Thanks!! I'm new in SMF Forums xDD

Kisses!!
Lainie ^^

EDITED: Hi again! xDD I have another problem...again xDDD
In Manageboards.php I didn't find this line:

override_theme = $_POST[override_theme]


I have 1.0.7 version....Is because of that??
Title: Re: SMFShop - Shop MOD
Post by: Lainie Kyshia on June 04, 2006, 10:57:48 AM
Hi!

Well, I solved the problem....but I have another problem :'( I'm a problematic girl xDDD

Well, when I added this:

//BEGIN Shop MOD 0.2 Code
//BEGIN SMFShop 2.0 (Build 8) MOD Code
loadLanguage('Shop');
//END SMFShop MOD code
    echo "<a href='{$scripturl}?action=shop'>", ($settings['use_image_buttons'] ? "<img src='{$settings['images_url']}/{$context['user']['language']}/shop.gif' alt='{$txt['shop']}' style='margin: 2px 0;' border='0' />" : $txt['shop']), "</a>{$context['menu_separator']}";
    //END SHOP MOD


before this:

<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];


in the file: Themes/default/index.template.php

in the forum I read this:

Template Parse Error!
There was a problem loading the /Themes/default/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

What is the matter?? :'(
Title: Re: SMFShop - Shop MOD
Post by: sbclansite.com on June 04, 2006, 03:45:52 PM
Are you using default smf theme or some other theme?
Title: Re: SMFShop - Shop MOD
Post by: Bogie on June 05, 2006, 06:17:41 PM
I just installed the SMFShop on my 1.1 RC2 board and the information that should appear under the author information on posts (how much cash/points they have) isn't showing up.  I am using the LongBlue theme and my site is integrated with Joomla.

Thanks in advance.

http://www.congressionalsimulation.com
Title: Re: SMFShop - Shop MOD
Post by: onijin on June 05, 2006, 07:04:15 PM
You have to manually input the display.template.php code into any non-default theme.

just open the install file with a text editor (i use frontpage) and see what you have to add/edit/delete
Title: Re: SMFShop - Shop MOD
Post by: K_4_kelly on June 08, 2006, 08:15:10 AM
hi,

i've successfully manually installed the shop mod!!

however, can we have a function like have to pay (the credits) to read the hidden post?  just like you those u need to reply to read the hidden post, or you need to have 5 karmas to read the post!


Thanks!!!
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on June 08, 2006, 11:20:46 AM
If I remember,correctly if you want support; go to http://daniel15.be since he rarely checks this topic :P
Title: Re: SMFShop - Shop MOD
Post by: beautibella on June 10, 2006, 10:42:28 AM
I am getting an error in my quick reply message area with this error after I installed the shop mod here is the error please help:

2: Invalid argument supplied for foreach()
File: /home/bellacd/public_html/pixelchic/pixelchic/Themes/default/languages/Shop.english.php (eval?)
Line: 672
Title: Re: SMFShop - Shop MOD
Post by: Vinspire on June 10, 2006, 12:27:00 PM
This mod seems to have a lot of bugs ...

My "interest" isn't working  :-[ :-[ :-[
Title: Re: SMFShop - Shop MOD
Post by: sbclansite.com on June 10, 2006, 03:21:29 PM
Quote from: Vinspire on June 10, 2006, 12:27:00 PM
This mod seems to have a lot of bugs ...

My "interest" isn't working  :-[ :-[ :-[

Did u setup the cron ? If not how is the interest supposed to work?
Title: Re: SMFShop - Shop MOD
Post by: Vinspire on June 11, 2006, 08:15:55 AM
What "cron" ?

I did enabled the bank.
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on June 11, 2006, 08:28:27 AM
An WikiPedia Explaination:

QuoteThe crontab command, found in Unix and Unix-like operating systems, is used to schedule commands to be executed periodically. It reads a series of commands from standard input and collects them into a file also known as a "crontab" which is later read and whose instructions are carried out.

Generally, the schedules modified by crontab are enacted by a daemon, crond, which runs constantly in the background and checks once a minute to see if any of the scheduled jobs need to be executed. If so, it executes them. These jobs are generally referred to as cron jobs.
Title: Re: SMFShop - Shop MOD
Post by: Vinspire on June 11, 2006, 08:58:54 AM
How to enable "cron" then ? :P
Title: Re: SMFShop - Shop MOD
Post by: sbclansite.com on June 11, 2006, 04:24:13 PM
Quote from: Vinspire on June 11, 2006, 08:58:54 AM
How to enable "cron" then ? :P

Dude read the instructions properly whenever you download or install a mod and good luck.
Title: Re: SMFShop - Shop MOD
Post by: Vinspire on June 12, 2006, 12:21:35 AM
Just went to the mod's site and read the instructions. Everything is fixed. Sorry  :-[ :-[ :-[
Title: Re: SMFShop - Shop MOD
Post by: greyias on June 16, 2006, 08:56:19 PM
Here's a strange one (it's stumped poor Daniel on his forum, so I'm hoping someone will be able to enlighten me), the shop installs fine (via package manager), doesn't mess up anything on my forum. We can post, we're all happy. But...

I can't buy, edit, or delete items, because everytime I do, I get a 404 error, directing to the index page. Both the folder and the index page are 777, so logically it shouldn't be a problem.

I don't think this would be caused by not setting a cron job (I mean, I could be wrong, but it seems unrelated to the bank interest). Is there some line of code that refers to the index page that maybe is causing this?
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on June 17, 2006, 04:06:05 AM
Try checking everything is 777 (Can be done via p.m - install options in rc2)
Title: Re: SMFShop - Shop MOD
Post by: Col on June 19, 2006, 09:40:01 AM
Hi,

Am I right in saying, this not actually a shop mod at all, but some kind of points system?
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on June 19, 2006, 09:56:45 AM
No, it is a shop mod. I have had things up for download that you can only get through the shop by points you have earned. I would call it a shop mod.
Title: Re: SMFShop - Shop MOD
Post by: Col on June 19, 2006, 10:43:25 AM
Quote from: Bigguy on June 19, 2006, 09:56:45 AM
No, it is a shop mod.
Quote from: Bigguy on June 19, 2006, 09:56:45 AMI would call it a shop mod.

::) ???
Title: Re: SMFShop - Shop MOD
Post by: sbclansite.com on June 19, 2006, 01:33:04 PM
Quote from: Col on June 19, 2006, 09:40:01 AM
Hi,

Am I right in saying, this not actually a shop mod at all, but some kind of points system?

No ur not right, it does have a shop section where u can buy stuff (items) which require credits (aka points).

Want demo check out http://www.forums.sbclansite.com/ and than decide.
Title: Re: SMFShop - Shop MOD
Post by: Vinspire on June 19, 2006, 02:44:11 PM
Anyone got kewl kewl stuff for sales in the shop ?

Would like to do the same for my shop. Currently there isnt anything much which is interesting in the shop :P
Title: Re: SMFShop - Shop MOD
Post by: Col on June 19, 2006, 04:00:32 PM
Quote from: sbclansite.com on June 19, 2006, 01:33:04 PM
Quote from: Col on June 19, 2006, 09:40:01 AM
Hi,

Am I right in saying, this not actually a shop mod at all, but some kind of points system?

No ur not right, it does have a shop section where u can buy stuff (items) which require credits (aka points).

Want demo check out http://www.forums.sbclansite.com/ and than decide.

Are there items for sale, that I can purchase with Sterling; Dollars; Yen; Euro? Or, is this just a way of giving "prizes" to "active" members, or "popular" members, or members who are "good at games"? - The first one is shop, the second is something else.

I didn't raise this to argue the toss about what this mod actually is; it is clearly not a "shop"! I cannot be the only one to have assumed that this is some kind of shopping mod; evidently, it is not. - I wasted a lot of time reading before it began to sink in what it appears to be about.

I suppose this goes wider than this mod. It is a pretty a regular occurrence that Mods are poorly explained, or sometimes not at all. I'd try out the shop at the site you provided a link to, but I'd have to join to view it.

Thanks anyway.
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on June 19, 2006, 04:30:35 PM
The shop is meant to be a "forum" shop, if you want; you can get someone to make an ebay/downloads shop mod for SMF :P
Title: Re: SMFShop - Shop MOD
Post by: onijin on June 19, 2006, 04:42:11 PM
I have a question on the download feature.

Say if I make an item for download, what kind of security would prevent link downloads?

In other words, preventing people from downloading that haven't paid for it?
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on June 19, 2006, 04:43:53 PM
Something like his captcha mod and the field being password field to prevent them from viewing what they type :P
Title: Re: SMFShop - Shop MOD
Post by: sbclansite.com on June 19, 2006, 05:05:35 PM
Quote from: Col on June 19, 2006, 04:00:32 PM
Quote from: sbclansite.com on June 19, 2006, 01:33:04 PM
Quote from: Col on June 19, 2006, 09:40:01 AM
Hi,

Am I right in saying, this not actually a shop mod at all, but some kind of points system?

No ur not right, it does have a shop section where u can buy stuff (items) which require credits (aka points).

Want demo check out http://www.forums.sbclansite.com/ and than decide.

Are there items for sale, that I can purchase with Sterling; Dollars; Yen; Euro? Or, is this just a way of giving "prizes" to "active" members, or "popular" members, or members who are "good at games"? - The first one is shop, the second is something else.

I didn't raise this to argue the toss about what this mod actually is; it is clearly not a "shop"! I cannot be the only one to have assumed that this is some kind of shopping mod; evidently, it is not. - I wasted a lot of time reading before it began to sink in what it appears to be about.

I suppose this goes wider than this mod. It is a pretty a regular occurrence that Mods are poorly explained, or sometimes not at all. I'd try out the shop at the site you provided a link to, but I'd have to join to view it.

Thanks anyway.

Well from what i am understanding your looking for probably subscription mod aka this thing :
http://www.forums.sbclansite.com/index.php?action=profile;sa=subscriptions

If you notice you can buy or subscribe to things that the admin sets, say if you want to sell a Nuclear Bomb for 2000K you can put your email address put a description of the item and change the payment  portal to what u have and the duration of subscribtion it could be for 20 years or anything you want.

I think thats what u looking at probably but i could be wrong.
Title: Problem installing smf Shop on theme
Post by: djzzero on June 19, 2006, 11:52:59 PM
SMF Version: SMF 1.1 RC2
I get this error, I changed all /default/ templates to /themeis11rc2/

11.  Execute Modification  ./Themes/themis11rc2/ManageBoards.template.php  File not found
12. Execute Modification ./Themes/themis11rc2/Display.template.php Failure
13. Execute Modification ./themis11rc2/default/index.template.php File not found
Title: Re: SMFShop - Shop MOD
Post by: onijin on June 20, 2006, 12:22:07 AM
rather than modifying the installer, why don't you manually install the mod?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on June 24, 2006, 11:57:22 PM
Quote from: djzzero on June 19, 2006, 11:52:59 PM
SMF Version: SMF 1.1 RC2
I get this error, I changed all /default/ templates to /themeis11rc2/

11.  Execute Modification  ./Themes/themis11rc2/ManageBoards.template.php  File not found
12. Execute Modification ./Themes/themis11rc2/Display.template.php Failure
13. Execute Modification ./themis11rc2/default/index.template.php File not found


You need to install it to the default theme. Then, request a shop button/code for your theme.

Also, I'm not really checking back here often anymore. Please use my forum at http://www.daniel15.aus.cc/ :)
Title: Re: SMFShop - Shop MOD
Post by: TechnoDragon on June 25, 2006, 12:40:13 AM
plus, doing that some of the files may not be in the theme...remeber that any files not in a theme pull from the default theme anyway.
Title: Re: SMFShop - Shop MOD
Post by: nitecrawler on June 25, 2006, 08:06:49 AM
Can tangible products be added to SMF Shop? I'm looking for such a mod where people can earn points, and then redeem it for gifts much like they do for name tags and icons.
Title: Re: SMFShop - Shop MOD
Post by: Gobo on June 28, 2006, 12:27:08 PM
Quote from: Vinspire on June 19, 2006, 02:44:11 PM
Anyone got kewl kewl stuff for sales in the shop ?

Would like to do the same for my shop. Currently there isnt anything much which is interesting in the shop :P

just make items using the existing template available

like for rock i made 'flowers' which users can send to each other

and other decorative items or silly little nicknacks to eat (consumable items - they dissapear when u use them - good as gifts)

have a look at my shop if u want http://path-to-peace.net/forum/index.php

u can login as test
pass: test

to access the shop :)
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on June 30, 2006, 08:08:17 AM
QuoteCan tangible products be added to SMF Shop?
Not directly, however there is an 'Email an Admin' item that might do what you want. Basically, you can add a custom item that will email you whenever it's used.
Title: Re: SMFShop - Shop MOD
Post by: PrizeLive.com on June 30, 2006, 03:52:51 PM
whats wrong?

"There are no files to download at this time"
Title: Re: SMFShop - Shop MOD
Post by: Vinspire on June 30, 2006, 05:56:20 PM
Quote from: SurfExcelerator.com on June 30, 2006, 03:52:51 PM
whats wrong?

"There are no files to download at this time"

Download it at his website : http://www.dansoftaustralia.net/

Direct download linking : SMF Shop (http://www.dansoftaustralia.net/downloads/download.php?id=16)
Title: Re: SMFShop - Shop MOD
Post by: mforum on July 02, 2006, 07:50:30 AM
well, i have installed Greek language along with English in my forum.How can i translate this mod to Greek language too for users that use it in forum ? I haven't found any modification.English.php lines of code in install-SMF-12c2.xml  :-\


ok i found it, i must put an extra Shop.greek.php translated,  in /Themes/Default/languages :)
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on July 15, 2006, 03:55:38 AM
Quoteok i found it, i must put an extra Shop.greek.php translated,  in /Themes/Default/languages
Yep, that's basically how you do it ;)
Title: Doubt regarding SMFShop mod
Post by: devilian on July 24, 2006, 12:10:15 AM
I m using smfshop mod.

But when i test "send email to admin v2" it just sends form results of just one form field. No other form field is displayed in the email.

Can anyone tell me what o write in the "send message box".
Can anyone give some example here.
Title: Re: SMFShop - Shop MOD
Post by: Gobo on July 24, 2006, 07:09:28 AM
everytime anyone even farts in the shop i end up getting an email

man its crazy lol

please in the next version have the email admin thingie off :P no more emails
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on July 24, 2006, 07:46:02 AM
Just remove the item :D
Title: Re: SMFShop - Shop MOD
Post by: devilian on July 24, 2006, 08:06:01 AM
Can anyone give me a nice example of using "email to admin" item sep by step.

I tested it. I added more form fields in the form. But when the result came to the email, not all form results ere shown. I think, i have gone wrong somewhere.

Please anyone explain me what to put codes in the message boz when there are more than 2 form fields.
Title: Re: SMFShop - Shop MOD
Post by: Gobo on July 24, 2006, 11:52:42 AM
Any news on when the 'Virtual Pets' Item is being released?

I remember Basilbeard was developing it yea?

Title: Re: SMFShop - Shop MOD
Post by: devilian on July 25, 2006, 07:21:29 AM
hello ppl, i hav posted this thing many times here. but didnt get any reply.

can any one giv me how to setup 'email to admin' with multiple form fields.

when i use this item, it sends email to admin but only one form field results come as email. i want all the form fields to come as email result.

what coding shud i put in 'send message' box? Plz guide me.
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on July 25, 2006, 07:22:44 AM
Thats because the shop item is set to only submit the default :D
Title: Re: SMFShop - Shop MOD
Post by: devilian on July 25, 2006, 07:50:47 AM
Quote from: J J Williams on July 25, 2006, 07:22:44 AM
Thats because the shop item is set to only submit the default :D

So is there any way i can send all the details to email??/

I mean if a person uses the "email o admin" item and then he uses it. There are 3 form fields
1. your name
2. your email address
3. username

So how can i make all the three results emailed to admin. Currently it jus sends the result for username.
Can anyone please tell what codes to put in the "message to send" box where something like this is given "{$_POST["host_user"]}." What extra codes do i have to add??

Please someone give me some nice example
Title: Re: SMFShop - Shop MOD
Post by: aj510 on July 25, 2006, 09:04:55 AM
is it possible to display how many credits a forum member has under their post count on each post they make?

Title: Re: SMFShop - Shop MOD
Post by: devilian on July 25, 2006, 09:05:36 AM
While configuring "Email to admin v2" item, i had configured it like this.

QuoteAdditional fields needed:
Web Hosting Username: <input type="text" name="host_user">
Your name: <input type="text" name="name">
Email Address: <input type="text" name="email">


QuoteMessage to send:
100MB Extra webspace has been bought from the Forum Shop by user {$_POST["host_user"]}. Please add it to his/her account --Shop Mailer

But when i get results in email, the only result it shows is of "Web hosting username". No other form field it shows.
What could be wrong??? Please guide me.
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on July 25, 2006, 09:37:35 AM
Quote from: aj510 on July 25, 2006, 09:04:55 AM
is it possible to display how many credits a forum member has under their post count on each post they make?

Look in the install file and where it goes into the display, you move that code next to something
Quote from: devilian on July 25, 2006, 09:05:36 AM
While configuring "Email to admin v2" item, i had configured it like this.

QuoteAdditional fields needed:
Web Hosting Username: <input type="text" name="host_user">
Your name: <input type="text" name="name">
Email Address: <input type="text" name="email">


QuoteMessage to send:
100MB Extra webspace has been bought from the Forum Shop by user {$_POST["host_user"]}. Please add it to his/her account --Shop Mailer

But when i get results in email, the only result it shows is of "Web hosting username". No other form field it shows.
What could be wrong??? Please guide me.


        mail($to, $subject, $message) or die("Error sending message to admin! Please inform the Admin of this error. This item will still be available in your inventory.");

It would be something to do with that :D
Title: Re: SMFShop - Shop MOD
Post by: devilian on July 25, 2006, 09:49:00 AM
Hello JJ willians!!!

Actually the email is getting recieved by me.
But the prob is not everything is displayed.

Only one form result is shown in the email.

I think i have to add some codes like {$_POST["host_user"]} this in the Message to send box. But dont know what to add exactly.
Title: Re: SMFShop - Shop MOD
Post by: aj510 on July 25, 2006, 09:50:33 AM
Quote from: devilian on July 25, 2006, 09:05:36 AM
While configuring "Email to admin v2" item, i had configured it like this.

QuoteAdditional fields needed:
Web Hosting Username: <input type="text" name="host_user">
Your name: <input type="text" name="name">
Email Address: <input type="text" name="email">


QuoteMessage to send:
100MB Extra webspace has been bought from the Forum Shop by user {$_POST["host_user"]}. Please add it to his/her account --Shop Mailer

But when i get results in email, the only result it shows is of "Web hosting username". No other form field it shows.
What could be wrong??? Please guide me.

Sounds like you haven't caught the info from your variables

For each text field you create, you need to catch it with as shown below


{$_POST["name"]}
{$_POST["email"]}
Title: Re: SMFShop - Shop MOD
Post by: devilian on July 25, 2006, 10:21:20 AM
Do i need to put commas in between or how should i seperate it???

then how should i put i into the message to send box

Title: Re: SMFShop - Shop MOD
Post by: devilian on July 25, 2006, 10:27:10 AM
Do i need to put commas in between or how should i seperate it???

then how should i put those codes into the message to send box. can you give some example for more than 2 form fields???

Plz

Title: Re: SMFShop - Shop MOD
Post by: aj510 on July 25, 2006, 06:35:08 PM
ok here's what you need to do


[b]Additional fields needed:[/b]
NOTE : you can type in ANYTHING you want in  this field to give the USER Instructions.

Username: <input type="text" name="host_user"><br>
Street Address : <input type="text" name="street_address"><br>
State : <input type="text" name="state"><br>
Post Code : <input type="text" name="postcode"><br>
Country : <input type="text" name="country"><br>

[b]Message to send:[/b]

{$_POST["street_address"]}
{$_POST["state"]}
{$_POST["postcode"]}
{$_POST["country"]}
  --Shop Mailer


Hope that helps you
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on July 29, 2006, 03:26:26 AM
devilian's problem was already solved on my forum. Please see http://www.daniel15.aus.cc/forum/index.php?topic=219.0 for the answer I posted

Quoteis it possible to display how many credits a forum member has under their post count on each post they make?
Well, that's what it's meant to do, but it only does it on the standard theme. If you use a different one, you'll need to edit it. Please see http://www.daniel15.aus.cc/forum/index.php?topic=39.0
Title: Re: SMFShop - Shop MOD
Post by: Gobo on July 29, 2006, 04:41:22 AM
hey how about adding a referral system to this mod?

so that people who refer get credit automatically ?:D
Title: Re: SMFShop - Shop MOD
Post by: L.G.S on July 29, 2006, 07:27:01 AM
Hey I'm having trouble adding/deleting/modifying

When I click the link which takes me to index.php?action=shop_items_edit I get this error:


Table 'tscar_smf.smf2_shop_items' doesn't exist
File: /home/tscar/public_html/board/Sources/shop/ShopAdmin.php
Line: 381


Looks like it's adding a default database prefix onto my current one?


edit: Just found out it happens when I try to do anything concerning the items.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on July 29, 2006, 07:41:49 AM
QuoteLooks like it's adding a default database prefix onto my current one?
The first part of the 'table name' listed there is the database name. So, it's  looking in the 'tscar_smf' database for 'smf2_shop_items'.

Looking at that error, it sounds as if SMFShop wasn't properly installed. Try uninstalling and then reinstalling, and see if that helps ;)
Title: Re: SMFShop - Shop MOD
Post by: L.G.S on July 29, 2006, 08:03:07 AM
I don't really want to do that, because I manually installed about 3-4 pages..

I had it installed previously, then deleted it for upgrade. Now I installed again, it said database already exists! (or something like that)

Could that be it?

edit:

Well now I cant post properly..

When I hit post I get an error about "fields" in post.php, but it still posts for me.

I have had to remove the mod but really would like to use it.
Title: Re: SMFShop - Shop MOD
Post by: slaytcafe.com on July 29, 2006, 10:43:42 AM
I tried 2.2 upgrade , so error :  Duplicate entry 'shopMinDeposit' for key 1
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on July 29, 2006, 10:03:15 PM
Well, after a long period of inactivity (I was way too busy to do any real work on SMFShop), SMFShop 2.2 is now out! This release has many changes in it, and I would consider it quite a big release. This release has one of the most requested features - The ability to send an item in your inventory to another member (thanks to Basil Beard - My code is based on his). From a coding perspective, I've split up the Shop.php file in to several seperate files, as I think this will be more efficient (it was getting too big).


Anyways, here's the changes in this version:
If you want to see a detailed changelog (and I mean very, very detailed), then please see the SVN Changelog, at http://svn.sourceforge.net/viewvc/*checkout*/smfmods/smfshop/tags/release-2.2/svn_changelog.txt (http://svn.sourceforge.net/viewvc/*checkout*/smfmods/smfshop/tags/release-2.2/svn_changelog.txt))

As usual, please see the SMF Mods page on the DanSoft Australia (http://www.dansoftaustralia.net/) website to download this new version :)

QuoteI tried 2.2 upgrade , so error :  Duplicate entry 'shopMinDeposit' for key 1
Were you using the development version, by any chance? It's not really a good idea to upgrade from a development version to a stable version (and I don't really support it, anyways).
Title: Re: SMFShop - Shop MOD
Post by: Rubyforlife on August 02, 2006, 10:59:23 AM
Hey this is amazing :D It's looking great so far!
It all seems to be working normally but when I check the error log I'm flooded with this one:

Unable to load the 'InstantMessage.english' language file.

It seems to be coming up on pretty much every page a user views  :-\
Do you know how to fix this?  :)

Thanks in advance!

Title: Re: SMFShop - Shop MOD
Post by: J. Williams on August 02, 2006, 11:18:17 AM
Reupload the languages directory of the theme you're using :P
Title: Re: SMFShop - Shop MOD
Post by: Rubyforlife on August 03, 2006, 02:10:50 PM
Okies got that sorted but now there's another problem...

People's credits aren't going up. (I'm on a different skin, could that be the cause?)
Everyone including people who have posted have 0 credits, and now that it's installed the credits aren't going up  :( How can I sort this?  :P
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on August 03, 2006, 02:21:34 PM
Check you've edited forums so that topics and posts give points including you need to edit the theme to work with SMFShop :D
Title: Re: SMFShop - Shop MOD
Post by: -SyN- on August 05, 2006, 01:24:08 PM
I just wanted to give my props and thanks.

I actually seen this mod, well alot of mods and never really paid any of them any attention because at the time i couldnt understand how to manually install them on custom themes, until 3 days ago. This has to be one of the best mods every along with the arcade mod becuase it basically transfourms your forum into something totally different and interactive. I had some issues with my site using smf and almost gave up on it but since I solved that issue and it wasnt really smf releated, I am not changing it for nothing.

[Back on Topic]

To the creator if the Shop Mod. My hats off to you. I really love this mods and all of the features and elements it adds. Just wanted to express my thoughts and feelings to the creator and the entire smf community for making things possible!

Thanks.
Title: Re: SMFShop - Shop MOD
Post by: raaz on August 06, 2006, 03:54:00 PM
Daniel
I have utilize your new shop software 2.2 version on smf1.1rc2. It is all right with the default theme.
but when I change my theme the navigation button for shop in navigation bar is not coming.
I have put a shop.gif file in theme's english folder but it not work. what should i do with this problem.
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on August 06, 2006, 04:09:02 PM
You have to add the code to the index.template.php file of the theme you want to use in order to see the button.
Title: Re: SMFShop - Shop MOD
Post by: raaz on August 06, 2006, 04:46:30 PM
Can you please tell me which code I have to copy.

I am very new to smf hence tell me like that, I have read the online documantation so I understand some what but if you tell me specifically which code & from where to get ,it is a good one for me.
thanks
Title: Re: SMFShop - Shop MOD
Post by: TechnoDragon on August 06, 2006, 05:05:51 PM
The actual link code configuration varies from theme to theme...you'll have to look at the other links in your themes particular index.template.php to find out what format to put the shop link code...but that won't be the only issue...if the theme you are using is using any of the other files modified in the default them...you'll have to modify those too.
Title: Re: SMFShop - Shop MOD
Post by: City Builder on August 10, 2006, 08:45:00 PM
Okay, well I love the idea of this shopmod and have installed it.  Here is the issue that we are experiencing:

1.  Random money:  It removes more money that specified when creating the item. 
The possible inputs are this:

Minimum amount winnable: -190
Maximum amount winnable: 190
This would lead me to believe that the most a user can lose would be -190 credits and the most they could win would be 190 credits , but when I change it to :

Minimum amount winnable: -25
Maximum amount winnable: 100
then I bought the item and used it and it took away 38 credits from my wallet, which is obviously above the limit of -25 that I set for the item.  I tried this multiple times thinking it was just a fluke but it happend the 10 times that I tried it, each time the randommoney.php script took away more than the -25 credits that I had setup for the item.

I also wonder what happens if the random money script takes away more credits than the user has in his bank and wallet combined?  Will it leave them a negative balance that they have to repay before they can get a positive balance for the shop again?  Or will it just take away whatever credits they have and leave them back with 0 credits?

I really like this since we're a gaming forum so we use images of items from inside the game that people can buy.  So I may today create 45 "shack" items, which do nothing and are only an image of a shack from the game.  So now the user has a shack for his home on our forum.  Or he can save up and buy a palace at some point and gardens etc.

1 Request, I think a great addition would be that one of the items delivers to the user 1 item out of a preset list of items.  So if a user purchases the "mystery prize", and then they use it, they will get 1 of the items that we would list in the selling item,  once the mystery prize item was used by the buyer and the random item was chosen by the script then it would insert the randomly chosen item into the buyers inventory.

So full example:
I create mystery gift, 5 dollars, choices of random prizes of "airplane.gif,rock.gif,toaster.gif,house.gif"
User buys a mystery gift for 5 dollars
User uses the mystery gift
Mysterygift.php randomly chooses either airplane.gif, rock.gif, toaster.gif or house.gif and then the mysterprize script would then insert the random item that the user just won into their inventory.  Then this item would also be able to be traded in the trading center so others might buy it if the original buyer didnt want it.

Okay, thats my suggestion.  But perhaps someone can tell me how to fix the random money thing.  Am I using it wrong?  It seems worded wrong so it's already confused me. 

I'd also like to see a way for the user to delete items out of their inventory.  So when they dont want something anymore then can just delete it real quick instead of putting it in the trading center in hopes that someone else wants it.  It could be sitting there forever depending on what the item actually is.

Thanks, and I hope someone can tell me how to get the random money script part of this mod to funciton or tell me what Im doing wrong when setting it up.
Title: Re: SMFShop - Shop MOD
Post by: City Builder on August 10, 2006, 08:48:38 PM
I also forgot to ask:  Is it now safe to use the change username part of the script so that the member doesnt end up getting locked out of the forum, or was this never really a problem to begin with?

Im using the 2.2 verison of this as found on the authors website.
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on August 11, 2006, 02:43:46 AM
If I'm correct, if the user changes their username; they usually need to relogin as display names are only like a cover :P
Title: Re: SMFShop - Shop MOD
Post by: TheGamer on August 11, 2006, 03:04:17 AM
Technically, the best place to ask these questions would be at www.daniel15.com
Title: Re: SMFShop - Shop MOD
Post by: Sweet Thing on August 19, 2006, 10:00:55 AM
Hi, I hope this is the correct area for this post.

The shop and it's set up ws great, however, I have a question.

When someone purchases anitem in our virtual shop, how can we get that item to show under their avatar?

Now the way it is, we can make a purchase but only the one who made the purchase can see their items and ony if they are checking their inventory.

Thank you,
Sweet
Title: Re: SMFShop - Shop MOD
Post by: Nic- on August 19, 2006, 08:27:06 PM
when i run installScript.php , i got this :


Incorrect table name ''
File: /home/xxxxxxx/public_html/forums/installScript.php
Line: 41


installscript error  ?

fresh install 2.2 , SMF 1.1 RC2
Title: Re: SMFShop - Shop MOD
Post by: mogadishu on August 25, 2006, 11:48:43 AM
Any update for RC 3 ?
Title: Re: SMFShop - Shop MOD
Post by: Syndel on August 26, 2006, 11:18:15 AM
Hey :)
Cannot add items.. tried everything I saw posted about it....
I am getting the famous:

QuoteQuote:

Fatal error: Cannot instantiate non-existent class: item_addtopostcount in /www/cgi/boards/Sources/shop/ShopAdmin.php(174) : eval()'d code on line 1

I have tried everything that I could find suggested on boards before pestering you. I am running RC3 and the rest of the shop works normally. I am kinda PHP dumb so writing a script is like killing a dragon to me :/

If you could help me via MSN I would be super thankful as I need this soooo urgently in the works....

MSN: [email protected]

I would also love to get rid of the ,00 in the end of the values as we work with flat points... dunno where to change that either ???


UPDATE: I installed the RC3 compatible version and had no errors in the test whatsoever. Still, when trying to add items:

Cannot instantiate non-existent class: item_addtopostcount in /www/cgi/boards/Sources/shop/ShopAdmin.php(174) : eval()'d code on line 1
Title: Re: SMFShop - Shop MOD
Post by: KPR on September 10, 2006, 08:15:42 PM
Hi im looking to see how to get this to show points under members posts or avators. i am using the theme Element T.

I want to also reset members poits at times is this posible i dont see the option.

any help appreciated

kev
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on September 11, 2006, 11:48:29 AM
You need to modify the theme to include edits made on the default theme :P

(Do NOT copy display.template.php and index.template.php to the Element T directory or else mayhem)
Title: Re: SMFShop - Shop MOD
Post by: KPR on September 11, 2006, 11:56:19 AM
Ive no ideas what codes to i copy over m8 if possible can u post them

Cheers

Kev
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on September 11, 2006, 12:37:46 PM
Try looking for them in the XML in the package :P
Title: Re: SMFShop - Shop MOD
Post by: KPR on September 11, 2006, 03:24:51 PM
Well considering i know nothing in php etc i have no idea what i am looking for as i stated so your answer was of no use.
Title: Re: SMFShop - Shop MOD
Post by: chadk on September 14, 2006, 11:38:09 AM
Ideas/Wishes for things people could buy:

Show who steals or attempts to steal credits and from who.

Ability to attempt to rob the bank, stealing all or a % of the credits stored there.

Ability to purchase a forum or child forum (any or in a specific category for new forums and on in any category or on a specific forum to purchase child forum).  This means I could set 2 new items up, one to purchase a new forum anywhere on the board and another to purchase a new forum only in a specific category (say, User Forums) as two examples.

Ability for a non-admin to add a news topic.

Ability to rename a forum (any or a specific forum)

Ability to rename a category (any or a specific category)

Title: Re: SMFShop - Shop MOD
Post by: chadk on September 14, 2006, 12:22:52 PM
Also a history of who has used items.  This would allow us to see who used things like "Steal Credits" and give them a hard time about it ;)
Title: Re: SMFShop - Shop MOD
Post by: kadhumia_flo on September 14, 2006, 05:46:33 PM
Can a script be run when someone buys an item...??

and is everything very safe so far, as in the money cannot really be altered by normal members

thanks
Title: Re: SMFShop - Shop MOD
Post by: chadk on September 15, 2006, 10:15:28 AM
I had to go in and find all the references to the word "money" and change it to "credits" manually.  I don't want people on my site claiming I owe them money.
Title: Re: SMFShop - Shop MOD
Post by: Gobo on September 15, 2006, 01:31:57 PM
Quote from: KPR on September 11, 2006, 03:24:51 PM
Well considering i know nothing in php etc i have no idea what i am looking for as i stated so your answer was of no use.

in your Display.template.php file look for the line:


// This shows the popular messaging icons.


just ABOVE it add:



            //BEGIN Shop MOD 0.2 Code
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';

            //I couldn't find where all these $message['member'][whatever] variables
            //are set, so I just send an extra database query to get the member's
            //money. Can someone tell me where (file and line) the $message variables
            //are set?
            global $ID_MEMBER, $db_prefix;

            $result_money = db_query("SELECT money
                                      FROM {$db_prefix}members
                                      WHERE ID_MEMBER = {$message['member']['id']}
                                      LIMIT 1", __FILE__, __LINE__);
            $row_money = mysql_fetch_array($result_money, MYSQL_ASSOC);

            echo $modSettings['shopCurrencyPrefix'].$row_money['money'].$modSettings['shopCurrencySuffix']."<br><br>";
            //END SHOP MOD
           

//BEGIN SMFShop MOD 1.31 (Build 7) CODE
echo "<a href='$scripturl?action=shop;do=invother2;member={$message['member']['username']}'>View Inventory</a><br>";
//END SMFShop MOD 1.31 code



Please remmeber to make a back up of the file before trying :)
Title: Re: SMFShop - Shop MOD
Post by: chadk on September 15, 2006, 02:50:37 PM
Ability to change someone else's image would be nice.
Title: havin problems with da Shop mod
Post by: rahul_rkt on September 16, 2006, 07:29:41 AM
i installed da SMF shop mod

its workin fine...

tat is da Admin options r workin

but how 2 access da shop ???

-n- da inventory link is not workin also :(
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on September 16, 2006, 08:27:45 PM
Hi guys,
Sorry, I don't check back here often...

About the theme problems, please feel free to ask for a shop button in the SMFShop section of my forum (www.daniel15.com). I'll create a button for you, and give you the correct code. If you already have a button, post it and I'll give you the code for it.

Quote
1.  Random money:  It removes more money that specified when creating the item. 
That's a known problem. Please download the latest 'RandomMoney.php' file from http://server.daniel15.com/cgi-bin/viewvc.cgi/smfshop/trunk/shop/items/RandomMoney.php (http://server.daniel15.com/cgi-bin/viewvc.cgi/smfshop/trunk/shop/items/RandomMoney.php), and replace your current one (in Shop/items/) with this one

Quotebut how 2 access da shop
If you're using the default theme, then there should be a 'Shop' button. Otherwise, go to my forum at http://www.daniel15.com and request a shop button for your theme
Title: Re: SMFShop - Shop MOD
Post by: chadk on September 26, 2006, 01:59:11 PM
Not sure where these go but I've written the ROB THE BANK shop item.
Copy this code into a file called: RobTheBank.php and place it into your Sources\shop\items\ folder.
Tested with 1.1 RC3

<?php
/**********************************************\
| SMFSHOP (Shop MOD for Simple Machines Forum) |
|         (c) 2005 DanSoft Australia           |
|      http://www.dansoftaustralia.com/        |
\**********************************************/

//File: RobTheBank.php
//      % chance to steal from all members in the bank
// on success, awards robber between 20 and 80% of the sum of all bank accounts
// and reduces bank accounts accordingly and gives 10 negative karma.
// On failure, gives -100 karma and sets money and bank money to 0 for robber.

//VERSION: 1.0 (Build 1)
//DATE: Sep 26th, 2006
// $Id: RobTheBank.php chadk $

class item_RobTheBank extends itemTemplate {
    function 
getItemDetails() {
        
$this->name "Rob the bank!";
        
$this->desc "You can try to ROB THE BANK!  This gives you a CHANCE to steal a portion of the money from EVERYONES bank account!  Note: Karma is NOT BLIND!  Even if you rob the bank, there may be consequences!";
        
$this->price 1000;
        
        
$this->require_input false;
        
$this->can_use_item true;
    }

    
//see AddToPostCount.php for more infos
    
function getAddInput() {
        return 
"Probability of successful robbery: <input type='text' name='info1' value='10'>%";
    }

    function 
onUse() {
        global 
$db_prefix$ID_MEMBER$item_info;
        
        
//get a random number between 0 and 100
        
$try mt_rand(0100);

        
//if successfull
        
if ($try $item_info[1]) {

            
//get stealee's money count
            
$result db_query("SELECT sum(moneyBank) as vault
                                FROM 
{$db_prefix}members"__FILE____LINE__);
            
$row mysql_fetch_array($resultMYSQL_ASSOC);

            
//get random amount between 0 and amount of money stealee has
            
$steal_amount 1-(mt_rand(10,60)/100);

            
//take this money away from stealee...
            
$result db_query("UPDATE {$db_prefix}members
                                SET moneyBank = moneyBank * 
{$steal_amount}"__FILE____LINE__);
            
//...and give to stealer (robber)

$steal_amount = ($steal_amount-1) * -$row['vault'];

            
$result db_query("UPDATE {$db_prefix}members
                                SET money = money + 
{$steal_amount}, karmaBad = karmaBad + 10
                                WHERE ID_MEMBER = 
{$ID_MEMBER}
                                LIMIT 1"
__FILE____LINE__);

                return 
"You ROBBED THE BANK for $steal_amount!  Thief! Your Karma is STILL reduced by 10! (Karma isn't blind!)";
        } else {
            
//if reducing Karma doesn't work, replace
            //'karmaBad = karmaBad + 10' with 'karmaGood = karmaGood - 10'
$result db_query("UPDATE {$db_prefix}members
SET karmaBad = karmaBad + 100, 
money = 0, moneyBank = 0
WHERE ID_MEMBER = 
{$ID_MEMBER}",
__FILE____LINE__);
return "Steal <b>unsuccessful!</b> You Karma is now reduced by 10!";
        }
    }
}

?>


Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on September 27, 2006, 04:59:34 AM
chadk, please post your item to my forum at http://www.daniel15.com/ ;)
Title: Re: SMFShop - Shop MOD
Post by: Gobo on September 27, 2006, 11:38:30 AM
great job chadk

about time we got more items :D
Title: Re: SMFShop - Shop MOD
Post by: jeremyyeo on September 27, 2006, 12:07:37 PM
Can you guys include:

more points give to popular topic starters

custom items in the shop, eg. 100 points gets you $1 real life dollar.

tie it in with attachments or the gallery where you get points per image.  ::)

thanks guys, nice mod.
Title: Re: SMFShop - Shop MOD
Post by: chadk on September 27, 2006, 01:44:47 PM
Already did Daniel.
Title: Re: SMFShop - Shop MOD
Post by: chadk on September 27, 2006, 08:34:54 PM
My users have some more shop item ideas as well that I'm going to try to work on but they'll require sql table changes so I'll have to read up on how to write an actual package.  They want:
Items to purchase:
Protection from Theft
Reverse Theft (if the thief fails, they get to steal from the thief!)
Armageddon Insurance (if someone does Armageddon all or some of the users credits are returned)
Karmageddon Insurance (restores positive and/or negative karma in the event of Karmageddon)
Protect Custom Title
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on September 27, 2006, 10:27:22 PM
Thanks for all your item writing, chadk :)

QuoteMy users have some more shop item ideas as well that I'm going to try to work on but they'll require sql table changes so I'll have to read up on how to write an actual package.
Well, if you post the item on my forum, you can list all the SQL queries on the topic. That said, if you want to make an SMF package, then see the Package SDK (http://www.simplemachines.org/community/index.php?topic=20319.0). You can also look through the SMFShop package to get an idea of how a package is put together ;)
Title: Re: SMFShop - Shop MOD
Post by: jeremyyeo on September 29, 2006, 12:24:33 PM
hey, i wanted to ask, if theres this corner where post counting is disabled, will the points still be added onto my members if they post there? Thanks.

Is there a way to select which boards allow points accumulation?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on September 29, 2006, 12:34:56 PM
Quotewill the points still be added onto my members if they post there
Yes, by default. But see below:

QuoteIs there a way to select which boards allow points accumulation
Yes, you can do that. On the 'Modify Board' page, there should be a 'Count Shop Points' option. Just select or unselect that, depending on your preference :)
Title: Re: SMFShop - Shop MOD
Post by: jeremyyeo on September 29, 2006, 12:42:30 PM
aha...doh...silly me for not looking first. thanks dan, great mod.  ;)
Title: Re: SMFShop - Shop MOD
Post by: ProtoMan.EXE on October 01, 2006, 03:10:37 AM
I need help with this awesome mod :

How can I make the bank work ? My member spent more than 200 credits in there but received no more credits sent by the bank (I mean received no interest) , please help me  :'(
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on October 01, 2006, 03:29:28 AM
Basically, to get the bank interest working, you need to add a cron job. If you use cPanel, please see http://www.daniel15.com/forum/index.php?topic=193.0 :)

Edited by Daniel15: spelling
Title: Re: SMFShop - Shop MOD
Post by: ProtoMan.EXE on October 01, 2006, 03:56:37 AM
Quote from: daniel15 on October 01, 2006, 03:29:28 AM
Basically, to gett the bank interest working, you need to add a cron job. If you use cPanel, please see http://www.daniel15.com/forum/index.php?topic=193.0 :)
Thank you very much  :)
Title: Re: SMFShop - Shop MOD
Post by: ProtoMan.EXE on October 03, 2006, 06:23:00 AM
But what if I am using Xpanel at Award Space ? Is there any other ways to do that like editting some files ? Please help me.
Title: Re: SMFShop - Shop MOD
Post by: TechnoDragon on October 03, 2006, 09:18:38 AM
there are a number of free sites on the internet that will run cron jobs for you...

http://cronjobs.org/ is one
Title: Re: SMFShop - Shop MOD
Post by: ProtoMan.EXE on October 03, 2006, 10:12:53 AM
Thank you very much , I will get that Cron Job but is it FREE ?  ???
Title: Re: SMFShop - Shop MOD
Post by: TechnoDragon on October 03, 2006, 11:05:36 AM
for the purpose of the cron job needed for the shop...yes...they do charge small amounts for anything more than just a basic cron job, but I had been using them for months before I finally got a host that provided to me.

actually i was running two different cron jobs through  that site...and they were both free
Title: Re: SMFShop - Shop MOD
Post by: ProtoMan.EXE on October 03, 2006, 11:40:22 AM
Thank you very much , I hope www.cronjobs.org can help me with that bank and it is free. Thanks again  :)
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on October 06, 2006, 08:35:58 AM
QuoteBut what if I am using Xpanel at Award Space ? Is there any other ways to do that like editting some files ? Please help me.
Indeed, you need to call the script some other way. A cronjob site like www.cronjobs.org would be able to do the job for you. However, please read the post at http://www.daniel15.com/forum/index.php/topic,31.0.html as it contains some instructions you'll need to follow (including a slightly modified script).
Title: Re: SMFShop - Shop MOD
Post by: Sady on October 07, 2006, 10:29:14 PM
I just installed version 2.2 on our rc3 forum and got the following errors after installation appeared to work fine:

when I click on the shop button :

Unknown column 'money' in 'field list'
File: E:\hosted sites\pogoparadise\Sources\shop\Shop.php
Line: 66

this error message also appears everytime you click to read a post so you can't read anything on the forum. 

Unknown column 'money' in 'field list'
File: E:\hosted sites\pogoparadise\Sources\Load.php(1702) : eval()'d code
Line: 378


can someone please help?
Title: Re: SMFShop - Shop MOD
Post by: Valodim on October 07, 2006, 10:31:09 PM
why does the bank interest need cronjobs, anyways? there's ways to do that with php... geez.
Title: Re: SMFShop - Shop MOD
Post by: Sady on October 07, 2006, 10:47:00 PM
concerning my error in the post above, I can't even uninstall the shop cause I get this error:

Unknown table 'pogoparadise_shop_items'
File: E:\hosted sites\pogoparadise\Packages\temp\uninstallScript.php
Line: 13
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on October 07, 2006, 11:09:52 PM
Quoteconcerning my error in the post above, I can't even uninstall the shop cause I get this error:

Unknown table 'pogoparadise_shop_items'
File: E:\hosted sites\pogoparadise\Packages\temp\uninstallScript.php
Line: 13
The unisntallation should still work fine... Did you try reinstalling it?

Quotewhen I click on the shop button :

Unknown column 'money' in 'field list'
File: E:\hosted sites\pogoparadise\Sources\shop\Shop.php
Line: 66

this error message also appears everytime you click to read a post so you can't read anything on the forum. 

Unknown column 'money' in 'field list'
File: E:\hosted sites\pogoparadise\Sources\Load.php(1702) : eval()'d code
Line: 378
Try extracting the installScript.php file from the SMFShop archive, upload it to your SMF directory, and run it (go to yoursite/forum/installScript.php).

Quotewhy does the bank interest need cronjobs, anyways? there's ways to do that with php... geez.
The interest script is in PHP, but it requires a cron job to execute it. Cron jobs (http://en.wikipedia.org/wiki/Cronjob) run specified commands at specified times, which is why it uses one. As far as I know, there isn't really a better way to do this (well, you could use 'fake' cron jobs, but that doesn't work too well. If you don't have cron job access, I suggest a service like cronjobs.org)
Title: Re: SMFShop - Shop MOD
Post by: Sady on October 07, 2006, 11:22:28 PM
I tried what you suggested and it said "the database is already installed, version 2.2!"

As far as uninstalling it, I can't.  When I click uninstall and get the error:

Unknown table 'pogoparadise_shop_items'
File: E:\hosted sites\pogoparadise\Packages\temp\uninstallScript.php
Line: 13

the only option I have is to go back.  I can't do anything.  I'm just at a loss as to what to do now.  If it weren't for the fact that we can't view posts, I wouldn't care about it not working, but it's rendered the forum virtually useless at the moment.
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on October 08, 2006, 04:50:13 AM
Just re-upload all the original forum files and it should begin working again
Title: Re: SMFShop - Shop MOD
Post by: Sady on October 08, 2006, 09:15:37 AM
thanks all.... problem has been fixed.  for whatever reason, the database for the shop didn't install so we had to add those manually and it seems to be working now. 
Title: Re: SMFShop - Shop MOD
Post by: Crim on October 09, 2006, 03:36:08 PM
QuoteIncorrect table name ''
File: /home/zeldaevo/public_html/forums/Packages/temp/installScript.php
Line: 41
On a fresh install of SMF 1.1 RC3. Anyone know what to do?
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on October 09, 2006, 04:02:36 PM
Can you give us line 41 of installScript.php?
Title: Re: SMFShop - Shop MOD
Post by: Crim on October 09, 2006, 07:01:12 PM
<?php
// SMFShop uninstall script, version New Version
// $Date: 2006-07-29 19:57:03 +1000 (Sat, 29 Jul 2006) $
// $Id: installScript.php 11 2006-07-29 09:57:03Z daniel15 $


if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');
// Hmm... no SSI.php and no SMF?
elseif (!defined('SMF'))
die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');

//check if the mods have already been done
$result db_query("SELECT *
FROM 
{$db_prefix}settings
WHERE variable='shopVersion'
LIMIT 1"
__FILE____LINE__);

//if the shop version variable doesn't exist (ie. the database mods are needed)
if (mysql_num_rows($result) != 0) {
$row mysql_fetch_array($resultMYSQL_ASSOC);
echo "The database is already installed, version ".$row['value']."!<br /><br />";
} else {

//create shop items table
db_query("CREATE TABLE `{$db_prefix}shop_items` (
   `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
   `name` VARCHAR(50) NOT NULL,
   `desc` TEXT NOT NULL,
   `price` DECIMAL(8,2) UNSIGNED NOT NULL,
   `module` TINYTEXT NOT NULL,
   `stock` SMALLINT NOT NULL,
   `info1` TEXT NOT NULL,
   `info2` TEXT NOT NULL,
   `info3` TEXT NOT NULL,
   `info4` TEXT NOT NULL,
   `input_needed` TINYINT UNSIGNED DEFAULT '1' NOT NULL,
   `can_use_item` TINYINT UNSIGNED DEFAULT '1' NOT NULL,
   `image` TINYTEXT NOT NULL,
   PRIMARY KEY (`id`) 
   )"
__FILE____LINE__);

//create shop inventory table
db_query("CREATE TABLE `{$db_prefix}shop_inventory` (
  `id` INT UNSIGNED NOT NULL AUTO_INCREMENT ,
  `ownerid` INT UNSIGNED NOT NULL ,
  `itemid` INT UNSIGNED NOT NULL ,
  `amtpaid` DECIMAL(8, 2) UNSIGNED DEFAULT '0.00' NOT NULL,
              `trading` TINYINT(1) UNSIGNED NOT NULL,
  `tradecost` DECIMAL(8, 2) NOT NULL,
  PRIMARY KEY (`id`)
  )"
__FILE____LINE__);

//add money columns to members table
db_query("ALTER TABLE `{$db_prefix}members` ADD `money` DECIMAL(9, 2) UNSIGNED DEFAULT '0.00' NOT NULL"__FILE____LINE__);
db_query("ALTER TABLE `{$db_prefix}members` ADD `moneyBank` DECIMAL(9, 2) UNSIGNED DEFAULT '0.00' NOT NULL"__FILE____LINE__);

//add settings (used in $modSettings array)
db_query("INSERT INTO `{$db_prefix}settings` (`variable`,`value`) VALUES ('shopVersion', '2.2')"__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}settings` (`variable`,`value`) VALUES ('shopDate', '29th July 2006')"__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}settings` (`variable`,`value`) VALUES ('shopBuild', '10')"__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}settings` (`variable`,`value`) VALUES ('shopCurrencyPrefix', '')"__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}settings` (`variable`,`value`) VALUES ('shopCurrencySuffix', ' credits')"__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}settings` (`variable`,`value`) VALUES ('shopPointsPerTopic', '10')"__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}settings` (`variable`,`value`) VALUES ('shopPointsPerPost', '8')"__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}settings` (`variable`,`value`) VALUES ('shopInterest', '2')"__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}settings` (`variable`,`value`) VALUES ('shopBankEnabled', '1')"__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}settings` (`variable`,`value`) VALUES ('shopImageWidth', '32'), ('shopImageHeight', '32')"__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}settings` ( `variable` , `value` ) VALUES ('shopTradeEnabled', '1')"__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}settings` VALUES ('shopItemsPerPage', '10')"__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}settings` VALUES ('shopMinDeposit', '0')"__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}settings` VALUES ('shopMinWithdraw', '0')"__FILE____LINE__);

//give admin money :-)
db_query("UPDATE `{$db_prefix}members` SET `money` = '10000' WHERE `ID_MEMBER` = '1' LIMIT 1"__FILE____LINE__);

//SMFShop 1.0 items
db_query("INSERT INTO `{$db_prefix}shop_items` ( `id` , `name` , `desc` , `price` , `module` , `stock` ) VALUES (
'', 'Test Item', 'Just a test item!', '10.00', 'testitem', '50')"
__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}shop_items` ( `id` , `name` , `desc` , `price` , `module` , `stock` ) VALUES (
'', 'Random Money', 'Get a random amount of money, between -190 and 190!', '75', 'RandomMoney', '50')"
__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}shop_items` ( `id` , `name` , `desc` , `price` , `module` , `stock` ) VALUES (
'', 'Add 100 to Post Count', 'Increase your Post Count by 100!', '50', 'AddToPostCount', '50')"
__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}shop_items` ( `id` , `name` , `desc` , `price` , `module` , `stock` ) VALUES (
'', 'Increase Karma', 'Increase your Karma by 5', '100', 'IncreaseKarma', '50')"
__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}shop_items` ( `id` , `name` , `desc` , `price` , `module` , `stock` ) VALUES (
'', 'Change Username', 'Change your Username!', '50', 'ChangeUsername', '50')"
__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}shop_items` ( `id` , `name` , `desc` , `price` , `module` , `stock` ) VALUES (
'', 'Change User Title', 'Change your User Title', '50', 'ChangeUserTitle', '50')"
__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}shop_items` ( `id` , `name` , `desc` , `price` , `module` , `stock` ) VALUES (
'', 'Increase Total Time', 'Increase your total time logged in by 12 hours.', '50', 'IncreaseTimeLoggedIn', '50')"
__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}shop_items` ( `id` , `name` , `desc` , `price` , `module` , `stock` ) VALUES (
'', 'Change Other\\'s Title',  'Change someone else\\'s title', '200', 'ChangeOtherTitle', '50')"
__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}shop_items` ( `id` , `name` , `desc` , `price` , `module` , `stock` ) VALUES (
'', 'Decrease Posts by 100', 'Decrease <i>Someone else\\'s</i> post count by 100!!', '200', 'DecreasePost', '50')"
__FILE____LINE__);

//updating pre-1.1 items to 1.1 items
db_query("UPDATE {$db_prefix}shop_items SET info1 = '100', input_needed = 0 WHERE module = 'AddToPostCount'"__FILE____LINE__);
db_query("UPDATE {$db_prefix}shop_items SET info1 = '5', input_needed = 0 WHERE module = 'IncreaseKarma'"__FILE____LINE__);
db_query("UPDATE {$db_prefix}shop_items SET info1 = '43200', input_needed = 0 WHERE module = 'IncreaseTimeLoggedIn'"__FILE____LINE__);
db_query("UPDATE {$db_prefix}shop_items SET info1 = '-190', info2 = '190', input_needed = 0 WHERE module = 'RandomMoney'"__FILE____LINE__);
db_query("UPDATE {$db_prefix}shop_items SET info1 = '40', input_needed = 1 WHERE module = 'Steal'"__FILE____LINE__);

//SMFShop 1.1 items
db_query("INSERT INTO `{$db_prefix}shop_items` VALUES ('', 'Steal Credits', 'Try to steal credits from another member!', 50, 'Steal', 50, '40', '', '', '', 1, 1, 'blank.gif')"__FILE____LINE__);
db_query("INSERT INTO `{$db_prefix}shop_items` VALUES ('', 'Rock', 'Well.... It does nothing', 5, 'Rock', 50, '', '', '', '', 0, 0, 'blank.gif')"__FILE____LINE__);

//SMFShop 1.2 items
db_query("INSERT INTO `{$db_prefix}shop_items` (`name`, `desc`, `price`, `module`, `stock`, `input_needed`, `can_use_item`) VALUES (
'Change Display Name', 'Change your display name!', 50.00, 'ChangeDisplayName', 49, 1, 1)"
__FILE____LINE__);

//SMFShop 2.1 items
db_query("INSERT INTO `{$db_prefix}shop_items` (`name`, `desc`, `price`, `module`, `stock`, `input_needed`, `can_use_item`) VALUES ('Sticky Topic', 'Make any one of your topics a sticky!', 400.00, 'StickyTopic', 50, 1, 1)"__FILE____LINE__);

//default all items to use 'blank.gif'
db_query("UPDATE {$db_prefix}shop_items SET image = 'blank.gif'"__FILE____LINE__);

//New field in boards table. This specifies whether credits is increased in this board or not.
db_query("ALTER TABLE `{$db_prefix}boards` ADD `countMoney` TINYINT(1) UNSIGNED DEFAULT '1' NOT NULL"__FILE____LINE__);

echo "<b><center>Installation of SMFShop 2.2 completed successfully!</center></b>";

?>


           )", __FILE__, __LINE__);
Title: Re: SMFShop - Shop MOD
Post by: mrjuntao on October 10, 2006, 01:55:20 PM
Hey all, just installed it, everything seems to be fine apart from the add items, when i try to add one i get this error:

Fatal error: Cannot instantiate non-existent class: item_testitem in /mounted-storage/home17a/sub002/sc19050-AXXT/ps360.org/ps360/forum/Sources/shop/ShopAdmin.php(174) : eval()'d code on line 1

EDIT: DOSENT MATTER NOW UNISTALLED IT, although that didnt even go correctly  >:(
Title: SMFShop Mod Installation Problem
Post by: udeze on October 11, 2006, 10:56:41 AM
SMF Version: SMF 1.1 RC3
Hi,

I have just tried to install my first MOD, "SMFShop 2.2" to my forum, while trying to upload the zip file from my PC, I got this message:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
:

When I checked my error log I got this information:

2: file(/home/fnigeria/public_html/Packages/installed.list): failed to open stream: No such file or directory
File: /home/fnigeria/public_html/Sources/Subs-Package.php
Line: 508


my forum directory is public_html b/c as it is purely a forumsite, I have changed it to 777, 755 and back to 750 but it doesn't work, the file subs-package.php is also available with CHMOD 644, what would be the cause of this, my last attempt was to upload all the files to the "packages" directory, run installScript.php, and I got this error

Database Error: Incorrect table name ''
File: /home/fnigeria/public_html/installScript.php
Line: 41


I am completely new to SMF, I just installed for the first time yesterday and I must confess that so far it is better than my former phpbb, I need help as I will really like to use this mod
Title: Re: SMFShop - Shop MOD
Post by: sgt_goomba on October 12, 2006, 03:19:56 AM
I also get that error. I'm using SMF 1.1 RC2. I'm trying to install shopmod 2.2, the latest version that I know of. When I use the package manage to install, the test shows all files as successful, but when I excute the install, I immediately get this message:
Incorrect table name ''
File: /home/koop394/public_html/kboard/installScript.php
Line: 41


When I try to use my forum, when I try to post a message, I get an error message like:
Database Error
Unknown column 'money' in 'field list'

Or something like that, I didn't play around much because I set to work on trying to fix things.

First I verified that all files were change successfully, so my best guess is that it's just a problem with the installScript.php.
When I tried to launch the installScript.php, I got a 500 internal server error, or the Incorrect table name '' error, depending on where I tried to execute it. When I get the 500, my error log records something about an unexpected end of script.

I finally went to uninstall. That took awhile, because the package manager changed the files, but didn't allow me an uninstall option. The error during the install probably messed things up, so I had to manually upload the backup files I made before the install.


edit: I just thought of another factor that might have caused this error for me, and for others. My smf is ebedded within joomla content manager. I'm looking into that.
Title: Re: SMFShop - Shop MOD
Post by: Valodim on October 12, 2006, 06:17:31 AM
Quote from: sgt_goomba on October 12, 2006, 03:19:56 AM
When I tried to launch the installScript.php, I got a 500 internal server error, or the Incorrect table name '' error, depending on where I tried to execute it. When I get the 500, my error log records something about an unexpected end of script.

...about the 500 error, how about you read the readme, which says "READ THIS BEFORE INSTALLING" right at the top?
Title: Re: SMFShop - Shop MOD
Post by: sgt_goomba on October 12, 2006, 12:33:54 PM
Quote from: Valodim on October 12, 2006, 06:17:31 AM
Quote from: sgt_goomba on October 12, 2006, 03:19:56 AM
When I tried to launch the installScript.php, I got a 500 internal server error, or the Incorrect table name '' error, depending on where I tried to execute it. When I get the 500, my error log records something about an unexpected end of script.

...about the 500 error, how about you read the readme, which says "READ THIS BEFORE INSTALLING" right at the top?

Oh...do you mean the one that I always read at least 10 times over and over again before I ask a question? Yeah, I tried that. Like I said in my original post, I was trying to execute installScript.php all over the place. This was just for the hell of it to see if it would work. I'll add that it was only when I executed it outside of the forums root directory that I got the 500 error. And in all of those locations, it was chomed to 755. So it's an irrelevent mystery, since I'm supposed to execute it in the forum's root directory, in which case I get the incorrect table name error.

But thanks for the sarcasm!
Title: Re: SMFShop - Shop MOD
Post by: Valodim on October 13, 2006, 01:34:29 AM
sorry for that. you wouldn't have been the first to not read the readme but ask questions which seem to be answered there, no offense :)
Title: Re: SMFShop - Shop MOD
Post by: udeze on October 14, 2006, 07:02:37 PM
Hi,

I have instlled SMFShop 2.2 on SMF 1.1RC3, if I click on the link "buy stuff", it gives me this message:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.



When I checked my error log, I saw:
http://forumnigeria.com/index.php?action=shop;do=trade
Unable to load the 'InstantMessage.english' language file.

What would be the cause of this problem  ???

Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on October 14, 2006, 09:37:21 PM
Quote
...
More information about this error may be available in the server error log.
...
That means your server's error log, not the forum's one. Check your server's error log (if you have cPanel access, there's an option for it in cPanel)
Title: Re: SMFShop - Shop MOD
Post by: udeze on October 15, 2006, 01:00:06 PM
I got this info from my server error log (Cpanel):

Sun Oct 15 11:54:30 2006] [error] [client 195.245.108.151] File does not exist: /home/fnigeria/public_html/500.shtml

I could'nt see any 'InstantMessage.english' language file. any where at all, Ii need help, I really love this MOD


Title: Re: SMFShop - Shop MOD
Post by: Phydeaux on October 15, 2006, 05:08:55 PM
http://www.daniel15.com/forum/index.php?topic=317.msg1574#msg1574 (http://www.daniel15.com/forum/index.php?topic=317.msg1574#msg1574)

You'll find your answers and support there, partner...
Title: Re: SMFShop - Shop MOD
Post by: jasonlove on October 16, 2006, 02:39:58 AM
When I try to send money to a user, it says:

ERROR: The member you typed ('username') doesn't exist!

Please advise.
Title: Re: SMFShop - Shop MOD
Post by: Phydeaux on October 16, 2006, 05:06:38 AM
Unlike "search" which is not, the field where you enter the user's name for the actual transfer is case sensitive. phydeaux != Phydeaux  Phydeaux == Phydeaux  ;D Give that a try.
Title: Re: SMFShop - Shop MOD
Post by: udeze on October 16, 2006, 07:04:17 AM
I have tried the Fix for 'Unable to load InstantMessage.template' error, still did'nt fix it, I tried to register with daniel15.com forum for support and I am getting this error:

An ERROR has occured with the CAPTCHA garbage collection!
Please notify the webmaster.

This is the code for my shop.php as it is now

<?php
/**********************************************\
| SMFSHOP (Shop MOD for Simple Machines Forum) |
|         (c) 2006 DanSoft Australia           |
|      http://www.dansoftaustralia.net/        |
\**********************************************/

//File: Shop.php
//      The main shop file

// VERSION: 2.2 (Build 10)
// $Date: 2006-07-29 20:17:45 +1000 (Sat, 29 Jul 2006) $
// $Id: Shop.php 13 2006-07-29 10:17:45Z daniel15 $

if (!defined('SMF'))
die('Hacking attempt...');

function 
Shop(){
//global $db_prefix, $context, $scripturl, $user_info, $txt, $modSettings, $ID_MEMBER, $themeUser;

    
global $context$modSettings$scripturl$db_prefix$ID_MEMBER$txt$item_info$boardurl$sourcedir;

//Required for sending IM's
include_once($sourcedir '/Subs-Post.php');
 if (loadLanguage('PersonalMessage'''false) === false)
            
loadLanguage('InstantMessage'''false);
    
    
//during testing, caching was causing many problems. So, we try to disable the caching
    //here.
    
header("Expires: Fri, 1 Jun 1990 00:00:00 GMT"); //my birthday ;)
    
header("Last-Modified: " gmdate("D, d M Y H:i:s") . " GMT");
    
header("Pragma: no-cache");

    
loadLanguage('Shop');
    
//check if guest is trying to access
    
is_not_guest($txt['shop_guest_message']);
    
//loadTemplate('Shop');

    
$context['page_title'] = $txt['shop'];
    
$context['linktree'][] = array(
        
'url' => "$scripturl?action=shop",
        
'name' => $txt['shop'],
);

    
//This needs to be here to fix the problem of the 'Bank' link disappearing when on any
    //page other than the index
    
if ($modSettings['shopBankEnabled']) {
        
$context['shop_bank_link'] = "<a href='$scripturl?action=shop;do=bank'>{$txt['shop_bank']}</a><br />";
    } else {
        
$context['shop_bank_link'] = "";
    }

//If trade centre disabled, don't show it.
$context['shop_trade_link'] = ($modSettings['shopTradeEnabled']) ? "<a href='$scripturl?action=shop;do=trade'>{$txt['shop_trade']}</a><br />" "";

    if (empty(
$_GET['do']) || $_GET['do'] == "home") {
        
$context['linktree'][] = array(
            
'url' => "$scripturl?action=shop",
            
'name' => "{$txt['shop']} Home",
        ); 

        
//10 richest people (pocket)
        
$context['shop_richest'] = "";
        
$result db_query("SELECT realName, money
                            FROM 
{$db_prefix}members
                            ORDER BY money DESC, realName
                            LIMIT 10"
__FILE____LINE__);
        
        while (
$row mysql_fetch_array($resultMYSQL_ASSOC)) {
            
$context['shop_richest'] .= "<b>{$row['realName']}</b> - ".formatMoney($row['money'])."<br />\r\n";
        }

        
//10 richest people (pocket)
        
$context['shop_richestBank'] = "";
        
$result db_query("SELECT realName, moneyBank
                            FROM 
{$db_prefix}members
                            ORDER BY moneyBank DESC, realName
                            LIMIT 10"
__FILE____LINE__);
        
        while (
$row mysql_fetch_array($resultMYSQL_ASSOC)) {
            
$context['shop_richestBank'] .= "<b>{$row['realName']}</b> - ".formatMoney($row['moneyBank'])."<br />\r\n";
        }

        
$context['shop_newtopic'] = formatMoney($modSettings['shopPointsPerTopic']);
        
$context['shop_newpost'] = formatMoney($modSettings['shopPointsPerPost']);

        
//member's money
        
$result db_query("SELECT money, moneyBank
                            FROM 
{$db_prefix}members
                            WHERE ID_MEMBER = 
$ID_MEMBER
                            LIMIT 1"
__FILE____LINE__);
        
        
$row mysql_fetch_array($resultMYSQL_ASSOC);

        
$context['shop_money'] = formatMoney($row['money']);
        
$context['shop_money_bank'] = formatMoney($row['moneyBank']);
        
if ($modSettings['shopBankEnabled']) {
$context['shop_bank_info'] = "<br /><b>{$txt['shop_bankinterest']}: </b>{$modSettings['shopInterest']}% per day<br />";
$context['shop_money_in_bank'] = "<b>{$txt['shop_money_in_bank']}: </b>{$context['shop_money_bank']}";

} else {
$context['shop_bank_info'] = "";
$context['shop_money_in_bank'] = "";
}

$context['sub_template'] = "main";
loadTemplate('Shop');

// All of this code is in external files, to keep this Shop.php file relatively small :)
} elseif (substr($_GET['do'], 03) == "buy") {
require "Shop-Buy.php";
} elseif (substr($_GET['do'], 03) == "inv" || substr($_GET['do'], 08) == "invother") {
require "Shop-Inventory.php";
} elseif (substr($_GET['do'], 04) == "send") {
require "Shop-Send.php";
} elseif (substr($_GET['do'], 04) == "bank" || $_GET['do'] == "deposit" || $_GET['do'] == "withdraw") {
require "Shop-Bank.php";
} elseif (substr($_GET['do'], 05) == "trade") {
require "Shop-Trade.php";

    } elseif(
$_GET['do'] == "viewall") {

        
$context['linktree'][] = array(
            
'url' => "$scripturl?action=shop;do=viewall",
            
'name' => $txt['shop_view_all'],
        );

        
$context['shop_buy_message'] = "";
        
$result db_query("SELECT memberName, money
                            FROM 
{$db_prefix}members
                            WHERE money <> 0
                            ORDER BY money DESC
                            "
__FILE____LINE__);

        while (
$row mysql_fetch_array($resultMYSQL_ASSOC)) {
            
$context['shop_buy_message'] .= "<b>{$row['memberName']}</b> - ".formatMoney($row['money'])."<br />\r\n";
        }

$context['sub_template'] = "message";
loadTemplate('Shop');

    } elseif(
$_GET['do'] == "viewallBank") {

        
$context['linktree'][] = array(
            
'url' => "$scripturl?action=shop;do=viewallBank",
            
'name' => $txt['shop_view_all2'],
        );

        
$context['shop_buy_message'] = "";
        
$result db_query("SELECT memberName, moneyBank
                            FROM 
{$db_prefix}members
                            WHERE moneyBank <> 0
                            ORDER BY moneyBank DESC
                            "
__FILE____LINE__);

        while (
$row mysql_fetch_array($resultMYSQL_ASSOC)) {
            
$context['shop_buy_message'] .= "<b>{$row['memberName']}</b> - ".formatMoney($row['moneyBank'])."<br />\r\n";
        }

$context['sub_template'] = "message";
loadTemplate('Shop');


    } elseif(
$_GET['do'] == "owners") {

        
$context['linktree'][] = array(
            
'url' => "$scripturl?action=shop;do=owners;id={$_GET['id']}",
            
'name' => $txt['shop_owners'],
        );

// Get item name
$result db_query("SELECT name
 FROM 
{$db_prefix}shop_items
 WHERE id = 
{$_GET['id']}
 LIMIT 1"
__FILE____LINE__);
 
$row mysql_fetch_assoc($result);
 
// Now, get the actual usernames
$result db_query("SELECT DISTINCT  m.realName
 FROM 
{$db_prefix}shop_inventory AS inv, {$db_prefix}shop_items AS it, {$db_prefix}members AS m
 WHERE inv.itemid = 
{$_GET['id']} AND m.ID_MEMBER = inv.ownerid"__FILE____LINE__);
 

$context['shop_buy_message'] = "<b>".sprintf($txt['shop_users_own_item'], (int) mysql_num_rows($result), $row['name'])."</b><ul>";
 
while ($row mysql_fetch_assoc($result)) {
$context['shop_buy_message'] .= "<li>".$row['realName']."</li>";
}

$context['shop_buy_message'] .= "</ul>";
$context['sub_template'] = "message";
loadTemplate('Shop');


    } else {
        die(
"What do I do with {$_GET['do']}? HUH????");
    }
}

function 
formatMoney($money) {
    global 
$modSettings;

    
$money = (int) $money;
    return 
$modSettings['shopCurrencyPrefix'].$money.$modSettings['shopCurrencySuffix'];
}
?>



Title: Re: SMFShop - Shop MOD
Post by: ProtoMan.EXE on October 16, 2006, 08:52:21 AM
Quote from: TechnoDragon on October 03, 2006, 09:18:38 AM
there are a number of free sites on the internet that will run cron jobs for you...

http://cronjobs.org/ is one
Can you guys tell me how to make the bank working using www.cronjobs.org ? It is too much different from the guide daniel gave us. Please tell me , I wm in big trouble with it. Thank you.  :'(
Title: Re: SMFShop - Shop MOD
Post by: Phydeaux on October 16, 2006, 03:51:41 PM
RC3 doesn't include the "InstantMessage.english.php" file. I can't swear to it, but I ass|u|me it's because much of it was dupes. I also can swear that Daniel's code will work without "InstantMessage" but his fix to load "PersonalMessage" leads me to believe that it will since the $txt['xxxx'] stuff from IM is in PM. (sorry tired of typing that out so I waste more strokes  writing this @_@) Since You're using RC3 apparently, and we know IM isn't there, and ass|u|ming PM will work in its place. Simply comment out or remove ... blah... change it to what I have here and see if it works...



        //Required for sending IM's
include_once($sourcedir . '/Subs-Post.php');
loadLanguage('PersonalMessage');



================
Sorry ProtoMan.EXE, but I don't use the cron stuff, but an entirely different method. Maybe before long I'll have the time to make it a mod for the mod. Daniel is familiar with that site I believe. Maybe he will be on and see this, or someone else with firsthand knowledge.
Title: Re: SMFShop - Shop MOD
Post by: udeze on October 17, 2006, 05:27:51 AM
I have just tried replacing it with the new one you have given me, and it still does'nt work, The error I receive from my cpanel error log is:

[Tue Oct 17 04:16:04 2006] [error] [client 195.245.108.151] File does not exist: /home/fnigeria/public_html/500.shtml

there is no error from my forum error log
Title: Re: SMFShop - Shop MOD
Post by: Valiantheart on October 17, 2006, 06:23:52 AM
Hi,

I tried making changes to the shop.template to fit my site layout.

However, the left content bar doesn't seem to show up.

Here's the header:

function shop_header() {
global $txt, $context, $modSettings, $scripturl, $settings;
    echo "
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td cellpadding='0' cellspacing='0' width='30' height='30'><img src='", $settings['images_url'], "/top_left.png' alt='' /></td>
<td cellpadding='0' cellspacing='0' height='30' background='", $settings['images_url'], "/top_content.png'></td>
<td cellpadding='0' cellspacing='0' width='30' height='30'><img src='", $settings['images_url'], "/top_right.png' alt='' /></td>
</tr>
<tr>
[b]<td cellpadding='0' cellspacing='0' width='30' background='", $settings['images_url'], "/left_content.png' alt='' /></td>[/b]
<td>
<table width='100%' cellpadding='3' cellspacing='0'><tr><td valign='bottom'>". theme_linktree()."</td></tr></table>";

echo <<<EOT
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="padding-top: 1ex;"><tr>
<td width="180" valign="top" style="width: 26ex; padding-right: 10px; padding-bottom: 10px;">
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="bordercolor">
<tr>
<td class="catbg">{$txt['shop']} Stuff</td>
</tr>
<tr class="windowbg2">
<td class="smalltext" style="line-height: 1.3; padding-bottom: 3ex;">
                            <a href="$scripturl?action=shop">{$txt['shop']} Home</a><br />
<a href="$scripturl?action=shop;do=buy">{$txt['shop_buy']}</a><br />
<a href="$scripturl?action=shop;do=inv">{$txt['shop_yourinv']}</a><br />
<a href="$scripturl?action=shop;do=sendmoney">{$txt['shop_send_money']}</a><br />
<a href='$scripturl?action=shop;do=senditems'>{$txt['shop_send_item']}</a><br />
<a href="$scripturl?action=shop;do=invother">{$txt['shop_invother']}</a><br />
{$context['shop_trade_link']}
{$context['shop_bank_link']}
                            <!--More Coming Soon!<br />-->
</td>
</tr>
</table>
</td>
<td valign="top">
EOT;
}


Here's the footer in case it helps:

function shop_footer() {
global $txt, $context, $modSettings, $scripturl, $settings, $sourcedir;

//Get the SMFShop version information (file only loaded if not loaded previously)
require_once("{$sourcedir}/shop/shopVersion.php");

echo "</td></tr></table>";
echo "<p align='right'>Powered by SMFShop {$shopVersion['version']} (Build {$shopVersion['build']}), &copy; 2005, 2006 <a href='http://www.dansoftaustralia.net/'>DanSoft Australia</a><br />";

// If this SMFShop version is a development (unreleased) version
if ($shopVersion['develVersion'] == true) {
echo "<i>Development version!</i> {$shopVersion['SVNid']} ({$shopVersion['SVNdate']})";
}

echo "</p>
</td>
<td cellpadding='0' cellspacing='0' width='30' background='", $settings['images_url'], "/right_content.png'></td>
</tr>
<tr>
<td cellpadding='0' cellspacing='0' width='30' height='30'><img src='", $settings['images_url'], "/bottom_left.png' alt='' /></td>
<td cellpadding='0' cellspacing='0' height='30' background='", $settings['images_url'], "/bottom_content.png'></td>
<td cellpadding='0' cellspacing='0' width='30' height='30'><img src='", $settings['images_url'], "/bottom_right.png' alt='' /></td>
</tr>
</table>";
}



Thanks for your help!
Title: Re: SMFShop - Shop MOD
Post by: udeze on October 18, 2006, 12:40:38 PM
I have discovered the cause of the problem
If I use this Url, http://forumnigeria.com/index.php?action=shop;do=owners;id=3
I get the 404 error
If I change it to this, http://forumnigeria.com/index.php?action=shop;do=owners&id=3

Bingo, it works, it also does the same to my SMF gallery, how can I change this  ???, the
;ID to &ID fix for some servers MOD, I saw appears to be old, I am using SMF 1.1 RC3, I don't know whether it will work on it 
Title: Re: SMFShop - Shop MOD
Post by: feeble on October 19, 2006, 10:53:04 PM
just wanted to say thanks for the mod.
just been playing around with it, and its very easy to make items for it.

just finished an item for my forums.

essentially it eggs users avatars.
(http://www.leaderless.net/avatars/egged/egged_slazza.png)(http://www.leaderless.net/avatars/egged/egged_feeble.png)

it gets there avatar, and using gd, puts an egg on it. then changes their custom title to "You've been Egg'd by {your name here}!"

doesnt override their old avatar, and stores it in avatars/eggs/, so that you may wear your victims avatar.
saves the img as. egged_{memberusername}.gif
beauty of this script, is that you can egg as many times as you want, depending if you can afford that many eggs. it just keeps, adding eggs to the avatar.

going to piss ppl off, but so worth it

MAIN TOPIC FOR THIS IS HERE NOW (http://www.daniel15.com/forum/index.php/topic,354.0.html)
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on October 20, 2006, 12:51:12 AM
Lmao that's wild. nice job. I'm sure others will want to know how you did it.
Title: Re: SMFShop - Shop MOD
Post by: TechnoDragon on October 20, 2006, 12:53:13 AM
yes, please share it!
Title: Re: SMFShop - Shop MOD
Post by: udeze on October 20, 2006, 02:40:44 AM
That's great,  8) please share it with us, that will be lovely
Title: Re: SMFShop - Shop MOD
Post by: feeble on October 20, 2006, 06:07:04 AM
lol, thanks for liking it.

i will soon, i just need someone to look over getting the users avatar img, as i may not have covered all possibilities.

also im thinking of other images to overlay onto the avatar.

so far im thinking: kisses, snow ball, paint ball....

if you have any ideas please let me know.

also changing the custom title to "you got egg'd by {your name here}". also making it an admin option as well, just incase you dont want your users to change it.
Title: Re: SMFShop - Shop MOD
Post by: Tazpot on October 20, 2006, 06:40:26 AM
Looks great i can't wait.

When done could admin's add new thing's stick on avatars or would it just be the things you setup?
Title: Re: SMFShop - Shop MOD
Post by: feeble on October 20, 2006, 06:45:06 AM
Quote from: Tazpot on October 20, 2006, 06:40:26 AM
Looks great i can't wait.

When done could admin's add new thing's stick on avatars or would it just be the things you setup?


i would like to, but i dont think smf shop is that advanced yet. but you can by all means (if you know php) just go in and edit it.

if you want ill put at the top of the file, the different images, and the custom title quotes at the top, so you can easily edit them there.

MAIN TOPIC FOR THIS IS HERE NOW (http://www.daniel15.com/forum/index.php/topic,354.0.html)
Title: Re: SMFShop - Shop MOD
Post by: ProtoMan.EXE on October 20, 2006, 06:57:47 AM
Sorry for asking this twice but can some one tell mw how can I make the cronjobs at www.cronjobs.org to work with the Shop ? I need it for the bank. Thank you.
Title: Re: SMFShop - Shop MOD
Post by: Tazpot on October 20, 2006, 07:00:25 AM
Quote from: feeble on October 20, 2006, 06:45:06 AM
Quote from: Tazpot on October 20, 2006, 06:40:26 AM
Looks great i can't wait.

When done could admin's add new thing's stick on avatars or would it just be the things you setup?


i would like to, but i dont think smf shop is that advanced yet. but you can by all means (if you know php) just go in and edit it.

if you want ill put at the top of the file, the different images, and the custom title quotes at the top, so you can easily edit them there.

That would be great!!

Quote from: ProtoMan.EXE on October 20, 2006, 06:57:47 AM
Sorry for asking this twice but can some one tell mw how can I make the cronjobs at www.cronjobs.org to work with the Shop ? I need it for the bank. Thank you.

Try over at Daniel15's site as all is explained there  Clicky (http://www.daniel15.com/forum/index.php/topic,193.0.html)
Title: Re: SMFShop - Shop MOD
Post by: ProtoMan.EXE on October 20, 2006, 07:19:04 AM
I looked but it is nearly all defferent  :'(
Title: Re: SMFShop - Shop MOD
Post by: Tazpot on October 20, 2006, 08:00:13 AM
There is a way of doing it without using cron jobs on the Daniel15 site if that helps?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on October 20, 2006, 08:57:30 AM
Just so everyone here knows, last week was my "Work on SMFShop" week. Unfortunately, I didn't have as much free time as I hoped I'd have. However, having said that, my changelog is quite big. Some of the most important changes include:
That's the main things, there's also a few small changes. Sure, it doesn't sound like much, but the code commenting took me about 2 days of work (there was heaps and heaps to do!)

One of my aims now is to make an SMFShop documentation site, and that will probably be up tommorow :D
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on October 20, 2006, 10:15:40 AM
Nice work Daniel. Sounds like you have been very busy.
Title: Re: SMFShop - Shop MOD
Post by: perplexed on October 20, 2006, 11:07:48 AM
Quote from: udeze on October 15, 2006, 01:00:06 PM
I got this info from my server error log (Cpanel):

Sun Oct 15 11:54:30 2006] [error] [client 195.245.108.151] File does not exist: /home/fnigeria/public_html/500.shtml

I could'nt see any 'InstantMessage.english' language file. any where at all, Ii need help, I really love this MOD

I also had this but found the answer in the above post - thanks for posting it.


Quote from: jasonlove on October 16, 2006, 02:39:58 AM
When I try to send money to a user, it says:

ERROR: The member you typed ('username') doesn't exist!

Please advise.

I have this too, and I try changing case but it works and then it doesnt.

When I click on find members, it finds the member but when you click on the name it doesnt copy it into the send box in the shop.  In the 'find members box', at the bottom, it says javascript: void (0);  if that means anything

this is very frustrating
Title: Re: SMFShop - Shop MOD
Post by: blitzchic on October 20, 2006, 11:18:02 PM
I just have a couple of questions ... I tried to read through the thread, but got upto page 10 and had enough lol

Firstly, I cant see a way to edit anything in the shop through administration? Like edit the settings? and also, is there a way to add items to be purchased? Like a pet or something?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on October 21, 2006, 03:04:01 AM
I'm proud to announce that a new release of SMFShop (SMFShop 2.3) is now available! This version has a few new features, and fixes some of the bugs present in SMFShop 2.2. Additionally, I'm currently working on documentation for SMFShop, and it should be ready soon...

Changes:
- Admins can now give credits depending on which membergroup users are in (membergroup functions)
- Minor changes to installer (finally fixed "Incorrect table name ''" error!)
- Money can now be automatically given to people at registration
- General code cleanup
- Heaps more comments in the code (it's a lot easier to understand)
- Item files now have author name, email and website fields
- item_engine.php now has heaps and heaps of comments
- The 'Add Item' page has merged into the 'Edit Items' page
- Delete Items now uses checkboxes for deleting more than 1 item at a time
- When an item is deleted, it is now properly deleted from everyone's inventory
- Changed formatting of template files (they're now a lot easier to understand)
- Every shop page now has a custom title (previously, every page said 'Shop' on it)
- Moved stuff which shouldn't have been in ShopAdmin.template.php into ShopAdmin.php
- Money is now properly treated as float values, rather than int values
- Various updates for XHTML compliance
- Relpaced all 4-space code indentation with tabs instead
- Minor updates to a few items


Problems fixed in this release:
- The installer now no longer shows Incorrect table name '' errors
- Linktree on 'Send Items' page fixed (it said 'Send Money')
- Slight problem with item images fixed
- Fixed InstantMessage.english.php errors

Download it from the DanSoft Australia (http://www.dansoftaustralia.net/) website.

QuoteFirstly, I cant see a way to edit anything in the shop through administration?
Sure. Log in to your forum's admin panel, and then look at the bottom-left of the screen. You can edit the settings, and add or remove items

Quoteand also, is there a way to add items to be purchased?
If you know PHP, you can code items yourself. Otherwise, you'll need to get someone to write up the item for you. Speaking of pets, there's a whole discussion on a pet item (not yet complete) on my forum (www.daniel15.com)

QuoteI tried to read through the thread, but got upto page 10 and had enough lol
Haha, most of that isn't even relevant anymore... Did you see the dates on the posts? :P
Title: Re: SMFShop - Shop MOD
Post by: blitzchic on October 21, 2006, 01:05:01 PM
Hi Daniel, thanks for the reply .. I have just installed the new version, and even though it installed fine, I still cant see anything in the admin centre :(   


And yes I know the dates were old, but I had to start somewhere LOL
Title: Re: SMFShop - Shop MOD
Post by: udeze on October 21, 2006, 04:51:04 PM
It is supposed to create a section called "Shop Administration" right below the "Maintanace" in your Admin panel, if you can't see it, you can try over Daniel15 website     
Title: NEW SHOP ITEM: Ask the Goofball
Post by: Chad on October 21, 2006, 05:30:24 PM
New Item.
I created a forum on my site called ASK THE GOOFBALL (you could use anything for this... ) In my forum it's so people can ask silly questions and get silly responses.  The thing os, only USERS can post a question (not even global moderators) and only the Forum moderator (nobody else, except the ADMIN) can respond to questions.  This creates an "ASK" forum.  You have to be using LOCAL PERMISSIONS for the goofball forum so you can turn replies for regular users.  Also so you can restrict the moderator's permissions in that forum so they're not a REAL forum moderator, the only permission they have that everyone else doesn't is the ability to REPLY to any topic.

So someone comes in, asks a question and only the moderator of that forum can respond.

This creates a GOOFBALL seat. ;)  Now, the fun... I created a shop item allowing anyone to put anyone else in the goofball seat. 

My item uses my Shop Log modification so you'll want to comment that out if you don't have a SHOP HISTORY forum in which you want major shop transactions recorded.  Though I recommend one, even if you set it to Admin only to read posts in there, at least you'll know wtf is going on when someone tries robbing the bank.  (you had to add the shop history code to that item yourself).

In the module you need to change two variables before you can add it to your shop:
$goofballforumID = 99; //Set this to your Goofball forum ID
$shophistoryID=98;//Set this to 0 if you don't have a shop history forum

Just save this as "AskTheGoofball.php" in your shop/items directory.



<?php
/**********************************************\
| SMFSHOP (Shop MOD for Simple Machines Forum) |
|         (c) 2005 DanSoft Australia           |
|      http://www.dansoftaustralia.com/        |
\**********************************************/

//File: AskTheGoofball.php
//      Item

//VERSION: 1.0 (Build 1)
//DATE: Oct 21, 2006
//Author Chad
//Helped by Karmaboost mod

class item_AskTheGoofball extends itemTemplate {
    function 
getItemDetails() {
    
$this->authorName "Chad";

$this->authorWeb "http://www.aviary.info/";

$this->authorEmail "[email protected]";

        
$this->name "New Goofball";
        
$this->desc "Sets someone in the GOOFBALL seat in the Ask the Goofball forum!";
        
$this->price 250;

        
$this->require_input true;
        
$this->can_use_item true;
    }

    function 
getUseInput() {
        global 
$context$scripturl$settings$txt;
        return 
"Who's the Goofball: <input type='text' name='goofball' size='50'>
         <a href='
{$scripturl}?action=findmember;input=goofball;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>";
    }

    function 
onUse() {
        global 
$db_prefix$ID_MEMBER$item_info$user$sourcedir;
require_once($sourcedir '/Subs-Post.php');
$goofballforumID 99//Set this to your Goofball forum ID
$shophistoryID=98;//Set this to 0 if you don't have a shop history forum

//Begin Shop history
if ($shophistoryID) {
$topicOptions['board'] = $shophistoryID//SHOP history forum
$topicOptions['id']=0//NEW topic
$msgOptions['subject'] = "I just put ".$_POST['goofball']." into the Goofball seat!"//Subject
$msgOptions['body'] = "I just put ".$_POST['goofball']." into the Goofball seat!"
$posterOptions['id']=$ID_MEMBER//Current user's ID
createPost(&$msgOptions, &$topicOptions, &$posterOptions); //create the post using the SMF posting function
}
//End Shop history
//Begin Goofball forum post - this is useful to let everyone know you have a new goofball
$topicOptions['board'] = $goofballforumID//Goofball forum - so everyone knows the tides have turned //change this to your goofball forum number
$topicOptions['id']=0//NEW topic
$msgOptions['subject'] = "I just put ".$_POST['goofball']." into the Goofball seat!"//Subject
$msgOptions['body'] = "I just put ".$_POST['goofball']." into the Goofball seat!"
$posterOptions['id']=$ID_MEMBER//Current user's ID
createPost(&$msgOptions, &$topicOptions, &$posterOptions); //create the post using the SMF posting function

            
$result db_query("SELECT ID_MEMBER

                                FROM 
{$db_prefix}members

                                WHERE memberName = '
{$_POST['goofball']}'"__FILE____LINE__);

            
$row mysql_fetch_array($resultMYSQL_ASSOC);

            
$goofball_ID $row['ID_MEMBER'];
            
        
$result db_query("DELETE FROM {$db_prefix}moderators
                               WHERE ID_BOARD = 
{$goofballforumID}",__FILE____LINE__);
        
$result db_query("INSERT INTO {$db_prefix}moderators (ID_BOARD, ID_MEMBER) 
          VALUES (
{$goofballforumID}{$goofball_ID})" //EDIT the 99 to the forum number that you use for the goofball posts
                               
,__FILE____LINE__);

        return 
"{$_POST['goofball']} is the new goofball!!";
    }
}
?>
Title: Re: SMFShop - Shop MOD
Post by: blitzchic on October 21, 2006, 10:49:09 PM
Thanks udeze, theres nothing like that there :(  So I will try over at Daniel's forum.
Title: Re: SMFShop - Shop MOD
Post by: ProtoMan.EXE on October 21, 2006, 10:59:11 PM
I have an idea for you , daniel15, why don't you try asking SMF ARCADE mod 's author about after a member become a champion in any game (And can keep that status for xxx days like 15 or 30) , he/she will be given xxx amount of credits like a reward ? Thank you very much  :)
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on October 22, 2006, 06:44:35 AM
I think you put something in wrongly, Daniel15 is the author of this modification
Title: Re: SMFShop - Shop MOD
Post by: perplexed on October 23, 2006, 04:40:59 AM
Quote from: perplexed on October 20, 2006, 11:07:48 AM
Quote from: udeze on October 15, 2006, 01:00:06 PM
I got this info from my server error log (Cpanel):

Sun Oct 15 11:54:30 2006] [error] [client 195.245.108.151] File does not exist: /home/fnigeria/public_html/500.shtml

I could'nt see any 'InstantMessage.english' language file. any where at all, Ii need help, I really love this MOD

I also had this but found the answer in the above post - thanks for posting it.


Quote from: jasonlove on October 16, 2006, 02:39:58 AM
When I try to send money to a user, it says:

ERROR: The member you typed ('username') doesn't exist!

Please advise.

I have this too, and I try changing case but it works and then it doesnt.

When I click on find members, it finds the member but when you click on the name it doesnt copy it into the send box in the shop.  In the 'find members box', at the bottom, it says javascript: void (0);  if that means anything

this is very frustrating

any idea how to fix this Daniel?
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on October 23, 2006, 05:29:17 AM
Can you check if there is a file called error_log and the instantmessage.english.php file is usually in themes/default/languages whilst jason, check its the username and not the display name :D
Title: Re: SMFShop - Shop MOD
Post by: perplexed on October 23, 2006, 11:11:27 AM
Quote from: J J Williams on October 23, 2006, 05:29:17 AM
Can you check if there is a file called error_log and the instantmessage.english.php file is usually in themes/default/languages whilst jason, check its the username and not the display name :D

I'm not sure I understand your reply Jason? 

The problem with the instant message template is supposed to be fixed in this version of shop, thats why I installed it.  Also I try to use the find members option but you cant get it to add the member to the member name field - nothing happens

Its ok if you use the links from peoples posts but not from the shop itself
Title: Re: SMFShop - Shop MOD
Post by: Phydeaux on October 23, 2006, 05:48:55 PM
There is an error in the js code causing the user's name not to transfer from the search feature... I haven't looked into it. The load language functions should work... odd that they don't, I think.

Try this and see if it fixes the problem...


>> File: Shop.php

In version 2.2 --[FIND]--
loadLanguage('InstantMessage', '', false);

In version 2.3 --[FIND]--
loadLanguage('PersonalMessage', '', false);
loadLanguage('InstantMessage', '', false);

--[REPLACE WITH]-- put this in any version to be backwards compat 1.0.8--1.1 RC3

if (file_exists($boarddir.'/Themes/default/languages/InstantMessage.english.php'))
loadLanguage('InstantMessage', '', false);

if (file_exists($boarddir.'/Themes/default/languages/PersonalMessage.english.php'))
loadLanguage('PersonalMessage', '', false);



If you use a custom theme, which most do, and you have "InstantMessage.english.php" or "PersonalMessage.english.php" in your custom theme languages directory, replace 'default' in the code above with the name of your custom theme directory (case sensitive). If you have multiple user selectable themes... may I suggest that you remove those files from your /languages directory in each theme using them, and rely on the files in /default/languages.

For those who wish to try, you can probably do better by using the information in the '$settings' array with the theme info keys. I would do it for you but I do not have the resources available at my current location, and at my age... my memory fails me readily. ^_^ ;-p

Title: Re: SMFShop - Shop MOD
Post by: ProtoMan.EXE on October 25, 2006, 12:05:16 PM
Quote from: J J Williams on October 22, 2006, 06:44:35 AM
I think you put something in wrongly, Daniel15 is the author of this modification
Whoa, sorry, how stupid I was that time, I fixed the post now. Thank you very much  :)
Title: Re: SMFShop - Shop MOD
Post by: Assistance on October 25, 2006, 02:26:54 PM
how do i remove the extra 00 at the end of the credits?
people think they have so many credits when really its a decimal that is useless
Title: Re: SMFShop - Shop MOD
Post by: elliatt on October 26, 2006, 04:34:34 PM
Installing this update had wiped my store out and now causes my forum to generate all sorts of errors.

I've requestd help from the author but have yet to receive a reply (it's only been a day and maybe will take some time).

I would avoid using the update as it could cause problems liek I am experiencing.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on October 27, 2006, 06:45:30 AM
Phydeaux, the 'false' at the end of these lines:

loadLanguage('PersonalMessage', '', false);
loadLanguage('InstantMessage', '', false);

should be preventing the errors from coming up...

elliatt, those problems are caused by the shop directory not being CHMODded to 0777. Please CHMOD the directory, and try again.
I've released a new update package at http://www.dansoftaustralia.net/downloads/file/24/SMFShop-2.3-Upgrade.html . Please try that one out, and tell me if it works for you :)
Title: Re: SMFShop - Shop MOD
Post by: Rubyforlife on October 27, 2006, 03:01:22 PM
Hey I'm having a little problem with the new version :)

I just updated to 1.1 RC3 from RC2 and I'd uninstalled SMFshop 1.1 (which I had at the time)  just before doing so - my mistake!
But when I went to apply it again after updating it said it couldn't because it wasn't compatible. So I decided to try out the new one instead, but I can't apply it  :-[
I get:

"Database Error: Duplicate column name 'money'
File: .com/user/htdocs/forum/Packages/temp/installScript.php
Line: 120"

Any advice on solving this?
Thanks in advance! ^_^
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on October 27, 2006, 10:09:18 PM
lelekins, don't worry about the error, SMFShop should still be working fine ;)
If it's not, try uninstalling it, then upload and run uninstallScript.php (by going to http://[yourforum]/uninstallScript.php), and try again.
Title: Getting Erro when upgraded.
Post by: jasonlove on November 04, 2006, 12:08:47 AM
After the upgrade, Add Item and Edit item links are missing. You are mistakenly did not add the text in the language file. Secondly, I tried to add a link for it. Then I went back to click on the Add or Edit link, I get this error below, any help? Thanks....

Edit/Delete Items
Below is a listing of all the items in your Shop. If you want to edit or delete any, just click either the 'edit' or 'delete' link which is beside each item.


Fatal error: Call to undefined function: outputeditordelete() in /home/quancafe/public_html/forum/Sources/Load.php(1711) : eval()'d code on line 210
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on November 04, 2006, 01:49:19 AM
QuoteYou are mistakenly did not add the text in the language file.
Are you sure? Checking the language file, I see:

$txt['shop_admin_items_add'] = "Add Items";
$txt['shop_admin_items_edit'] = "Edit/Delete Items";
$txt['shop_admin_items_addedit'] = "Add/Edit/Delete Items";


QuoteFatal error: Call to undefined function: outputeditordelete() in /home/quancafe/public_html/forum/Sources/Load.php(1711) : eval()'d code on line 210
That error sounds like you don't have the correct ShopAdmin.php file. Please reupload that file, and see if that fixes it.
Title: Re: SMFShop - Shop MOD
Post by: jasonlove on November 04, 2006, 12:47:51 PM
I somehow reupload all the .php files to its respective directory and it s now working. It was working fine on my local server but not on the production server. When updating the script, it requires me to log in FTP site to do some permission change? I did that and I think b/c of the permission issue, most of the scripts aren't updated, for example, the Language file wasn't updated and therefore the text is missing. Uhmm. stranged. But I managed to manually modified the scripts and now it is stable.

Thanks.
Title: Re: SMFShop - Shop MOD
Post by: Gobo on November 04, 2006, 03:19:47 PM
hey dan is there a fix for the item transfer and send money options being done by "nickname" as opposed to by "membername" ?

cos from the users prospective they all tend to use the nickname and in many cases dont even know the users actual membername

I hope u got what I mean?
Title: Re: SMFShop - Shop MOD
Post by: salazarboy on November 04, 2006, 03:25:16 PM
Is there a way to show the credits in the mebers profile while veiwing a post?
Title: Re: SMFShop - Shop MOD
Post by: jasonlove on November 04, 2006, 04:20:41 PM
How about group permission? There is no group permission setting for this MOD. You can see there is permission setting for SMF Gallery. Is it there somewhere that I am overlooking?

Any advice? I want to be able allow certain group to have permission to access the shop admin. Thanks.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on November 04, 2006, 06:45:47 PM
I've been very busy over the past few days (with exams coming up next week), so I don't have much time to work on SMFShop. Having said that, I'll try and work on it after exams.
Also, if you want to ask a question, it's better to ask it at my forum at http://www.daniel15.com/, as I don't check this topic often.

Quotehey dan is there a fix for the item transfer and send money options being done by "nickname" as opposed to by "membername" ?
That's done purposely. The 'Find Member' button next to the input field allows you to find a member based on their display name. If you click it, search for a member's display name, and click on it, it will insert the correct username.

QuoteIs there a way to show the credits in the mebers profile while veiwing a post?
No, I never got around to doing that.

QuoteHow about group permission? There is no group permission setting for this MOD. You can see there is permission setting for SMF Gallery. Is it there somewhere that I am overlooking?

Any advice? I want to be able allow certain group to have permission to access the shop admin. Thanks.
Really sorry, again I never got around to implementing permissions.

Title: Re: SMFShop - Shop MOD
Post by: salazarboy on November 05, 2006, 05:10:11 PM
Okay if you ever do do it let me know.
Title: Re: SMFShop - Shop MOD
Post by: Pedja on November 06, 2006, 02:57:57 AM
I tried to install 2.3 (Build 11). Package installer test says it fails on ./Sources/Subs-Boards.php and ./Themes/default/ManageBoards.template.php

I know this is of no help for you, but it even less helpful for me. It is just frustrating how SMF packaging system sucks.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on November 06, 2006, 04:15:59 AM
QuoteI tried to install 2.3 (Build 11). Package installer test says it fails on ./Sources/Subs-Boards.php and ./Themes/default/ManageBoards.template.php
You can proceed with the installation, and then do those modifications manually ;). Upload the modification file (install_SMF1-0.xml or install_SMF1-1RC2.xml, depending on SMF version) to http://server.daniel15.com/smf_xml/modification.php?action=file, and do the Subs-Boards.php and ManageBoards.template.php edits manually.

QuoteIt is just frustrating how SMF packaging system sucks.
Well, a bad Package Manager is better than none... I remember back when IPB 1.3 came out, I spent close to an hour installing MODS on it :P
And SMF's package system isn't that bad, it's the best I've seen :D
Title: Re: SMFShop - Shop MOD
Post by: Assistance on November 06, 2006, 05:03:23 AM
the package system doesnt sux at all

when the installer trys to find what its looking, if its not there cause of another mod allready installed, how else does it know where to look ?

atleast it tells you where the problem is, and then like in your case u have only 1 file to edit
unlike trying to install this mod manually, by editing 5-10 different files.

try to look for mods that u allready installed that used them files, then unistall that mod, install the new one, then re install the other.  It tends to work out with no errors that way.

gl and happy modding
Title: Re: SMFShop - Shop MOD
Post by: Assistance on November 06, 2006, 09:41:31 AM
Quote from: Assistance on October 25, 2006, 02:26:54 PM
how do i remove the extra 00 at the end of the credits?
people think they have so many credits when really its a decimal that is useless

MySQL said: Documentation
#1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc text NOT NULL default '',
  price decimal(8,2) unsigned N


this is while trying to restore my site
i have to redo my site cause of 2 decimal places?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on November 06, 2006, 10:08:33 AM
Quotethis is while trying to restore my site
i have to redo my site cause of 2 decimal places?
Nope, that's not the error at all :P
Find:

desc text NOT NULL default '',

Replace with:

`desc` text NOT NULL default '',

;)
Title: Re: SMFShop - Shop MOD
Post by: Assistance on November 06, 2006, 10:52:49 AM
ok  ty

that fixes 1/2 my site
Title: Re: SMFShop - Shop MOD
Post by: Xarcell on November 06, 2006, 12:14:25 PM
When I try to download this mod from your site I get:

Error: download ID not passed!
Title: Re: SMFShop - Shop MOD
Post by: nathan42100 on November 06, 2006, 04:41:48 PM
Me too!
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on November 06, 2006, 09:05:11 PM
Sorry about the download problems guys, it should be fixed now.
Title: Re: SMFShop - Shop MOD
Post by: nathan42100 on November 06, 2006, 10:09:33 PM
thanks mate. it works now
Title: Members name missing
Post by: houston on November 08, 2006, 12:14:17 AM
When ever I receive a PM when the bank is robbed our somebody has succeeded using the Karmagedon item, The members name is dropped from the message. Is there a fix for this. I also noticed that one of my members credit amount is 0.54 credits. How is that possible?
Title: Re: SMFShop - Shop MOD
Post by: nathan42100 on November 08, 2006, 04:03:08 PM
Daniel, is there any way to get a point per word rather than a fixed point per post?
Title: Re: SMFShop - Shop MOD
Post by: PoLlama on November 09, 2006, 03:49:52 PM
The SMFShop mod screwed with Boards Admin. Whenever I try to access it I get the following error...
Unknown column 'b.countMoney' in 'field list'
File: /homepages/37/d177846251/htdocs/New PoLlama/Forum/Sources/Subs-Boards.php
Line: 1471
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on November 09, 2006, 11:17:56 PM
QuoteWhen ever I receive a PM when the bank is robbed our somebody has succeeded using the Karmagedon item, The members name is dropped from the message. Is there a fix for this.
I don't write the Karmagedon item, so I'm not sure. You'd need to ask the author of that item.

QuoteDaniel, is there any way to get a point per word rather than a fixed point per post?
I was planning that for ages, but never actually got around to it... I have exams at the moment (4 left, next week) so I can't do that at the moment, but I'll try and get around to it, eventually ;)

QuoteI also noticed that one of my members credit amount is 0.54 credits. How is that possible?
They could have put a non-integer amount of credits (eg. 0.46) in the bank, or sent it to someone.

Quote
The SMFShop mod screwed with Boards Admin. Whenever I try to access it I get the following error...
Try running this SQL query:
ALTER TABLE smf_boards ADD `countMoney` TINYINT(1) UNSIGNED DEFAULT '1' NOT NULL
Replace smf_ with your actual prefix.
Title: Re: SMFShop - Shop MOD
Post by: houston on November 09, 2006, 11:21:27 PM
Quote
Daniel, is there any way to get a point per word rather than a fixed point per post?

I was planning that for ages, but never actually got around to it... I have exams at the moment (4 left, next week) so I can't do that at the moment, but I'll try and get around to it, eventually


I could see this as being more a nuisance, with members posting garbage just to get more shop credits.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on November 09, 2006, 11:53:51 PM
QuoteI could see this as being more a nuisance, with members posting garbage just to get more shop credits.
There would be an upper limit, of course ;)
Title: Re: SMFShop - Shop MOD
Post by: valenti on November 13, 2006, 09:59:24 PM
is it possible for someone to make an spoiler tag addon for this?

like the thread starter puts a [spoiler=50] [/spoiler] somewhere

and for other members to view the spoilers, they have to pay the thread starter $50 with their money
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on November 13, 2006, 10:04:34 PM
Hey thats not a bad idea. I am suprised no one has thought about that sooner.
Title: Re: SMFShop - Shop MOD
Post by: Isaac on November 26, 2006, 01:53:02 PM
Hey, I'm wondering:

Would it be possible to have 2 shops installed on the same forum?  I'd like to have one with items and such, and another for the sole purpose of utilizing the Download File item.  I'd like for them 2 be on 2 seperate 'action=' pages, and for members to earn 2 different forms of currency, one for each shop.

Any ideas?

Thanks!
Title: Re: SMFShop - Shop MOD
Post by: Xarcell on December 07, 2006, 12:15:38 AM
any word on updating this mod for 1.1 final?


EDIT: I changed 1.1 RC3 to 1.1 in packages-info.xml and it installs fine.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 07, 2006, 03:47:29 AM
Yep, already done... I uploaded a SMF 1.1 compatible package yesterday.
Title: Re: SMFShop - Shop MOD
Post by: Xarcell on December 07, 2006, 11:38:27 AM
Thanks!

I love this mod.
Title: Re: SMFShop - Shop MOD
Post by: perlgoodies on December 09, 2006, 11:17:37 AM
On a scale from 1-10 I'd have to give this a 3.5 rating.

Even though the idea of this is long over due, we need a more realistic approach to this.  Why the poor rating?

1) There's no ADD field even though it says there is. We cannot add new products, just preset ones.. and the preset ones don't affect the operations of the forum any. We are missing all the ones people want (bold names, italic names, subject post colors, different screen name link colors on index, etc). All you get with this one is drops or raises in karma/post counts or name changes. Or pay for a membergroup rating to give you access to boards, or even a way to pay via PayPal to purchase credits, or how about getting stars next to their name? All of these were ignored because the author of this mod had no idea what they were doing so they took the easy route and only made the simple changes.

2) I was absolutely blown away by this author's approach at embedding their own link into your forum. What a dumb and rude thing to do.

I'd wait until someone gets a similar project under their wing before installing an SMF cart
Title: Re: SMFShop - Shop MOD
Post by: Gobo on December 09, 2006, 12:27:35 PM
perlgoodies

1) have you checked the daniel board? They have those items there the "bold names, italic names, subject post colors, different screen name link colors on index, etc" As for other suggestions, the guys try and develop stuff as they move along, so keep the sugegstions coming I am sure daniel will consider them. Also u should know smf shop is a 'fun activity' not a system incorporating real money - and that author has said that many times before.

2) I think that is his RIGHT for making and distributing something as complex as this for free really. Soon you will find many bigger mods like gallery or links system have that. So its not a biggie, after all remember its free.

So really come on man instead of blasting someones hard work which they have been kind enough to share with all - say something good :D Soon you will realize SMF is a community where people share and contribute together, so join in :)
Title: Re: SMFShop - Shop MOD
Post by: Xarcell on December 09, 2006, 08:59:41 PM
@ perlgoodies

This mod is for fun activtities, not an actual shop.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 09, 2006, 09:09:59 PM
QuoteAll of these were ignored because the author of this mod had no idea what they were doing so they took the easy route and only made the simple changes.
Uhm... thank you for your feedback, I suppose...  :o
I'm not a person with lots of spare time. I'm a 16-year-old person still going to school. The fact is, most of the spare time I had was time I needed to spend doing homework and exam revision. I have very little time for SMFShop (well, that's different now that I'm on holidays), so could only work on what I had time to do. Most of my work is done improving the core of SMFShop (admittedly, some of the code in the current release version is very ugly, it's been cleaned up a lot in the SVN version). Given a choice of either writing up an item that almost nobody would use, or taking some time working on core improvements that will benefit everybody, I'd go with the core improvements.
Just FYI, bold and italic names are already done (I took it one step further: You can apply any CSS styles)

QuoteI was absolutely blown away by this author's approach at embedding their own link into your forum. What a dumb and rude thing to do.
What am I different from anyone else? TinyPortal has a 'Powered by TinyPortal' link, the arcade has a similar link (I think, I could never get it working on SMF 1.0. I should try it again on SMF 1.1). You don't think that for all the work I've put into SMFShop (using my spare time which I could have spent doing other things), I don't deserve to have a small link to my site?

So, if you don't want to use the mod, you don't have to, but please don't blast me for this. I could have made this a closed modification, and made people pay for it. Instead, I'm letting everyone download it and improve it by writing new items (which is why I have the heavily commented example/test items, and the items board on my forum). If you don't like the current items, feel free to write them up yourself.

EDIT: Also, your post was so negative, so why use the thumbs up icon ((http://www.simplemachines.org/community/Themes/newsite/images/post/thumbup.gif)) for it?

EDIT2: Please don't take my post negatively. I do respect your views, and will try and work on some new items.
Title: Re: SMFShop - Shop MOD
Post by: Tazpot on December 13, 2006, 07:58:11 AM
Adding to Daniels response about having a link to his site i think it is appropriate as this is the place to find all the latest items that the shop users/Daniel have created and also the best place for help and info . Keep up the good work Daniel and thanks for sharing this excellent mod with the rest of us. ;)
Title: Re: SMFShop - Shop MOD
Post by: porcelainprincess on December 13, 2006, 05:52:10 PM
I have a strange thing happening, the items are repeating, there are 9 of each item. I only installed once. I have been trying to find where I can check the coding to see if it repeated. It may have been because of a problem I seem to have with installing mods lately, they sort of time out and just go to a blank page after install with the .zip file in the end of the URL. Maybe when I retried it, it kept adding it with out me knowing. I tried to delete the extras in the admin panel but it's not working either.

Any help would be appericated. Thank you for the mod!
Title: Re: SMFShop - Shop MOD
Post by: L.G.S on December 14, 2006, 11:34:40 AM
Hmmm problem...

I sent someone Rob The Bank yesterday, and tried today.

It worked fine yesterday, but today I get this:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE id = 15' at line 3
File: /home/xxxx/public_html/board/Sources/shop/Shop-Send.php
Line: 183
Title: Re: SMFShop - Shop MOD
Post by: perlgoodies on December 15, 2006, 10:02:24 PM
Quote from: Xarcell on December 09, 2006, 08:59:41 PM
@ perlgoodies

This mod is for fun activtities, not an actual shop.


Perhaps, leave the PayPal idea out, IMO users and admins should be able to put anything they want up in trades.

An example would be $$. I was expecting I could run a contest on my forum where all members would get $10 for every 1500 points they earn during the month. I'd set it up saying Admin has $10 for 1500 and people can spend their points on it and after I get the "orders", I simply message them for their paypal address and send them their money.

If an individual or company pushes a link in a product, they are not doing it to help other people, they are doing it to help promote themselves.  Required links means it's NOT free software, it means you're a walking billboard for ads.

If I thought PHP was a good enough language, I'd learn it and make a new shop.. but since I only know Perl, Java and Visual Basic I'm out of luck until I get paid next and can outsource it. When it does get mod'd, I'll post it here and it certainly will not have ads in it.
Title: Re: SMFShop - Shop MOD
Post by: Isaac on December 15, 2006, 11:11:41 PM
Is there a way to divide the Shop Items into selectable categories?
Title: Re: SMFShop - Shop MOD
Post by: OrangeStar on December 16, 2006, 07:48:56 PM
Hi i installed this and fixed the menu coding but I still dont see it no were on the menu or on the admin section. Can someone help me please
Title: Re: SMFShop - Shop MOD
Post by: Isaac on December 16, 2006, 07:58:48 PM
Quote from: OrangeStar on December 16, 2006, 07:48:56 PM
Hi i installed this and fixed the menu coding but I still dont see it no were on the menu or on the admin section. Can someone help me please
Are you using a theme other then the default?
Title: Re: SMFShop - Shop MOD
Post by: OrangeStar on December 16, 2006, 07:59:57 PM
Quote from: Isaac on December 16, 2006, 07:58:48 PM
Quote from: OrangeStar on December 16, 2006, 07:48:56 PM
Hi i installed this and fixed the menu coding but I still dont see it no were on the menu or on the admin section. Can someone help me please
Are you using a theme other then the default?

SMF Default Theme - Core
Title: Re: SMFShop - Shop MOD
Post by: perlgoodies on December 17, 2006, 12:22:23 AM
QuoteWhat am I different from anyone else? TinyPortal has a 'Powered by TinyPortal' link, the arcade has a similar link (I think, I could never get it working on SMF 1.0. I should try it again on SMF 1.1). You don't think that for all the work I've put into SMFShop (using my spare time which I could have spent doing other things), I don't deserve to have a small link to my site?

I run one of the most popular Perl/CGI script archives on the planet and all my hundreds and thousands of hours put into the combination of scripts, classes and tutorials I never required a link back to my web site in anything I created. I do sell some of my scripts, but the free ones are literally free. I wasn't just picking on you, I have problems with everyone who requires link backs on their software and have them go to sleep at night thinking they are doing us a favor for it. I would much rather pay $10 or whatever the author wants for a script then to have the links on my web space.

as for the thumbs up icon, I was too lazy to change it or it was an accident.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 17, 2006, 04:50:11 AM
L.G.S, are you still having your problem with the Rob The Bank? If so, please make a post in my forum (www.daniel15.com)

QuoteI have a strange thing happening, the items are repeating, there are 9 of each item...... I tried to delete the extras in the admin panel but it's not working either.
What happens when you try to delete them?

QuoteIf I thought PHP was a good enough language, I'd learn it and make a new shop.. but since I only know Perl, Java and Visual Basic I'm out of luck until I get paid next and can outsource it. When it does get mod'd, I'll post it here and it certainly will not have ads in it.
I'm sorry you see it as an "ad", as it's really not.
If you outsource it, that's fine, just please don't use any of my code in it... Anyways, if you outsource it, who will support it and provide updates? Will you outsource them as well?

QuoteI wasn't just picking on you, I have problems with everyone who requires link backs on their software and have them go to sleep at night thinking they are doing us a favor for it.
OK. Well, as I said before, most script I've seen have linkbacks in them. Honestly, if a script doesn't have a linkback, I'll add one in myself (to thank that person for the hours of work they've put into the software).
EDIT: Have you ever tried RoboHelp (it's a Windows program used to design help files)? It costs so much money (about AU$1500), and they still put a 'Powered by RoboHelp' in all the generated help files
Title: Re: SMFShop - Shop MOD
Post by: L.G.S on December 17, 2006, 10:45:03 AM
Turns out it's not Rob the bank,but any item and even send money.

The members name is Vortex, I tried to send it to another member and it worked fine, but told me the member name is wrong.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 17, 2006, 09:08:08 PM
L.G.S, is it putting quotes around the name? If so, remove them. I've posted a fix for the Send money and Send items at my website (www.daniel15.com) in the SMFShop forum (so that the quotes don't affect it), but I still need to fix the broken items.
Title: Re: SMFShop - Shop MOD
Post by: L.G.S on December 18, 2006, 07:56:57 AM
No, I'm not using quotes in it.
Title: Re: SMFShop - Shop MOD
Post by: Parijs on December 30, 2006, 10:58:47 PM
Any chance on a compatible version for smf 1.1.1?  I really want to use it on my forums ;)
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 31, 2006, 01:23:40 AM
It's already compatible with SMF 1.1.1 ;)
Title: Re: SMFShop - Shop MOD
Post by: cashmonster on December 31, 2006, 03:15:58 PM
we need a refferal mod on this smf shop ill even pay you to make one :P
Title: Re: SMFShop - Shop MOD
Post by: erisa on January 07, 2007, 04:20:17 PM
Hi,

I tried to download the SMFShop in your website, but there seems to be no file in there.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 07, 2007, 08:54:59 PM
Just a note to everyone that a new version may be coming out soon. Please see http://server.daniel15.com/cgi-bin/viewvc.cgi/smfshop/trunk/svn_changelog.txt for a list of all the changes.
Note that I'm still in need of beta testers, so please contact me if interested :)

QuoteI tried to download the SMFShop in your website, but there seems to be no file in there.
Here's the direct link to the download: http://www.dansoftaustralia.net/downloads/file/25/SMFShop-2.3-Fresh-Install.html
Title: Re: SMFShop - Shop MOD
Post by: J. Williams on January 09, 2007, 04:06:24 PM
Daniel, I don't seem to remember correctly but your templates don't have a set title for the pages.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 09, 2007, 09:09:09 PM
Quote from: J J Williams on January 09, 2007, 04:06:24 PM
Daniel, I don't seem to remember correctly but your templates don't have a set title for the pages.
I believe I changed this in SMFShop 2.3 (it's definately changed in the development version) ;)
Title: Re: SMFShop - Shop MOD
Post by: Muse on January 12, 2007, 04:52:42 PM
I can't believe all the negativity in this thread. I am not required to download this modification and neither are you, so I'm not sure what the issue is with having a linkback to Daniel's site. Quit whining about it and go find another mod instead.

I am happy to have it there, Daniel is an awesome coder and not at all lazy or poor at making his mods. I had a TON of problems the first time I installed, and then made a stupid mistake and broke my entire board and he spent HOURS or his spare time fixing everything I screwed up without a single complaint and was extremely patient and gave me a much better understanding of not only HIS mods but SMF itself.

He's sixteen years old. I have received much, much worse customer service from adults on products and modifications that I have paid money for.

Title: Re: SMFShop - Shop MOD
Post by: Lamarck on January 13, 2007, 03:30:30 PM
Thank you very much for such a GREAT mod.One of the best mods for SMF,really.I hope you keep supporting it in thenext versions.

Any chance to have a referral system integrated with this mod?.It would be great.
Title: Re: SMFShop - Shop MOD
Post by: Tanix on January 13, 2007, 07:11:39 PM
I agree with Muse totally. I have no problem whatsoever with a linkback. The shop is an excellent mod and will be even more attractive, given the list of features being implemented in the new release.

As to Daniel himself, not only does he provide true customer service - he has manners and is always courteous in his posts. And yes, even in this day and age manners matter.
Title: Re: SMFShop - Shop MOD
Post by: Xarcell on January 13, 2007, 09:20:42 PM
Quote from: Tanix on January 13, 2007, 07:11:39 PM
I agree with Muse totally. I have no problem whatsoever with a linkback. The shop is an excellent mod and will be even more attractive, given the list of features being implemented in the new release.

As to Daniel himself, not only does he provide true customer service - he has manners and is always courteous in his posts. And yes, even in this day and age manners matter.

I second that...
Title: Re: SMFShop - Shop MOD
Post by: RelaxRelapse on January 13, 2007, 11:43:08 PM
I cant seem to get to YOUR website. I'm using IE7. I don't know whats going on with it.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 14, 2007, 12:18:41 AM
Muse, Lamarck, Tanix and Xarcell (as well as everyone else), thank you for your comments :D

Quote from: RelaxRelapse on January 13, 2007, 11:43:08 PM
I cant seem to get to YOUR website. I'm using IE7. I don't know whats going on with it.
The server is currently down... As I help run the web host, we're currently chatting to the data centre, investigating the problem.
Until the server is fixed, I've uploaded the file to http://60.241.80.44/smf/temp/SMFShop_2.3_Fresh_Install-Fixed2.zip (on my own server)
Title: Re: SMFShop - Shop MOD
Post by: Muse on January 14, 2007, 12:41:20 AM
Hey, you saved my butt. I have nothing but compliments ;)
Title: Re: SMFShop - Shop MOD
Post by: RelaxRelapse on January 14, 2007, 11:43:00 AM
Oh ok thanks. :)
Title: Re: SMFShop - Shop MOD
Post by: erisa on January 15, 2007, 03:48:28 AM
I would love if you could do me a favour Daniel.

I would like an item called "Lucky Numbers".

It is like buying a lottery numbers in which when the person buy the item and get random numbers from 0 - 6666.

Could you do that for me please?
Title: Re: SMFShop - Shop MOD
Post by: Da Legend on January 15, 2007, 07:02:06 PM
Where can I get the updated 2.3? The download site is offline. :'(
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 15, 2007, 08:42:32 PM
See the download link above ;)
http://60.241.80.44/smf/temp/SMFShop_2.3_Fresh_Install-Fixed2.zip
Title: Re: SMFShop - Shop MOD
Post by: [Chris] on January 16, 2007, 02:41:46 AM
Hey Daniel, Im getting this error trying to install SMFShop on 1.1.1>
13.     Execute Modification     ./Themes/default/Display.template.php     Test failed
Any suggestions?
I have it installed on my normal boards, but Im testing all the mods I use before upgrading from 1.1 RC3. Awesome mod, the people love it!
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 18, 2007, 07:20:16 AM
OK, my site is back up, and SMFShop 3.0 is now out :) The release announcement is at http://www.daniel15.com/forum/index.php/topic,525.html

[Chris], please test SMFShop 3.0, and see if you encounter the same error.
Title: Re: SMFShop - Shop MOD
Post by: perplexed on January 18, 2007, 12:27:03 PM
I have a question in two parts :)

I havent upgraded to 1.1 gold yet but when I do, I will have to uninstall the shop mod, which means all my members will lose their accumulated $$$$ and I will have to go through and manually reset all the boards that you dont get paid with shop $$$ when you post there.

Is there any way to avoid this?  (simple terms for someone not familiar with coding or sql)
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 18, 2007, 10:27:05 PM
QuoteI havent upgraded to 1.1 gold yet but when I do, I will have to uninstall the shop mod, which means all my members will lose their accumulated $$$$ and I will have to go through and manually reset all the boards that you dont get paid with shop $$$ when you post there.

Is there any way to avoid this?
The steps are like this:
1) Do NOT uninstall SMFShop
2) Complete the SMF 1.1 Upgrade
3) Delete your current SMFShop 2.3 installation package from the Package Manager (the package file only! Do not uninstall it! Ignore the warning about uninstalling it)
4) Download the SMF 1.1-compatible SMFShop 2.3 archive from http://www.dansoftaustralia.net/downloads/file/25/SMFShop-2.3-Fresh-Install.html
5) Upload the newly-downloaded package, and install it. It should install fine, and once it's done, your shop should be working again (and people should still have the same amount of credits as they did before the upgrade)
6) Once you confirm everything is working, install the SMFShop 3.0 upgrade.
Title: Re: SMFShop - Shop MOD
Post by: computel on January 19, 2007, 02:50:23 PM
Is there a way to set a user group that is not involved in this module? As some of my users are not happy about people doing stuff to them.

Thanks
Title: Re: SMFShop - Shop MOD
Post by: Dragoness on January 19, 2007, 08:48:58 PM
We recently installed your Shop but we don't really want to use the defalt items because we have it set up specifically to avoid many of those things and allowing users to change them would wreak havok on the admin. Our site is a family site, its just not geared towards stealing credits and such. Maybe when we are more established.

So we are using the Profile Image and we want to have items people can purchase for display, just for fun really. I found your page and our tech person installed the Profile Image download, but after that we are lost. We can't find the flags and have no idea how to set this up. We want to find our own images to use.  Can you help at all?
Title: Re: SMFShop - Shop MOD
Post by: perplexed on January 19, 2007, 08:53:46 PM
Quote from: Daniel15 on January 18, 2007, 10:27:05 PM
QuoteI havent upgraded to 1.1 gold yet but when I do, I will have to uninstall the shop mod, which means all my members will lose their accumulated $$$$ and I will have to go through and manually reset all the boards that you dont get paid with shop $$$ when you post there.

Is there any way to avoid this?
The steps are like this:
1) Do NOT uninstall SMFShop
2) Complete the SMF 1.1 Upgrade
3) Delete your current SMFShop 2.3 installation package from the Package Manager (the package file only! Do not uninstall it! Ignore the warning about uninstalling it)
4) Download the SMF 1.1-compatible SMFShop 2.3 archive from http://www.dansoftaustralia.net/downloads/file/25/SMFShop-2.3-Fresh-Install.html
5) Upload the newly-downloaded package, and install it. It should install fine, and once it's done, your shop should be working again (and people should still have the same amount of credits as they did before the upgrade)
6) Once you confirm everything is working, install the SMFShop 3.0 upgrade.

Thanks daniel, that sounds good.  However I have about 20 other mods installed that I will have to uninstall before upgrade, right?   I had to install them all in a particular order to get them all to install together with no errors, so if I uninstall them and not the shop mod, then I will get heaps of errors when uninstalling, or doesnt that matter?

*confused*
Title: Re: SMFShop - Shop MOD
Post by: [Chris] on January 19, 2007, 10:54:52 PM
Hey Daniel,

I got SMFShop 2.3 working on 1.1.1, should I uninstall and install 3.0? Or just install 3.0 right on top of 2.3?
Title: Re: SMFShop - Shop MOD
Post by: computel on January 19, 2007, 11:08:34 PM
Just get the upgrade from 2.3 - 3.0 and install that and it works.

Just did it today.

Quote from: [Chris] on January 19, 2007, 10:54:52 PM
Hey Daniel,

I got SMFShop 2.3 working on 1.1.1, should I uninstall and install 3.0? Or just install 3.0 right on top of 2.3?
Title: Re: SMFShop - Shop MOD
Post by: computel on January 19, 2007, 11:12:44 PM
Version 3.0 question

If I disable a membergroup from using the shop can a member that is a membergroup that can use the shop attack a membergroup member that doesn't have access to the shop?

Thanks
Title: Re: SMFShop - Shop MOD
Post by: RaXavier69 on January 20, 2007, 03:20:34 AM
can any one maybe make a code for the arcade that when u get a top 3 or so position u get x credit. or if u win a challange u get x credit
Title: Re: SMFShop - Shop MOD
Post by: njoker555 on January 21, 2007, 07:20:07 PM
uh...question, it probably was answered before but dont have time to read 88 pgs of posts lol, so here it is

u know when installing a mod on a custom template and it asks to edit a certain php file and the template doesnt have that, what should i do ? the shop mod asks to edit ManageBoards.template.php and Profile.template.php but they arent in my theme, what should i do?  im using the theme Aa New Damage
Title: Re: SMFShop - Shop MOD
Post by: Tanix on January 21, 2007, 07:30:35 PM
If they're not in your theme, no worries. They'll be in the default theme and will be picked up from there.
Title: Re: SMFShop - Shop MOD
Post by: njoker555 on January 21, 2007, 08:02:43 PM
ok thanks, time to try then
Title: Re: SMFShop - Shop MOD
Post by: njoker555 on January 21, 2007, 08:23:31 PM
ok im trying to install but i got a test failed on the Display.template.php, but i installed it anyway and it worked, and i edited that file by myself but now it says Credits under the post count but no number there -- http://www.gamers-forum.com/index.php?topic=744.0 look at the posts there, nothing next to credits
Title: Re: SMFShop - Shop MOD
Post by: Tanix on January 21, 2007, 09:08:00 PM
If this is a brand new installation of the shop, what are your general settings for it in the ACP for 'Per new topic' and 'Per new post'? Did you open that topic after you installed the shop?
Title: Re: SMFShop - Shop MOD
Post by: njoker555 on January 21, 2007, 10:38:50 PM
well i fixed it, i had to manually edit Display.template.php -- it didnt install the right way cuz it said failed, well all fixed, im enjoying -- anybody know how i can make the points show in the person's profile under the posts ?  that would be a little more efficient to view their points other than just looking at their posts -- and also the members page -- like the table for posts for points too
Title: Re: SMFShop - Shop MOD
Post by: houston on January 24, 2007, 11:38:24 AM
Thanks for this Great Mod Daniel15

I just upgraded to 3.0 and have noticed that the last line of code in the permissions group seems to be missing. The check box is there but nothing to say what that check box is for.

Any thoughts.

Cheers 
Title: Re: SMFShop - Shop MOD
Post by: njoker555 on January 24, 2007, 06:08:22 PM
how would i make it show up on their profile?  it installed correctly but its not there in the profile, not even on the default theme :(
Title: Re: SMFShop - Shop MOD
Post by: Amas on January 28, 2007, 05:42:45 AM
Hi everyone!
How can I change displayed on index name "Shop" for another?
And how can I delete from menu "Shop Stuff" some links?

Amas  8)
Title: Re: SMFShop - Shop MOD
Post by: Amas on January 29, 2007, 01:33:50 AM
Can someone help me?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 29, 2007, 04:19:38 AM
Quote from: njoker555 on January 21, 2007, 10:38:50 PM
anybody know how i can make the points show in the person's profile under the posts ?  that would be a little more efficient to view their points other than just looking at their posts
It should be doing this already. If you have a custom Profile.template.php file, add the SMFShop code from Themes/default/Profile.template.php to that template.

Quote from: houston on January 24, 2007, 11:38:24 AM
I just upgraded to 3.0 and have noticed that the last line of code in the permissions group seems to be missing. The check box is there but nothing to say what that check box is for.
That was a bug which I fixed (well, I fixed it in the install package, I must have forgot to fix it on the upgrade). If you look in my forum at http://www.daniel15.com/, I have a "Known Bugs in SMFShop 3.0" topic, which contains the fix.
I'll fix the package as soon as possible ;)

Quote from: njoker555 on January 24, 2007, 06:08:22 PM
how would i make it show up on their profile?  it installed correctly but its not there in the profile, not even on the default theme :(
Make sure your Profile.template.php contains the SMFShop code :)

Quote from: Amas on January 28, 2007, 05:42:45 AM
Hi everyone!
How can I change displayed on index name "Shop" for another?
All the text used is in Themes/default/languages/Shop.english.php. Change as much as you like, but please remember what you've changed (a SMFShop upgrade will overwrite this file). Also, please don't remove the copyright :)

QuoteAnd how can I delete from menu "Shop Stuff" some links?
All the links are in the menu in Themes/default/Shop.template.php.
Title: Re: SMFShop - Shop MOD
Post by: Amas on January 29, 2007, 05:14:57 AM
I don't know where i can delete "View Inventory" link. It's in all posts... I don't need it... I searched in shop.template.php but I didn't found it...
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 29, 2007, 07:04:29 AM
The "View Inventory" link is in Display.template.php
Title: Re: SMFShop - Shop MOD
Post by: perplexed on January 29, 2007, 11:42:16 AM
Quote from: Daniel15 on January 29, 2007, 04:19:38 AM
Quote from: njoker555 on January 21, 2007, 10:38:50 PM
anybody know how i can make the points show in the person's profile under the posts ?  that would be a little more efficient to view their points other than just looking at their posts
It should be doing this already. If you have a custom Profile.template.php file, add the SMFShop code from Themes/default/Profile.template.php to that template.


actually I didnt know it was supposed to be in their profiles as well. It never has been for me for over a year now, different versions of course, I just assumed you only saw it on posts lol
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on January 29, 2007, 10:02:29 PM
Quote from: perplexed on January 29, 2007, 11:42:16 AM
Quote from: Daniel15 on January 29, 2007, 04:19:38 AM
Quote from: njoker555 on January 21, 2007, 10:38:50 PM
anybody know how i can make the points show in the person's profile under the posts ?  that would be a little more efficient to view their points other than just looking at their posts
It should be doing this already. If you have a custom Profile.template.php file, add the SMFShop code from Themes/default/Profile.template.php to that template.


actually I didnt know it was supposed to be in their profiles as well. It never has been for me for over a year now, different versions of course, I just assumed you only saw it on posts lol

It was added in SMFShop 3.0 :D
Title: Re: SMFShop - Shop MOD
Post by: RoarinRow on January 30, 2007, 12:38:27 AM
Very strange, I just installed a fresh version of 3.0, I went into the Shop Settings, made the fix to the Steal.php file, then did more test.  I went back to the Shop Admin and for some reason I can't add and more items when I click on the 'Add/Edit/Delete Items'

My link to that setting is http://www.avalanchestyle-test.com/forum/index.php?action=shop_items_edit    All I get is a blank screen and not error in the log.  I am using IE7.

Any suggestions?  I posted the same on your site Daniel, so disregard when you see it.  Thanks.
Title: Re: SMFShop - Shop MOD
Post by: RaXavier69 on January 31, 2007, 12:06:04 AM
how do i deegg some one
Title: Re: SMFShop - Shop MOD
Post by: Pure. on January 31, 2007, 05:24:45 PM
Alright, more praise hehe. Best SMF mod I've seen. Very VERY good. Rich in features, great code work and very easy to install, even with custom themes.

I do however have a question which has almost certainly been asked before. However, 89 pages is pretty time consuming to rumage through. So I'll ask anyway. Thanks for your patience.

I read about needing to set up "cron job" for the bank to work. Now, I'm not too sure on what that is exactly but my question was, how would you set this up if you don't have cPanel? I can't tell you what we do have because I don't know myself. I am the admin but not the site owner. I just know he doesn't have cPanel. So what should we look out for? Directory names and such. Any help greatly appreciated.

Thanks so much for this great feature.

Peace, Lance
Title: Re: SMFShop - Shop MOD
Post by: JohnnyMcKinney on February 03, 2007, 06:05:21 AM
Yo I like this mod, but when I got to install it runs smoothly untill I press the install button, after that it just pops up me downloading install.php?
Title: Re: SMFShop - Shop MOD
Post by: computel on February 03, 2007, 11:33:00 PM
How do I uninstall this mod? I have 2.3 and the upgrade to 3.0 in my packages but when I go to uninstall it shows errors on both mods so I never un installed it.

It would be nice if you could set this to a member group that can attack each other but not other membergroups.

Thanks
Title: Re: SMFShop - Shop MOD
Post by: grusomhat on February 04, 2007, 12:54:34 AM
Is there anyway to see the total amount of points in the system? or would there be a quick code edit to do this?
Title: Re: SMFShop - Shop MOD
Post by: perplexed on February 07, 2007, 10:26:32 AM
Quote from: Pure. on January 31, 2007, 05:24:45 PM
Alright, more praise hehe. Best SMF mod I've seen. Very VERY good. Rich in features, great code work and very easy to install, even with custom themes.

I do however have a question which has almost certainly been asked before. However, 89 pages is pretty time consuming to rumage through. So I'll ask anyway. Thanks for your patience.

I read about needing to set up "cron job" for the bank to work. Now, I'm not too sure on what that is exactly but my question was, how would you set this up if you don't have cPanel? I can't tell you what we do have because I don't know myself. I am the admin but not the site owner. I just know he doesn't have cPanel. So what should we look out for? Directory names and such. Any help greatly appreciated.

Thanks so much for this great feature.

Peace, Lance

I don't know how to do it without cpanel but there is some info on Daniel's site about how to get bank interest without a cron job so maybe that might help you click here  (http://www.daniel15.com/forum/index.php/topic,31.0.html)
Title: Re: SMFShop - Shop MOD
Post by: JohnnyMcKinney on February 07, 2007, 04:23:41 PM
I still havent got my answer?

Yo I like this mod, but when I got to install it runs smoothly untill I press the install button, after that it just pops up me downloading install.php?
Title: Re: SMFShop - Shop MOD
Post by: Pure. on February 07, 2007, 04:39:43 PM
QuoteI don't know how to do it without cpanel but there is some info on Daniel's site about how to get bank interest without a cron job so maybe that might help you click here

Yeah I went there soon after I posted. I was supposed to delete my post here since I found the answer. Oh well. Thanks anyway :)

Peace, Lance
Title: Re: SMFShop - Shop MOD
Post by: perplexed on February 07, 2007, 05:16:27 PM
no worries
Title: Re: SMFShop - Shop MOD
Post by: Ikaryas on February 09, 2007, 06:04:41 AM
sorry if this is asked before, but I wondered if you can add your own pictures?


edit:
Sorry for the dumb question :-[ I've found it...
Title: Re: SMFShop - Shop MOD
Post by: KnightRobby on February 12, 2007, 07:11:31 PM
When I go to the SMFShop Mod page, I am unable to download SMFShop from this link:
http://www.dansoftaustralia.net/downloads/file/28/SMFShop-3.0-Fresh-Install.html

For me, it is not working.  Is anyone else having this problem at this time, and if so, where else can I find a download for this??  I am a huge fan of shops and really am planning on installing one, but finding out I cannot even download right now irritates me.

Can't wait to give it a try though!  Let me know if the link is working or not.
Title: Re: SMFShop - Shop MOD
Post by: tankster on February 12, 2007, 10:25:23 PM
is it just me or at the listed websites down?  could be a DNS error, not sure.
Title: Re: SMFShop - Shop MOD
Post by: KnightRobby on February 13, 2007, 12:40:34 AM
No it is not just you - how can I download this MOD?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on February 13, 2007, 02:04:58 AM
Sorry guys, the downtime was due to a server problem :(. I have no idea what caused this, and am going to contact the main admin about it. While daniel15.com is on another server, the DNS and Email is hosted on the server that was down (going to daniel15.frihost.net instead may or may not work)

It should be back up now, though :)
Title: Re: SMFShop - Shop MOD
Post by: xfollowthereaperx on February 13, 2007, 02:16:21 AM
Not online for me

QuoteIndex of /

      Name                    Last modified       Size  Description

[DIR] Parent Directory        13-Feb-2007 00:18      - 
[DIR] cgi-bin/                11-Nov-2006 05:34      - 
[DIR] mail/                   24-Jan-2007 22:12      - 

Apache/1.3.36 Server at www.daniel15.com Port 80



Also since it's not working, maybe someone can make a "Buy a Board" item?
if you pay enough it'll create a message board for you
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on February 13, 2007, 03:45:37 AM
Grrr... It's a stupid DNS problem. It should be resolving to 216.32.68.250, not to 75.126.41.160. I guess you'll need to wait for the changes to propagate.
Title: Re: SMFShop - Shop MOD
Post by: perplexed on February 13, 2007, 05:54:10 PM
Daniel your site seems to be down again :(

I installed 3.0 and it installed with no errors, but when I click on the shop tab I get this:

Unknown column 'category' in 'field list'
File: /home/mysite/public_html/testforum/Sources/shop/Shop-Subs.php
Line: 108

can you tell me how to fix this please?

~thanks
Title: Re: SMFShop - Shop MOD
Post by: perplexed on February 13, 2007, 06:51:44 PM
Quote from: perplexed on February 13, 2007, 05:54:10 PM
Daniel your site seems to be down again :(

I installed 3.0 and it installed with no errors, but when I click on the shop tab I get this:

Unknown column 'category' in 'field list'
File: /home/mysite/public_html/testforum/Sources/shop/Shop-Subs.php
Line: 108

can you tell me how to fix this please?

~thanks

ok I uninstalled it and then reinstalled it and the error seems to be gone ???  does that sound ok to you?





edited to add:  I got another problem which I think is an old problem.  I get this when trying to use an item on a member from my inventory.

user not found

If I type in the user's name any case, I get that.  If I try search it I can find the member but when I click ok to select the member, it does not insert it in the shop box.  If I type in the user's original name they registered with, that works.  but not even in the search does that come up.

maybe my search is broken  :-\

is there a fix for 3.0 shop?
Title: Re: SMFShop - Shop MOD
Post by: xfollowthereaperx on February 14, 2007, 02:05:20 AM
My members have been thinking of ideas for the shop, here are some:

Insurance: can't be bashed (by bash karma), can't get credits stolen from... etc.
Buy a board: Buy a message board (forum)

I also made some for seasonal purposes

Valentines day card: Buy it and send it to a member of your choice. They'll open it up and a randomized saying will be on the inside, example "You're the admin of my heart  :-* "

Maybe some kind of birthday item?
Title: Re: SMFShop - Shop MOD
Post by: xfollowthereaperx on February 14, 2007, 02:36:26 AM
Also I'm installing Display-Name-CSS-Item

http://www.dansoftaustralia.net/downloads/file/20/Display-Name-CSS-Item.html

   Type     Action     Description
1.    Extract File    ./Sources/shop/items/ChangeDisplayNameCSS.php    
2.    Execute Modification    ./Sources/Load.php    Test failed
3.    Execute Code    installScript.php


Could you give me any pointers of what to do?

SMF Version: 1.1.2
SMFShop Version: Version Number: 3.0 (Build 12)




And does this item work with the member color mod?

Thanks!
Title: Re: SMFShop - Shop MOD
Post by: thegpg on March 04, 2007, 12:59:00 PM
Hi...Is there any possibility of adding items that can be given as gifts with an inventory visible in the person's profile and posts?  I am not sure if this has already been requested, but 90 pages are a lot LOL

I have seen this done on boards before and my posters have been requesting it.
Title: Re: SMFShop - Shop MOD
Post by: perplexed on March 06, 2007, 01:00:53 PM
there's a number of items created on Daniel's site which might fit with what you want :) and the items can be seen in the view inventory link.  There is also an item there that adds images which can be changed by you.

(you could also use the award mod to give people 'presents' (awards) )
Title: Re: SMFShop - Shop MOD
Post by: Hendricius on March 13, 2007, 04:30:47 AM
There are no Downloads available :(
Title: Re: SMFShop - Shop MOD
Post by: dumbelljunkie on March 15, 2007, 08:12:24 AM
Why doesn't it show anyicons / pics in the shop ? I had some trouble installing some mods (tempdir disapearing) but i would the icons to show in de shoplist.  How do I do that ?
Title: Re: SMFShop - Shop MOD
Post by: dadaas on March 20, 2007, 05:08:24 AM
I read all 90 pages,LOL

i was looking for addon or mod that will set different amount of points that can be earn on different boards, forums.

i didnt find any.

Did anyone maybe set it up and plz want to share it?
Title: Re: SMFShop - Shop MOD
Post by: Metal_GunBlade on March 21, 2007, 02:21:29 PM
I have installed this mod perfectly, but when I wanted to create a new board I got this message:
QuoteTemplate Parse Error!
There was a problem loading the /Themes/default/ManageBoards.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected '>' in .../Themes/default/ManageBoards.template.php on line 431

422:                      </tr><tr>
423:                         <td>
424:                            <b>', $txt['mboards_override_theme'], '</b><br />
425:                            ', $txt['mboards_override_theme_desc'], '<br /><br />
426:                         </td>
427:                         <td valign="top" align="right">
428:     //BEGIN SMFShop Shop MOD 1.3 (Build 6) code
429:    loadLanguage("Shop");
430:    echo '

431:                      <tr>

432:                         <td>
433:                            <b>', $txt['shop_count_points'], '</b><br />
434:                            ', $txt['shop_count_points_msg'], '<br /><br />
435:                         </td>

The problem seems to be here:

Parse error: syntax error, unexpected '>' in /home/globa104/public_html/forum/Themes/default/ManageBoards.template.php on line 431

I will attach my ManageBoards.template.php, PLEASE fix it as soon as you can...
Title: Re: SMFShop - Shop MOD
Post by: Metal_GunBlade on March 23, 2007, 01:36:02 PM
Guys, is there no one who can help me...

My forum is on hold because of this issue so I will really need urgent assistance...

Thanks guys!
Title: Re: SMFShop - Shop MOD
Post by: dumbelljunkie on March 23, 2007, 02:10:57 PM
Mod installed wel, no props, however the errorlog returned this error:

8: Undefined variable: item_info
Bestand: /home/vhosts/powerlifting-forum.nl/httpdocs/forum/Sources/shop/items/IncreaseKarma.php
Regel: 54


I know it has to do with translation but I can't seem to find what or where.
Anybody got this too ?
Title: Re: SMFShop - Shop MOD
Post by: renxokuken on March 25, 2007, 08:57:02 AM
you have to go to the template file, since the "Money" is hardcoded in it. Open the Display.template.php, either in the default theme folder, or in your theme folder, and look for the line

Send Money to ', $message['member']['name'].

Change the Money to whatever you want, or you can reference it to $txt[] variable, so that it uses the one in the language file.
Title: Re: SMFShop - Shop MOD
Post by: renxokuken on March 25, 2007, 09:02:41 AM
Quote from: Metal_GunBlade on March 23, 2007, 01:36:02 PM
Guys, is there no one who can help me...

My forum is on hold because of this issue so I will really need urgent assistance...

Thanks guys!

your ManageBoards.template.php is missing " '; " on line 428, as follows

<input type="checkbox" name="override_theme"', $context['board']['override_theme'] ? ' checked="checked"' : '', ' class="check" />

should be

<input type="checkbox" name="override_theme"', $context['board']['override_theme'] ? ' checked="checked"' : '', ' class="check" />';

i have the modified file attached, try it out, and let us know if that solves it.
Title: Re: SMFShop - Shop MOD
Post by: edwardsiow on March 28, 2007, 05:15:56 AM
Hi,

can anybody teach me how to setup cron job to increase the money using bank interest...

attached file is my control panel for the cron job setup...i don't know how to use...

please....teach me....

your kindness will much appreciated....

thanks
Title: Re: SMFShop - Shop MOD
Post by: Monniemoo on March 28, 2007, 05:50:02 PM
I've been searching through a lot of this topic, and I can't find the answer.

I uploaded a new picture to use for my own item. I'm positive I put it in the proper folder. I even deleted all the other pictures. But you know what happens?

(http://i51.photobucket.com/albums/f398/MonnietheAnimeCookieNinja/Image2.png)

That happens. -_-" ((Trust me, I searched through the list, my item is not there))

Can someone please help me?
Title: Re: SMFShop - Shop MOD
Post by: renxokuken on March 29, 2007, 01:34:28 AM
Quote from: edwardsiow on March 28, 2007, 05:15:56 AM
Hi,

can anybody teach me how to setup cron job to increase the money using bank interest...

attached file is my control panel for the cron job setup...i don't know how to use...

please....teach me....

your kindness will much appreciated....

thanks

you can try this, and see if it works..

inside the "Hour" column, set it to 0, this means, the cron job will execute everyday at midnight. Leave the rest of the field as it is. then inside the "Command" field, insert this..

/usr/bin/php -q /home/mortgago/public_html/forum/Sources/shop/dointerest.php > /home/mortgago/public_html/forum/interest_log.htm

remember to replace the "forum" to the location of your SMF installation..if you put all the files in the root directory, then, you can just remove the "forum" as so -->

/usr/bin/php -q /home/mortgago/public_html/Sources/shop/dointerest.php > /home/mortgago/public_html/forum/interest_log.htm

try this out, and let us know if this helps..

:D
Title: Re: SMFShop - Shop MOD
Post by: renxokuken on March 29, 2007, 01:35:37 AM
Quote from: Monniemoo on March 28, 2007, 05:50:02 PM
I've been searching through a lot of this topic, and I can't find the answer.

I uploaded a new picture to use for my own item. I'm positive I put it in the proper folder. I even deleted all the other pictures. But you know what happens?

(http://i51.photobucket.com/albums/f398/MonnietheAnimeCookieNinja/Image2.png)

That happens. -_-" ((Trust me, I searched through the list, my item is not there))

Can someone please help me?

did u upload using FTP..?? if so, then try to check if the permission of the images set correctly, or set it to 744
Title: Re: SMFShop - Shop MOD
Post by: edwardsiow on March 29, 2007, 12:18:49 PM
Quote from: renxokuken on March 29, 2007, 01:34:28 AM
Quote from: edwardsiow on March 28, 2007, 05:15:56 AM
Hi,

can anybody teach me how to setup cron job to increase the money using bank interest...

attached file is my control panel for the cron job setup...i don't know how to use...

please....teach me....

your kindness will much appreciated....

thanks

you can try this, and see if it works..

inside the "Hour" column, set it to 0, this means, the cron job will execute everyday at midnight. Leave the rest of the field as it is. then inside the "Command" field, insert this..

/usr/bin/php -q /home/mortgago/public_html/forum/Sources/shop/dointerest.php > /home/mortgago/public_html/forum/interest_log.htm

remember to replace the "forum" to the location of your SMF installation..if you put all the files in the root directory, then, you can just remove the "forum" as so -->

/usr/bin/php -q /home/mortgago/public_html/Sources/shop/dointerest.php > /home/mortgago/public_html/forum/interest_log.htm

try this out, and let us know if this helps..

:D

thanks for your advice...but error generated...
/bin/sh: /usr/bin/php: No such file or directory

can u please help me again?
Title: Re: SMFShop - Shop MOD
Post by: Monniemoo on April 04, 2007, 03:57:12 PM
Quote from: renxokuken on March 29, 2007, 01:35:37 AM
Quote from: Monniemoo on March 28, 2007, 05:50:02 PM
I've been searching through a lot of this topic, and I can't find the answer.

I uploaded a new picture to use for my own item. I'm positive I put it in the proper folder. I even deleted all the other pictures. But you know what happens?

(http://i51.photobucket.com/albums/f398/MonnietheAnimeCookieNinja/Image2.png)

That happens. -_-" ((Trust me, I searched through the list, my item is not there))

Can someone please help me?

did u upload using FTP..?? if so, then try to check if the permission of the images set correctly, or set it to 744

Thanks...but it didn't work >.< I tried setting it to 744, then setting all the images to 744 as well, then a bunch of other combinations, but everything still had the same result >.<
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on April 04, 2007, 06:24:32 PM
What type of image file are you using? As you can see the other images are.gif and .jpg works too but other types might not...I haven't tried them to find out but just wonder if that might be your problem.

Would you mind posting the image you want to use here so we can see if there's anything odd about it?
Title: Re: SMFShop - Shop MOD
Post by: Monniemoo on April 06, 2007, 08:52:04 PM
It's .gif, so it should work...

I don't think I have to show it, 'cause I found out something wierd when I was trying to post it...I would have had to upload it onto photobucket to post it, 'cause my web host won't let me post it otherwise...that's probably the problem...of course, their support forums are pretty much useless, and I can't even post in them yet...bluehost is wierd >.<
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on April 06, 2007, 11:18:57 PM
Hi everyone,
Instead of posting here, could you please post to my forums at www.daniel15.com (as mentioned in the first post in this topic)? It makes it a lot easier for me to manage everything (and keep track of what has been answered). It's too hard for me to keep track of what has and hasn't been answered in this forum...

Quotei was looking for addon or mod that will set different amount of points that can be earn on different boards, forums.
I posted some code to do this on my forum at www.daniel15.com - Search and you should find it :D

QuoteI uploaded a new picture to use for my own item. I'm positive I put it in the proper folder. I even deleted all the other pictures. But you know what happens?
What happens if you go to:
[yoursite.com]/forum/Sources/shop/item_images/
In your web browser (obviously, replace [yoursite.com] with your site's URL, and change "forum" if your forum is in a different directory)?

Quotethanks for your advice...but error generated...
/bin/sh: /usr/bin/php: No such file or directory

can u please help me again?
You're using DirectAdmin? In that case, please try /usr/local/bin/php instead of /usr/bin/php ;)
Title: Re: SMFShop - Shop MOD
Post by: Monniemoo on April 09, 2007, 05:59:27 PM
QuoteWhat happens if you go to:
[yoursite.com]/forum/Sources/shop/item_images/
In your web browser (obviously, replace [yoursite.com] with your site's URL, and change "forum" if your forum is in a different directory)?

"This page cannot be found." See for yourself.

http://www.troublebubble.org/public_html/dollcon/Sources/shop/item_images/

Edit: Ahh, well you see, I thought it was the other shop folder I have. I see my problem now. Thank you ^_^
Title: Re: SMFShop - Shop MOD
Post by: wengwashere on April 13, 2007, 03:09:41 AM
i have installed SMF Shop compatible for RC3.. now im upgrading to the latest version of SMF.. How do i "reinstall" the shop so that the bank and money for the members would still remain

tnx!
Title: Re: SMFShop - Shop MOD
Post by: rwmisner on April 14, 2007, 10:09:27 PM
i need help i have the shopmod installed but i dont see it on the forum anywhere. its under installed packages but i dont see access to it its set on the default theme and english for language. could someone please help
Title: Re: SMFShop - Shop MOD
Post by: dyota on April 22, 2007, 04:56:47 AM
I try but fail...i use default theme, smf 1.1.2, i use several mods

the fail message is:

display.template.php    >>>> test fail

What should i do
Title: Re: SMFShop - Shop MOD
Post by: rider on April 22, 2007, 05:27:01 AM
Chances are it will work.It just might not show the Shop tab.
Title: Re: SMFShop - Shop MOD
Post by: dyota on April 22, 2007, 09:34:14 AM
Yes it work in admin panel but for members the shop contain nothing. Only the credit point appear in the every post.

How's about that?
Title: Re: SMFShop - Shop MOD
Post by: SoulThief on April 23, 2007, 04:05:42 PM
Can Someone point out to me, how to integrate this mod into a different template?
Title: Re: SMFShop - Shop MOD
Post by: Teunel on April 26, 2007, 02:10:47 AM
Hey,
I wonder if it's possible to create some sort of "Badge" system.
The user would be able to buy little images, which would display next to their posts, and maybe in their profile too.
Is this possible? :)
Title: Re: SMFShop - Shop MOD
Post by: taxidriva on April 29, 2007, 12:13:55 PM
Is it possible to set some permissions so that the moderators can change (add/subtract) users cash in this mod?
Title: Re: SMFShop - Shop MOD
Post by: dumbelljunkie on May 07, 2007, 04:44:34 AM
I have no idea if it has to do with the Joomla bridge but when I try to do some forum maintenance I get these :

8: Undefined index: move_maintain_old_confirm
Bestand: /home/vhosts/powerlifting-forum.nl/httpdocs/forum/Themes/default/languages/Shop.dutch.php (eval?)
Regel: 1369

8: Undefined index: move_Destboard
Bestand: /home/vhosts/powerlifting-forum.nl/httpdocs/forum/Themes/default/languages/Shop.dutch.php (eval?)
Regel: 1355

8: Undefined index: move_maintain_old_since_days1
Bestand: /home/vhosts/powerlifting-forum.nl/httpdocs/forum/Themes/default/languages/Shop.dutch.php (eval?)
Regel: 1306

http://www.powerlifting-forum.nl/forum/index.php?option=com_smf&amp;Itemid=99999999&amp;action=maintain;sa=logs
Pas filter toe: Toon alleen de fouten met hetzelfde bericht
8: Undefined index: move_maintain_old
Bestand: /home/vhosts/powerlifting-forum.nl/httpdocs/forum/Themes/default/languages/Shop.dutch.php (eval?)
Regel: 1297


Can't find any difference witht the english.shop file..
Title: Re: SMFShop - Shop MOD
Post by: Virtual Wings on May 09, 2007, 10:46:26 PM
All the SMFShop download links on your site's down. Get some freaking mirrors. O.o
Title: Re: SMFShop - Shop MOD
Post by: Exochat on May 10, 2007, 10:05:32 AM
Hi, I was receiving the same Sub-Boards and Board Management FAILED errors on installation.

What i did was make a new test forum and add each MOD at a time to find the one that was causing the conflict with the Shop MOD and found that the TOPIC RATING MOD was the one causing these two failures.

Can anyone else that was having installation errors confirm if they also have this MOD or have had this MOD. I un-installed the Topic Ratings mod and it caused an error on uninstall and still wont let the SHOP MOD install properly even tho it would before installing the Topic Ratings Mod.

Hope this helps in some way.
Title: Re: SMFShop - Shop MOD
Post by: samo8076 on May 10, 2007, 05:25:54 PM
hi, im struggling trying to get the shop to look correct. im using the smf 1.1.2 with pnpn theme and smf shop 3.0, when i goto the shop index it looks all messed up i.e it pushes the tables of the theme (as in picture 1) but when i goto the inventory it looks how it should (as in picture 2)

(http://www.nextgenguide.com/temp/messed.jpg)

(http://www.nextgenguide.com/temp/normal.jpg)

has anybody got any ideas what it could be?
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on May 12, 2007, 11:21:00 PM
Quote from: Daniel15 on April 06, 2007, 11:18:57 PM
Hi everyone,
Instead of posting here, could you please post to my forums at www.daniel15.com (as mentioned in the first post in this topic)? It makes it a lot easier for me to manage everything (and keep track of what has been answered). It's too hard for me to keep track of what has and hasn't been answered in this forum...

QuoteCan Someone point out to me, how to integrate this mod into a different template?
Please see http://www.daniel15.com/forum/index.php/topic,39.0.html :).

QuoteI have no idea if it has to do with the Joomla bridge but when I try to do some forum maintenance I get these :
That has nothing to do with this mod. The (eval?) on the end means that it's not actually in the Shop.dutch.php file (the Shop.english.php file is not that long).

QuoteAll the SMFShop download links on your site's down. Get some freaking mirrors. O.o
What? They should not be down, and I haven't had any downtime for a while...
Title: Re: SMFShop - Shop MOD
Post by: dumbelljunkie on May 17, 2007, 02:12:29 PM
Is there anyway to check back which items where purchased by users ?
In other words, how can we log the shop, or is it logged allready ?

Users try to trick moderators by telling them an item didn;t work or they got an error andnow lost the credits. I want to prove them wrong by accessing a log if possible...
Title: Re: SMFShop - Shop MOD
Post by: rider on May 17, 2007, 02:43:38 PM
I think you can veiw the members profile and check their inventory.
Title: Re: SMFShop - Shop MOD
Post by: dumbelljunkie on May 18, 2007, 03:47:27 AM
Sure you can check their inventory, but what does it matter if they used the item and it get's removed from their inventory ?

If you don't remove the item after they used it, can they used it again and again or is it a one team deal anyway ?
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on May 18, 2007, 05:16:04 AM
Quote from: dumbelljunkie on May 18, 2007, 03:47:27 AM
Sure you can check their inventory, but what does it matter if they used the item and it get's removed from their inventory ?

If you don't remove the item after they used it, can they used it again and again or is it a one team deal anyway ?

Firstly you'd be far better asking these questions on the shop mod support forum http://www.daniel15.com/forum/index.php (http://www.daniel15.com/forum/index.php)

Secondly when you set up an item you, the admin, set the details of it including if it should be deleted after a member uses it or not. You don't have to manually remove an item from a member's inventory as if you set the item to delete from the member's inventory after use that's exactly what it will do.

There isn't a log kept of the items that are bought by each member...you could ask for it as a feature request but unless you want to code it yourself there's no guarantee that the request will result in such a feature...that said Daniel is a most helpful person and does all he can to make the system as his users want it to be.
Title: Re: SMFShop - Shop MOD
Post by: Joshsux on May 25, 2007, 12:40:08 PM
any way to disable the shop while it's crapped itsself on me from the pets mod? or just disable the show credits on front profile part?
Title: Re: SMFShop - Shop MOD
Post by: zuu on May 26, 2007, 09:58:18 AM
Hi. Is it possible to have your own items? Like a sword or something.
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on May 26, 2007, 11:01:08 AM
Yes...you can code them based on the rock item that comes with the package...it's very easy to do.
Title: Re: SMFShop - Shop MOD
Post by: zuu on May 26, 2007, 11:36:12 AM
How would I do that?
Title: Re: SMFShop - Shop MOD
Post by: Joshsux on May 26, 2007, 11:42:59 AM
go to daniels website and look at the tutorials he has on them, its a whole community over there, this isn't the place to get help on it. now.
Title: Re: SMFShop - Shop MOD
Post by: dumbelljunkie on June 06, 2007, 10:46:37 AM
Shop is great :D but could some one help me out to make the link 'Send money to' as an icon ?

I tried to copy and paste the code from the online button in the post information in display.php but it just doesn't seem to work that well ;)
Title: Re: SMFShop - Shop MOD
Post by: ShadowStriker on June 13, 2007, 11:25:36 PM
I dont see any shop administration in the admin panel
Title: Re: SMFShop - Shop MOD
Post by: KnightRobby on June 25, 2007, 07:16:21 PM
First of all, GREAT MOD!  Thanks a bunch for creating this mod - it rocks!  I would like to have the "Three Most Recent Items," below a person's username or avatar on the thread page (like this thread page, for example).  Or at least some of their items on the thread page.  Does anyone know the code for this or how I can pull it off?  I use to use a different forum system that DID do this and I'd like to see this done again.

Thanks and let me know if you can help!
Robby :)

PS:  Again, thanks a bunch for the MOD!
Title: Re: SMFShop - Shop MOD
Post by: Joshsux on June 27, 2007, 03:19:22 AM
Knight, head over to Daniels website, they might help you more over there.  http://www.daniel15.com/forum/index.php
Title: Re: SMFShop - Shop MOD
Post by: Pranav on July 01, 2007, 10:11:25 PM
Is it compatible with SMF 1.1.3? Because i am using 1.1.3 .
Title: Re: SMFShop - Shop MOD
Post by: rider on July 01, 2007, 11:46:15 PM
I was able to reinstall the shop after the upgrade.So yes it is. ;D
Title: Re: SMFShop - Shop MOD
Post by: AdhvimN on July 13, 2007, 12:58:58 PM
Type   Action   Description
1.   Execute Code   installScript.php   
2.   Extract Tree   ./Sources/shop   
3.   Extract File   ./Themes/default/languages/Shop.english.php   
4.   Extract File   ./Themes/default/ShopAdmin.template.php   
5.   Extract File   ./Themes/default/Shop.template.php   
6.   Execute Modification   ./index.php   Test successful
7.   Execute Modification   ./Sources/Load.php   Test successful
8.   Execute Modification   ./Sources/ManageBoards.php   Test successful
9.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
10.   Execute Modification   ./Sources/Post.php   Test successful
11.   Execute Modification   ./Sources/RemoveTopic.php   Test successful
12.   Execute Modification   ./Sources/Subs.php   Test successful
13.   Execute Modification   ./Sources/Subs-Boards.php   Test successful
14.   Execute Modification   ./Sources/Subs-Members.php   Test successful
15.   Execute Modification   ./Themes/default/Display.template.php   Test failed
16.   Execute Modification   ./Themes/default/index.template.php   Test successful
17.   Execute Modification   ./Themes/default/ManageBoards.template.php   Test successful
18.   Execute Modification   ./Themes/default/Profile.template.php   Test successful
19.   Execute Modification   ./Themes/default/languages/Errors.english.php   Test successful
20.   Execute Modification   ./Themes/default/languages/ManagePermissions.english.php   Test successful
21.   Execute Modification   ./Themes/default/languages/Who.english.php   Test successful

can anyone send me Display.template.php or some sort of fix to this, there seems to be no fix to this. thx in advance
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on July 13, 2007, 01:56:14 PM
Your problem is a variant of what is the most commonly reported problem on these boards...you have already added mods to your forum that have altered the files this mod seeks to edit and thus the files aren't as this mod expects to find them. Your solution is to do a manual installation of mods that show such errors.

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

You may also find the following link helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: SMFShop - Shop MOD
Post by: vinzz on July 19, 2007, 05:10:31 AM
Hi, i'm using this Shop mod almost for a month now, and it's a fantastic mod, but i have one little bug, a conflict with an other mod called: Merge Double Posts 1.0.6

When you make an other post after you're previous one it will auto merge the post if its in the specified time limit. (eg 20Minutes)
But you still get an extra point for this. Members can abause this very simple by posting alot after each other (all these posts will be automerged in one post) and then you can edit the first post again to one sentence so no proof will be left behind!

Can someone get this bug Fixed please? when it automerge it may not give an extra point.

If you have some more questions, don't hesitate too ask me :P
(i hope you all understand me, english is not very good :s )
Title: Re: SMFShop - Shop MOD
Post by: vinzz on July 19, 2007, 05:14:23 AM
Quoted previous one accedently, please delete this post!
i get an error when pressing the remove post button here!

Please try again. If you come back to this error screen, report the error to an administrator.

I cant report my own posts, it doesn't make scense

well it makes scense here! i'll Pm too the mod so this post can get deleted
Title: Re: SMFShop - Shop MOD
Post by: asdas2 on August 02, 2007, 11:53:01 PM
this mod is great .. but what happent how come there is no file to download............ ?
Title: Re: SMFShop - Shop MOD
Post by: perplexed on August 04, 2007, 09:22:02 AM
Quote from: vinzz on July 19, 2007, 05:10:31 AM
Hi, i'm using this Shop mod almost for a month now, and it's a fantastic mod, but i have one little bug, a conflict with an other mod called: Merge Double Posts 1.0.6

When you make an other post after you're previous one it will auto merge the post if its in the specified time limit. (eg 20Minutes)
But you still get an extra point for this. Members can abause this very simple by posting alot after each other (all these posts will be automerged in one post) and then you can edit the first post again to one sentence so no proof will be left behind!

Can someone get this bug Fixed please? when it automerge it may not give an extra point.

If you have some more questions, don't hesitate too ask me :P
(i hope you all understand me, english is not very good :s )

I noticed this too but no one abuses it as we dont encourage serial posting.    I don't know if its a bug though as its probably doing what its supposed to do - counting posts and giving points for same. 

The same thing would happen if you didnt have the double post mod installed.  People would still post and post and post and still get points for each post.

Maybe you could try turning off the shop points for some of the off topic areas instead?
Title: Re: SMFShop - Shop MOD
Post by: asdas2 on August 04, 2007, 10:23:07 AM
can anyone plzz gime the link to download this mod ..... i really want this .......Thanks
Title: Re: SMFShop - Shop MOD
Post by: Dragooon on August 04, 2007, 10:59:23 AM
See the Mod topic in the mod site.
If you read the description he has given links.
Title: Re: SMFShop - Shop MOD
Post by: M. Giovanne Link on August 04, 2007, 08:12:26 PM
I made the updating of SMFSfop usually and it was everything perfectly working. Now, when I access the area of the administration and I try to access the area of creation of categories and the area of groups of members he simply exhibits me the screen to begin of the forum. All the other links of this area of administration of SMFShop are working correctly. What is happening?

action=shop_cat and action=shop_usergroup dont work o.0
Title: Re: SMFShop - Shop MOD
Post by: asdas2 on August 04, 2007, 11:34:50 PM
Quote from: Dragooon on August 04, 2007, 10:59:23 AM
See the Mod topic in the mod site.
If you read the description he has given links.

ohh sorrry buddy, i didnt see the description .... Thankzzz
Title: Re: SMFShop - Shop MOD
Post by: asdas2 on August 07, 2007, 11:59:44 AM
ok ... i really want to install dis mod ... but here is the ERROR

QuoteInstall Actions
Installations actions for "SMFShop":
Installing this package will perform the following actions:  Type Action Description
1. Execute Code installScript.php 
2. Extract Tree ./Sources/shop 
3. Extract File ./Themes/default/languages/Shop.english.php 
4. Extract File ./Themes/default/ShopAdmin.template.php 
5. Extract File ./Themes/default/Shop.template.php 
6. Execute Modification ./index.php Test successful
7. Execute Modification ./Sources/Load.php Test successful
8. Execute Modification ./Sources/ManageBoards.php Test successful
9. Execute Modification ./Sources/ManagePermissions.php Test successful
10. Execute Modification ./Sources/Post.php Test successful
11. Execute Modification ./Sources/RemoveTopic.php Test successful
12. Execute Modification ./Sources/Subs.php Test successful
13. Execute Modification ./Sources/Subs-Boards.php Test successful
14. Execute Modification ./Sources/Subs-Members.php Test successful
15. Execute Modification ./Themes/default/Display.template.php Test failed  
16. Execute Modification ./Themes/default/index.template.php Test successful
17. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
18. Execute Modification ./Themes/default/Profile.template.php Test successful
19. Execute Modification ./Themes/default/languages/Errors.english.php Test successful
20. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
21. Execute Modification ./Themes/default/languages/Who.english.php Test successful


i never use this mod before ..... i downloded the fresh copy ...

can u please help me .....

i m using SMF1.1.3
theme dilber mc

Thanks



here is my disply.temp file

Disply.template (http://www.daniel15.com/forum/index.php?action=dlattach;topic=1093.0;attach=194)
Title: Re: SMFShop - Shop MOD
Post by: perplexed on August 07, 2007, 12:35:53 PM
Quote from: asdas2 on August 07, 2007, 11:59:44 AM
ok ... i really want to install dis mod ... but here is the ERROR

QuoteInstall Actions
Installations actions for "SMFShop":
Installing this package will perform the following actions:  Type Action Description
1. Execute Code installScript.php 
2. Extract Tree ./Sources/shop 
3. Extract File ./Themes/default/languages/Shop.english.php 
4. Extract File ./Themes/default/ShopAdmin.template.php 
5. Extract File ./Themes/default/Shop.template.php 
6. Execute Modification ./index.php Test successful
7. Execute Modification ./Sources/Load.php Test successful
8. Execute Modification ./Sources/ManageBoards.php Test successful
9. Execute Modification ./Sources/ManagePermissions.php Test successful
10. Execute Modification ./Sources/Post.php Test successful
11. Execute Modification ./Sources/RemoveTopic.php Test successful
12. Execute Modification ./Sources/Subs.php Test successful
13. Execute Modification ./Sources/Subs-Boards.php Test successful
14. Execute Modification ./Sources/Subs-Members.php Test successful
15. Execute Modification ./Themes/default/Display.template.php Test failed  
16. Execute Modification ./Themes/default/index.template.php Test successful
17. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
18. Execute Modification ./Themes/default/Profile.template.php Test successful
19. Execute Modification ./Themes/default/languages/Errors.english.php Test successful
20. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
21. Execute Modification ./Themes/default/languages/Who.english.php Test successful


i never use this mod before ..... i downloded the fresh copy ...

can u please help me .....

i m using SMF1.1.3
theme dilber mc

Thanks



here is my disply.temp file

Disply.template (http://www.daniel15.com/forum/index.php?action=dlattach;topic=1093.0;attach=194)

hi a quick search of this topic using

Execute Modification ./Themes/default/Display.template.php Test failed

will show you that this problem has come up before and replied to a few times.

If you read these two posts, it will tell you how to proceed:

http://www.simplemachines.org/community/index.php?topic=22396.msg1160778

http://www.simplemachines.org/community/index.php?topic=22396.msg1160830
Title: Re: SMFShop - Shop MOD
Post by: asdas2 on August 07, 2007, 01:34:24 PM
is it OK if i use all these steps here ?http://modparser.dev.dansoftaustralia.net/index.php
Title: Re: SMFShop - Shop MOD
Post by: perplexed on August 07, 2007, 02:30:49 PM
Quote from: asdas2 on August 07, 2007, 01:34:24 PM
is it OK if i use all these steps here ?http://modparser.dev.dansoftaustralia.net/index.php

yes follow the instructions in the modparser.  If you get stuck you could try asking on daniel's board http://www.daniel15.com/forum/index.php
Title: Re: SMFShop - Shop MOD
Post by: asdas2 on August 07, 2007, 10:06:15 PM
some one from DANIEL's board told me to go ahead even though m getting that error ... and after that upload the other display.temp file which he gave me to replace with current one ...........
Title: Re: SMFShop - Shop MOD
Post by: askepott on August 08, 2007, 08:57:55 AM
how do i change the items on the "shop" ?
Title: Re: SMFShop - Shop MOD
Post by: askepott on August 08, 2007, 09:01:32 AM
^nevermind. I found the answer to my question :D

Title: Re: SMFShop - Shop MOD
Post by: Blade14228 on August 19, 2007, 08:43:31 AM
Okay, a little bit of a confusing situation here, I downloaded the fresh copy for 1.1.3. Uploaded, did apply. Apply returns an error saying that the permissions have to be writable. All files / folders are 777 in packages folder. Went to SMF Helper. They said to create a temp directory. I did. It went to apply giving me the display.template.php problems. Installed anyway, manually edited that file. Went to the ACP, no links there, or on the templates for the shop. When I checked, all the files never uploaded, they only just moved into the temp folder. The edits were never done. The folder for the shop wasn't created. Please help!
Title: Re: SMFShop - Shop MOD
Post by: JoshieDaMan on August 20, 2007, 11:28:10 PM
There isn't shop mod downloadable any more.:(
Title: Re: SMFShop - Shop MOD
Post by: Fatherguido on August 20, 2007, 11:39:37 PM
Quote from: JoshieTheGreat on August 20, 2007, 11:28:10 PM
There isn't shop mod downloadable any more.:(
Get Shop Mod here (http://www.dansoftaustralia.net/products/smf-mods/smfshop.htm)
Title: Re: SMFShop - Shop MOD
Post by: askepott on August 22, 2007, 02:39:28 AM
Quote from: askepott on August 08, 2007, 08:57:55 AM
how do i change the items on the "shop" ?

anyone wants to answer my question again? i reinstalled the mod on my forum ; and i forgot where can i access the shop on my admin panel.. i don't see any links to it on my admin panel. help anyone ?
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on August 22, 2007, 05:18:17 AM
If it installed properly and you are using English and not English utf8 as your forum language (see ACP>Server Settings to change this) and you are using the SMF Default theme then it should be at or near the bottom of your ACP.

If after checking the above it isn't there the installation doesn't appear to have gone properly...please follow the links below and proceed as per a manual installation checking to see that the files and edits are in place and editing as needed to make it so.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

You would add an item by uploading it, via ftp, to your items directory in your Sources directory and any images for it to the item images directory also then use the ACP shop area to install the item with any associated image.

BTW questions regarding this mod are best asked on http://www.daniel15.com/forum/index.php (http://www.daniel15.com/forum/index.php)
Title: Re: SMFShop - Shop MOD
Post by: Abangyarudo on August 22, 2007, 05:23:24 AM
Quote from: TrueSatan on August 22, 2007, 05:18:17 AM
If it installed properly and you are using English and not English utf8 as your forum language (see ACP>Server Settings to change this) and you are using the SMF Default theme then it should be at or near the bottom of your ACP.

If after checking the above it isn't there the installation doesn't appear to have gone properly...please follow the links below and proceed as per a manual installation checking to see that the files and edits are in place and editing as needed to make it so.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

You would add an item by uploading it, via ftp, to your items directory in your Sources directory and any images for it to the item images directory also then use the ACP shop area to install the item with any associated image.

BTW questions regarding this mod are best asked on http://www.daniel15.com/forum/index.php (http://www.daniel15.com/forum/index.php)


got a question does this mod have the same exploit as the one on Joomola?
Title: Re: SMFShop - Shop MOD
Post by: Tony Reid on August 22, 2007, 05:26:09 AM
No - that what a different programme entirely.
Title: Re: SMFShop - Shop MOD
Post by: Abangyarudo on August 22, 2007, 07:00:51 AM
Quote from: Tony on August 22, 2007, 05:26:09 AM
No - that what a different programme entirely.
Thanks I figured that but wanted to make sure
Title: Re: SMFShop - Shop MOD
Post by: askepott on August 22, 2007, 07:51:01 AM
truesatan, thanks. was able to find it.. :)
Title: Re: SMFShop - Shop MOD
Post by: avidum on August 23, 2007, 04:02:48 PM
Quote from: Fatherguido on August 20, 2007, 11:39:37 PM
Quote from: JoshieTheGreat on August 20, 2007, 11:28:10 PM
There isn't shop mod downloadable any more.:(
Get Shop Mod here (http://www.dansoftaustralia.net/products/smf-mods/smfshop.htm)

Looks like the site is down.

It's back up. ;)
Title: Re: SMFShop - Shop MOD
Post by: renxokuken on September 09, 2007, 11:58:02 PM
hi there..is there a way to make the member's ranking/group escalate based on shop's money (in my case, i rename it to credits) in someones inventory?? i really need this feature, since currently the ONLY option to escalate ranking/group is through post count (am i right..)..

tq so much
Title: Re: SMFShop - Shop MOD
Post by: scrawl on September 10, 2007, 04:33:01 AM
Quote from: KnightRobby on June 25, 2007, 07:16:21 PM
First of all, GREAT MOD!  Thanks a bunch for creating this mod - it rocks!  I would like to have the "Three Most Recent Items," below a person's username or avatar on the thread page (like this thread page, for example).  Or at least some of their items on the thread page.  Does anyone know the code for this or how I can pull it off?  I use to use a different forum system that DID do this and I'd like to see this done again.

Thanks and let me know if you can help!
Robby :)

PS:  Again, thanks a bunch for the MOD!

http://www.daniel15.com/forum/index.php/topic,1175.0.html
Title: Re: SMFShop - Shop MOD
Post by: Roger Rabbit on September 11, 2007, 06:43:54 AM
Good day....i'm planning to use SMFShop....however, upon installing i received an error:


Installing this package will perform the following actions:
Type Action Description
1. Execute Code installScript.php
2. Extract Tree ./Sources/shop
3. Extract File ./Themes/default/languages/Shop.english.php
4. Extract File ./Themes/default/ShopAdmin.template.php
5. Extract File ./Themes/default/Shop.template.php
6. Execute Modification ./index.php Test failed
7. Execute Modification ./Sources/Load.php Test successful
8. Execute Modification ./Sources/ManageBoards.php Test successful
9. Execute Modification ./Sources/ManagePermissions.php Test successful
10. Execute Modification ./Sources/Post.php Test successful
11. Execute Modification ./Sources/RemoveTopic.php Test successful
12. Execute Modification ./Sources/Subs.php Test successful
13. Execute Modification ./Sources/Subs-Boards.php Test successful
14. Execute Modification ./Sources/Subs-Members.php Test successful
15. Execute Modification ./Themes/default/Display.template.php Test successful
16. Execute Modification ./Themes/default/index.template.php Test successful
17. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
18. Execute Modification ./Themes/default/Profile.template.php Test successful
19. Execute Modification ./Themes/default/languages/Errors.english.php Test successful
20. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
21. Execute Modification ./Themes/default/languages/Who.english.php Test successful


Any idea on how to get it working...thanks in advance...
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on September 11, 2007, 07:17:07 AM
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: SMFShop - Shop MOD
Post by: Roger Rabbit on September 13, 2007, 07:06:51 AM
i tried to re-install all the mods currently installed in my forum and i installed SMFShop and it is now working great...thanks!
Title: Re: SMFShop - Shop MOD
Post by: JiGs013 on September 14, 2007, 04:59:09 AM


when i already installed SMF Shop in SMF 1.1.3 it works but i cant see the Shop CP on the Admin Panel ony a Empty Blocks on my lower left part admin panel

heres my test forum image.

click *here* (http://www.ragnafiles.com/uploads/1189804272.jpg)

click *here* (http://www.ragnafiles.com/uploads/1189842538.jpg)
Title: Re: SMFShop - Shop MOD
Post by: rider on September 14, 2007, 05:15:48 AM
Quote from: JiGs013 on September 14, 2007, 04:59:09 AM


when i already installed SMF Shop in SMF 1.1.3 it works but i cant see the Shop CP on the Admin Panel ony a Empty Blocks on my lower left part admin panel

heres my test forum image.

click *here* (http://www.ragnafiles.com/uploads/1189804272.jpg)

click *here* (http://www.ragnafiles.com/uploads/1189842538.jpg)
try going to admin>server settings>forum langauge>if set to english-utf8.php switch to engish.php and see if that works.or take a copy of the shop.english.php and rename it to shop.english-utf8.php.Add it to your themes langauge folder.
Title: Re: SMFShop - Shop MOD
Post by: JiGs013 on September 15, 2007, 02:30:05 AM

may i have a manual installation for SMF Shop coz when i try to install it on my live forum

Execute Modification  ./index.php  Test failed
7. Execute Modification ./Sources/Load.php Test successful
8. Execute Modification ./Sources/ManageBoards.php Test successful
9. Execute Modification ./Sources/ManagePermissions.php Test successful
10. Execute Modification ./Sources/Post.php Test successful
11. Execute Modification ./Sources/RemoveTopic.php Test successful
12. Execute Modification ./Sources/Subs.php Test successful
13. Execute Modification ./Sources/Subs-Boards.php Test successful
14. Execute Modification ./Sources/Subs-Members.php Test successful
15. Execute Modification ./Themes/default/Display.template.php Test successful
16. Execute Modification ./Themes/default/index.template.php Test successful
17. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
18. Execute Modification ./Themes/default/Profile.template.php Test successful
19. Execute Modification ./Themes/default/languages/Errors.english.php Test successful
20. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
21. Execute Modification ./Themes/default/languages/Who.english.php Test successful
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on September 15, 2007, 04:03:07 AM
Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: SMFShop - Shop MOD
Post by: Baby Blue on September 15, 2007, 07:56:03 AM
i have SMF 1.1.3 and installed a shop but i had no links in my admin area to restock it or to do anything with it.

I was wondering what was wrong with my settings or what do i do

http://boards-express.com/Forum/index.php
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on September 15, 2007, 08:43:40 AM
The chances are that you have either a wrong setting in ACP>Server Settings where you should set your forum language to English and not English utf8 or that you are using a custom theme...anything other than the SMF Default theme is a custom theme...if that is the case then like almost all mods this mod will need to be manually installed into your custom theme though it should be working properly in the SMF Default theme...to see what to do use the links I provided in reply #1426 above and use the way the default theme is edited as a template to manually edit your custom theme.
Title: Re: SMFShop - Shop MOD
Post by: Baby Blue on September 15, 2007, 09:12:10 AM
ok following your links that you have told me about

im using the SMF default theme. i have no other language choices other than utf8 ones. as for the codes Im totally lost.

i dont want to mess too much with things i dont know about :(

Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on September 15, 2007, 10:26:44 AM
Are you saying that you don't have the option to set to English in ACP>Server Settings and can only set to English utf8? If so that is probably the cause of your problems.

If that is what you are saying then surely you would have seen fail reports when you tried to install mods?

If you are saying, as appears to be the case, that you can't select English as your language choice then there must have been something seriously wrong with your original installation...if that is the case it could be fixed but an experienced admin would be needed...he/she would need to install the English language directories (one for each theme) and edit any and all mods you are trying to use into them
Title: Re: SMFShop - Shop MOD
Post by: Dr.Vista on September 17, 2007, 05:49:58 PM
Why Do I Get This Following Error When I Use A Item From My Shop??
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
ORDER BY mem.lngfile
LIMIT 0' at line 8
File: /home/drvista/public_html/forum/Sources/Subs-Post.php
Line: 774

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.3, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.
Title: Re: SMFShop - Shop MOD
Post by: Minare on October 09, 2007, 12:38:54 AM
I don't see a shop administration in my admin panel.

Weird ?
Title: Re: SMFShop - Shop MOD
Post by: askepott on October 11, 2007, 04:22:29 AM
hi. how do i reset the credit count w/o uninstalling the mods?
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on October 11, 2007, 04:42:06 AM
@ Dr.Vista

That error is probably unrelated to the mod...it says that your forum database wasn't properly upgraded when you upgraded the files from SMF 1.1.2 Please see if you still have the upgrade package in your packages directory or on your local computer...if so please get it and extract upgrade.php from it...put upgrade.php into your forum root and visit it with your browser to make it run...this will upgrade your database. In case you don't have the package I've attached upgrade.php to this posting.

@ Minare

If you are using a custom theme the mod won't install into it...you have to install it manually. Like almost all mods this one only automatically installs into the SMF Default theme.

@ askepott

ACP>Member's Inventory edit each member there
Title: Re: SMFShop - Shop MOD
Post by: scrawl on October 11, 2007, 08:37:18 PM
Quote from: askepott on October 11, 2007, 04:22:29 AM
hi. how do i reset the credit count w/o uninstalling the mods?

instead of doing it individually like TrueSatan was saying just install the below as an item with 0 stock and just give yourself the item then use it and it'll reset the bank values or pocket values or both to whatever you set.


Save as ChangeBal.php and put in your shops items folder

<?php
if (!defined('SMF'))
die('Hacking attempt...');

class 
item_ChangeBal extends itemTemplate {
    function 
getItemDetails() {
    
    $this->authorName 'inkstains';
$this->authorWeb 'http://www.daniel15.com/forum/index.php';
$this->authorEmail '';
    
        
$this->name "Change Balance";
        
$this->desc "Change the balances of Bank and Pocket";
        
$this->price 10;
        
$this->require_input true;
$this->can_use_item true;
    }

function getUseInput() {

global $context$scripturl$settings$txt;
return '<br />Change Money Bank: &nbsp;&nbsp;<select name="resetB" size="1" id="resetB">
        <option value="0">No</option>
<option value="1">Yes</option>
  </select>
   Change Money Bank Value: &nbsp;&nbsp;<input type="text" name="info1" value="40" /><br />
<br />Change Money Pocket: <select name="resetP" size="1" id="resetP">
        <option value="0">No</option>
<option value="1">Yes</option>
  </select>
   Change Money Pocket Value: <input type="text" name="info2" value="40" /><br />
  '
;

    }


function onUse() {
        global 
$db_prefix$ID_MEMBER$item_info;

       
if ($_POST['resetB'] && $_POST['resetP'] == 1
{
db_query("UPDATE {$db_prefix}members
  SET moneyBank = 
{$_POST['info1']}
  "
__FILE____LINE__);
  
db_query("UPDATE {$db_prefix}members
  SET money = 
{$_POST['info2']}
  "
__FILE____LINE__);
  
        return 
"Money Bank and Money Pocket has been set to {$_POST['info1']} and {$_POST['info2']} respectively";
        
        die(
"dead");
}

elseif ($_POST['resetB'] == && $_POST['resetP'] == 0
{
db_query("UPDATE {$db_prefix}members
  SET moneyBank = 
{$_POST['info1']}"__FILE____LINE__);
        return 
"Money Bank has been reset {$_POST['info1']}";
        
        die(
"dead");
}

elseif ($_POST['resetB'] == && $_POST['resetP'] == 1
{
db_query("UPDATE {$db_prefix}members
  SET money = 
{$_POST['info2']}"__FILE____LINE__);
        return 
"Money Pocket has been reset {$_POST['info2']}";
        
        die(
"dead");
}

else
{

return "Please make sure you fill in all options";

}

    }

}

?>
Title: Re: SMFShop - Shop MOD
Post by: Dumpling on October 12, 2007, 02:00:20 AM
I know the description said this mod works on 1.1.3, but does anyone know if it works on 1.1.4?

Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on October 12, 2007, 04:01:35 AM
Yes...the package actually covers SMF 1.1.1-1.1.99
Title: Re: SMFShop - Shop MOD
Post by: adicrst on October 12, 2007, 08:59:57 AM
Hi daniel,

i have a problem with your mod in combination with the pn-pn theme. I've posted on your forum, but i think u are busy and u don't enter to much over there so i'll post it here

Like i said, i'm using Shop 3.0 on smf 1.1.4 with pn-pn for 1.1.4 and i have this problems

1. After the installation of the mod, the amount of money and send money to X desn't appear above the avatar.

2. after fallowing your steps for the button on this theme, i get this problem:

(http://img76.imageshack.us/img76/5086/46047391vv6.th.jpg) (http://img76.imageshack.us/my.php?image=46047391vv6.jpg)

if someone else can help, please do

Title: Re: SMFShop - Shop MOD
Post by: askepott on October 14, 2007, 12:45:29 AM
thanks! it worked :)
Title: Re: SMFShop - Shop MOD
Post by: Teunel on October 25, 2007, 01:02:44 PM
Hi,

I'm using a Dutch version, and want the whole Shop to be in Dutch too. However, I cannnot find the following sentenced in shop.english.php

"Find Members" - when sending somebody Credits
"Pages" - at the bottom of all my items

"Paid/Use" - Your Inventory

Is this hardcoded?
Title: Re: SMFShop - Shop MOD
Post by: DeviantMetal on October 25, 2007, 05:24:51 PM
When I look at a users profile, I see credits twice, which file and what should I edit in that file?

Posts:     1580 (5.524 per day)
Credits:    $124.00 DD
Credits:    $124.00 DD

everything else seems to work except there is no button, but thats the way I wanted it anyways.
Title: Re: SMFShop - Shop MOD
Post by: lwbbs on October 26, 2007, 02:06:16 PM
Is it correct in install_SMF1-1.xml file?
Quote
    <file name="$sourcedir/Load.php">
        <operation>
            <search position="before"><![CDATA[IFNULL(pg.groupName, '') AS post_group, mem.is_activated,]]></search>
            <add><![CDATA[ mem.money,]]></add>
        </operation>
        <operation>
            <search position="before">IF(mem.ID_GROUP = 0 OR mg.stars = '', pg.stars, mg.stars) AS stars, </search>
            <add>mem.money, </add>
        </operation>

Title: Re: SMFShop - Shop MOD
Post by: ArkServer on October 29, 2007, 04:47:21 PM
Does anyone know how to UP the max credit? its stuck at 9999999.99 or someting but i need to have it so that it can hold a higher amount.

//edit


You need You have: 30906 ISK

into this:
You need: 30906 ISK
You have: x amount..

Title: Re: SMFShop - Shop MOD
Post by: DeviantMetal on October 29, 2007, 10:44:27 PM
Quote from: DeviantMetal on October 25, 2007, 05:24:51 PM
When I look at a users profile, I see credits twice, which file and what should I edit in that file?

Posts:     1580 (5.524 per day)
Credits:    $124.00 DD
Credits:    $124.00 DD

everything else seems to work except there is no button, but thats the way I wanted it anyways.

OK,

so here's a chunk of the code where the problem is *i think*

echo '
<tr>
<td><b>', $txt[86], ': </b></td>
<td>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</td>
<!-- Begin SMFShop MOD New version -->
</tr><tr>
<td><b>Credits:</b></td>
<td>', $modSettings['shopCurrencyPrefix'], $context['member']['money'], $modSettings['shopCurrencySuffix'], '</td>
<!-- End SMFShop MOD -->

<!-- Begin SMFShop MOD New version -->
</tr><tr>
<td><b>Credits:</b></td>
<td>', $modSettings['shopCurrencyPrefix'], $context['member']['money'], $modSettings['shopCurrencySuffix'], '</td>
<!-- End SMFShop MOD -->

</tr><tr>
<td><b>', $txt[87], ': </b></td>
<td>', (!empty($context['member']['group']) ? $context['member']['group'] : $context['member']['post_group']), '</td>
</tr>';



I tried to just removed this bit of code, but the profile doesn't seem to work after that. :(
<!-- Begin SMFShop MOD New version -->
</tr><tr>
<td><b>Credits:</b></td>
<td>', $modSettings['shopCurrencyPrefix'], $context['member']['money'], $modSettings['shopCurrencySuffix'], '</td>
<!-- End SMFShop MOD -->


Title: Re: SMFShop - Shop MOD
Post by: ArkServer on November 05, 2007, 04:26:54 PM
Quote from: ArkServer on October 29, 2007, 04:47:21 PM
Does anyone know how to UP the max credit? its stuck at 9999999.99 or someting but i need to have it so that it can hold a higher amount.

//edit


You need You have: 30906 ISK

into this:
You need: 30906 ISK
You have: x amount..



Anyone?
Title: Re: SMFShop - Shop MOD
Post by: Mother Goose on November 07, 2007, 01:33:32 AM
In the shop area "add/edit/delete" item "Send Admin an e-mail" (which is now "Member Recognition Icon for the Post Profile") some code needs to be done to include the content of the "special field" in to email.

What would you put in this field:
{$_POST["Icon Number and member name"]= <input type}


to get this info:
Enter Icon Number and Members name: <input type="text" name="Enter Icon Number and Members name" />
sent in the email to me?

What I have done is set up through the awards mod icons for members to buy in the shop, and have displayed in other members forum post profile under their Avatar. Icons like... (http://i157.photobucket.com/albums/t41/HomesteadHeaven/Member%20Recgnition%20Icons/Troop_Support_Icon.gif) "Troop Support".... (http://i157.photobucket.com/albums/t41/HomesteadHeaven/Member%20Recgnition%20Icons/devil7.gif) "You little Devil You!" .... (http://i157.photobucket.com/albums/t41/HomesteadHeaven/Member%20Recgnition%20Icons/tini-bluering.gif) "You're a Gem" ... (http://i157.photobucket.com/albums/t41/HomesteadHeaven/Member%20Recgnition%20Icons/superman.gif) "I think you are Super".

This page can be found at  "Member Recognition Icons" HEN Forums  (http://homesteadexchangenetwork.net/smf/index.php?topic=773.0)

Can someone help me figure this out please?   

Thank you!  ;)
Title: Re: SMFShop - Shop MOD
Post by: Mother Goose on November 08, 2007, 12:13:31 AM
It's looking like no one is supporting this mod any longer. No replies at the support forum, and none here. Just an FYI if you plan to install it.
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on November 08, 2007, 02:55:14 PM
@ DeviantMetal

Please review all the edits the mod makes as it is likely that other of your files also contain duplicate code and that is itself likely to be why the mod doesn't work for you.

@ Mother Goose

We are all volunteers here, sometimes real life limits the time we can spend helping other members...none of us are paid for doing support work. It is likely that you will get support if you are asking how to get an unmodified version of the mod to work or dealing with errors from it but less likely that you will get people to work on modifications of the mod.

@ Teunel

Yes, by the looks of it. I'll try to investigate further when I have more free time.

@ Everyone

Please remember that you haven't had to pay for this mod and that the author is a person who is still studying and his studies come first.
Title: Re: SMFShop - Shop MOD
Post by: musicman8oh8 on November 19, 2007, 10:53:03 AM
O.k, I have a slight problem that I hope someone can help me out with. My problem is it seems that no one has credits any more after I had the latest mods installed. anonymous board, social bookmarks, welcome topic (which the config is not working-help also pls.). If I go to the shop it shows members credits in the pocket and or bank but if I go to the withdraw/deposit screen it says you have no credits in either but then if I click on members inventory it shows the amount in pocket and whats in the bank. So basically it isn't showing the amount a member has in pocket under their profile and when actually accessing the bank or wanting to buy an item.... Is there any "known" conflicts with certain other mods installed?

Standing by for assistance (paid if need be) ....

found this in the file, not sure if it was there before or after the lasted mod installs;

fatal_error('ERROR: The \'do\' action you passed was not valid!');
   }
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on November 19, 2007, 11:24:51 AM
I would approach the problem this way...install a completely new test forum...add the shop mod then each of the suspect mods one at a time testing for issues/conflicts. I know of none that would cause your problem but the above process would show one up fairly easily and painlessly. You may have problems in your forum other than any of these mods that are causing your issues...again testing the installation in a test forum is probably the best way to highlight problems. It isn't difficult to make a fresh install of the files on your existing database so that would be a possibility if the test forum doesn't spot any problems.
Title: Re: SMFShop - Shop MOD
Post by: trekkie2444 on November 19, 2007, 09:22:21 PM
Where can I find the item that has the changing your display name, and has dropdown menus with the style, color, and font?
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on November 19, 2007, 09:44:10 PM
I think you probably mean one I wrote...I'll add it below but it should be on the relevant topic on the SMF Shop support forum.

I wrote several such items each with increasing levels of options...I'll provide the one with all of the options below.
Title: Re: SMFShop - Shop MOD
Post by: trekkie2444 on November 19, 2007, 10:59:40 PM
Crap, I forgot how to install these.
Title: Re: SMFShop - Shop MOD
Post by: trekkie2444 on November 19, 2007, 11:03:47 PM
Never mind, I got it working right. Thanks.
Title: Re: SMFShop - Shop MOD
Post by: robinsongo on November 21, 2007, 12:52:41 AM
Hi, I upgraded my SMF to 1.1.4 then I installed this SMF Shop mod, where do I find the SMF Shop Manager?
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on November 21, 2007, 04:17:26 AM
It should be in your ACP...if you are using a custom theme the mod will have to be edited into it manually...this is true of almost all mods...and anything bar the SMF default theme is a custom theme...also:

You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.
Title: Re: SMFShop - Shop MOD
Post by: musicman8oh8 on November 23, 2007, 03:36:19 PM
Quote from: TrueSatan on November 19, 2007, 11:24:51 AM
I would approach the problem this way...install a completely new test forum...add the shop mod then each of the suspect mods one at a time testing for issues/conflicts. I know of none that would cause your problem but the above process would show one up fairly easily and painlessly. You may have problems in your forum other than any of these mods that are causing your issues...again testing the installation in a test forum is probably the best way to highlight problems. It isn't difficult to make a fresh install of the files on your existing database so that would be a possibility if the test forum doesn't spot any problems.

Thanks for the advice and I've done just that, set up a test platform and am installing the same things as on my main forum 1 @ a time so far so good but on my main forum I did a fresh install of the shop mod which I don't see any problems with except that it's not showing the option for integrating the arcade pass in the settings of the shop although I have the arcade integration mod installed... any ideas?
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on November 23, 2007, 04:31:22 PM
The arcade integration mod has been abandoned for a while now and it has issues with arcades whose version is newer than that for which it was designed...if you particularly want that function the best way to get it is via the E2.4.2 arcade version that has it ready built in and is a derivative of current versions of SMF Arcade.
Title: Re: SMFShop - Shop MOD
Post by: musicman8oh8 on November 23, 2007, 04:38:22 PM
Quote from: TrueSatan on November 23, 2007, 04:31:22 PM
The arcade integration mod has been abandoned for a while now and it has issues with arcades whose version is newer than that for which it was designed...if you particularly want that function the best way to get it is via the E2.4.2 arcade version that has it ready built in and is a derivative of current versions of SMF Arcade.


It was working before I installed the social bookmars & welcome topic mods which have since been deleted. I'm currently running E-Arcade 2.4.2 and SMF Arcade 2.0.9, those are the latest versions correct?
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on November 23, 2007, 05:15:18 PM
No...firstly you shouldn't be running both arcades...one or the other but not both...secondly the latest version of SMF Arcade is 2.0.11. It is very possible that those mods you removed may have disrupted the operation of other, remaining, mods. If you made backups of your files and database the file backups are probably your easiest solution to this problem.

If you didn't make proper backups you had best backup your files and database now and having done so examine the latest forum installation package and use the files and directories in it to replace those in your forum save for the Attachments directory, Settings.php and Settings_bak.php all in your forum root...following that you would need to re-install all your mods and themes.
Title: Re: SMFShop - Shop MOD
Post by: musicman8oh8 on November 23, 2007, 05:45:47 PM
oh wow! I had no idea that there should only be 1 or the other and that I don't have the latest version. This is starting to get above my head.... so I think I'm just going to do a fresh install of the forum and hope that it works and just try to keep my members tables....  :(
Title: Re: SMFShop - Shop MOD
Post by: scrawl on November 24, 2007, 06:46:25 AM
daniels website has been hacked???
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on November 24, 2007, 07:25:20 AM
Please explain?
Title: Re: SMFShop - Shop MOD
Post by: scrawl on November 24, 2007, 07:55:09 AM
looks as though someone has hacked his site. nothing to serious just some pop-ups and a kylie minogue or someone music video.

just had another look and seems everything is back to normal. weird.
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on November 25, 2007, 02:32:11 AM
Any support posts should be posted to www.daniel15.com. Please do not post them here, it's too hard to keep up with everyone's questions, and I probably won't reply to questions posted in this topic.

Regarding the "hack", it was an XSS hole in SMFShop. This has been fixed now, and the fix is on the www.daniel15.com forums (please see http://www.daniel15.com/forum/index.php/topic,1331.html and update your shop immediately!).

QuoteDoes anyone know how to UP the max credit? its stuck at 9999999.99 or someting but i need to have it so that it can hold a higher amount.
Take a look at http://www.daniel15.com/forum/index.php/topic,26.0.html.
Title: Re: SMFShop - Shop MOD
Post by: JungleFever on November 29, 2007, 04:05:53 PM
Ok, I go into Admin/Shop/general settings and you can only use 1 width & height for the images.

In my shop, I added 3 categories...blinkies, avatars, & siggys.  I don't like only having 1 size because the blinkies on average are 150 x 20 pixels...avatars 100 x 100 & the siggy size we use is 300 x 300.

With only having the option to set 1 size, 1 or more of those items isn't going to look good because it'll be either too big or too small in the preview.

Is there a way to have different sizes for the images?  Is there somewhere I can change this?
Title: Re: SMFShop - Shop MOD
Post by: JungleFever on December 01, 2007, 04:36:11 PM
It's been over 24 hours so I'm bumping this.  I have had the same question (as well as 2 other people) at Daniel's forum for 1 or 2 weeks now.  Of course he's busy with school and everything else so I'm trying to be patient. LOL

Is there anyone at all that can answer the question for me?  I know I've seen forums with different sized items in there shop so it must be possible but I just don't know how to do it.

Please oh please can someone answer this for me.  Thanks in advance and I hope everyone has an awesome weekend!
Title: Re: SMFShop - Shop MOD
Post by: theS3X on December 01, 2007, 08:07:31 PM
I am trying to install this script and it says that at least one error was encountered during the test installation and that the test failed on /Sources/Subs-Boards.php.  Is this a huge thing or should I be okay continuing on with the install?  I currently am using the Gold Knight theme and have the following mods already installed:

nneonneo's AJAX ShoutBox  - 1.10
Custom Board Sort - 1.0.1
Welcome Topic Mod - 1.0
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on December 01, 2007, 08:42:49 PM
You should not continue the Package Manager installation; you need to do a manual installation of the mod.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: SMFShop - Shop MOD
Post by: theS3X on December 01, 2007, 09:04:48 PM
NEVERMIND!  I figured it out.
Title: Re: SMFShop - Shop MOD
Post by: Mother Goose on December 02, 2007, 02:42:40 AM
Quote from: JungleFever on December 01, 2007, 04:36:11 PM
It's been over 24 hours so I'm bumping this.  I have had the same question (as well as 2 other people) at Daniel's forum for 1 or 2 weeks now.  Of course he's busy with school and everything else so I'm trying to be patient. LOL

Is there anyone at all that can answer the question for me?  I know I've seen forums with different sized items in there shop so it must be possible but I just don't know how to do it.

Please oh please can someone answer this for me.  Thanks in advance and I hope everyone has an awesome weekend!

At the risk of never getting help with this issue, I have to say I have been waiting on help both here and at Daniel's forum for a few days short of a month. This has not been my experience with smf at all, so no guilt by association implied or intended. I also must add that TrueSatan has been highly responsive and as helpful as possible. I thank you for that TS.

I work a 40 hour week, and work at least another 40 hours volunteering my time and money to make my charitable/nonprofit org keep running. By installing this mod I put all my time and resources at risk.  If there is no support for it, and believe me I have tried to pay someone to solve this issue and they could not, then it should not be supported by smf. Or, at the very least a clear statement this mod is not being supported, proceed at your own risk, should be made. 

Volunteers are wonderful and help many people improve their lives. I believe we should all give back to the community to the best of our abilities. Once I start to help a family through my org, I am ethically obligated to follow through.

To answer your question JungleFeaver, in the c-panel for the shop is a place to set the image frame size. All images must be the size you choose. If one is larger, you will need to resize it constraining the proportions. If the image frame is smaller then your selected size, you will need to increase the "canvas size" only.

If you do not know how to do this, please feel free to PM me and I will do your images for you.
Title: Re: SMFShop - Shop MOD
Post by: Tony Reid on December 02, 2007, 05:42:25 AM
I would imagine that the answer to your question is to alter the shop.template.php file - so that it doesn't use tables - or to redesign the layout. Otherwise looking at the current code -I think it will push descriptions off the side of the page.

Perhaps an alternative is to automatically resize the pics using GD2?

Anyhow, in short the dirty way to do it - you could try this.... find this code in Shop.template.php

(I havent tested this! - so backup your Shop.template.php file so that you can restore it if it fails!)



// Loop through all the items
foreach ($context['shop_inv']['items'] as $item)
{
echo '
<tr valign="top" class="', $alternating, '">
<td>
<img border="0" width="', $modSettings['shopImageWidth'], '" height="', $modSettings['shopImageHeight'], '" src="', $boardurl, '/Sources/shop/item_images/', $item['image'], '" alt="Item Image" />
</td>
<td style="padding-bottom: 2ex;" width="20%">
', $item['name'], '
</td>
<td>
', $item['desc'], '
</td>';


and change it to:


// Loop through all the items
foreach ($context['shop_inv']['items'] as $item)
{
echo '
<tr valign="top" class="', $alternating, '">
<td>
<img border="0"  src="', $boardurl, '/Sources/shop/item_images/', $item['image'], '" alt="Item Image" />
</td>
<td style="padding-bottom: 2ex;">
', $item['name'], '
</td>
<td>
', $item['desc'], '
</td>';
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 02, 2007, 06:02:38 AM
The change Tony posted above should work fine :)
Title: Re: SMFShop - Shop MOD
Post by: lucasramiro on December 02, 2007, 08:40:36 AM
Super good mod! You can see it in use at my website:
http://x-f.uni.cc/
Title: Re: SMFShop - Shop MOD
Post by: Mother Goose on December 02, 2007, 08:59:57 AM
Quote from: Mother Goose on November 07, 2007, 01:33:32 AM
In the shop area "add/edit/delete" item "Send Admin an e-mail" (which is now "Member Recognition Icon for the Post Profile") some code needs to be done to include the content of the "special field" in to email.

What would you put in this field:
{$_POST["Icon Number and member name"]= <input type}


to get this info:
Enter Icon Number and Members name: <input type="text" name="Enter Icon Number and Members name" />
sent in the email to me?

What I have done is set up through the awards mod icons for members to buy in the shop, and have displayed in other members forum post profile under their Avatar. Icons like... (http://i157.photobucket.com/albums/t41/HomesteadHeaven/Member%20Recgnition%20Icons/Troop_Support_Icon.gif) "Troop Support".... (http://i157.photobucket.com/albums/t41/HomesteadHeaven/Member%20Recgnition%20Icons/devil7.gif) "You little Devil You!" .... (http://i157.photobucket.com/albums/t41/HomesteadHeaven/Member%20Recgnition%20Icons/tini-bluering.gif) "You're a Gem" ... (http://i157.photobucket.com/albums/t41/HomesteadHeaven/Member%20Recgnition%20Icons/superman.gif) "I think you are Super".

This page can be found at  "Member Recognition Icons" HEN Forums  (http://homesteadexchangenetwork.net/smf/index.php?topic=773.0)

Can someone help me figure this out please?  

Thank you!  ;)

If someone would be kind enough to also help with my question I would be very grateful.
Title: Re: SMFShop - Shop MOD
Post by: Teunel on December 02, 2007, 10:31:15 AM
Hi,

After I upgraded te ChangeUserTitle.php, it isn't working anymore. I'm getting this error when I insert my new usertitle:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Netwerk
WHERE ID_MEMBER = 1
LIMIT 1' at line 3
Bestand: /home2/sitename/public_html/sitename/Sources/Subs.php
Regel: 634
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on December 03, 2007, 04:54:01 AM
Mother Goose and Teunel, I replied to your topics on my forum :)
The ChangeUserTitle.php bug was an oversight on my part, I posted the fix to the forum :)
Title: Re: SMFShop - Shop MOD
Post by: Teunel on December 03, 2007, 04:13:48 PM
Thanks Daniel! ;)
Title: Re: SMFShop - Shop MOD
Post by: Abangyarudo on December 03, 2007, 10:06:38 PM
Quote from: Mother Goose on December 02, 2007, 02:42:40 AM
Quote from: JungleFever on December 01, 2007, 04:36:11 PM
It's been over 24 hours so I'm bumping this.  I have had the same question (as well as 2 other people) at Daniel's forum for 1 or 2 weeks now.  Of course he's busy with school and everything else so I'm trying to be patient. LOL

Is there anyone at all that can answer the question for me?  I know I've seen forums with different sized items in there shop so it must be possible but I just don't know how to do it.

Please oh please can someone answer this for me.  Thanks in advance and I hope everyone has an awesome weekend!

At the risk of never getting help with this issue, I have to say I have been waiting on help both here and at Daniel's forum for a few days short of a month. This has not been my experience with smf at all, so no guilt by association implied or intended. I also must add that TrueSatan has been highly responsive and as helpful as possible. I thank you for that TS.

I work a 40 hour week, and work at least another 40 hours volunteering my time and money to make my charitable/nonprofit org keep running. By installing this mod I put all my time and resources at risk.  If there is no support for it, and believe me I have tried to pay someone to solve this issue and they could not, then it should not be supported by smf. Or, at the very least a clear statement this mod is not being supported, proceed at your own risk, should be made. 

Volunteers are wonderful and help many people improve their lives. I believe we should all give back to the community to the best of our abilities. Once I start to help a family through my org, I am ethically obligated to follow through.

To answer your question JungleFeaver, in the c-panel for the shop is a place to set the image frame size. All images must be the size you choose. If one is larger, you will need to resize it constraining the proportions. If the image frame is smaller then your selected size, you will need to increase the "canvas size" only.

If you do not know how to do this, please feel free to PM me and I will do your images for you.

not to be mean or start an argument with you mother goose. SMF is not responsible for most mods to begin with and seeing as SMF is completely free (unless you want the extra support and such) I think that putting down any backup in service which in this case is due to real life circumstances should be at least expected on some parts of this. I myself being a college student who runs a role playing site that I took over due to the fact that the original owners were going to leave it has been delayed a lot for my own school work is that a reflection on me? no I work hard on everything I do. is it a reflection on the staff I'm gathering in that area? no they are all doing what they can in their respective areas.

I run a free site and honestly while I enjoy the community I've been raising for the sites reopening they all will have to understand that my real life obligations come first. The support of having it on this website is only that it works straight out of the box in whatever form it was at the time of its review. If its true that your running a charity site despite the novel factor of using many features in a forum I don't see its need but its your own project and your own vision but SMF or the mod owner has no obligation to jump up whenever you come calling its a privilege and like TS who has given a lot of information and tried to help as much as he is able to is not obligated to do so. I repeat that this isn't to be mean or start an argument with you but merely to show you that like you they are all volunteers.
Title: Re: SMFShop - Shop MOD
Post by: Mother Goose on December 03, 2007, 11:31:17 PM
Well, if you got the impression I expected anyone to "jump up when I come calling" by my comments perhaps you should reread what I wrote.
Title: Re: SMFShop - Shop MOD
Post by: Mr Blah Man on December 04, 2007, 03:06:12 AM
http://www.daniel15.com/forum/index.php/topic,1348.new.html#new (http://www.daniel15.com/forum/index.php/topic,1348.new.html#new)
Title: Re: SMFShop - Shop MOD
Post by: JungleFever on December 06, 2007, 07:41:47 AM
Thanks for posting that code Tony!  Woohoo!  I have different sizes in my shop now!

I just tested it and it works great!  Thanks to anyone else who tried to help me.  I appreciate your time!
Title: Re: SMFShop - Shop MOD
Post by: yasmin on December 12, 2007, 12:50:09 PM
in my site some user can't view the shop. how can I solve this problem. Where can I adjust permissions to viewing shop?

(http://img164.imageshack.us/img164/3526/qwzctmpli0.jpg)
Title: Re: SMFShop - Shop MOD
Post by: Black Dragon on December 14, 2007, 12:41:31 PM
I have SMF 1.1.4.
I downloaded the version 3.
But when i uploaded it,and clicked apply i got an error:
Type  Action  Description
1. Execute Code installScript.php
2. Extract Tree ./Sources/shop
3. Extract File ./Themes/default/languages/Shop.english.php
4. Extract File ./Themes/default/ShopAdmin.template.php
5. Extract File ./Themes/default/Shop.template.php
6. Execute Modification ./index.php Test successful
7. Execute Modification ./Sources/Load.php Test successful
8. Execute Modification ./Sources/ManageBoards.php Test successful
9. Execute Modification ./Sources/ManagePermissions.php Test successful
10. Execute Modification ./Sources/Post.php Test successful
11. Execute Modification ./Sources/RemoveTopic.php Test successful
12. Execute Modification ./Sources/Subs.php Test successful
13. Execute Modification ./Sources/Subs-Boards.php Test failed
14. Execute Modification ./Sources/Subs-Members.php Test successful
15. Execute Modification ./Themes/default/Display.template.php Test successful
16. Execute Modification ./Themes/default/index.template.php Test successful
17. Execute Modification ./Themes/default/ManageBoards.template.php Test failed
18. Execute Modification ./Themes/default/Profile.template.php Test successful
19. Execute Modification ./Themes/default/languages/Errors.english.php Test successful
20. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
21. Execute Modification ./Themes/default/languages/Who.english.php Test successful


What can i do??
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on December 14, 2007, 12:59:58 PM
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: SMFShop - Shop MOD
Post by: Black Dragon on December 14, 2007, 02:25:04 PM
Thanks a  lot buddy!!I will try it and tell you!!
Title: Re: SMFShop - Shop MOD
Post by: yasmin on December 15, 2007, 02:49:45 AM
Quote from: yasmin on December 12, 2007, 12:50:09 PM
in my site some user can't view the shop. how can I solve this problem. Where can I adjust permissions to viewing shop?

(http://img164.imageshack.us/img164/3526/qwzctmpli0.jpg)
Title: Re: SMFShop - Shop MOD
Post by: falguni1 on December 15, 2007, 05:59:17 AM
go to admin
permissions and see the permission for each group.
Title: Re: SMFShop - Shop MOD
Post by: Black Dragon on December 15, 2007, 07:22:54 AM
Hi!
Back again.
I just started the procedure of adding the code.
But i have a problem.I cannot do this:
<file name="$boarddir/index.php">
        <operation>
            <search position="before"><![CDATA[
'.xml' => array('News.php', 'ShowXmlFeed'),
]]></search>
            <add><![CDATA[
// Begin SMFShop code
'shop' => array('shop/Shop.php', 'Shop'),
'shop_general' => array('shop/ShopAdmin.php', 'ShopGeneral'),
'shop_inventory' => array('shop/ShopAdmin.php', 'ShopInventory'),
'shop_items_add' => array('shop/ShopAdmin.php', 'ShopItemsAdd'),
'shop_items_edit' => array('shop/ShopAdmin.php', 'ShopItemsEdit'),
'shop_restock' => array('shop/ShopAdmin.php', 'ShopRestock'),
'shop_usergroup' => array('shop/ShopAdmin.php', 'ShopUserGroup'),
'shop_cat' => array('shop/ShopAdmin.php', 'ShopCategories'),
// End SMFShop code

I dound the index.php but i cannot find where to add the code.
<search position="before"><![CDATA[
'.xml' => array('News.php', 'ShowXmlFeed'),
]]></search>


Where should i copy paste it?
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on December 15, 2007, 08:37:36 AM
The code you are trying to find is
'.xml' => array('News.php', 'ShowXmlFeed'),


...does that not exist in your custom theme? You add the additional code after that above.
Title: Re: SMFShop - Shop MOD
Post by: Black Dragon on December 15, 2007, 08:58:56 AM
yes i have found that.But i thought i should find the CDATA....
Well,you said at my custom theme....at the code it says this:
<file name="$boarddir/index.php">
This means that i should add the code to the index.php at the board dir right?..
I am gonna do that now...and tell you..

PS:Thanks for the help buddy!!!
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on December 15, 2007, 09:09:38 AM
The CDATA is not part of the mod as such but a part of the packaging for it...if you use the package parser is will show you the edits in a more human readable form....and yes you have the right file.
Title: Re: SMFShop - Shop MOD
Post by: Black Dragon on December 15, 2007, 10:20:03 AM
Ok i edited all the files....That was tiring.... :(
Now about the other files of the mod???
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on December 15, 2007, 11:15:40 AM
Again the package parser should show you where they go...alternatively you can refer to the package-info.xml file in the package.
Title: Re: SMFShop - Shop MOD
Post by: moviespot on December 15, 2007, 01:11:00 PM
Waiting for version that work with new SMF 1.1.4

Thanks for the mod , and will wait for new one.
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on December 15, 2007, 01:30:50 PM
Had you tried it you'd have found that this mod already works with SMF 1.1.4!
Title: Re: SMFShop - Shop MOD
Post by: Black Dragon on December 15, 2007, 05:44:30 PM
Where i can find a package parser that works with 1.1.4?
I will use the package parser to install the shop...Hope i manage to do it....
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on December 15, 2007, 06:52:48 PM
The changes between SMF 1.1.3 and SMF 1.1.4 are sufficiently minor that you can use any that  support SMF 1.1.3....the chances of your hitting a problem are extremely low...as in I've yet to hear of one but it's possible though rather unlikely...good odds in your favour.
Title: Re: SMFShop - Shop MOD
Post by: nick09 on December 15, 2007, 06:54:28 PM
smfhacks has 1.1.4
http://www.smfhacks.com/smf-package-parser.html
Title: Re: SMFShop - Shop MOD
Post by: Black Dragon on December 15, 2007, 07:10:17 PM
Oh ok thanks!!!And thanks for all the replies!!
I will try that tommorrow,cause i am sleepy now...:P
When i do it,i will let you know!!

Oh thanks!!!
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on December 15, 2007, 07:19:52 PM
BTW as far as I know the one on SMF Hacks is the same, code wise, as the others but just has 1.1.4 added to the array of supported versions.
Title: Re: SMFShop - Shop MOD
Post by: Gayner on December 23, 2007, 02:21:50 AM
http://www.daniel15.com/forum/index.php/topic,1394.0.html

5days no response.. :( HELP! :D
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on December 23, 2007, 05:30:14 AM
There's no ready made code to do what you want and so you're really asking for somebody to do a custom piece of work just for you rather than to support existing code...you may be lucky and find somebody with the free time and willingness to work on it...or you may not.
Title: Re: SMFShop - Shop MOD
Post by: Gayner on December 23, 2007, 04:52:13 PM
it's not hard.. rofl it shows it in the boardindex.html i jsut cant find it
Title: Re: SMFShop - Shop MOD
Post by: robbie93 on December 26, 2007, 02:50:38 PM
how do you make posting mandatory without the need to use the arcade pass 

the arcade pass mod doesnt work on 1.1.4
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on December 27, 2007, 04:38:51 AM
If you still wish use of the arcade pass system then I suggest that you consider using EeEk's version of SMF Arcade...current version of it is 2.4.2...that has the system ready built into it and does work with SMF 1.1.4
Title: Re: SMFShop - Shop MOD
Post by: robbie93 on December 27, 2007, 07:47:44 PM
i have 2.4.2  with 1.1.4 and i cant see where to enable the arcade pass,  i  thought it was a mod that you uploaded so i tried,  but,  it wasnt compatable.

i was told to apply the arcade pass mod manually but i am having trouble doing that as i am a newbie.

i have it set at the moment so that guests have to post 5 times before they can play in the arcade,  but after they have posted the five times it doesnt ask them to post again.
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on December 28, 2007, 09:31:10 PM
Unfortunately the arcade pass mod was by a developer who hasn't been active for quite some time and it appears that his mod has now been dropped completely...it may resurface but the more time goes by the less likely this is to happen. Sorry...I'll try to have a look at it myself some time.
Title: Re: SMFShop - Shop MOD
Post by: robbie93 on December 29, 2007, 02:23:36 PM
ok,  thats to bad the arcade pass was a great mod :(

thanks for the reply though :D
Title: Re: SMFShop - Shop MOD
Post by: Teunel on December 30, 2007, 04:39:34 AM
Hi,

For some days/weeks, my interest is not working anymore. I have not changed anything in my cronjob, and it used to work before. I don't know how long this has been going, but it might be around the same time I updated my items. I doubt it has anything to do with that, but is this a known problem?

Thanks
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on December 30, 2007, 05:37:42 AM
I try to help answer the questions here but you really should follow the advice in reply # 1466 and post such queries to Daniel's forum.

I'd also suggest that you try running the interest manually by browsing to the dointerest.php file...if that causes the interest to update then you will know that you have a cron job issue...if it doesn't then it will be an issue with the files.
Title: Re: SMFShop - Shop MOD
Post by: Teunel on December 30, 2007, 12:55:30 PM
Quote from: TrueSatan on December 30, 2007, 05:37:42 AM
I try to help answer the questions here but you really should follow the advice in reply # 1466 and post such queries to Daniel's forum.

I'd also suggest that you try running the interest manually by browsing to the dointerest.php file...if that causes the interest to update then you will know that you have a cron job issue...if it doesn't then it will be an issue with the files.
I have also posted this on daniel15.com, but didn't get a response. I've asked it a few weeks ago, so I thought I should ask it here too. I went to dointerest.php, but still nothing happened.
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on December 30, 2007, 01:25:50 PM
Try uninstalling the mod, making sure that all files it adds are also removed, then re-installing it so as to get a fresh set of files and edits.
Title: Re: SMFShop - Shop MOD
Post by: Assistance on January 04, 2008, 02:56:27 AM
Quote from: Teunel on December 30, 2007, 12:55:30 PM
Quote from: TrueSatan on December 30, 2007, 05:37:42 AM
I try to help answer the questions here but you really should follow the advice in reply # 1466 and post such queries to Daniel's forum.

I'd also suggest that you try running the interest manually by browsing to the dointerest.php file...if that causes the interest to update then you will know that you have a cron job issue...if it doesn't then it will be an issue with the files.
I have also posted this on daniel15.com, but didn't get a response. I've asked it a few weeks ago, so I thought I should ask it here too. I went to dointerest.php, but still nothing happened.


www.dansoftaustralia.net/smfshop_wiki/Bank_Interest
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on January 04, 2008, 04:31:34 AM
@ Assistance

Please read the text of reply #1511 above...Teunel stated that he/she had managed to set up the cron job and it had been working properly...hence my advice that you struck through in your posting!
Title: Re: SMFShop - Shop MOD
Post by: Teunel on January 05, 2008, 02:08:21 PM
Quote from: Assistance on January 04, 2008, 02:56:27 AM
Quote from: Teunel on December 30, 2007, 12:55:30 PM
Quote from: TrueSatan on December 30, 2007, 05:37:42 AM
I try to help answer the questions here but you really should follow the advice in reply # 1466 and post such queries to Daniel's forum.

I'd also suggest that you try running the interest manually by browsing to the dointerest.php file...if that causes the interest to update then you will know that you have a cron job issue...if it doesn't then it will be an issue with the files.
I have also posted this on daniel15.com, but didn't get a response. I've asked it a few weeks ago, so I thought I should ask it here too. I went to dointerest.php, but still nothing happened.


www.dansoftaustralia.net/smfshop_wiki/Bank_Interest
Ah, that was it! I changed from home/ to home2/, and didn't change in the Cronjob! Thanks, let's see if it works now!
Title: Re: SMFShop - Shop MOD
Post by: Black Dragon on January 05, 2008, 07:53:07 PM
Back again.....Well i have tried to install it,but it wouldn't work....in fact there was a problem with the forum...:( so i had to restore a previous backup.....What mod can be disfunctioning the install of the shop mod...so that i can unistall it and then add the mod with the package parser.....cause SMF Shop has a lot of code in it...:(
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on January 05, 2008, 08:16:10 PM
Many mods might have edited the files this mod needs to edit...if you aren't comfortable doing a manual install you could try uninstalling all your mods (some will need to be uninstalled on a last in first out basis and won't allow an automatic uninstall unless and u ntill the mods installed after them are already uninstalled) and then installing SMF Shop them installing all the other mods again...that said you might still have to manually install/uninstall some of those other mods.
Title: Re: SMFShop - Shop MOD
Post by: Black Dragon on January 06, 2008, 01:48:38 PM
....:(....Damn.....why this happens??......Well,ok the file it's already edited,but it isn't edited at the line where the Shop mod will add or replace its own line....:(....or not??......anyway......I might try installing it manually.....Hope it works....I will tell you...
Title: Re: SMFShop - Shop MOD
Post by: TheDel on January 08, 2008, 09:01:29 PM
OK I know I should be posting this in Daniel's forum but I posted there last year and still haven't gotten a reply. (OK it was December!) I reallize he gets questions and does it on his own time but maybe this could  be something answered by anyone.

So............

I installed Shop Mod via Package mgr. I got an error for 3 files-
index.template.php
Profile.template.php
index.php

I used the parser and fixed the last 3 files and I can't get any of the Shop pages to appear.- The block shows in admincenter and button at the top but they take me back to the board index. I checked all the files and everything seems to be there. It even started counting credits in the profiles.

Now my board is heavily modded but - like I said, all the new files appear to be there and appears to work in posts. And I even tried to install on a new board that I installed via fantastic (both 1.1.3 and after upgrading to 1.1.4- live board is 1.1.4 BTW)

Does anyone have a clue?

Thanks in advance
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on January 08, 2008, 09:52:45 PM
You say you checked all the files...did that include a manual check of all the edits the mod seeks to make? Sometimes when a file fails in the Package Manager the edits following the fail aren't made so a full check is advised at this stage.
Title: Re: SMFShop - Shop MOD
Post by: TheDel on January 08, 2008, 10:12:57 PM
Thanks - Ill try that- Just assumed the Pac Man said it was good.....it was.
Silly me!
Title: Re: SMFShop - Shop MOD
Post by: dadslayer on January 25, 2008, 02:47:55 PM
Hi all,

Does anyone know how to limit the amount of credits a user can earn per day? I've read the entire thread and found no answer to this. Any one got any idea?
Title: Re: SMFShop - Shop MOD
Post by: Ertado on January 26, 2008, 11:37:11 PM
Hey how could I get the items for sale to display in multiple columns instead of just one?
Title: Re: SMFShop - Shop MOD
Post by: clanny on January 28, 2008, 02:20:34 PM
Also
How do you delete points from a member?
I checked the members profile/admin area, there no option for this.

Thanks.
Title: Re: SMFShop - Shop MOD
Post by: clanny on January 29, 2008, 06:53:29 PM
Can anyone help here?
Title: Re: SMFShop - Shop MOD
Post by: tropicallili on January 30, 2008, 12:27:21 AM
You should be able to by going to the member's inventory and changing their balance. I hope that helps.
Title: Re: SMFShop - Shop MOD
Post by: Ertado on January 30, 2008, 01:05:08 AM
Quote from: Ertado on January 26, 2008, 11:37:11 PM
Hey how could I get the items for sale to display in multiple columns instead of just one?

Anyone?
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on January 30, 2008, 09:41:11 AM
As per post #1466 from Daniel15 the developer of this mod:

QuoteAny support posts should be posted to www.daniel15.com. Please do not post them here, it's too hard to keep up with everyone's questions, and I probably won't reply to questions posted in this topic.
Title: Re: SMFShop - Shop MOD
Post by: Ertado on January 30, 2008, 10:14:36 AM
That's all very well and good except that replies on his board take weeks or even months. I thought somebody else who was familiar with the mod could tell me.

I'd do it myself, but the extensive use of tables messes me up. Haven't dealt with tables for layout in a long time.
Title: Re: SMFShop - Shop MOD
Post by: clanny on January 30, 2008, 01:11:14 PM
Quote from: tropicallili on January 30, 2008, 12:27:21 AM
You should be able to by going to the member's inventory and changing their balance. I hope that helps.

Hello,
Yeah but the members only have points/credits, they dont have items, and i did it says members has no inventory or item and they have 22.25 points.



thanks.
Title: Re: SMFShop - Shop MOD
Post by: slackerpunk on February 01, 2008, 11:57:53 PM
this one is nice any chance for new items?
Title: Re: SMFShop - Shop MOD
Post by: TrueSatan on February 02, 2008, 07:35:11 AM
Many new items are available on Daniel15's site:

http://www.daniel15.com/ (http://www.daniel15.com/)
Title: Re: SMFShop - Shop MOD
Post by: Nibogo on February 02, 2008, 07:40:46 PM
i try to install in my forum but i make a click in the "shop an appear the index of the forum :("
Title: Re: SMFShop - Shop MOD
Post by: trekkie2444 on February 02, 2008, 10:18:36 PM
tell them you get this error:

  Line #42438: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc text NOT NULL default '',
  price decimal(8,2) unsigned NO

and give them the SQL statement if they need it:

CREATE TABLE smf_shop_items (
   id int(10) unsigned NOT NULL auto_increment,
   name varchar(50) NOT NULL default '',
   desc text NOT NULL,
   price decimal(8,2) unsigned NOT NULL default '0.00',
   module tinytext NOT NULL,
   stock smallint(6) NOT NULL default '0',
   info1 text NOT NULL,
   info2 text NOT NULL,
   info3 text NOT NULL,
   info4 text NOT NULL,
   input_needed tinyint(3) unsigned NOT NULL default '1',
   can_use_item tinyint(3) unsigned NOT NULL default '1',
   delete_after_use tinyint(1) unsigned NOT NULL default '1',
   image tinytext NOT NULL,
   category smallint(6) NOT NULL default '0',
   PRIMARY KEY  (id)
) TYPE=MyISAM;
Title: Re: SMFShop - Shop MOD
Post by: slackerpunk on February 06, 2008, 10:05:13 AM
any issues with the shop eating too much resources?
Title: Re: SMFShop - Shop MOD
Post by: Ertado on February 06, 2008, 12:57:24 PM
No. -_-
Title: Re: SMFShop - Shop MOD
Post by: - danny on February 06, 2008, 08:18:59 PM
this code was mentioned at the beginning of this thread, but i didn't see exactly where we're suppose to use it. does anyone know where this goes?

<?php

$NewTopics 
10;
$NewPosts 8;

mysql_connect('localhost','root','');
mysql_select_db('smf');
$request mysql_query ("SELECT smf_members.realName, 









smf_members.ID_MEMBER AS ID_MEMBER, 









count(ID_TOPIC) AS var







FROM smf_members, 









smf_topics







WHERE smf_members.ID_MEMBER = smf_topics.ID_MEMBER_STARTED







GROUP BY smf_members.realName







ORDER BY smf_members.realName"
);

while (
$result mysql_fetch_assoc($request))
{



$variable $result['var'] * $NewTopics;



$person $result['ID_MEMBER'];



$request1 mysql_query ("UPDATE smf_members





SET money = '
$variable'





WHERE ID_MEMBER = '
$person'");
}

$request mysql_query ("SELECT smf_members.realName, 









smf_members.ID_MEMBER AS ID_MEMBER, 









count(ID_MSG) AS var, 









smf_members.money AS money







FROM smf_members, 









smf_messages







WHERE smf_members.ID_MEMBER = smf_messages.ID_MEMBER







GROUP BY smf_members.realName







ORDER BY smf_members.realName"
);

while (
$resultmysql_fetch_assoc($request))
{



$variable $result['var'] * $NewPosts;



$person $result['ID_MEMBER'];



$money $result['money'] + $variable;



$request1 mysql_query ("UPDATE smf_members





SET money = '
$money'





WHERE ID_MEMBER = '
$person'");

}
?>


is it even necessary anymore, or is there an option to "catch up" member points?
Title: Re: SMFShop - Shop MOD
Post by: indonesia on February 06, 2008, 09:49:55 PM
where is the mod file?
Title: Re: SMFShop - Shop MOD
Post by: trekkie2444 on February 06, 2008, 11:18:03 PM
I'm still having the same problem, but now when you go to the shop you get a white page with this:

Fatal error: smf_main() [function.require]: Failed opening required '/homepages/37/d232313470/htdocs/forum/Sources/shop/Shop.php' (include_path='.:/usr/local/lib/php') in /homepages/37/d232313470/htdocs/forum/index.php on line 427
Title: Re: SMFShop - Shop MOD
Post by: Emperium on February 15, 2008, 07:49:28 PM
Interest Cron Job with Go Daddy:

This thread shows my progress so far on trying to set up the Interest on SMFShop with Go Daddy's hosting Cron Manager.

Interest Cron Job with Go Daddy thread on Daniel15 forum (http://www.daniel15.com/forum/index.php/topic,1492.0.html)

Even though Daniel15 himself has helped me it still hasn't worked (I'm guessing he isn't familiar with Go Daddy's Cron Manager) and I would like to get it to work as soon as possible. If anyone knows how to set it up please post. Thanks.
Title: Re: SMFShop - Shop MOD
Post by: Emperium on February 16, 2008, 10:20:55 PM
bump, someone out there has to know.
Title: Re: SMFShop - Shop MOD
Post by: Emperium on February 17, 2008, 02:13:15 PM
bump, issue solved for anyone that wants to know:

SOLVED!
After asking countless people and searching up a bunch of resources and info, I finally figured out how to get the interest cron job working on GoDaddy's Cron Job Manager:

The command you have to type to run the dointerest.php (in my case) is:

/web/cgi-bin/php -q /home/content/E/m/p/[MyUserName]/html/emperium/forums/Sources/shop/dointerest.php > /home/content/E/m/p/[MyUserName]/html/emperium/forums/interest_log.htm

"/web/cgi-bin/php" Runs the PHP. $Home is just an attribute to the path of the php ($HOME/html/emperium/forums/Sources/shop/dointerest.php), you have to put the actual full path or else it wont work (so you can't browse for the dointerest.php because you just get the $HOME attribute.

Save it and its good to go!
Title: Re: SMFShop - Shop MOD
Post by: seraphikah on February 22, 2008, 02:25:34 PM
I can't admin my shop. I use to have a category in my admin panel for the shop mod, but it's not there anymore. Any ideas for fixing this without having to reinstall and my members losing their points?
Title: Re: SMFShop - Shop MOD
Post by: Celdric on February 26, 2008, 10:12:34 PM
Anyone uses Joomla/SMF/Shop and has problem to browse/sort items in "Buy Stuff" tab?

Actually I have.

The sort function works, but no result gets displayed because the function uses the url

index.php?action=shop&do=buy&cat=-1&sort=0&sortDir=0

instead the correct url

index.php?option=com_smf&Itemid=28&action=shop&do=buy&cat=-1&sort=0&sortDir=0

I can't find out why that happens. Perhaps anyone who had the same issue and solved it could give me a hint? :)
Title: Re: SMFShop - Shop MOD
Post by: jusplay77 on February 28, 2008, 01:20:06 AM
SMF 1.1.4

Nearly Everything in the shop works great (Even have SMF Pets 0.2, Inventory Mod).. however, the bank interest does not seems to be the only thing not working.  Does anyone else have this problem? and if so, what should I be looking for? 

Thanks.. (If you need me to post a code snippit from a specific php file, I will be more than happy too).. Thanks again!


---

I searched and found the information about the Cron Job. 
Title: Re: SMFShop - Shop MOD
Post by: trekkie2444 on February 29, 2008, 12:07:33 AM
Anybody know the answer to my shop problem question on my forum?
Title: Re: SMFShop - Shop MOD
Post by: capabmx on February 29, 2008, 12:12:43 AM
can you post the problem here?
Title: Re: SMFShop - Shop MOD
Post by: trekkie2444 on March 01, 2008, 05:09:50 PM
 LOOK UP.
Title: Re: SMFShop - Shop MOD
Post by: bubs on March 02, 2008, 12:47:25 PM
please help me to put shop link on HFG theme (http://custom.simplemachines.org/themes/index.php?lemma=547), this is my forum: http://fairyfly.org/forum
thank you so much..
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on March 02, 2008, 04:11:31 PM
Is the shop.php file in your Sources directory. If not upload it and see if that helps. If it is you should probably re-upload it anyway in case the one on the server is corrupted.

Quote from: trekkie2444 on February 06, 2008, 11:18:03 PM
I'm still having the same problem, but now when you go to the shop you get a white page with this:

Fatal error: smf_main() [function.require]: Failed opening required '/homepages/37/d232313470/htdocs/forum/Sources/shop/Shop.php' (include_path='.:/usr/local/lib/php') in /homepages/37/d232313470/htdocs/forum/index.php on line 427

Title: Re: SMFShop - Shop MOD
Post by: bubs on March 03, 2008, 11:00:58 PM
please help me :(
Title: Re: SMFShop - Shop MOD
Post by: kezlehan on March 11, 2008, 02:21:14 PM
Hello all, sorry if this has been asked before, but when adding a link to the navigation bar I'm having some trouble. I'm using the SlickPro_Graphite template, and am unsure as to how I add a link to the shop page. Can anyone help me please?

Here is my index.template.php

<?php
// Version: 1.1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
 
echo '
  <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>'
;

//This is for the pop menus
echo '
<script type="text/javascript">

/***********************************************
* Drop Down/ Overlapping Content- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

function getposOffset(overlay, offsettype){
var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
var parentEl=overlay.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function overlay(curobj, subobjstr, opt_position){
if (document.getElementById){
var subobj=document.getElementById(subobjstr)
subobj.style.display=(subobj.style.display!="block")? "block" : "none"
var xpos=getposOffset(curobj, "left")+((typeof opt_position!="undefined" && opt_position.indexOf("right")!=-1)? -(subobj.offsetWidth-curobj.offsetWidth) : 0) 
var ypos=getposOffset(curobj, "top")+((typeof opt_position!="undefined" && opt_position.indexOf("bottom")!=-1)? curobj.offsetHeight : 0)
subobj.style.left=xpos+"px"
subobj.style.top=ypos+"px"
return false
}
else
return true
}

function overlayclose(subobj){
document.getElementById(subobj).style.display="none"
}

</script>'
;
echo '
</head>
<body>'
;

echo '
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="top-logo"><img src="'
$settings['images_url'], '/logo.jpg" width="358" height="91" alt="SlickPro Graphite" title="SlickPro Graphite" /></td>
</tr>
<tr>
<td width="100%" align="left" valign="top" style="padding:0 30px 0 30px;">'
;

echo '
<div class="body-border">
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>';


// display user name
echo '
<table width="100%" cellspacing="1" cellpadding="5" class="bordercolor" border="0" >
<tr>'
;

echo '
<td class="windowbg2" width="100%" valign="middle" align="left">
'
theme_linktree2(), '
</td>'
;

echo '
<td width="250" valign="top" class="windowbg"><span class="middletext" style="display:block;width:250px;">'
;

if($context['user']['is_logged'])
{
echo '
<strong>Welcome, '
$context['user']['name'] , '.</strong><br />';
}

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
{
echo ((isset($current_action) && $curent_action == 'pm') || $context['browser']['is_ie4']) ? '' '' '
<a href="'
$scripturl'?action=pm">Private Messages</a>: '$context['user']['unread_messages'], ' Unread, '$context['user']['messages'], ' Total.<br />';
}

// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
'
$txt['totalTimeLogged1'], '<br />';

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<table border="0" cellpadding="1" cellspacing="0">
<tr>
<td>Username:</td>
<td><input type="text" name="user" size="10" /></td>
<td><select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="passwrd" size="10" /></td>
<td><input type="submit" value="'
$txt[34], '" /></td>
</tr>
</table>
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}

echo '
</span>
</td>
</tr>
</table>'
;

echo '
<table id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ''' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>'
;


echo '
<td width="90%" class="column-title">
'
template_menu(), '
</td>'
;
echo '
</tr>
</table>
</div>'
;


// The main content should go here.
echo '
<div id="bodyarea">'
;

// If you want to put some ads or something on your pages, add them in this.
echo '
<div id="blank-box"></div>'
;
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

echo '
</div>'
;

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="left" class="copyright-links">
Theme by <a href="http://www.m3talc0re.com/" target="_blank" style="font-size:10px;">m3talc0re</a>.
</td>
<td valign="middle" align="center" style="white-space: nowrap;" class="copyright-links">
'
theme_copyright(), '
</td>
<td width="28%" valign="middle" align="right" class="copyright-links">
<a href="http://www.mysql.com/" target="_blank" style="font-size:10px;">MySQL</a>&nbsp;|&nbsp;<a href="http://www.php.net/" target="_blank" style="font-size:10px;">PHP</a>&nbsp;|&nbsp;<a href="http://validator.w3.org/check/referer" target="_blank" style="font-size:10px;">XHTML</a>&nbsp;|&nbsp;<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank" style="font-size:10px;">CSS</a>
</td>
</tr>
</table>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</div>
</div></td></tr></table>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
</body></html>'
;
}

// If the user is logged in, display stuff like their  new messages, etc...
function theme_newestlink()
{
global $context$settings$options$scripturl$txt;

if ($context['user']['is_logged'])
{
echo '
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a>&nbsp;|&nbsp;<a href="'$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a>';

}
// Otherwise they're a guest - send them a lovely greating...
else
echo $txt['welcome_guest'];
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion".. THIS IS THE OLD ONE's FIX
function theme_linktree()
{
global $context$settings$options;

echo '<br />';
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion".. THIS IS THE OLD ONE
function theme_linktreeOLD()
{
global $context$settings$options;

echo '<div class="nav-tree" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;text-align:center;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav-tree">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;&raquo;&nbsp;';
}

echo '</div>';
}

//Show a linktree (this one is a vB look alike, vB clone is below).
function theme_linktree2()
{
global $context$settings$options;

// Folder style or inline?  Inline has a smaller font.
echo '<span class="nav-tree" style="font-size: smaller;">';

// Each tree item has a URL and name.  Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show pretty folder
if ($link_num == 0)
{
echo '<img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp; ';
}
else if ($link_num == 1)
{
echo '<img src="' $settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" /><img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp; ';
}
else
{
echo '&raquo; ';
}

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav-tree">' $tree['name'] . '</a>' $tree['name'], '</b>';

if ($link_num == 0)
{
echo '<br />';
}
}

echo '</span>';
}

// Show a linktree (vB Clone).  This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree3()
{
        global 
$context$settings$options;

        
// Folder style or inline?  Inline has a smaller font.
        
echo '<span class="nav-tree">';

echo '<img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp;';

echo '<b><a class="nav-tree" href="http://www.webtechnica.com/">WebTechnica</a></b>&nbsp;&raquo;&nbsp;';

        
// Each tree item has a URL and name.  Some may have extra_before and extra_after.
        
foreach ($context['linktree'] as $link_num => $tree)
        {
                
// Show something before the link?
                
if (isset($tree['extra_before']))
                        echo 
$tree['extra_before'];

                if ((
$link_num == count($context['linktree']) - 1) && count($context['linktree'])>1)
                        echo 
'<br />
<img src="' 
$settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" /><img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp;';

                
// Show the link, including a URL if it should have one.
                
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav-tree">' $tree['name'] . '</a>' $tree['name'], '</b>';

                
// Show something after the link...?
                
if (isset($tree['extra_after']))
                        echo 
$tree['extra_after'];

                
// Don't show a separator for the last one.
                
if ($link_num count($context['linktree']) - 2)
                        echo 
'&nbsp;&raquo;&nbsp;';

        }

        echo 
'</span>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>'
;

// Show the [home] button.
echo '
<td class="main-navigation"><a href="'
$scripturl'">' $txt[103] , '</a></td>';

// Show the [help] button.
echo '
<td class="main-navigation"><a href="'
$scripturl'?action=help">' $txt[119] , '</a></td>';

// How about the [search] button?
if ($context['allow_search'])
echo '
<td class="main-navigation"><a href="'
$scripturl'?action=search" onClick="return overlay(this, \'subcontent\',\'bottom\')">' $txt[182] , '<img src="'$settings['images_url'], '/search_down.gif" width="10" height="10" /></a>
<!--Do not remove outer most DIV tag with id="subcontent"-->
<DIV id="subcontent" style="position:absolute; border: 2px solid #3d3d3d; background-color: white; width: 210px; padding: 2px; display:none">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td class="catbg" height="20" align="left" valign="middle" style="color:#ffffff;">Quick Search</td>
</tr>
<tr>
<td height="26" align="left" valign="middle" class="windowbg">
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<input type="text" name="search" value="" style="width: 150px;" />&nbsp;
<input type="submit" name="submit" value="GO" />
<input type="hidden" name="advanced" value="0" />'
;

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form></td>
</tr>
<tr>
<td height="20" align="center" valign="middle" class="windowbg"><a href="'
$scripturl'?action=search;advanced">Advanced Search</a></td>
</tr>
</table>
<div align="right" style="font-size:10px;"><a href="#" onClick="overlayclose(\'subcontent\'); return false">[Close]</a></div>

</DIV>
</td>'
;

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<td class="main-navigation"><a href="'
$scripturl'?action=admin">' $txt[2] , '</a></td>';

// The [calendar]!
if ($context['allow_calendar'])
echo '
<td class="main-navigation"><a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a></td>';

// the [member] list button
if ($context['allow_memberlist'])
echo '
<td class="main-navigation"><a href="'
$scripturl'?action=mlist">' $txt[331] , '</a></td>';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '
<td class="main-navigation"><a href="'
$scripturl'?action=login">' $txt[34] , '</a></td>';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '
<td class="main-navigation"><a href="'
$scripturl'?action=register">' $txt[97] , '</a></td>';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '
<td class="main-navigation"><a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a></td>';

// How about the [quick links] button?
if ($context['user']['is_logged'])
echo '
<td class="main-navigation"><a href="'
$scripturl'#quicklinks" onClick="return overlay(this, \'quicklinks\',\'bottomright\')">Quick Links<img src="'$settings['images_url'], '/search_down.gif" width="10" height="10" /></a>
<!--Do not remove outer most DIV tag with id="quicklinks"-->
<DIV id="quicklinks" style="position:absolute; border: 2px solid #3d3d3d; background-color: white; width: 150px; padding: 2px; display:none">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td class="catbg" height="20" align="left" valign="middle" style="color:#ffffff;">Quick Links</td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a href="'
$scripturl'?action=unread">New Posts</a></td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a href="'
$scripturl'?action=unreadreplies">New Replies</a></td>
</tr>
<tr>
<td class="catbg" height="20" align="left" valign="middle" style="color:#ffffff;">User Settings</td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a href="'
$scripturl'?action=profile">View Profile</a></td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a href="'
$scripturl'?action=profile;u='$context['user']['id'], ';sa=account">Account Settings</a></td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a href="'
$scripturl'?action=profile;u='$context['user']['id'], ';sa=forumProfile">Edit Profile</a></td>
</tr>
</table>
<div align="right" style="font-size:10px;"><a href="#" onClick="overlayclose(\'quicklinks\'); return false">[Close]</a></div>

</DIV>
</td>'
;

// The end of tab section.
echo '
</tr>
</table>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td valign="middle" class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>



Sorry for the hugeness of my post!
Title: Re: SMFShop - Shop MOD
Post by: Bigguy on March 12, 2008, 10:49:49 PM
Add this above the
//How about the search button

code in the bottom of the index.template.php file:

// Show the [help] button.
echo '
<td class="main-navigation"><a href="', $scripturl, '?action=shop">' , $txt[1190] , '</a></td>';


Then add this line somewhere in the index.english.php file:

$txt[1190] = 'Shop';

That should work ok.
Title: Re: SMFShop - Shop MOD
Post by: Ncen on March 20, 2008, 05:49:28 PM
Is it possible to give credits for "words per post" / "per post" / "per topic started" only in certain forums? i would like to exclude some off my forums from that function. Namely: 1,2,44,55

On my site I'm only using the shop-mod for encouraging the members to post longer replies, and write more topics.

And I'm thinking about using it only for word-count, since we really need that on my site. Some of my members are actually counting the words in all the posts by "cut and copy" into word, and i would like to spare them the trouble. However we have some boards (as mentioned above) that can't be in the credit-count. (We're not counting the posts in those boards, since they're news-boards and so on... which is not really related to the actual site)...

If someone has any tips or actually knows how to do this, me and my members would be really greatful!

Thanks in Advance.
Title: Re: SMFShop - Shop MOD
Post by: Paintedstarshine on March 20, 2008, 08:29:50 PM
I was wondering if there was a way to add custom smilies available for purchase in the shop.

For example, If I added a custom image and put it next to the item, it would then become a custom smiley. Once someone buys it they could use it as a smiley as many times as they wanted. The smiley itself would be an image I had added to the image folder.

Is there anyway I could have this type of item available in my shop or is it something already available that I am missing?
Title: Re: SMFShop - Shop MOD
Post by: perplexed on March 21, 2008, 11:44:24 AM
Innocenzia and Paintedstarshine  - you might be better checking out the Mod Author's own site for hacks and items, there are quite a selection that might help you.

http://www.daniel15.com/forum/
Title: Re: SMFShop - Shop MOD
Post by: theraptor on March 21, 2008, 11:51:30 AM
Does anyone know if a version for smf 2.0 is in progress?
Title: Re: SMFShop - Shop MOD
Post by: perplexed on March 21, 2008, 11:58:57 AM
I don't think so, there's nothing on the Shop forum about it and Daniel is pretty busy
Title: Error: 2: session_destroy(): Trying to destroy uninitialized session
Post by: samurai-lupin on March 24, 2008, 01:17:39 AM
Hello,

I have the following error in my error log:

http://www.detektorforum.de/smf/index.php?option=com_smf&amp;Itemid=26&amp;action=logout;sesc
Apply Filter: Only show the errors with the same message
2: session_destroy(): Trying to destroy uninitialized session
Datei: /hsphere/local/home/thunting/detektorforum.de/smf/Sources/Subs-Auth.php
Zeile: 174

I have been told that this is caused by the Shop installation?

Thank you
Title: Re: SMFShop - Shop MOD
Post by: Sakacoco on March 25, 2008, 05:20:33 PM
Is there any french people who have imported his theme succesfully ?

Because i have a lot of problems with it, include admin interface ( nothing ), profile, and it makes me deseappear Logout buttons :/

So if someone had, please tell me or send a pm thx !
Title: Re: SMFShop - Shop MOD
Post by: runitzme on March 31, 2008, 03:17:50 PM
Hey, can you send a PM to the member that the item is used on? Like if their post count decrease, u can send them a PM...
Title: Re: SMFShop - Shop MOD
Post by: adicrst on April 21, 2008, 08:44:59 AM
I want to extract top 10 users based on the amont of money they have in the bank (using smf Shop by Alex), but i have a problem and i can't make it work

this is the code i made, but it doesn't work:

$result = mysql_query("SELECT memberName,MAX(moneyBank) FROM smf_members LIMIT 10 DESC");

while($row = mysql_fetch_array($result))
  {
 
  echo $row['memberName']." ".$row['moneyBank'];
  echo "<br>";

  }


and i get this error

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in
Title: Re: SMFShop - Shop MOD
Post by: Jess101 on April 24, 2008, 09:50:57 PM
All the test seem fine but this error comes up after I click install



Fatal error: require() [function.require]: Failed opening required '/home/xxx/public_html/php1/Packages/temp/./install.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/public_html/php1/Sources/Packages.php on line 552
Title: Re: SMFShop - Shop MOD
Post by: perplexed on April 25, 2008, 05:47:58 AM
Quote from: Jess101 on April 24, 2008, 09:50:57 PM
All the test seem fine but this error comes up after I click install



Fatal error: require() [function.require]: Failed opening required '/home/xxx/public_html/php1/Packages/temp/./install.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/public_html/php1/Sources/Packages.php on line 552

do other mods install ok or not?  Please read this solution (http://www.daniel15.com/forum/index.php/topic,573.msg2913.html#msg2913) from The mod author's site, you may have to install the mod manually.

@ adicrst

If you just need a list of who they are, then look in the shop and you can see 10 richest members (pocket) and (bank) :)

Quote from: runitzme on March 31, 2008, 03:17:50 PM
Hey, can you send a PM to the member that the item is used on? Like if their post count decrease, u can send them a PM...

some of the shop items do that automatically.  I don't know if this one does or not, but if you check Daniel's site  (http://www.daniel15.com/forum/index.php) you might be able to find out for sure, or to find an item that does do that, and add the code to your item :)
Title: SOLVED: SMFShop - Shop MOD
Post by: goldenboy48 on May 07, 2008, 07:30:11 PM
Edit: SOLVED

Guys,

During installation it edited Display.template.php But I had to replace the display.template.php with an old version so I have redo the edit. But when I do the edit, it looks like that it breaks the code/file. It doesn't give me an error but it gives me this [look at the picture]

http://i263.photobucket.com/albums/ii145/ecricnet/Untitled-5-1.jpg

I've attached my "unedited" display.template.php
If someone can tell me whats going on or can someone do the edits for me?

Thanks in advance.
Title: Re: SMFShop - Shop MOD
Post by: Leofe on May 09, 2008, 03:27:39 PM
Hello im trying to add the shopmod to my forum... I have installed it all and just need the button to be added...
Im using the Ferry Tema custom Template

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   // Work out where we currently are.
   $current_action = 'home';
   if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
      $current_action = 'admin';
   if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
      $current_action = $context['current_action'];
   if ($context['current_action'] == 'search2')
      $current_action = 'search';
if ($context['current_action'] == 'shop')
$current_action = 'shop';
   if ($context['current_action'] == 'theme')
      $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';


   // Show the start of the tab section.
   echo '
         <table width="100%" cellpadding="0" cellspacing="0" border="0">
            <tr>';

   // Show the [home] button.
   echo '
         <td  align="center"><a href="', $scripturl, '">' , $txt[103] , '</a></td>';

   // Show the [help] button.
   echo '
         <td  align="center"><a href="', $scripturl, '?action=help">' , $txt[119] , '</a></td>';



   // Is the user allowed to administrate at all? ([admin])
   if ($context['allow_admin'])
      echo '
            <td  align="center"><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></td>';
           
   // How about the [search] button?
   if ($context['allow_search'])
      echo '
            <td  align="center">
               <a href="', $scripturl, '?action=search">' , $txt[182] , '</a></td>';
            // The [shop]!
   if ($context['allow_shop'])
      echo '
         <a href="', $scripturl, '?action=shop">' , Shop , '</a></td>';

   // Edit Profile... [profile]
   if ($context['allow_edit_profile'])
      echo '
            <td  align="center"><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a></td>';
           

   // Go to PM center... [pm]
   if ($context['user']['is_logged'] && $context['allow_pm'])
         echo '
            <td  align="center"><a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a></td>';
           

   // The [calendar]!
   if ($context['allow_calendar'])
      echo '
            <td  align="center" ><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></td>';

   // the [member] list button
   if ($context['allow_memberlist'])
      echo '
            <td  align="center"><a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a></td>';


   // If the user is a guest, show [login] button.
   if ($context['user']['is_guest'])
      echo '
            <td  align="center"><a href="', $scripturl, '?action=login">' , $txt[34] , '</a></td>';


   // If the user is a guest, also show [register] button.
   if ($context['user']['is_guest'])
      echo '
            <td  align="center"><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></td>';


   // Otherwise, they might want to [logout]...
   if ($context['user']['is_logged'])
      echo '
            <td  align="center"><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a></td>';

   // The end of tab section.
   echo '
         </tr>
      </table>';

}

// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
   global $settings, $buttons, $context, $txt, $scripturl;

   // Create the buttons...
   foreach ($button_strip as $key => $value)
   {
      if (isset($value['test']) && empty($context[$value['test']]))
      {
         unset($button_strip[$key]);
         continue;
      }
      elseif (!isset($buttons[$key]) || $force_reset)
         $buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';

      $button_strip[$key] = $buttons[$key];
   }

   if (empty($button_strip))
      return '<td>&nbsp;</td>';

   echo '
      <td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '">&nbsp;</td>
      <td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td>
      <td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '">&nbsp;</td>';
}

?>



i just need a button linking to index.php?action=shop

Thanks for your help!
Heres a link to the forum www.custombats.co.uk/cbforum
Title: Re: SMFShop - Shop MOD
Post by: Matt12 on May 12, 2008, 05:50:06 PM
Is there anyway i can disable temp in admin so the link is removed for it in the navigation bar without losing any data?

Thanks!
Title: Re: SMFShop - Shop MOD
Post by: City Builder on May 12, 2008, 07:04:09 PM
steal credits from other users, produces, error stating "user unknown".  I look up the user using the lookup and paste it in but it still produces a error saying user unknown.
Title: Re: SMFShop - Shop MOD
Post by: samurai-lupin on May 25, 2008, 02:30:30 AM
Is there a way to add a function to ssi.php in order to show the most recently sold item?
Title: Re: SMFShop - Shop MOD
Post by: razorblitz07 on May 26, 2008, 04:46:33 AM
Is there a way to add more items to create more items to buy in the shop?
Title: Re: SMFShop - Shop MOD
Post by: razorblitz07 on May 26, 2008, 04:53:57 AM
Sorry for double post but also is there a way to have a log on who but what and how much?
Title: Re: SMFShop - Shop MOD
Post by: City Builder on May 26, 2008, 09:59:22 AM
I wish to change the way that the persons inventory is displayed to them to be by category, and to list multiple items on a row, so a table with a row of 5 columns would be nice.  Can someone tell me what file this needs to be done in and what specifically to change?

Does the author even support this mod anymore, I've asked questions on his own forum that have gone unanswered for weeks and some for months.
Title: Re: SMFShop - Shop MOD
Post by: MaXiForum.cz on June 01, 2008, 01:48:17 PM
This mod is wery good! ;)
Will it be for SMF 2.0 too?
THX
Title: Re: SMFShop - Shop MOD
Post by: Ni©holąś™ on June 01, 2008, 02:11:37 PM
Quote from: MaxiPes on June 01, 2008, 01:48:17 PM
This mod is wery good! ;)
Will it be for SMF 2.0 too?
THX
It soon become.I think , ask to Daniel15 :)
Title: Re: SMFShop - Shop MOD
Post by: MaXiForum.cz on June 01, 2008, 04:08:02 PM
it´s a perfect 8)
Daniel15 is a master...
Title: Re: SMFShop - Shop MOD
Post by: tyty1234 on June 07, 2008, 10:38:45 PM
Hi!

I just installed SMF Shop and for strange reasons, it's not counting the points every time someone posts. But I did get a error message before applying the mod. It said this.

Quote
2.    Execute Modification    ./Sources/Load.php    Test failed
5.    Execute Modification    ./Sources/Post.php    Test failed
6.    Execute Modification    ./Sources/RemoveTopic.php    Test failed
10.    Execute Modification    ./Themes/default/Display.template.php    Test failed

It also said this

Quote
This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Here is the list I have installed already.
Quote
SMF Shop 3.0
CountryFlags 1.0.1
Ultimate Profile Mod 0.8.3

What is the problem? I am very new to SMF.
Title: Re: SMFShop - Shop MOD
Post by: slackerpunk on June 16, 2008, 09:37:49 AM
what code can I use for a tinyportal block to show richest members?
Title: Re: SMFShop - Shop MOD
Post by: MaXiForum.cz on June 16, 2008, 06:08:36 PM
You must the mod install manualy (as me )...
Title: Re: SMFShop - Shop MOD
Post by: kquinn on June 16, 2008, 09:39:55 PM
I added the shop mod to my forum, but I cannot find in the admin area how to customize what is in the shop, etc.

I am running 1.1.5 &  Dilber MC theme.
Title: Re: SMFShop - Shop MOD
Post by: slackerpunk on June 17, 2008, 01:42:31 PM
what code can I use for a tinyportal block to show richest members?
Title: Re: SMFShop - Shop MOD
Post by: germz on June 17, 2008, 09:03:05 PM
I'm having trouble with.
"./Sources/Subs-Boards.php"
"./Themes/default/ManageBoards.template.php"

I have tried the parser and manual installation but I get errors. I have fixed the sub boards but everytime I do what the parser tells met to do with the manage boards I get errors in my admin panel.
Title: Re: SMFShop - Shop MOD
Post by: germz on June 17, 2008, 09:07:39 PM
Here is the file... it tells me to find that.


<input type="checkbox" name="override_theme"', $context['board']['override_theme'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';

And add after


//BEGIN SMFShop Shop MOD 1.3 (Build 6) code
loadLanguage("Shop");
echo '                     <tr>
<td>
<b>', $txt['shop_count_points'], '</b><br />
', $txt['shop_count_points_msg'], '<br /><br />
</td>
<td valign="top" align="right">
<input type="checkbox" name="countMoney"', $context['board']['countMoney'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';
//END SHOP MOD


The problem is that the the original code doesn't have

';


At the end and when I add that I get the parsing error.
Title: Re: SMFShop - Shop MOD
Post by: ilovegames on June 18, 2008, 04:32:04 PM
We have the shop installed on our board. I'm running 1.1.5  after the upgrade
it no longer shows the items they purchase under their avatar. It shows in the admin panel
but not on the members profiles. Any idea why? 
Title: Re: SMFShop - Shop MOD
Post by: dico on June 21, 2008, 09:48:39 AM
i installed it on a 1.1.5

on a fairly new test forum w/ few packages

and i cant see any shop options in the admin panel

no where to access shop controls

im using the default theme
Title: Re: SMFShop - Shop MOD
Post by: dico on June 21, 2008, 05:25:58 PM
ok just to really test this mod...i created a brand new forum 1.1.4

no upgrades and no mods...stock theme

and i installed this mod

and i dont see any shop edit options....in the admin section

i see the shop button at the top but i want to adjust the shop stuff
Title: Re: SMFShop - Shop MOD
Post by: Burke ♞ Knight on June 30, 2008, 06:58:07 PM
I'm using SMF 1.1.5 with Simple Portal.
When using the section to Show Recently Purchased block, I get this where the block is:

Table 'dbasename.smf_shop_purchHis' doesn't exist
File: /smfinstalldir/Sources/SPortal.php
Line: 783

Database name and install dir changed for post.

Is this a SMF Shop issue or a Simple Portal issue?
Title: Re: SMFShop - Shop MOD
Post by: [SiNaN] on July 04, 2008, 04:40:49 AM
You should install the Shop Stats modification too.
Title: Re: SMFShop - Shop MOD
Post by: clanny on July 04, 2008, 05:13:34 AM
The
"CHANGE YOUR USER TITLE" ITEM HAS ERRORS

"Unknown column 'Unknown' in 'field list'
File: /home/efz/public_html/forum/Sources/Subs.php
Line: 631

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.5, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php."


How do you fix it? 
Title: Re: SMFShop - Shop MOD
Post by: Burke ♞ Knight on July 04, 2008, 09:22:39 AM
I can't seem to find the stats mod in the mods database.
Title: Re: SMFShop - Shop MOD
Post by: [SiNaN] on July 04, 2008, 09:27:00 AM
It's here:

http://www.daniel15.com/forum/index.php/topic,1219.0.html
Title: Re: SMFShop - Shop MOD
Post by: clanny on July 04, 2008, 11:30:53 AM
Can anyone help me with above?
Title: Re: SMFShop - Shop MOD
Post by: Lukasas on July 05, 2008, 05:05:35 AM
Hi. I'm from Czech Repulic.

When yourself anybody buy items and anybody re-write his nick even [color="#00FF00"]Lukasas[/color] and cliks in Use Items is Write

Nastala chyba!

Hacking attempt...

please help me
Title: Re: SMFShop - Shop MOD
Post by: MaXiForum.cz on July 05, 2008, 12:13:25 PM
Can I ask, if in the mod is LOG to see who send money to someone?
Is it possible to find it out?
THX
Title: Re: SMFShop - Shop MOD
Post by: clanny on July 09, 2008, 10:38:28 PM
is the mod support for this still available?
Because i need some help with this
Title: Re: SMFShop - Shop MOD
Post by: Oldiesmann on July 10, 2008, 12:49:13 PM
Try posting on the official Shop MOD support forum - http://www.daniel15.com/forum/
Title: Re: SMFShop - Shop MOD
Post by: Tracey12 on July 23, 2008, 09:10:07 PM
I tried to use the item chance user title, and I got this;
QuoteUnknown column 'HBIC' in 'field list'
File: /home/***/public_html/forums/Sources/Subs.php
Line: 631

Any help? Thanks.
Title: Re: SMFShop - Shop MOD
Post by: dulimited on July 24, 2008, 01:48:20 PM
(http://i37.tinypic.com/3c509.png)

The Shop Administration options won't show up.  One more thing, my forum doesn't use the default theme.  Is that the problem?
Title: Re: SMFShop - Shop MOD
Post by: NicKCramleT on July 26, 2008, 03:18:40 PM
It installs it and everything works perfect, excluding the bank...

Since he does not generate the interests daily, place I it so that she gained 5% per day and she does not generate anything...

He is possible to emphasize that he installs mod to him so that he worked with arcade, osseous, is necessary to buy an article in the store to be able to play in arcade, but in the bank when depositing all good only that does not generate the interests...

Since I can make to resolve that problem? Thanks and salu2
Title: Re: SMFShop - Shop MOD
Post by: Adish - (F.L.A.M.E.R) on July 27, 2008, 07:59:22 PM
Whilte installation:-
10.     Execute Modification     ./Themes/default/Display.template.php     Test failed

Tried to do this:-
In file $themedir/Display.template.php

Find:

// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';


Replace with:

// Show how many posts they have made.
// echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />
// <br />';

            // BEGIN SMFShop MOD New Version Code
// Removed one <br /> from end of post count line.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';

echo '
', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '<br /><br />
<a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Inventory</a><br />
<a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">Send Money to ', $message['member']['name'], '</a><br />';
//END SMFShop code



Problem:-
The test Failed.
I dont have the code which it tells me to find
I have this similar code but due to refferel mod installed I cannot replace thi:-
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
', $txt['referrals_referrals'].' '.$message['member']['referrals_no'].'<br />
<br />';


Cannot do the theme edits as the codes which asks me to find in my Dark Night theme are not found in there and hence i suppose it wont display in my admin panel.

I used SMF Package Parser to do the coding.

Kindly help me out.

Thanks.
Title: Re: SMFShop - Shop MOD
Post by: God Of Mana on July 31, 2008, 03:20:54 PM
How could i get the cash to show up as only whole numbers?
I'm using the sufffix  term "Orbs" and it doesn't make sense having peices of orbs.
Title: Re: SMFShop - Shop MOD
Post by: God Of Mana on July 31, 2008, 04:11:23 PM
Quote from: dulimited on July 24, 2008, 01:48:20 PM
(http://i37.tinypic.com/3c509.png)

The Shop Administration options won't show up.  One more thing, my forum doesn't use the default theme.  Is that the problem?

yes, but i had this same problem.  go to {yourforum}/themes/default/languages and move (or copy and paste) take out your default language file to {yourforum}/themes/{current theme}/languages
Reload the page. done
Title: Re: SMFShop - Shop MOD
Post by: MaXiForum.cz on August 01, 2008, 06:20:13 AM
It´s there anybody who can create SHOP LOG?
(who send money to someone)
Support http://www.daniel15.com/ is dead :( :( :(
Title: Re: SMFShop - Shop MOD
Post by: callteg4 on August 01, 2008, 09:11:35 AM
Sorry if this has been asked there is far to many pages to look in
Is there a way to make the images in the shop a little bigger so that we can make out what the picture is  ;)
Title: Re: SMFShop - Shop MOD
Post by: God Of Mana on August 01, 2008, 12:32:12 PM
Quote from: Pauls on August 01, 2008, 09:11:35 AM
Sorry if this has been asked there is far to many pages to look in
Is there a way to make the images in the shop a little bigger so that we can make out what the picture is  ;)
Yes, In Shop Administration>General Settings>Use the Image width and Image height options to change the image sizes.
Title: Re: SMFShop - Shop MOD
Post by: callteg4 on August 01, 2008, 02:10:58 PM
Quote from: God Of Mana on August 01, 2008, 12:32:12 PM
Quote from: Pauls on August 01, 2008, 09:11:35 AM
Sorry if this has been asked there is far to many pages to look in
Is there a way to make the images in the shop a little bigger so that we can make out what the picture is  ;)
Yes, In Shop Administration>General Settings>Use the Image width and Image height options to change the image sizes.

Thank you so much how did i miss that lol
I have another question I have made one of my members a banker so his user name is shop banker but he cant see the shop in the admin panel I have set his premissions but he still cant see it
Title: Re: SMFShop - Shop MOD
Post by: LunaGirl on August 02, 2008, 02:55:43 AM
I can't seem to view my ShopAdmin.
Title: Re: SMFShop - Shop MOD
Post by: callteg4 on August 02, 2008, 01:49:22 PM
Is there a extra mod so that we can have a list of members so that we dont have to type a members name to view there inventory please
Title: Re: SMFShop - Shop MOD
Post by: God Of Mana on August 05, 2008, 07:48:36 AM
Quote from: Pauls on August 01, 2008, 02:10:58 PM
Quote from: God Of Mana on August 01, 2008, 12:32:12 PM
Quote from: Pauls on August 01, 2008, 09:11:35 AM
Sorry if this has been asked there is far to many pages to look in
Is there a way to make the images in the shop a little bigger so that we can make out what the picture is  ;)
Yes, In Shop Administration>General Settings>Use the Image width and Image height options to change the image sizes.

Thank you so much how did i miss that lol
I have another question I have made one of my members a banker so his user name is shop banker but he cant see the shop in the admin panel I have set his premissions but he still cant see it

Are you sure you set his member group to Administrator? Only admins can access the shop adminstration.
Title: Re: SMFShop - Shop MOD
Post by: callteg4 on August 05, 2008, 10:54:49 AM
Thank you so much what i did was made a new membergroup and put him in that then changed the settings for him but he his now in admin group and he can see it thanks again
Title: Re: SMFShop - Shop MOD
Post by: dulimited on August 05, 2008, 04:13:12 PM
Quote from: God Of Mana on July 31, 2008, 04:11:23 PM
Quote from: dulimited on July 24, 2008, 01:48:20 PM
(http://i37.tinypic.com/3c509.png)

The Shop Administration options won't show up.  One more thing, my forum doesn't use the default theme.  Is that the problem?

yes, but i had this same problem.  go to {yourforum}/themes/default/languages and move (or copy and paste) take out your default language file to {yourforum}/themes/{current theme}/languages
Reload the page. done

Thanks.
Title: Re: SMFShop - Shop MOD
Post by: Riey on August 06, 2008, 08:34:13 AM
(http://i118.photobucket.com/albums/o113/submundo_imagens/limite.jpg)

the mod shop has a credit limit of the items, and in the pocket or bank of each member ...

in this case the maximum value of an item is 999999.99 credits ... I wanted to learn how to increase that limit to another 9

I am Portuguese, translate the text from Portuguese to English translator in google :x
Title: Re: SMFShop - Shop MOD
Post by: Rubyforlife on August 07, 2008, 05:52:41 PM
I've been using smfshop for a while now and appeared to have no problems until now.
I'm trying to import a backup of my database but as soon as it gets to anything shop related it spits out errors at me!  :(
I found a thread solving the `desc` issue but now I'm getting this:

Error

SQL query:

# # Dumping data in `smf_shop_items` # INSERT INTO `smf_shop_items` (`id`, `name`, `desc`, `price`, `module`, `stock`, `info1`, `info2`, `info3`, `info4`, `input_needed`, `can_use_item`, `delete_after_use`, `image`, `category`) VALUES (28, 'Devil', 'Eeeek...Created by Bethany', 250.00, 'testitem', 48, '', '', '', '', 0, 1, 0, 'devil.png', 1), (29, 'Watermelon', 'Mmmm...', 100.00, 'testitem', 45, '', '', '', '', 0, 1, 0, 'waternelon.png', 1), (3, 'Add 100 to Post Count', 'Increase your Post Count by 100!', 600.00, 'AddToPostCount', 40, 100, '', '', '', 0, 1, 1, 'positive.gif', 2), (4, 'Increase Karma', 'Increase your Karma by 5 :)', 300.00, 'IncreaseKarma', 46, 5, '', '', '', 0, 1, 1, 'positive.gif', 2), (47, 'Change User Title', 'Change your user title.', 150.00, 'ChangeUserTitle', 39, '', '', '', '', 1, 1, 1, 'blank.gif', 2), (7, 'Increase Total Time', 'Increase your total time logged in by 12 hours.', 600.00, 'IncreaseTimeLoggedIn', 50, 43200, '', '', '', 0, 1[...]

MySQL said: Documentation
#1054 - Unknown column 'delete_after_use' in 'field list'

Please, does anyone know how to solve this? I really need to get this database uploaded!  :-[
Title: Re: SMFShop - Shop MOD
Post by: Riey on August 09, 2008, 03:03:00 PM
Quote from: Riey on August 06, 2008, 08:34:13 AM
(http://i118.photobucket.com/albums/o113/submundo_imagens/limite.jpg)

the mod shop has a credit limit of the items, and in the pocket or bank of each member ...

in this case the maximum value of an item is 999999.99 credits ... I wanted to learn how to increase that limit to another 9


nadding? :x
Title: Re: SMFShop - Shop MOD
Post by: souljaa on August 12, 2008, 11:55:15 PM
Hey guysl!
I tried several times to try and make it work with the theme I'm using.
I'm doing exactly what's told here.
http://www.daniel15.com/forum/index.php?topic=39.0
It's worked for me in the past, but now, for this theme, everytime I try to replace it, all it does is take out the Post Count in the side, and no sign of the Shop Points show up. :/
Hope you can help me!
Thank you.
Souljaa
Title: Re: SMFShop - Shop MOD
Post by: callteg4 on August 13, 2008, 07:51:02 AM
Hello all How do I go about adding a shop button to my nav bar on a different theme?
also how do I get the send money to someone view inventory in my forum next to members names where they have posted?

please help thanks
Title: Re: SMFShop - Shop MOD
Post by: aerone on August 13, 2008, 07:07:27 PM
I have just installed the Shop Hack on my SMF forum but I keep getting a slew of error messages such as the following:

8: Undefined index: shop_admin_usergroup
File: /forum/Sources/Subs.php
Line: 2930
?action=admin

8: Undefined index: shop_admin_restock
File: /forum/Sources/Subs.php
Line: 2929
?action=admin

8: Undefined index: shop_admin_inventory
File: /forum/Sources/Subs.php
Line: 2928
?action=admin

8: Undefined index: shop_admin_cat
File: /forum/Sources/Subs.php
Line: 2927
?action=admin

8: Undefined index: shop_admin_items_addedit
File: /forum/Sources/Subs.php
Line: 2926
?action=admin

8: Undefined index: shop_admin_general
File: /forum/Sources/Subs.php
Line: 2925
?action=admin

8: Undefined index: shop_admin
File: /home/kyle/public_html/forum/Sources/Subs.php
Line: 2923
?action=admin


My next problem is in the Administration center the controls to manage the Shop aren't showing up.  The coding is in the HTML when you view the source but its just not showing up on the page.  I've taken the advice and copied the default language to all the themes we have to see if thats the problem and its still not showing up.

Any help would be great to get rid of all of these problems.
Title: Re: SMFShop - Shop MOD
Post by: erisa on August 13, 2008, 10:17:33 PM
Quote from: Pauls on August 13, 2008, 07:51:02 AM
Hello all How do I go about adding a shop button to my nav bar on a different theme?
please help thanks

Change accordingly.

Quote// Show the [shop] button.
                                   echo '<li><a' , $current_action=='shop' ? ' class="current"' : '' , ' href="', $scripturl, '?action=shop"><span>Shop</span></a></li>';
Title: Re: SMFShop - Shop MOD
Post by: chinaren on August 21, 2008, 09:27:14 AM
Howdy.  This is a great mod, I really desire it greatly!  ;)

I've installed it, but it doesn't show the images!! The images are there, in the file system if I look via FTP, but they just don't show up on the shop.   Everything else seems to work fine, though I haven't done extensive testing yet.

My board is un-modified 1.1.5 default theme with no mods exept this one.  I'm getting this in the error log:

Quote512: parseModification(): The filename 'Themes/default/Display.template.php' is not a full path!
File: /home/xxx/public_html/smf/Sources/Subs-Package.php
Line: 1339

      
http://xxx.com/smf/index.php?action=packages;sa=uninstall;package=ProfileImage_Item_0.1.zip

512: parseModification(): The filename 'Themes/default/Display.template.php' is not a full path!
File: /home/xxxpublic_html/smf/Sources/Subs-Package.php
Line: 1339

http://xxx.com/smf/index.php

Database Error: Table 'xxx_smf1.smf_shop_purchHis' doesn't exist
File: /home/tomecit/public_html/smf/Sources/SPortal.php
Line: 1343

Any ideas???    ???
Title: Re: SMFShop - Shop MOD
Post by: LeBaux on August 21, 2008, 02:13:36 PM
Quote from: chinaren on August 21, 2008, 09:27:14 AM
Howdy.  This is a great mod, I really desire it greatly!  ;)

I've installed it, but it doesn't show the images!! The images are there, in the file system if I look via FTP, but they just don't show up on the shop.   Everything else seems to work fine, though I haven't done extensive testing yet.

My board is un-modified 1.1.5 default theme with no mods exept this one.  I'm getting this in the error log:

Quote512: parseModification(): The filename 'Themes/default/Display.template.php' is not a full path!
File: /home/xxx/public_html/smf/Sources/Subs-Package.php
Line: 1339

      
http://xxx.com/smf/index.php?action=packages;sa=uninstall;package=ProfileImage_Item_0.1.zip

512: parseModification(): The filename 'Themes/default/Display.template.php' is not a full path!
File: /home/xxxpublic_html/smf/Sources/Subs-Package.php
Line: 1339

http://xxx.com/smf/index.php

Database Error: Table 'xxx_smf1.smf_shop_purchHis' doesn't exist
File: /home/tomecit/public_html/smf/Sources/SPortal.php
Line: 1343

Any ideas???    ???

chmod themes folder to 777 or 755?
Title: Re: SMFShop - Shop MOD
Post by: Adish - (F.L.A.M.E.R) on August 21, 2008, 04:05:32 PM
Should there be a separate Section in the admin panel ? I think i had seen it last time when i had this mod working on my test forum... but yet confirming it...
Title: Re: SMFShop - Shop MOD
Post by: Riey on August 21, 2008, 07:20:36 PM
The bank has a bug, the credits never increase with the interest
Title: Re: SMFShop - Shop MOD
Post by: chinaren on August 21, 2008, 08:22:32 PM
Quotechmod themes folder to 777 or 755?

Good point.  Okay, I did that, then uninstalled it, and re-installed it.  It got rid of the error messages, but I still can't see the shop images!!! 

I even changed the shop pictures directory to 777, just in case. 

Everything else in the shop works.  You can edit stuff, buy stuff and all that jazz, but it just doesn't show the images (in the admin panel or anywhere).  It's driving me mad!!!!  >:(

Again, this is SMF 1.1.5, on a new install, default theme with only this mod active. 

Any ideas?!?!   :'(
Title: Re: SMFShop - Shop MOD
Post by: bfeo on August 22, 2008, 02:43:16 PM
I'd suggest 755, and did you recurse into sub?

Also, check the image size.  You may have set it to 0 or something.  It is on default at around 32 x 32 or something.  You cannot just set this to 0, because it will not then proceed to use the standard image size.  They all have to be the same.  Images smaller or larger will be resized.




I have a question about this mod.  In particular the steal item.  I wasn't very fond of using Karma, so I'm trying to change it from Karma to a reduction in the random number, which I set the variables of from 0-500, (mt_rand(0, 500)), or use

// Take this money away from stealee...
$result = db_query("
UPDATE {$db_prefix}members
SET money = money - {$steal_amount}
WHERE memberName = '{$user}'
LIMIT 1", __FILE__, __LINE__);
//...and give to stealer (robber)
$result = db_query("
UPDATE {$db_prefix}members
SET money = money + {$steal_amount}
WHERE ID_MEMBER = {$ID_MEMBER}
LIMIT 1", __FILE__, __LINE__);


And just switch either the + and -, or $user with $ID_MEMBER, but I'm not very good with PHP, and haven't been getting successful results.  How can I set it so that the person attempting to make the steal loses up to 500 credits, and gives that to the person they tried to steal from?

Here's the full bottom have of the file.  Assistance would be appreciated.

// We only want the first memberName found
$user = $userArray[0];

// Get a random number between 0 and 500
$try = mt_rand(0, 500);

// If successful
if ($try < $item_info[1])
{

// Get stealee's (person we're stealing from) money count
$result = db_query("
SELECT money
FROM {$db_prefix}members
WHERE memberName = '{$user}'", __FILE__, __LINE__);

// If user doesn't exist
if (mysql_num_rows($result) == 0)
die('ERROR: The specified user doesn\'t exist!');

$row = mysql_fetch_assoc($result);

// Get random amount between 0 and amount of money stealee has
$steal_amount = mt_rand(0, $row['money']);

// Take this money away from stealee...
$result = db_query("
UPDATE {$db_prefix}members
SET money = money - {$steal_amount}
WHERE memberName = '{$user}'
LIMIT 1", __FILE__, __LINE__);
//...and give to stealer (robber)
$result = db_query("
UPDATE {$db_prefix}members
SET money = money + {$steal_amount}
WHERE ID_MEMBER = {$ID_MEMBER}
LIMIT 1", __FILE__, __LINE__);

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
// 'karmaBad = karmaBad + 10' with 'karmaGood = karmaGood - 10'
$result = db_query("
UPDATE {$db_prefix}members
SET karmaBad = karmaBad + 10
WHERE ID_MEMBER = {$ID_MEMBER}", __FILE__, __LINE__);
   return 'Steal <b>unsuccessful!</b> Your Acclaim has been reduced by 10!  ...And you accidentally left some of your credits behind with the victim!';
}

}
}

?>
Title: Re: SMFShop - Shop MOD
Post by: chinaren on August 22, 2008, 09:01:44 PM
QuoteI'd suggest 755, and did you recurse into sub?

Also, check the image size.  You may have set it to 0 or something.  It is on default at around 32 x 32 or something.  You cannot just set this to 0, because it will not then proceed to use the standard image size.  They all have to be the same.  Images smaller or larger will be resized.

I did recurse, and the image size is at the default 32x32.   :(
Title: Re: SMFShop - Shop MOD
Post by: callteg4 on August 25, 2008, 12:02:15 AM
Hi could somebody help my members credits dont seem to be showing in there profiles, it says credits but nothing next to it thanks in advance paul
Title: Re: SMFShop - Shop MOD
Post by: souljaa on August 28, 2008, 01:16:00 PM
Hey guys, anyways, I just installed this mod for the shop here --
http://www.dansoftaustralia.net/smfshop_wiki/Items:Profile_Image
And I was just wondering, is there a way, where I would be able to add this item more than once, but with different images?
Like right now I added it, using one type of spefic image, is there a way where I would be able to add it again, but for other images?
Thanks
Souljaa
Title: Re: SMFShop - Shop MOD
Post by: Aaron on August 28, 2008, 06:16:29 PM
For those looking for a version of SMF Shop that works with SMF 2.0 Beta 4: have a look here (http://www.daniel15.com/forum/index.php/topic,1782.0.html).
Title: Re: SMFShop - Shop MOD
Post by: Marcus Forsberg on August 30, 2008, 04:57:34 AM
Will this work whit 2.x?

And if not, will it do in the future?
Title: Re: SMFShop - Shop MOD
Post by: [SiNaN] on August 30, 2008, 05:35:26 AM
Quote from: Aäron on August 28, 2008, 06:16:29 PM
For those looking for a version of SMF Shop that works with SMF 2.0 Beta 4: have a look here (http://www.daniel15.com/forum/index.php/topic,1782.0.html).
Title: Re: SMFShop - Shop MOD
Post by: Marcus Forsberg on August 30, 2008, 08:41:14 AM
Oh, stupid me.. didn't notice :P
Title: Re: SMFShop - Shop MOD
Post by: chinaren on August 30, 2008, 09:13:06 AM
I still can't see any images on the shop.  Other images work fine now, it's only the shop ones, or any I upload to the shop directory. 

Anyone?  Anyone at all?   :-[
Title: Re: SMFShop - Shop MOD
Post by: Mother Goose on August 30, 2008, 12:11:10 PM
Would it be acceptable to offer a zip file of shop icons in this thread? 
Title: Re: SMFShop - Shop MOD
Post by: Adish - (F.L.A.M.E.R) on August 30, 2008, 03:31:28 PM
Quote from: F.L.A.M.E.R on August 21, 2008, 04:05:32 PM
Should there be a separate Section in the admin panel ? I think i had seen it last time when i had this mod working on my test forum... but yet confirming it...
Title: Re: SMFShop - Shop MOD
Post by: tuguex on September 01, 2008, 09:58:21 AM
I have a litle problem whit my bank  ::)
I put 7% of interest in the bank,  but the "Money" after a day is still the same.
Anyone have a ideia what i should to dO?

thnks
Title: Re: SMFShop - Shop MOD
Post by: bfeo on September 01, 2008, 10:24:37 AM
Quote from: Mother Goose on August 30, 2008, 12:11:10 PM
Would it be acceptable to offer a zip file of shop icons in this thread? 

Probably.  :)
Title: Re: SMFShop - Shop MOD
Post by: Celdric on September 01, 2008, 12:40:39 PM
Quote from: chinaren on August 30, 2008, 09:13:06 AM
I still can't see any images on the shop.  Other images work fine now, it's only the shop ones, or any I upload to the shop directory. 

Anyone?  Anyone at all?   :-[


Hi. :) What is it showing instead of the pictures? Broken links or just white space? Click the "buy stuff" link and then take a look at your sites source code, if the item picture links are mentioned at all.
Title: Re: SMFShop - Shop MOD
Post by: Celdric on September 01, 2008, 12:46:12 PM
Quote from: tuguex on September 01, 2008, 09:58:21 AM
I have a litle problem whit my bank  ::)
I put 7% of interest in the bank,  but the "Money" after a day is still the same.
Anyone have a ideia what i should to dO?

thnks


Did you read the note at the shop download page? :)

QuoteNOTE: In order to get the bank interest working, you MUST set a cron job. If your web host uses cPanel, please see http://www.daniel15.com/smfshop_wiki/Bank_Interest for details on how to get this working
Title: Re: SMFShop - Shop MOD
Post by: Mother Goose on September 01, 2008, 04:35:11 PM
Quote from: bfeo on September 01, 2008, 10:24:37 AM
Quote from: Mother Goose on August 30, 2008, 12:11:10 PM
Would it be acceptable to offer a zip file of shop icons in this thread? 

Probably.  :)

Thanks! ;)
Title: Re: SMFShop - Shop MOD
Post by: tuguex on September 01, 2008, 06:02:08 PM
In the shop, when i trie to use the "change user title" item, i've got this error:

QuoteUnknown column 'lolol' in 'field list'
Ficheiro: /home/pedrofb/public_html/Sources/Subs.php
Linha: 631

Why?

thnks
Title: Re: SMFShop - Shop MOD
Post by: chinaren on September 01, 2008, 07:16:31 PM
Quote from: Celdric on September 01, 2008, 12:40:39 PM
Hi. :) What is it showing instead of the pictures? Broken links or just white space? Click the "buy stuff" link and then take a look at your sites source code, if the item picture links are mentioned at all.
It shows placeholders, or a blank space depending on the browser.  The pictures are in the correct directory (checked via FTP).

Not sure what you mean by the source code though.  Pics work for everything else on the site, just not the shop.  :'( Any help greatly appreciated, 'cos this small fault is sort of spoiling this great mod.
Title: Re: SMFShop - Shop MOD
Post by: Mother Goose on September 03, 2008, 03:25:47 AM
This Zip file contains 38 icons for the SMF Shop Mod in 32x32 .gif images. Some are animated, some are not.

Most are *not* shop mod actions incorporated in the mod, but supportive comments and images forum members can send to each other.

For example "I think the world of you".... (http://i157.photobucket.com/albums/t41/HomesteadHeaven/shop_icons/You_Mean_The_World_to_Me.gif)  Or... "I think you are super".... (http://i157.photobucket.com/albums/t41/HomesteadHeaven/shop_icons/You_Are_Super.gif)  "You are so cute"... (http://i157.photobucket.com/albums/t41/HomesteadHeaven/shop_icons/Too_Cute.gif) "You are such a gift" (http://i157.photobucket.com/albums/t41/HomesteadHeaven/shop_icons/You_Are_Such_A_Gift.gif) or a rose to tell them how you feel (http://i157.photobucket.com/albums/t41/HomesteadHeaven/shop_icons/Rose.gif)

Perhaps you want to send someone a salute... (http://i157.photobucket.com/albums/t41/HomesteadHeaven/shop_icons/Salute.gif) , or a bow, (http://i157.photobucket.com/albums/t41/HomesteadHeaven/shop_icons/ZenBow.gif) , let them know you are lighting a candle for them... (http://i157.photobucket.com/albums/t41/HomesteadHeaven/shop_icons/Lighting-a-cadle-for-you.gif), or think they are a little devil... (http://i157.photobucket.com/albums/t41/HomesteadHeaven/shop_icons/Little_Devil.gif)

There are most of the standard mod icons with a new look. Send the Admin a PM... (http://i157.photobucket.com/albums/t41/HomesteadHeaven/shop_icons/PM_Admin.gif) , sticky a topic, (http://i157.photobucket.com/albums/t41/HomesteadHeaven/shop_icons/Sticky_Topic.gif) , or buy someone a beer, (http://i157.photobucket.com/albums/t41/HomesteadHeaven/shop_icons/Cold_Beer.gif).

Use a standard item in a new way, send someone a "karma key" so they can increase their karma count (http://i157.photobucket.com/albums/t41/HomesteadHeaven/shop_icons/Karma_Key.gif) or send a silly cyber pet... (http://i157.photobucket.com/albums/t41/HomesteadHeaven/shop_icons/Cyber_Pet1.gif) (http://i157.photobucket.com/albums/t41/HomesteadHeaven/shop_icons/Cyber_Pet3.gif) (http://i157.photobucket.com/albums/t41/HomesteadHeaven/shop_icons/Cyber_Pet2.gif)

Maybe tell someone you think they are a drama queen, (http://i157.photobucket.com/albums/t41/HomesteadHeaven/shop_icons/DramaQueen.gif), or just the standard "dime a dozen" forum flirt (http://i157.photobucket.com/albums/t41/HomesteadHeaven/shop_icons/Flirt.gif) or just steal their credits (http://i157.photobucket.com/albums/t41/HomesteadHeaven/shop_icons/Steal_Credits.gif)

Shop_Icons ZIP File  (http://homesteadexchangenetwork.net/Shop_Icons.zip)

*I did not make all of these animations. I did all of the adaptions for this set to be used with the SMF Shop Mod however. These images are freely available on the net for common use, and not to be added to any collections for profit or sale.

Title: Re: SMFShop - Shop MOD
Post by: callteg4 on September 03, 2008, 07:38:42 AM
Is there a way to have these as send to a friend but so that once we but them we can add our message before sending to them so this will show on they inventory if you know what i mean
Title: Re: SMFShop - Shop MOD
Post by: Mother Goose on September 03, 2008, 12:30:29 PM
Yes.. that's part of the shop program!  ;D
Title: Re: SMFShop - Shop MOD
Post by: callteg4 on September 05, 2008, 06:18:54 PM
Quote from: Mother Goose on September 03, 2008, 12:30:29 PM
Yes.. that's part of the shop program!  ;D

So any instuctions on how this is done
Title: Re: SMFShop - Shop MOD
Post by: Mother Goose on September 05, 2008, 08:57:36 PM
Do you have this mod installed?  It's fairly apparent once you buy a shop item.
Title: Re: SMFShop - Shop MOD
Post by: Adish - (F.L.A.M.E.R) on September 05, 2008, 08:59:41 PM
@Mother Goose.. I liked your smiley collection site, i have used around 10-20 of them and all love it.. sorry for the comment in wrong topic, but just appritiate the work.. cheers..
Title: Re: SMFShop - Shop MOD
Post by: Mother Goose on September 05, 2008, 11:21:39 PM
Ohh thank you so much!! I'm very touched. It's good to hear that once in a while. :)
Title: Re: SMFShop - Shop MOD
Post by: callteg4 on September 06, 2008, 10:13:32 AM
Quote from: Mother Goose on September 05, 2008, 08:57:36 PM
Do you have this mod installed?  It's fairly apparent once you buy a shop item.

I do have it installed but what item should i ad from the shop admin panel please
Title: Re: SMFShop - Shop MOD
Post by: Mother Goose on September 06, 2008, 05:54:45 PM
Well, I am really a techno-tard! LOL I was just posting the images to share. *I* just edited the "test" item names and added my own information.

If their is a better way to do it, perhaps someone can help out here.
Title: Re: SMFShop - Shop MOD
Post by: Daisuke_aurora on September 11, 2008, 03:20:47 PM
Can someone help me with an item? I'm getting an error.

Quote<?php
/**********************************************************************************
* SMFShop item                                                                    *
***********************************************************************************
* SMFShop: Shop MOD for Simple Machines Forum                                     *
* =============================================================================== *
* Software Version:           SMFShop 3.0 (Build 12)                              *
* $Date:: 2007-01-18 19:26:55 +1100 (Thu, 18 Jan 2007)                          $ *
* $Id:: IncreaseAtk.php 79 2007-01-18 08:26:55Z Daisuke                         $ *
* Software by:                Daisuke (http://www.daisukesdojo.heliohost.org/)    *
* Copyright 2005-2007 by:     Daisuke (http://www.daisukesdojo.heliohost.org/)    *
* Support, News, Updates at:  http://www.daisukesdojo.heliohost.org/              *
*                                                                                 *
* 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_Potion extends itemTemplate
{
   function getItemDetails()
   {
      $this->authorName = 'Daisuke';
      $this->authorWeb = 'http://www.daisukesdojo.heliohost.org/';
      $this->authorEmail = '[email protected]';

      $this->name = 'Potion!';
      $this->desc = 'Restores 30 HP!';
      $this->price = 500;

      $this->require_input = false;
      $this->can_use_item = true;
      $this->addInput_editable = true;
   }
   
   // See 'AddToPostCount.php' for info on how this works
   function getAddInput()
   {
      global $user_info;
      if ($item_info[1] == 0) $item_info[1] = 1;
      return 'Amount to increase Current HP by: <input type="text" name="info1" value="' . $item_info[1] . '" />';
   }

   function onUse()
   {
      global $db_prefix, $ID_MEMBER, $item_info;

//Find what their current HP is.
      $request = db_query("
      SELECT value
      FROM {$db_prefix}themes   
      WHERE variable = 'CP1'      
      AND ID_MEMBER = $ID_MEMBER   
   LIMIT 1", __FILE__, __LINE__);
list ($HP) = mysql_fetch_row($request);
mysql_free_result($request);

//Find what their MAX HP is.
      $request = db_query("
      SELECT value
      FROM {$db_prefix}themes   
      WHERE variable = 'CP9'      
      AND ID_MEMBER = $ID_MEMBER   
   LIMIT 1", __FILE__, __LINE__);
list ($MAX) = mysql_fetch_row($request);
mysql_free_result($request);

//Their HP can't go over their MAX.
If ($HP + $item_info > $MAX)
{
                        $Heal = $MAX;
}
Else
{
                        $Heal = $HP + $item_info;
}
      db_query("
         UPDATE {$db_prefix}themes
         SET value = $Heal
         WHERE variable = 'CP1' AND ID_MEMBER = {$ID_MEMBER}", __FILE__, __LINE__);      return 'Successfully restored ' . $item_info[1] . ' HP!';
   }

?>

It says it needs another function?
Title: Re: SMFShop - Shop MOD
Post by: darkelhaym on September 21, 2008, 04:47:16 PM
Quote from: tuguex on September 01, 2008, 06:02:08 PM
In the shop, when i trie to use the "change user title" item, i've got this error:

QuoteUnknown column 'lolol' in 'field list'
Ficheiro: /home/pedrofb/public_html/Sources/Subs.php
Linha: 631

Why?

thnks

Same here.
Title: Re: SMFShop - Shop MOD
Post by: dwd2000 on September 22, 2008, 02:01:47 AM
SMP1.1.6
SMFShop 3.0 (Build 12)

I would like to turn the shop into a sort of a tycoon game. The goal is to have the highest net worth.
People can buy and sell things, to hopefully increase their money, so they can buy and sell more expensive things.


So far, I am using a slightly modified "Random Money" engine as an investment type item, but it's not enough.

I've had this mod installed for only a day and see a lot of potential with it.

If these hacks are already available, please point my head in the right direction.

Title: Re: SMFShop - Shop MOD
Post by: Celdric on October 03, 2008, 01:09:15 AM
Anyone is using the shop with Joomla/SMF combination? I have problems with the item category search/sort. It delivers no results because it uses the old stand alone forum url

/index.php?action=shop&do=buy&cat=-1&sort=0&sortDir=0

instead
/index.php?option=com_smf&action=shop&do=buy&cat=-1&sort=0&sortDir=0

I have many items and currently members are forced to browse them all, if they are searching a particular one. Working categories would be a big help.
Perhaps anyone had the same issue and could solve the redirecting problem? :)
Title: Re: SMFShop - Shop MOD
Post by: Fonzarello on October 05, 2008, 08:16:09 PM
Will your ShopMod be available for SMF 1.1.6? I love your Mod. I would like to use it with my forum. I tried to go ahead and maually install it. Of course it wasn't fully operational. I knew I was taking a chance. I wanted it that bad. Help!!!
Title: Re: SMFShop - Shop MOD
Post by: dwd2000 on October 05, 2008, 08:22:42 PM
Quote from: Fonzarello on October 05, 2008, 08:16:09 PM
Will your ShopMod be available for SMF 1.1.6? I love your Mod. I would like to use it with my forum. I tried to go ahead and maually install it. Of course it wasn't fully operational. I knew I was taking a chance. I wanted it that bad. Help!!!

I'm using it on 1.1.6
No problems.
Title: Re: SMFShop - Shop MOD
Post by: Fonzarello on October 05, 2008, 08:29:06 PM
I can't add the necessary modifications to my Display.template.php file. Can you help? I've attached it for you. If you can help me, take a look at it and let me know what to do. Thanx.
Title: Re: SMFShop - Shop MOD
Post by: dwd2000 on October 05, 2008, 09:22:48 PM
Quote from: Fonzarello on October 05, 2008, 08:29:06 PM
I can't add the necessary modifications to my Display.template.php file. Can you help? I've attached it for you. If you can help me, take a look at it and let me know what to do. Thanx.

Most errors you get with installations are because a previously installed mod has already altered what the new installation is looking for.

You just had to play with it a bit. I also have the "Referral Mod", so I already had to do it.

For those of you that have the REFERRAL MOD...
This is the change you need for "Display.php"

Find:

// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
  <br />';


Replace with:

// Show how many posts they have made.
//echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />
// ', $txt['referrals_referrals'].' '.$message['member']['referrals_no'].'<br />
// <br />';
// BEGIN SMFShop MOD New Version Code
// Removed one <br /> from end of post count line.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br /> 
', $txt['referrals_referrals'].' '.$message['member']['referrals_no'], '<br /> '
;echo '
', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '<br /><br />
<a href="', $scripturl, '?action=shop;do=invother2;member=',  $message['member']['username'], '">View Inventory</a>
<br />
<a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">Send Money to ', $message['member']['name'], '</a>
<br />';
//END SMFShop code
Title: Re: SMFShop - Shop MOD
Post by: Fonzarello on October 06, 2008, 11:38:40 PM
Thanx. I'm going to try this now.
Title: Re: SMFShop - Shop MOD
Post by: Fonzarello on October 07, 2008, 12:05:38 AM
Quote from: dwd2000 on October 05, 2008, 09:22:48 PM
Quote from: Fonzarello on October 05, 2008, 08:29:06 PM
I can't add the necessary modifications to my Display.template.php file. Can you help? I've attached it for you. If you can help me, take a look at it and let me know what to do. Thanx.

Most errors you get with installations are because a previously installed mod has already altered what the new installation is looking for.

You just had to play with it a bit. I also have the "Referral Mod", so I already had to do it.

For those of you that have the REFERRAL MOD...
This is the change you need for "Display.php"

Find:

// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
  <br />';


Replace with:

// Show how many posts they have made.
//echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />
// ', $txt['referrals_referrals'].' '.$message['member']['referrals_no'].'<br />
// <br />';
// BEGIN SMFShop MOD New Version Code
// Removed one <br /> from end of post count line.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br /> 
', $txt['referrals_referrals'].' '.$message['member']['referrals_no'], '<br /> '
;echo '
', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '<br /><br />
<a href="', $scripturl, '?action=shop;do=invother2;member=',  $message['member']['username'], '">View Inventory</a>
<br />
<a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">Send Money to ', $message['member']['name'], '</a>
<br />';
//END SMFShop code


I have the referrals mod but, the lines of code that you posted to replace for users with referrals doesn't exist in my file. I'm unsure at this point with what to do next. HELP :(
Title: Re: SMFShop - Shop MOD
Post by: Fonzarello on October 07, 2008, 09:14:44 PM
Hello everyone out there. I'm trying to get the ShopMod to work with my SMF 1.1.6.
I get errors every time I try and install the package. Here's how the errors look.

13.     Execute Modification     ./Sources/Subs-Boards.php     Test failed
15.    Execute Modification    ./Themes/default/Display.template.php    Test failed
16.    Execute Modification    ./Themes/default/index.template.php    Test failed

I can manually edit the files: Sub-Boards, index.template.php however, the Display.template file I cannot. I've attached it for whoever can help me out with this one.
It seems the coding that needs to be changed/replaced is not in my file.

Thanx for any and all support.

Fonzarello


Title: Re: SMFShop - Shop MOD
Post by: anakmacan on October 07, 2008, 10:25:38 PM
When does it work with smf 2.0 ?
Title: Re: SMFShop - Shop MOD
Post by: robbie93 on October 08, 2008, 12:56:59 AM
Quote from: Fonzarello on October 07, 2008, 09:14:44 PM
Hello everyone out there. I'm trying to get the ShopMod to work with my SMF 1.1.6.
I get errors every time I try and install the package. Here's how the errors look.

13.     Execute Modification     ./Sources/Subs-Boards.php     Test failed
15.    Execute Modification    ./Themes/default/Display.template.php    Test failed
16.    Execute Modification    ./Themes/default/index.template.php    Test failed

I can manually edit the files: Sub-Boards, index.template.php however, the Display.template file I cannot. I've attached it for whoever can help me out with this one.
It seems the coding that needs to be changed/replaced is not in my file.

Thanx for any and all support.

Fonzarello




@ Fonzarello try this m8 :D hope it works ;D
Title: Re: SMFShop - Shop MOD
Post by: Fonzarello on October 08, 2008, 01:53:41 AM
Quote from: robbie93 on October 08, 2008, 12:56:59 AM
Quote from: Fonzarello on October 07, 2008, 09:14:44 PM
Hello everyone out there. I'm trying to get the ShopMod to work with my SMF 1.1.6.
I get errors every time I try and install the package. Here's how the errors look.

13.     Execute Modification     ./Sources/Subs-Boards.php     Test failed
15.    Execute Modification    ./Themes/default/Display.template.php    Test failed
16.    Execute Modification    ./Themes/default/index.template.php    Test failed

I can manually edit the files: Sub-Boards, index.template.php however, the Display.template file I cannot. I've attached it for whoever can help me out with this one.
It seems the coding that needs to be changed/replaced is not in my file.

Thanx for any and all support.

Fonzarello




@ Fonzarello try this m8 :D hope it works ;D

@ robbie93...It didnt work. Thanx.
I seriously want the shop mod and so do my members that I briefly introduced to them. Anymore suggestions. Any and all help is welcome. :)
Title: Re: SMFShop - Shop MOD
Post by: robbie93 on October 08, 2008, 12:11:32 PM
ummmm :o

I don't know why it didn't work,  it was a very simple edit which I did ;D

what happened?  did you install the mod with the errors then replace the file? 

the text that is needed to be replaced is in you're display.template.php 

I hope that you get it working :D
Title: Re: SMFShop - Shop MOD
Post by: genieuk on October 08, 2008, 12:33:51 PM
Hi,

I like the sound of this mod,

One question thou, i Don't use karma and wanted to know what other people uses aswell or instead of Karma points etc. I am trying to think what i could use this mod for.

Any ideas anyone ???

Mathew
Title: Re: SMFShop - Shop MOD
Post by: Fonzarello on October 08, 2008, 12:57:48 PM
Quote from: robbie93 on October 08, 2008, 12:11:32 PM
ummmm :o

I don't know why it didn't work,  it was a very simple edit which I did ;D

what happened?  did you install the mod with the errors then replace the file? 

the text that is needed to be replaced is in you're display.template.php 

I hope that you get it working :D

Ok. It worked. But once I replaced the display.template.php file, the SHOP link disappeared. I must want this Mod too badly. It's not cooperating. lol Any ideas?
Title: Re: SMFShop - Shop MOD
Post by: robbie93 on October 08, 2008, 02:33:57 PM
what do you mean by " the shop link " 

are you refering to the link to the shop in admin?  if so are you using english as you're language

Server settings>    Default Forum Language>  english

:D
Title: Re: SMFShop - Shop MOD
Post by: Fonzarello on October 08, 2008, 04:21:12 PM
Quote from: robbie93 on October 08, 2008, 02:33:57 PM
what do you mean by " the shop link " 

are you refering to the link to the shop in admin?  if so are you using english as you're language

Server settings>    Default Forum Language>  english

:D

The Shop button at in the button bar along with HOME, SEARCH, USER CP, etc...
The Admin Shop link is just find. As an Adinistrator I can get to the Shop settings and whatnot. However members cannot because the link to it is gone from the top.     
Title: Re: SMFShop - Shop MOD
Post by: robbie93 on October 08, 2008, 05:06:05 PM
uummm  strange don't know why you would lose a button to the shop :'(

whats the url to you're site?
Title: Re: SMFShop - Shop MOD
Post by: Fonzarello on October 08, 2008, 05:09:37 PM
Quote from: robbie93 on October 08, 2008, 05:06:05 PM
uummm  strange don't know why you would lose a button to the shop :'(

whats the url to you're site?
metrofreshboard.com
Title: Re: SMFShop - Shop MOD
Post by: Pspuser007 on October 14, 2008, 10:17:48 AM
Hello!

I hace Anecdota theme at version 1.1.6.
So i have to do some edits my self.
I am trying to find at the index.template.php file this :
<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>  </td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
And i cannot find the code..
Plus what else i what to do in order this MOD will work fine?

Thank you for your time!!
Title: Re: SMFShop - Shop MOD
Post by: Pspuser007 on October 15, 2008, 07:47:16 AM
Anyone please?
Title: Re: SMFShop - Shop MOD
Post by: psynx on October 20, 2008, 09:12:36 AM
@Fonzarello

you have to set permissions in your membergroup so they could view the shop button.
Title: Re: SMFShop - Shop MOD
Post by: kupals on October 20, 2008, 10:23:06 AM
whats the code for making SHOP button?
Title: Re: SMFShop - Shop MOD
Post by: cammy1568 on October 20, 2008, 12:11:55 PM
Is there a way that i can use a item to tell me that someone has purchased a VIP
Title: Re: SMFShop - Shop MOD
Post by: kupals on October 22, 2008, 06:53:07 AM

whats the code for making SHOP button?
Title: Re: SMFShop - Shop MOD
Post by: tyhgdgh on October 24, 2008, 02:54:50 AM
this mod works fine in SMF 1.1.6 besides the steal.

it says its not a user.
Title: Re: SMFShop - Shop MOD
Post by: adicrst on October 25, 2008, 06:15:20 AM
Does anyone know where i can find the 'Profile Image' item that works with smf 2.0. b4 ? I really need it, thank you
Title: Re: SMFShop - Shop MOD
Post by: MaXiForum.cz on October 25, 2008, 11:06:49 AM
Author did update, but there is something:
http://www.daniel15.com/forum/index.php/topic,1782.0.html (http://www.daniel15.com/forum/index.php/topic,1782.0.html)
Title: Re: SMFShop - Shop MOD
Post by: adicrst on October 25, 2008, 11:15:13 AM
yes, i am aware of that ship version that is compatible with smf 2.0. b4 but i am looking for an item called Profile image (made after the flag mod) that is compatible with ShopMod 3.1
The current version of this item isn't compatible.
Title: Re: SMFShop - Shop MOD
Post by: psynx on November 04, 2008, 12:51:24 AM
hello,

i have referral mod and arcade mod installed in my forum together with smf shop mod. i just need help if there is any way i can link my referral mod and arcade mod to shop? i mean, if a member refer a person then she/he gets credits automatically? and also if a member play an arcade he/she gets credits for playing?

this is really a great mod.
Title: Re: SMFShop - Shop MOD
Post by: bfeo on November 20, 2008, 09:47:09 PM
How can I put an image as the prefix for credits?
Title: Re: SMFShop - Shop MOD
Post by: Chimcanhcut on November 23, 2008, 01:11:54 PM
The support website is down. I've searched almost the topic but I cannot find out how to make a cron job for bank interest.

If anyone know how to make the "bank interest" works, please re-post it here. (Especially "how to make interest cron job for Cpanel")
Title: Re: SMFShop - Shop MOD
Post by: dwd2000 on November 23, 2008, 01:48:12 PM
Quote from: Chimcanhcut on November 23, 2008, 01:11:54 PM
The support website is down. I've searched almost the topic but I cannot find out how to make a cron job for bank interest.

If anyone know how to make the "bank interest" works, please re-post it here. (Especially "how to make interest cron job for Cpanel")

Try this:
http://www.daniel15.com/

The other site hasn't been working for a while. Personally, I found it easier to do the interest manually.
Title: Re: SMFShop - Shop MOD
Post by: LaughOften on November 23, 2008, 08:42:53 PM
I would like to offer my members $10 bonus Shop money for referrals. I would like the new member to have to make 5 posts before the money is credited to their account.

I don't use any referral mods at the present time.

Can someone tell me if this is possible and if so what I need to do to accomplish this?



I also would like to know-- If someone has tried to steal a members money and either succeeded or not,  Is there a way to send the member a PM or something to let them know someone is  stealing their money , etc?

Thanks in advance!!
Title: Re: SMFShop - Shop MOD
Post by: Chimcanhcut on November 24, 2008, 05:22:51 AM
Thank you Dwd2000.

I've just found out that my ip doesnt allow me to browse daniel15.com and dansoftaustralia.net

I thought the sites were dead :(

Thank you again

Title: Re: SMFShop - Shop MOD
Post by: LaughOften on November 25, 2008, 01:11:21 AM
Quote from: LaughOften on November 23, 2008, 08:42:53 PM
I would like to offer my members $10 bonus Shop money for referrals. I would like the new member to have to make 5 posts before the money is credited to their account.

I don't use any referral mods at the present time.

Can someone tell me if this is possible and if so what I need to do to accomplish this?



I also would like to know-- If someone has tried to steal a members money and either succeeded or not,  Is there a way to send the member a PM or something to let them know someone is  stealing their money , etc?

Thanks in advance!!

Anyone know about this?

I would like to do this without installing referral mod as it messed up my forum. I added a custom tab on registration for referrals but I have to manually watch each member to see who they were referred by and then wait for them to post 5 times. Pan in the neck!! lol!!

Thanks!!
Title: Re: SMFShop - Shop MOD
Post by: Daisuke_aurora on November 25, 2008, 09:22:53 AM
You could always add a code that checks their post count after they post and if their post count is exactly 5, it'll give them the points.
Title: Re: SMFShop - Shop MOD
Post by: LaughOften on November 25, 2008, 05:01:10 PM
That's the part I am not sure how to do. lol!!

I added a custom field on the registration to put in the name of the referral person but I have to keep checking the new members , then keep checking to see if they post 5 posts, then add $10 to the referring member. We are a new site and now is not so bad but as we pick up more members that process will get harder to do lol!!

Any help on the coding would most certainly be appreciated.
Title: Re: SMFShop - Shop MOD
Post by: Daisuke_aurora on November 26, 2008, 08:27:04 AM
I'll try it on my site and once I get a working code I'll let you know.
Title: Re: SMFShop - Shop MOD
Post by: LaughOften on November 26, 2008, 06:47:34 PM
Thank you very much. I appreciate it!!
Title: Re: SMFShop - Shop MOD
Post by: bfeo on November 27, 2008, 09:35:34 AM
Quote from: bfeo on November 20, 2008, 09:47:09 PM
How can I put an image as the prefix for credits?
Title: Re: SMFShop - Shop MOD
Post by: selorian on December 10, 2008, 11:38:18 PM
It seems rather pointless to post questions at the support site as it doesn't seem they are very often answered.

I have a writing website where members post and review work.  What I would like to do is make it so that members have to earn credits to post their own topics by posting replies/reviews to other members topics.  Depending on the length of their reply, they will get anywhere from 1/4 to 1 credit.  When they have two credits, they can then use those credits to post their own topic with their own work for review by other members.  I hope that makes sense.

My question is, would SMFShop work for this?  And if so, as I believe it would, are there any hacks or mods out there already to accomplish this or something very similar to it?  In any event, could someone point me in the right direction on this, whether it be a link to pre-existing code or an idea on how to do it myself.
Title: Re: SMFShop - Shop MOD
Post by: Daisuke_aurora on December 12, 2008, 08:42:46 AM
You could take away the member's permissions to post new topics, then make an item that cost X points and would allow a member to make a new topic once. The item, on use, would allow them to make 1 new topic. Sounds about right?
Title: Re: SMFShop - Shop MOD
Post by: selorian on December 12, 2008, 12:51:03 PM
Thanks, that gives me something to look into.

I've been thinking and realized that I'll also need a way to keep comments within their own topics from accumulating points, since the whole reason behind this is to encourage commenting on others work.
Title: Re: SMFShop - Shop MOD
Post by: Daisuke_aurora on December 12, 2008, 01:41:55 PM
hmm... that's a little more complex, Basically when a person posts, you can make it fetch the id of the topic starter, and then check it to the id of the poster. If the poster ID and Starter ID match, no points are given.
Title: Re: SMFShop - Shop MOD
Post by: Ranjeet Malik on December 15, 2008, 01:27:50 PM
will it work on 1.1.7
Title: Re: SMFShop - Shop MOD
Post by: Daisuke_aurora on December 15, 2008, 02:26:42 PM
What I posted above? It'll work on any version.
Title: Re: SMFShop - Shop MOD
Post by: x73x on December 22, 2008, 01:12:04 AM
Hey I got this error today

8: Undefined index: allow_smfstore_view
File: C:\x\htdocs\forum\Themes\Reborn\index.template.php
Line: 162

does anybody know how to fix it
Title: Re: SMFShop - Shop MOD
Post by: Mick. on December 23, 2008, 03:55:56 PM
Any of you guys care of posting a DEMO link with the latest 3.0 version?

Thanx.
Mick.
Title: Re: SMFShop - Shop MOD
Post by: LaughOften on December 23, 2008, 07:05:07 PM
Quote from: LaughOften on November 25, 2008, 05:01:10 PM
That's the part I am not sure how to do. lol!!

I added a custom field on the registration to put in the name of the referral person but I have to keep checking the new members , then keep checking to see if they post 5 posts, then add $10 to the referring member. We are a new site and now is not so bad but as we pick up more members that process will get harder to do lol!!

Any help on the coding would most certainly be appreciated.

Any help on this would be most appreciated :)
Title: Re: SMFShop - Shop MOD
Post by: Riey on December 25, 2008, 04:52:20 PM
as do all members with 0 credits???? :s
Title: Re: SMFShop - Shop MOD
Post by: Daisuke_aurora on December 29, 2008, 08:49:27 AM
Quote from: LaughOften on December 23, 2008, 07:05:07 PM
Quote from: LaughOften on November 25, 2008, 05:01:10 PM
That's the part I am not sure how to do. lol!!

I added a custom field on the registration to put in the name of the referral person but I have to keep checking the new members , then keep checking to see if they post 5 posts, then add $10 to the referring member. We are a new site and now is not so bad but as we pick up more members that process will get harder to do lol!!

Any help on the coding would most certainly be appreciated.

Any help on this would be most appreciated :)

Hey Laugh, sorry I've been very busy lately and have not had time to do it at all :(
But I'll go home tonight and see if I can get a working post.php with the code you want, and if I do, i'll post it here.
Title: Re: SMFShop - Shop MOD
Post by: taha116 on December 30, 2008, 02:27:19 PM
Quote from: Aäron on August 28, 2008, 06:16:29 PM
For those looking for a version of SMF Shop that works with SMF 2.0 Beta 4: have a look here (http://www.daniel15.com/forum/index.php/topic,1782.0.html).

Why dont you make an official mod out of this?
Title: Re: SMFShop - Shop MOD
Post by: KahneFan on January 04, 2009, 02:38:21 AM
Quote from: taha116 on December 30, 2008, 02:27:19 PM
Why dont you make an official mod out of this?

Quote from: TimeVortex
Hi all,

I'm posting here to say that I'll post an updated version once SMF 2.0 RC1 is released. So no need to worry about a lack of update there.

Great to see there's 42 downloads to date, by the way. 

TimeVortex

Sounds like one will be coming after RC1
Title: Re: SMFShop - Shop MOD
Post by: Petro on January 04, 2009, 06:58:44 PM
Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sir
WHERE ID_MEMBER = 1
LIMIT 1' at line 3
File: /home/<user>/public_html/Sources/Subs.php
Line: 631


db_query("
UPDATE {db_prefix}members
SET" . substr($setString, 0, -1) . '
[Line 631 on Subs.php] Where ' . $condition, __FILE__, __LINE__);


Edit: This is when using change member title item.
Title: Re: SMFShop - Shop MOD
Post by: Sheree on January 07, 2009, 01:24:22 AM
got this error
Unknown column 'Hottie' in 'field list'
File: /home/backdoor/public_html/Sources/Subs.php
Line: 635


this is when I use the Change User Title item

Can anybody please help?
Title: Re: SMFShop - Shop MOD
Post by: MeowMommy on January 08, 2009, 08:46:22 AM
I have SMF Shop running on my main forum, and it works perfectly.

However, I just installed it and SMF Lottery on my beta testing forum, which has a fresh install of 1.1.7. The install went fine, but on the admin page, there's nothing but a blank space where the Shop settings should be. The space is there right below Maintenance where it should be, there's just nothing in it.

I tried running repair_settings.php, but that had no effect. Any ideas?

Thanks!  :)
Title: Re: SMFShop - Shop MOD
Post by: tntgang on January 09, 2009, 04:39:57 PM
I had the same thing happen to me and had to change in the forums admin Panel the Language to English and the menue showed up.
Title: Re: SMFShop - Shop MOD
Post by: - Lawrence - on January 12, 2009, 12:59:08 PM
Does this work on the latest, 2.0 beta 4 version of SMF?

If not, are you going to create one that does?
Title: Re: SMFShop - Shop MOD
Post by: KahneFan on January 12, 2009, 01:01:43 PM
5 Posts ^^

Quote from: KahneFan on January 04, 2009, 02:38:21 AM

Quote from: TimeVortex
Hi all,

I'm posting here to say that I'll post an updated version once SMF 2.0 RC1 is released. So no need to worry about a lack of update there.

Great to see there's 42 downloads to date, by the way. 

TimeVortex


Quote from: - Lawrence - on January 12, 2009, 12:59:08 PM
Does this work on the latest, 2.0 beta 4 version of SMF?

If not, are you going to create one that does?
Title: Re: SMFShop - Shop MOD
Post by: - Lawrence - on January 12, 2009, 01:30:33 PM
Quote from: KahneFan on January 12, 2009, 01:01:43 PM
5 Posts ^^
...

What??
Title: Re: SMFShop - Shop MOD
Post by: KahneFan on January 12, 2009, 01:37:46 PM
I was quoting myself from 5 posts above yours where I quoted the TimeVortex stating they would release a version for 2.0 once RC1 is released.
Title: Re: SMFShop - Shop MOD
Post by: - Lawrence - on January 12, 2009, 01:39:17 PM
Quote from: KahneFan on January 12, 2009, 01:37:46 PM
I was quoting myself from 5 posts above yours where I quoted the TimeVortex stating they would release a version for 2.0 once RC1 is released.
Oh ok, sorry, I understand now. Thank-you. ;)
Title: Re: SMFShop - Shop MOD
Post by: stiler on February 01, 2009, 07:54:56 PM
Well i like this mod but i installed it and i am getting an error when i try to edit or buy an item and that is shown on the forum error log:

Error 501 - Not Implemented (http://*******/forum/index.php?action=shop;do=buy2;id=4)
File: user



i dont know whats wrong with that :/

any ideas ?
Title: Re: SMFShop - Shop MOD
Post by: Harvester on February 01, 2009, 11:47:46 PM
I have a problem and i am hoping someone can help me solve it.

the purpose of my shop is to let members earn bucks and then buy items from the shop. I use it for members to be more motivated to post. However, I dont want staff to purchase items from the shop becuase they are always there and will obviously have the higher post counts and be able to drain the shop of its items. So I have set the staff permission to not have access to buy from the shop. My staff had no problem with it because they understand the purpose of tehshop.

However just recently I found out that the staff CAN buy stuff from the shop simply because they are members of post count groups. This is annoying.

Is there anyway at all to fix  this or over ride this so  that the admin created membergroup has priority over the post count groups?
Title: Re: SMFShop - Shop MOD
Post by: Daisuke_aurora on February 03, 2009, 06:15:42 AM
Quote from: Harvester on February 01, 2009, 11:47:46 PM
I have a problem and i am hoping someone can help me solve it.

the purpose of my shop is to let members earn bucks and then buy items from the shop. I use it for members to be more motivated to post. However, I dont want staff to purchase items from the shop becuase they are always there and will obviously have the higher post counts and be able to drain the shop of its items. So I have set the staff permission to not have access to buy from the shop. My staff had no problem with it because they understand the purpose of tehshop.

However just recently I found out that the staff CAN buy stuff from the shop simply because they are members of post count groups. This is annoying.

Is there anyway at all to fix  this or over ride this so  that the admin created membergroup has priority over the post count groups?

The easy fix is to just restock items that get low. Let the staff buy them and restock them when they get low / run out.
Title: Re: SMFShop - Shop MOD
Post by: Aaron on February 05, 2009, 06:11:17 PM
For those seeking a version of SMFShop that's compatible with SMF 2.0 RC1: have a look at this topic (http://www.daniel15.com/forum/index.php/topic,1782.0.html). :)
Title: Re: SMFShop - Shop MOD
Post by: jnm224 on February 08, 2009, 10:08:00 PM
I get the following error whenever I try to add/edit/buy items:

Quote
Not Acceptable

An appropriate representation of the requested resource /forums/index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Anyone know a way to fix this?
Title: Re: SMFShop - Shop MOD
Post by: silber112 on February 09, 2009, 03:55:26 PM
To easy questions....

-¿How can I take out the items from the trade center? My forum is very big and every day they put more than 50 items in sale, it will be very helpfully to refresh it...

-¿How can i give other member groups permisions to admin the shop? It will not be so much work for me if my sub-admin or my moderadors can help me administrating it...

Thanks, the suport at daniel15.com is not active they dont anser
Title: Re: I have problem pet template
Post by: UnclEo on February 14, 2009, 08:21:06 PM
Hi! every person, help me please.

I use SMF 1.1.8 default themes and Shop 3.0  Pet 0.2

get into trouble like this.

view pet on IE
(http://img252.imageshack.us/img252/6391/petiess8.jpg)

view pet on FF
(http://img252.imageshack.us/img252/1930/petfiefoxas5.jpg)

this view usual point, have no a problem.
(http://img252.imageshack.us/img252/3765/shopfirefoxml5.jpg)

must beg one's pardon with me not excellent English ,

thank in advance  8)
Title: Re: SMFShop - Shop MOD
Post by: GinaD on March 11, 2009, 04:40:09 PM
HI.  I have the shop installed on my new board.  I also added the pets to it.  The problem I am having is that I cannot get pet images to show up?  I can make new breeds etc, but my images are not showing.  Could someone help me?  I have tried putting the images several places with no luck on getting them to show. If someone has done this before could you explain to me on how to do the images?  Thanks!
*Hugs,
Gina
Title: Re: SMFShop - Shop MOD
Post by: GinaD on March 12, 2009, 10:41:02 AM
Can anyone help me?  I posted on Daniel's board but with no reply :(  I would really like to get this working correctly.  Thanks!
*Hugs,
gina
Title: Re: SMFShop - Shop MOD
Post by: randommaker on March 16, 2009, 04:41:45 PM
Hi
Could you please help me find out how to change the currency you receive to something different instead of credits?
Could you please help me find out how to change how much of the credits you get for each post?

Finally do you think you could help me find out how to edit the shop and make its work on my theme?
My forum: http://combatclanz.elementfx.com/forum/index.php?action=forum
Title: Re: SMFShop - Shop MOD
Post by: Daisuke_aurora on March 16, 2009, 05:20:14 PM
The first two are easy:

1. Admin => Shop Administration => General Settings.

Change the currency suffix to whatever you want, or the prefix for symbols.

2. In the same section, you can edit points per post, word, topic, etc.
Title: Re: SMFShop - Shop MOD
Post by: randommaker on March 16, 2009, 08:22:08 PM
I cant seem to FIND SHOP ADMIN?
This is weird!

I use 1.1.8 btw
Title: Re: SMFShop - Shop MOD
Post by: bullbreedluverz on March 16, 2009, 08:29:51 PM
before you ask how to edit changes to shop mod you need to get it installed properly
Title: Re: SMFShop - Shop MOD
Post by: randommaker on March 16, 2009, 09:29:19 PM
It still isnt installed properly
I look in the admin control panel from the default theme AND I DONT SEE the SHOP ADMINOSTRATION!
Can ANYONE HELP ME PLEASE?
Title: Re: SMFShop - Shop MOD
Post by: randommaker on March 16, 2009, 09:29:55 PM
I can see members have credits and I can see the shop in the navigation bar but I CANT SEE THE ADMIN SETTINGS!
Title: Re: SMFShop - Shop MOD
Post by: robbie93 on March 16, 2009, 10:41:29 PM
http://combatclanz.comyr.com/forum/index.php?action=shop

you havent installed this mod i think :P
Title: Re: SMFShop - Shop MOD
Post by: randommaker on March 17, 2009, 11:57:43 AM
Its this one:
http://starwarscraft.exofire.net/index.php?action=shop
Title: Re: SMFShop - Shop MOD
Post by: randommaker on March 17, 2009, 12:19:05 PM
I look in the admin CPANEL and I see nothing about the shop!
Title: Re: SMFShop - Shop MOD
Post by: robbie93 on March 17, 2009, 02:30:46 PM
Did you get any errors before you installed the mod?  also what language are you using? in server settings  - Default Forum Language try using english if you are not already doing so.
Title: Re: SMFShop - Shop MOD
Post by: randommaker on March 17, 2009, 09:14:30 PM
I got NO errors and yet I dont see it in my admin control panel!
Title: Re: SMFShop - Shop MOD
Post by: robbie93 on March 17, 2009, 09:30:31 PM
Did you try and change you're language like I said above?
Title: Re: SMFShop - Shop MOD
Post by: Apllicmz on March 19, 2009, 11:25:23 PM
when update dont forget portuguese linguage and brazilian

<file name="$languagedir/Errors.portuguese_pt.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
// Begin SMFShop code translate by Candidosa2 Suporte Smfpt.net
$txt['cannot_shop_main'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para acessar a Loja!';
$txt['cannot_shop_buy'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para comprar itens da loja.';
$txt['cannot_shop_invother'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para visualizar o invent&aacute;rio de um outro membro.';
$txt['cannot_shop_sendmoney'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para enviar dinheiro a outro membro.';
$txt['cannot_shop_senditems'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para enviar itens para outro membro.';
$txt['cannot_shop_bank'] = 'Vo&ecirc; n&atilde;o tem permiss&atilde;o para acessar o banco.';
$txt['cannot_shop_trade'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para acessar a loja do Centro do Com&eacute;rcio.';
// End SMFShop code
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Errors.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
// Begin SMFShop code translate by Candidosa2 Suporte Smfpt.net
$txt['cannot_shop_main'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para acessar a Loja!';
$txt['cannot_shop_buy'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para comprar itens da loja.';
$txt['cannot_shop_invother'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para visualizar o invent&aacute;rio de um outro membro.';
$txt['cannot_shop_sendmoney'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para enviar dinheiro a outro membro.';
$txt['cannot_shop_senditems'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para enviar itens para outro membro.';
$txt['cannot_shop_bank'] = 'Vo&ecirc; n&atilde;o tem permiss&atilde;o para acessar o banco.';
$txt['cannot_shop_trade'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para acessar a loja do Centro do Com&eacute;rcio.';
// End SMFShop code
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Errors.brazilian_portuguese.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
// Begin SMFShop code
$txt['cannot_shop_main'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para acessar a Loja!';
$txt['cannot_shop_buy'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para comprar itens da loja.';
$txt['cannot_shop_invother'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para visualizar o invent&aacute;rio de um outro membro.';
$txt['cannot_shop_sendmoney'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para enviar dinheiro a outro membro.';
$txt['cannot_shop_senditems'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para enviar itens para outro membro.';
$txt['cannot_shop_bank'] = 'Vo&ecirc; n&atilde;o tem permiss&atilde;o para acessar o banco.';
$txt['cannot_shop_trade'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para acessar a loja do Centro do Com&eacute;rcio.';
// End SMFShop code
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Errors.brazilian_portuguese.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
// Begin SMFShop code
$txt['cannot_shop_main'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para acessar a Loja!';
$txt['cannot_shop_buy'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para comprar itens da loja.';
$txt['cannot_shop_invother'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para visualizar o invent&aacute;rio de um outro membro.';
$txt['cannot_shop_sendmoney'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para enviar dinheiro a outro membro.';
$txt['cannot_shop_senditems'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para enviar itens para outro membro.';
$txt['cannot_shop_bank'] = 'Vo&ecirc; n&atilde;o tem permiss&atilde;o para acessar o banco.';
$txt['cannot_shop_trade'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para acessar a loja do Centro do Com&eacute;rcio.';
// End SMFShop code
]]></add>
        </operation>
    </file>


<file name="$languagedir/ManagePermissions.portuguese_pt.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
// Begin SMFShop code
$txt['permissiongroup_shop'] = 'SMFShop';

$txt['permissionname_shop_main'] = 'Permitir acesso a SMFShop';
$txt['permissionname_shop_buy'] = 'Comprar Itens';
$txt['permissionname_shop_invother'] = 'Ver outros membros Invent&aacute;rio';
$txt['permissionname_shop_sendmoney'] = 'Enviar dinheiro para algu&eacute;m';
$txt['permissionname_shop_senditems'] = 'Envie um item para algu&eacute;m';
$txt['permissionname_shop_bank'] = 'Banco';
$txt['permissionname_shop_trade'] = 'Centro Comercial';

$txt['permissionhelp_shop_main'] = 'Se esta op&ccedil;&atilde;o for unticked, o utilizador n&atilde;o ser&aacute; capaz de usar a loja a todos. Se voc&ecirc; deseja desativar o acesso apenas a uma determinada se&ccedil;&atilde;o da loja, use as permiss&otilde;es abaixo deste um.';
// End SMFShop code by candidosa2
]]></add>
        </operation>
    </file>
    <file name="$languagedir/ManagePermissions.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
// Begin SMFShop code
$txt['permissiongroup_shop'] = 'SMFShop';

$txt['permissionname_shop_main'] = 'Permitir acesso a SMFShop';
$txt['permissionname_shop_buy'] = 'Comprar Itens';
$txt['permissionname_shop_invother'] = 'Ver outros membros Invent&aacute;rio';
$txt['permissionname_shop_sendmoney'] = 'Enviar dinheiro para algu&eacute;m';
$txt['permissionname_shop_senditems'] = 'Envie um item para algu&eacute;m';
$txt['permissionname_shop_bank'] = 'Banco';
$txt['permissionname_shop_trade'] = 'Centro Comercial';

$txt['permissionhelp_shop_main'] = 'Se esta op&ccedil;&atilde;o for unticked, o utilizador n&atilde;o ser&aacute; capaz de usar a loja a todos. Se voc&ecirc; deseja desativar o acesso apenas a uma determinada se&ccedil;&atilde;o da loja, use as permiss&otilde;es abaixo deste um.';
// End SMFShop code by candidosa2
]]></add>
        </operation>
    </file>
    <file name="$languagedir/ManagePermissions.brazilian_portuguese.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
// Begin SMFShop code
$txt['permissiongroup_shop'] = 'SMFShop';

$txt['permissionname_shop_main'] = 'Permitir acesso a SMFShop';
$txt['permissionname_shop_buy'] = 'Comprar Itens';
$txt['permissionname_shop_invother'] = 'Ver outros membros Invent&aacute;rio';
$txt['permissionname_shop_sendmoney'] = 'Enviar dinheiro para algu&eacute;m';
$txt['permissionname_shop_senditems'] = 'Envie um item para algu&eacute;m';
$txt['permissionname_shop_bank'] = 'Banco';
$txt['permissionname_shop_trade'] = 'Centro Comercial';

$txt['permissionhelp_shop_main'] = 'Se esta op&ccedil;&atilde;o for unticked, o utilizador n&atilde;o ser&aacute; capaz de usar a loja a todos. Se voc&ecirc; deseja desativar o acesso apenas a uma determinada se&ccedil;&atilde;o da loja, use as permiss&otilde;es abaixo deste um.';
// End SMFShop code by candidosa2
]]></add>
        </operation>
    </file>
    <file name="$languagedir/ManagePermissions.brazilian_portuguese-utf8.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
// Begin SMFShop code
$txt['permissiongroup_shop'] = 'SMFShop';

$txt['permissionname_shop_main'] = 'Permitir acesso a SMFShop';
$txt['permissionname_shop_buy'] = 'Comprar Itens';
$txt['permissionname_shop_invother'] = 'Ver outros membros Invent&aacute;rio';
$txt['permissionname_shop_sendmoney'] = 'Enviar dinheiro para algu&eacute;m';
$txt['permissionname_shop_senditems'] = 'Envie um item para algu&eacute;m';
$txt['permissionname_shop_bank'] = 'Banco';
$txt['permissionname_shop_trade'] = 'Centro Comercial';

$txt['permissionhelp_shop_main'] = 'Se esta op&ccedil;&atilde;o for unticked, o utilizador n&atilde;o ser&aacute; capaz de usar a loja a todos. Se voc&ecirc; deseja desativar o acesso apenas a uma determinada se&ccedil;&atilde;o da loja, use as permiss&otilde;es abaixo deste um.';
// End SMFShop code by candidosa2
]]></add>
        </operation>
    </file>


<file name="$languagedir/Who.portuguese_pt.php" error="skip">
        <operation>
            <search position="end"><![CDATA[
$txt['who_poll'] = 'Publicar uma nova sondagem em <a href="' . $scripturl . '?board=%d.0">%s</a>.';]]></search>
            <add><![CDATA[
//Begin SMFShop MOD 2.2 (Build 10)
$txt['whoall_shop'] = 'Visualizando o f&oacute;rum <a href="'.$scripturl.'?action=shop">Shop</a>.';
//End SMFShop MOD
]]></add>
        </operation>
    </file>   
    <file name="$languagedir/Who.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end"><![CDATA[
$txt['who_poll'] = 'Publicar uma nova sondagem em <a href="' . $scripturl . '?board=%d.0">%s</a>.';]]></search>
            <add><![CDATA[
//Begin SMFShop MOD 2.2 (Build 10)
$txt['whoall_shop'] = 'Visualizando o f&oacute;rum <a href="'.$scripturl.'?action=shop">Shop</a>.';
//End SMFShop MOD
]]></add>
        </operation>
    </file>   
    <file name="$languagedir/Who.brazilian_portuguese.php" error="skip">
        <operation>
            <search position="before"><![CDATA[
$txt['who_poll'] = 'Publicar uma nova sondagem em <a href="' . $scripturl . '?board=%d.0">%s</a>.';]]></search>
            <add><![CDATA[
//Begin SMFShop MOD 2.2 (Build 10)
$txt['whoall_shop'] = 'Visualizando o f&oacute;rum <a href="'.$scripturl.'?action=shop">Shop</a>.';
//End SMFShop MOD
]]></add>
        </operation>
    </file>   
    <file name="$languagedir/Who.brazilian_portuguese-utf8.php" error="skip">
        <operation>
            <search position="before"><![CDATA[
$txt['who_poll'] = 'Publicar uma nova sondagem em <a href="' . $scripturl . '?board=%d.0">%s</a>.';]]></search>
            <add><![CDATA[
//Begin SMFShop MOD 2.2 (Build 10)
$txt['whoall_shop'] = 'Visualizando o f&oacute;rum <a href="'.$scripturl.'?action=shop">Shop</a>.';
//End SMFShop MOD
]]></add>
        </operation>
    </file>   
Title: Re: SMFShop - Shop MOD
Post by: randommaker on March 21, 2009, 08:43:10 PM
I try to edit and add items to the shop but this occurs!

Method Not Implemented

GET to /forum/index.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at combatclanz.com Port 80
Title: Re: SMFShop - Shop MOD
Post by: randommaker on March 22, 2009, 10:34:17 AM
Quote from: randommaker on March 21, 2009, 08:43:10 PM
I try to edit and add items to the shop but this occurs!

Method Not Implemented

GET to /forum/index.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at combatclanz.com Port 80

Help please?
Title: Re: SMFShop - Shop MOD
Post by: LiroyvH on March 22, 2009, 10:55:18 AM
Stop bumping your own topics please?
Title: Re: SMFShop - Shop MOD
Post by: Harvester on March 27, 2009, 06:31:19 PM
Quote from: Aäron on February 05, 2009, 06:11:17 PM
For those seeking a version of SMFShop that's compatible with SMF 2.0 RC1: have a look at this topic (http://www.daniel15.com/forum/index.php/topic,1782.0.html). :)

Dont bother following this link... the port is full of bugs and no longer supported...


so my next questions... will someone please create a stable bug free version of the shop for SMF 2? I have 1.1.8 and i can not upgrade to 2.x until I can be sure that teh shop mod works with it. The shop mod is a huge part of my site. Taking it away would more than likely losing many members.
Title: Re: SMFShop - Shop MOD
Post by: randommaker on March 30, 2009, 06:30:27 PM
There needs to be a WHOLE NEW MOD AUTHOR THAT IS ACTIVE AND WILLING TO HELP SUPPORT A BETTER AND NEWER SHOP MOD!
Title: Re: SMFShop - Shop MOD
Post by: chris345 on April 13, 2009, 01:52:55 PM
Hi guy these are two mods from SMF shop....lottery and an addon which displays items recently bought and top traders. Can anyone help me port them to 2.0 beta 4?


Also how would I go about displaying the items the person had bought under their signature, so each time they post a line of icons of the items they have bought is displayed below this signature.

PLEASE aid me!  >:(
Title: Re: SMFShop - Shop MOD
Post by: chris345 on April 13, 2009, 02:22:58 PM
This is what I modified it to, but it still isn't working....

<?php

// If file is not called by SMF, don't let them get anywhere!

if (!defined('SMF'))
die('Hacking attempt...');

global db_prefix;

// Grab the purchase history
// Start with empty list
$context['shop_purchHis'] = array();
// Get the details of purchases
$result $smcFunc['db_query']("
SELECT ownerid, itemid, amtpaid, it.desc, it.image, it.id
FROM {db_prefix}shop_purchHis, {db_prefix}shop_items AS it
WHERE itemid = it.id
ORDER BY ownerid DESC
LIMIT 20"
, array());
// Loop through all results

while ($row $smcFunc['db_fetch_assoc']($result))
// And add them to the list
$context['shop_purchHis'][] = array(
'ownerid' => $row['ownerid'],
'itemid' => $row['itemid'],
'amtpaid' => $row['amtpaid'],
'desc' => $row['desc'],
'image' => $row['image']
);

$smcFunc['db_free_result']($result);

?>
Title: Re: SMFShop - Shop MOD
Post by: dwd2000 on April 14, 2009, 11:47:15 AM
Would everyone who installed this mod please check your permissions.

It has happened with both SMF 1.1.x and the version for SMF 2.x (unofficial version)

I'm not sure if it was this mod or not, but my admin permissions have changed.
Instead of having "All", I  now have "3".
It has happened on my main site and 2 test sites.

NOTE:
I'm not sure if it is this mod that is causing the problem.
I'm just asking everyone to check their admin permissions to see if there is a problem.
Title: Re: SMFShop - Shop MOD
Post by: SFF Forum on April 14, 2009, 02:16:09 PM
I found that:

After i reinstalled my forum,

The first time i installed SMFshop,the credits hadn't been changed.

And then i uninstalled SMFshop,the second time i installed SMFshop,the credits had

been changed,all came back to zero.

It is said that i must backup database when i am going to reinstall forum or reinstall

SMFshop every time.But why "thankyou mod"didn't need these red steps



What happened?
Title: Re: SMFShop - Shop MOD
Post by: mrtrc266 on April 14, 2009, 05:33:24 PM
Quote from: randommaker on March 30, 2009, 06:30:27 PM
There needs to be a WHOLE NEW MOD AUTHOR THAT IS ACTIVE AND WILLING TO HELP SUPPORT A BETTER AND NEWER SHOP MOD!

This is just a teaser...........There is ;)
Title: Re: SMFShop - Shop MOD
Post by: Lithriel on April 25, 2009, 06:49:09 PM
I did search to see if this had been brought up or not, but since it hasn't:  how do I get rid of the decimal?

Instead of 2.00 credits I just want 2 credits.
Title: Re: SMFShop - Shop MOD
Post by: dr.wills on April 25, 2009, 06:57:57 PM
Quote from: Lithriel on April 25, 2009, 06:49:09 PM
I did search to see if this had been brought up or not, but since it hasn't:  how do I get rid of the decimal?

Instead of 2.00 credits I just want 2 credits.

go to myphpadmin and reset the column to decimal with 0 decimal digits ;)
Title: Re: SMFShop - Shop MOD
Post by: Lithriel on April 25, 2009, 07:40:33 PM
Quote from: akaiphan on April 25, 2009, 06:57:57 PM
Quote from: Lithriel on April 25, 2009, 06:49:09 PM
I did search to see if this had been brought up or not, but since it hasn't:  how do I get rid of the decimal?

Instead of 2.00 credits I just want 2 credits.

go to myphpadmin and reset the column to decimal with 0 decimal digits ;)


Which table in the database and which column do I alter? 


EDIT:  You have to edit the member table and change the credits column.
Title: Re: SMFShop - Shop MOD
Post by: Chit-Chat ChatterBox Boss on April 30, 2009, 09:02:20 PM
I get this error in my errorlog:


Undefined variable: item_info
File: /home/XXXXXX/public_html/Sources/shop/items/IncreaseKarma.php
Line: 54
Title: Re: SMFShop - Shop MOD
Post by: SA™ on April 30, 2009, 09:43:49 PM
in Sources/shop/items/IncreaseKarma.php

find

global $user_info;

replace with

global $item_info, $user_info;
Title: Re: SMFShop - Shop MOD
Post by: Goodman854 on May 01, 2009, 09:21:19 AM
It wont let me add item images on my MAIN FTP ACCOUNT!!! (Accuss denyed to edit the folder) OMG
Title: Re: SMFShop - Shop MOD
Post by: SA™ on May 01, 2009, 02:12:32 PM
check your permissions
Title: Re: SMFShop - Shop MOD
Post by: Chit-Chat ChatterBox Boss on May 01, 2009, 04:13:47 PM
when I am making boards and I come to this selection

Quote
Count Shop Points                                []
Members will receive Shop credits for posting in this forum.              []

Shop Credits
If custom values are set for these two settings, they will override the settings set on the SMFShop administration page. Set these to "0" to use the default values (currently $8Chatter Bucks per topic, and $5Chatter Bucks per post)

                                           Per new topic: $[  ]Chatter Bucks
                                           Per new post: $[  ]Chatter Bucks
Enable Shop Bonuses                        []
Shop Bonuses will be take effect in this board

when I select all those boxes and i sometimes put '0' in the post new topic and post new post boxes. then I hit modify or create board and it makes the board. I reopen this board with modify and these boxes and the money amount is blank. Why does it keep doing this. I have no errors in the error log.
Title: Re: SMFShop - Shop MOD
Post by: jonnyfishboy on May 01, 2009, 09:37:42 PM
Hi there.

I recently installed the Shop Mod, but it does not seem to be working at all. While installing it, it did say that there was an error with the Themes/default/Display.template.php so I followed the instructions and manualy fixed that.

I do show credits working under the user name (Though I would like to change the number of credits/post)

Other then that, nothing. I do not have a shop button at the top, no Shop Admin panel??????

I must be missing something, but can not figure it out. I am going through all the parsed code provided but am going bug eyed.

My site is clickstars.info

Any help is appreciated

Title: Re: SMFShop - Shop MOD
Post by: Goodman854 on May 02, 2009, 12:13:44 AM
Quote from: sleepy-arcade.ath.cx on May 01, 2009, 02:12:32 PM
check your permissions
I have full permissions main ftp account i own site.
Title: Re: SMFShop - Shop MOD
Post by: SA™ on May 02, 2009, 04:17:18 AM
@cafontaine

if there blank it not saving the settings are you shore the mod installed properly ?

@jonnyfishboy you can change credits in shop admin the admin is named

Shop Administration

after Maintenance on the left hand side

direct link will be somthingg like

yoursite.com/index.php?action=shop_general


@goodman854

Accuss denyed  mean you do not have permissions to wite to the folder check the permssions for that folder in cpanel
Title: Re: SMFShop - Shop MOD
Post by: Goodman854 on May 02, 2009, 01:00:21 PM
I checked I have full and its the only folder on my entire site that does that maybe you want teh full Error Name?
Title: Re: SMFShop - Shop MOD
Post by: Chit-Chat ChatterBox Boss on May 02, 2009, 02:23:32 PM
Quote from: sleepy-arcade.ath.cx on May 02, 2009, 04:17:18 AM
@cafontaine

if there blank it not saving the settings are you shore the mod installed properly ?

yup there's no errors or problems that show in the error log. and everything except this problem in the setup seems to be working fine.
Title: Re: SMFShop - Shop MOD
Post by: jonnyfishboy on May 02, 2009, 05:15:24 PM
Ok,

The link does not appear in my admin section after Maintenance??? Though when I use the direct link, it does take me to an Shop Admin, but something is not right. See sreen Shot.

I can not add items to the shop either. How am I supposed to do that??????

Also When I am in my custome theme, The Shop button does not appear in the bar. Which codes do I need to manualy add to my Custom script php pages????
Title: Re: SMFShop - Shop MOD
Post by: jonnyfishboy on May 02, 2009, 11:28:48 PM
Also I Added parsed code to my custom theme "index.template.php and now have the shop button appearing, but its flushed to the top and not the same font as the rest. How do I make it the same?

Code to Find
Quote
         <a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
            </td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


This is the code they say to add After it
Quote
   //Begin SMFShop code
   //loadLanguage("shop");
   echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
         <td valign="top" class="maintab_' , $current_action == 'shop' ? 'active_back' : 'back' , '">
            <a href="', $scripturl, '?action=shop">Shop</a>
         </td>' , $current_action == 'shop' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
   //END SMFShop code

This is a more complete look after I added it. I included the code above for the other buttons to see how it looks. Also Notice the code they said to find is a bit different, but this is where it means to put it I think.
Quote
   // Show the [home] button.
       echo '<li', $current_action == 'home' ? ' class="active"' : '', '><a href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';

   // Show the [help] button.
       echo '<li', $current_action == 'help' ? ' class="active"' : '', '><a href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>';

   // How about the [search] button?
   if ($context['allow_search'])
       echo '<li', $current_action == 'search' ? ' class="active"' : '', '><a href="', $scripturl, '?action=search"><span>Search</span></a></li>';

   // Is the user allowed to administrate at all? ([admin])
   if ($context['allow_admin'])
       echo '<li', $current_action == 'admin' ? ' class="active"' : '', '><a href="', $scripturl, '?action=admin"><span>' , $txt[2] , '</span></a></li>';

   // Edit Profile... [profile]
   if ($context['allow_edit_profile'])
       echo '<li', $current_action == 'profile' ? ' class="active"' : '', '><a href="', $scripturl, '?action=profile"><span>' , $txt[79] , '</span></a></li>';

   // Go to PM center... [pm]
   if ($context['user']['is_logged'] && $context['allow_pm'])
      echo '<li', $current_action == 'pm' ? ' class="active"' : '', '><a href="', $scripturl, '?action=pm"><span>' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</span></a></li>';

   // The [calendar]!
   if ($context['allow_calendar'])
      echo '<li', $current_action == 'calendar' ? ' class="active"' : '', '><a href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';

   //Begin SMFShop code
   //loadLanguage("shop");
   echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
         <td valign="top" class="maintab_' , $current_action == 'shop' ? 'active_back' : 'back' , '">
            <a href="', $scripturl, '?action=shop">Shop</a>
         </td>' , $current_action == 'shop' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
   //END SMFShop code

I still have the admin feature missing and the problem listed in my above post.
Title: Re: SMFShop - Shop MOD
Post by: mrtrc266 on May 02, 2009, 11:32:38 PM
Try changing the td to li like the rest of the buttons like this.


//Begin SMFShop code
   //loadLanguage("shop");
   echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '<li class="maintab_active_' . $first . '">&nbsp;</li>' : '' , '
         <li valign="top" class="maintab_' , $current_action == 'shop' ? 'active_back' : 'back' , '">
            <a href="', $scripturl, '?action=shop">Shop</a>
         </li>' , $current_action == 'shop' ? '<td class="maintab_active_' . $last . '">&nbsp;</li>' : '';
   //END SMFShop code
Title: Re: SMFShop - Shop MOD
Post by: jonnyfishboy on May 03, 2009, 12:21:30 AM
Font is closer, but its still not centered nor bolded to match the rest.

I did try to change the top to center, but it did nothing.

See my site to see, www.clickstars.info

Thanks
Title: Re: SMFShop - Shop MOD
Post by: mrtrc266 on May 03, 2009, 12:37:19 AM
try removing the alignment
Find
<li valign="top" class="maintab_' , $current_action == 'shop' ? 'active_back' : 'back' , '">

Replace with

<li class="maintab_' , $current_action == 'shop' ? 'active_back' : 'back' , '">

Title: Re: SMFShop - Shop MOD
Post by: jonnyfishboy on May 03, 2009, 12:46:44 AM
Nope, still the same????
Title: Re: SMFShop - Shop MOD
Post by: SA™ on May 03, 2009, 02:44:26 AM
try just using

echo '<li', $current_action == 'shop' ? ' class="active"' : '', '><a href="', $scripturl, '?action=shop"><span>Shop</span></a></li>';


the code in the installer is for the default theme hence the button noty looking right you have to duplicate the code from you custom them

ie

// Show the [home] button.
       echo '<li', $current_action == 'home' ? ' class="active"' : '', '><a href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';



will trun into this

echo '<li', $current_action == 'shop' ? ' class="active"' : '', '><a href="', $scripturl, '?action=shop"><span>Shop</span></a></li>';


Title: Re: SMFShop - Shop MOD
Post by: Moto on May 03, 2009, 12:38:57 PM
@Dan
You should give up mods...
This is the second mod of yours thats screwed my site....
Title: Re: SMFShop - Shop MOD
Post by: jonnyfishboy on May 08, 2009, 10:54:14 PM
I don't get how I am supposed to change the entire shop code?

Quote
   //Begin SMFShop code
   //loadLanguage("shop");
   echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '<li class="maintab_active_' . $first . '">&nbsp;</li>' : '' , '
          <li class="maintab_' , $current_action == 'shop' ? 'active_back' : 'back' , '">
            <a href="', $scripturl, '?action=shop">Shop</a>
         </li>' , $current_action == 'shop' ? '<td class="maintab_active_' . $last . '">&nbsp;</li>' : '';
   //END SMFShop code


Everytime I do I get a Parse error.

Also I still have that problem, about the shop controls not appearing in my admin area??? (solved so please help with 1ST issue) THank You

I do notice these error in my error logs though, I think the last one is where the problem is.

Quote
8: Undefined index: shop_admin_usergroup
File: /home/clickbbs/public_html/Sources/Subs.php
Line: 2826

A bunch of variations like the one above

Quote
8: Undefined index: shop_admin
File: /home/clickbbs/public_html/Sources/Subs.php
Line: 2819

Quote
Unable to load the 'Shop.english-utf8' language file.
Title: Re: SMFShop - Shop MOD
Post by: jonnyfishboy on May 08, 2009, 11:09:03 PM
ok, I figured out the Admin part on my own. I had to change the shop.english.php   shop.english-utf8.php and presto, I now have admin settings. Amazing something so simple as changing a file name.

Now if this code thing was as simple, then I would be laughing. Please help with the Shop button code

New problem though. When I try to add a new item after I hit Add new item, it takes me to an error 406 page?

Error log shows this error
Quote
8: Undefined index: c_copy
File: /home/clickbbs/public_html/Themes/default/ShopAdmin.template.php (main_below sub template - eval?)
Line: 296

Thanks
Title: Re: SMFShop - Shop MOD
Post by: SA™ on May 09, 2009, 05:56:52 AM
what are you trying to o with this tab?

//Begin SMFShop code
   //loadLanguage("shop");
   echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '<li class="maintab_active_' . $first . '">&nbsp;</li>' : '' , '
          <li class="maintab_' , $current_action == 'shop' ? 'active_back' : 'back' , '">
            <a href="', $scripturl, '?action=shop">Shop</a>
         </li>' , $current_action == 'shop' ? '<td class="maintab_active_' . $last . '">&nbsp;</li>' : '';
   //END SMFShop code



you trying to add it to your custom theme? if so post up your custom theme index.template.php


Quote8: Undefined index: c_copy
File: /home/clickbbs/public_html/Themes/default/ShopAdmin.template.php (main_below sub template - eval?)
Line: 296

can i also see your shopadmin.template.php
Title: Re: SMFShop - Shop MOD
Post by: jonnyfishboy on May 10, 2009, 12:31:38 AM
what are you trying to o with this tab? That is the code (Slightly modified already) that we are trying to change.

I have attached the code in a notepad text file for you. I can only find shopadmin not shopadmin.template. Is there a difference or are they the same file?

Thanks
Title: Re: SMFShop - Shop MOD
Post by: Goodman854 on May 10, 2009, 12:21:15 PM
When I use the name changer i says HACKER ATTEMPT
Title: Re: SMFShop - Shop MOD
Post by: SA™ on May 10, 2009, 05:03:19 PM
@ jonnyfishboy

for the shop button

you can just use this in that theme

//Begin SMFShop code
echo '<li', $current_action == 'Shop' ? ' class="active"' : '', '><a href="', $scripturl, '?action=shop"><span>Shop</span></a></li>';
//END SMFShop code


shopadmin.template is in the default theme directory


@goodman854

what name chnager

change user name or change display name?
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on May 10, 2009, 08:07:42 PM
Hello All,
I am going to taking over the modification and redoing it completely for SMF 2.0. Will update you with the latest updates and plans.
Plan to fix any out standing issues with SMF 1.1.x
Main development will focus on SMF 2.0 with a major code clean up, new features, new items.
Will setup a bug tracker, looking for team members to work on the mod, support, translators anyway that you can help will be great!

Thanks,
vbgamer45
Title: Re: SMFShop - Shop MOD
Post by: mghq on May 10, 2009, 08:42:08 PM
Quote from: vbgamer45 on May 10, 2009, 08:07:42 PM
Hello All,
I am going to taking over the modification and redoing it completely for SMF 2.0. Will update you with the latest updates and plans.
Plan to fix any out standing issues with SMF 1.1.x
Main development will focus on SMF 2.0 with a major code clean up, new features, new items.
Will setup a bug tracker, looking for team members to work on the mod, support, translators anyway that you can help will be great!

Thanks,
vbgamer45

Could you possibly tell me what i need to modify so that I can make custom things and have it private message with what they ordered?
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on May 10, 2009, 08:45:31 PM
Not at this time going to take me a little while to figure how everything is tied together.
Title: Re: SMFShop - Shop MOD
Post by: mghq on May 10, 2009, 08:47:42 PM
Quote from: vbgamer45 on May 10, 2009, 08:45:31 PM
Not at this time going to take me a little while to figure how everything is tied together.
K, i am also going through the code. I think i might be able to modify some of one of the items code to make it work with my needs
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on May 10, 2009, 10:50:56 PM
Started up a bug tracker!

Any bugs, feature request please post in the bug tracker!
http://www.smfhacks.com/smfshop/index.php?action=projects

If you fill a bug report the more information you can provide the better so I can fix it fast!
Title: Re: SMFShop - Shop MOD
Post by: Sudhakar Arjunan on May 11, 2009, 01:23:32 PM
Quote from: vbgamer45 on May 10, 2009, 10:50:56 PM
Started up a bug tracker!

Any bugs, feature request please post in the bug tracker!
http://www.smfhacks.com/smfshop/index.php?action=projects

If you fill a bug report the more information you can provide the better so I can fix it fast!

Good News after years.

Hope i will test each and every update.

When i was looking at the modification , the compactable versions were 1.1.4 and is that updated to 2.0 or not.

Thanks ever for taking up this excellent mod.
Title: Re: SMFShop - Shop MOD
Post by: mrtrc266 on May 11, 2009, 01:32:59 PM
Quote from: A.SK on May 11, 2009, 01:23:32 PM
Quote from: vbgamer45 on May 10, 2009, 10:50:56 PM
Started up a bug tracker!

Any bugs, feature request please post in the bug tracker!
http://www.smfhacks.com/smfshop/index.php?action=projects

If you fill a bug report the more information you can provide the better so I can fix it fast!

Good News after years.

Hope i will test each and every update.

When i was looking at the modification , the compactable versions were 1.1.4 and is that updated to 2.0 or not.

Thanks ever for taking up this excellent mod.

Yes is was a great Mod, my members missed it very much and are extremely happy that they are using it again on SMF 2 RC1 :D

Eggs have been flying everywhere!
Title: Re: SMFShop - Shop MOD
Post by: jonnyfishboy on May 11, 2009, 10:55:39 PM
Quote from: sleepy-arcade.ath.cx on May 10, 2009, 05:03:19 PM
@ jonnyfishboy

for the shop button

you can just use this in that theme

//Begin SMFShop code
echo '<li', $current_action == 'Shop' ? ' class="active"' : '', '><a href="', $scripturl, '?action=shop"><span>Shop</span></a></li>';
//END SMFShop code


shopadmin.template is in the default theme directory


Ok, I have attached it. The Shop button is now great BTW, thank you.  :D
Title: Re: SMFShop - Shop MOD
Post by: [SiNaN] on May 12, 2009, 05:10:43 AM
Quote from: vbgamer45 on May 10, 2009, 08:07:42 PM
Hello All,
I am going to taking over the modification and redoing it completely for SMF 2.0. Will update you with the latest updates and plans.
Plan to fix any out standing issues with SMF 1.1.x
Main development will focus on SMF 2.0 with a major code clean up, new features, new items.
Will setup a bug tracker, looking for team members to work on the mod, support, translators anyway that you can help will be great!

Thanks,
vbgamer45

Good to see that this great mod found a great home. Good luck vbgamer45!
Title: Re: SMFShop - Shop MOD
Post by: Özgür on May 12, 2009, 09:49:55 AM
Good news. Good luck vbgamer.
Title: Re: SMFShop - Shop MOD
Post by: SA™ on May 12, 2009, 01:20:41 PM
@jonnyfishboy

try this
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on May 13, 2009, 12:34:58 AM
Released some bug fixes for SMF 1.1.x

Version 3.1 for SMF 1.1.X
!Fixed missing global in ChangeDisplayName item
!Fixed missing global IncreaseKarma item
!Fixed issues with mod_security with ;id= in the url
!Fixed two broken link trees action=shop;do=invother and action=shop missing ?
!Fixed some joins for better mysql 5 support
+Added Shop.english-utf8.php if you are using utf8 on your board
!Fixed some spelling bugs in Shop.english.php
!Removed ` from queries in the installScript file for Shop which could fail in some setups.
Title: Re: SMFShop - Shop MOD
Post by: conlintonb on May 13, 2009, 02:27:11 AM
good mod
Title: Re: SMFShop - Shop MOD
Post by: Daniel15 on May 13, 2009, 10:57:12 AM
Quote from: vbgamer45 on May 10, 2009, 08:07:42 PM
Hello All,
I am going to taking over the modification and redoing it completely for SMF 2.0. Will update you with the latest updates and plans.
Plan to fix any out standing issues with SMF 1.1.x
Main development will focus on SMF 2.0 with a major code clean up, new features, new items.
Will setup a bug tracker, looking for team members to work on the mod, support, translators anyway that you can help will be great!

Thanks,
vbgamer45
I'm glad you're taking over, vbgamer45. I'd really like to know why I wasn't notified, though. I know I'm not on here often but I should probably know if my own mod is being taken over. Actually the only way I found out was by talking to someone who said it had been taken over  ::)

Please don't forget about the existing support forums (http://www.daniel15.com/forum/index.php#4), custom items, and translations :)
Title: Re: SMFShop - Shop MOD
Post by: Lithriel on May 13, 2009, 03:48:55 PM
So is there a compatible version for 2.0 out right now, or is it still in the works?  This mod is the only reason why I haven't upgraded yet!
Title: Re: SMFShop - Shop MOD
Post by: Özgür on May 13, 2009, 05:03:29 PM
Quote from: Lithriel on May 13, 2009, 03:48:55 PM
So is there a compatible version for 2.0 out right now, or is it still in the works?  This mod is the only reason why I haven't upgraded yet!
compatible 2.0 mod already out. but have a lot of bug.
http://www.daniel15.com/forum/index.php/topic,1782.0.html You must be register and download attachment and install..
But i think you must be wait for vbgamer update. Because this does official update and supportable (lol!)
Title: Re: SMFShop - Shop MOD
Post by: jonnyfishboy on May 13, 2009, 11:45:04 PM
Quote from: sleepy-arcade.ath.cx on May 12, 2009, 01:20:41 PM
@jonnyfishboy

try this

Still same problem.

This is the error message

http://clickstars.info/index.php?action=shop_items_edit 
8: Undefined index: c_copy
File: /home/clickbbs/public_html/Themes/default/ShopAdmin.template.php (main_below sub template - eval?)
Line: 376
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on May 13, 2009, 11:55:04 PM
Quote from: Lithriel on May 13, 2009, 03:48:55 PM
So is there a compatible version for 2.0 out right now, or is it still in the works?  This mod is the only reason why I haven't upgraded yet!
Still in the works should be out in the next couple of weeks.
Title: Re: SMFShop - Shop MOD
Post by: Vampy on May 15, 2009, 02:39:39 PM
Quote from: vbgamer45 on May 10, 2009, 08:07:42 PM
Hello All,
I am going to taking over the modification and redoing it completely for SMF 2.0. Will update you with the latest updates and plans.
Plan to fix any out standing issues with SMF 1.1.x
Main development will focus on SMF 2.0 with a major code clean up, new features, new items.
Will setup a bug tracker, looking for team members to work on the mod, support, translators anyway that you can help will be great!

Thanks,
vbgamer45

YAY - I looked into this mod the other day and considered installing it but decided that as I'm switching to 2.0 real soon it wasn't worth it - but now I don't have to wait very long before this is available too
Title: Re: SMFShop - Shop MOD
Post by: nomnomfish on May 15, 2009, 06:45:03 PM
what can u actually buy with the credits?
is there a list?
Title: Re: SMFShop - Shop MOD
Post by: mrtrc266 on May 15, 2009, 09:28:26 PM
Quote from: Vampy on May 15, 2009, 02:39:39 PM
Quote from: vbgamer45 on May 10, 2009, 08:07:42 PM
Hello All,
I am going to taking over the modification and redoing it completely for SMF 2.0. Will update you with the latest updates and plans.
Plan to fix any out standing issues with SMF 1.1.x
Main development will focus on SMF 2.0 with a major code clean up, new features, new items.
Will setup a bug tracker, looking for team members to work on the mod, support, translators anyway that you can help will be great!

Thanks,
vbgamer45

YAY - I looked into this mod the other day and considered installing it but decided that as I'm switching to 2.0 real soon it wasn't worth it - but now I don't have to wait very long before this is available too
Quote from: vbgamer45 on May 13, 2009, 11:55:04 PM
Quote from: Lithriel on May 13, 2009, 03:48:55 PM
So is there a compatible version for 2.0 out right now, or is it still in the works?  This mod is the only reason why I haven't upgraded yet!
Still in the works should be out in the next couple of weeks.

There is also an awesome working Shop Mod for SMF 2 RC1 that has been workin flawlessly for me for a while now.

It's definately worth checking out.HERE (http://sleepy-arcade.ath.cx/sleepy/index.php?topic=6449.msg10035#msg10035)
Title: Re: SMFShop - Shop MOD
Post by: oops on May 16, 2009, 11:18:20 PM
I just upgraded to 3.1 and i get the following error with SMF 1.1.8 when I load a profile page

8: Undefined index: money
File: /home/rcbas0/public_html/forum/Sources/Load.php
Line: 1130

not sure how or where to fix this, please help.
Title: Re: SMFShop - Shop MOD
Post by: Neverhurry on May 17, 2009, 03:18:32 PM
Hello,

i have this error:

   ./Sources/Subs-Boards.php     test failed

what can i do? please help!

(http://www.cinask.com/Smileys/skype/rose.gif)(http://www.cinask.com/Smileys/skype/rose.gif)(http://www.cinask.com/Smileys/skype/rose.gif)
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on May 17, 2009, 03:23:09 PM
Check on the modsite page and do the manual install instructions for that part. You can do the rest using the package installer.
Title: Re: SMFShop - Shop MOD
Post by: Neverhurry on May 18, 2009, 06:04:22 AM
Quote from: vbgamer45 on May 17, 2009, 03:23:09 PM
Check on the modsite page and do the manual install instructions for that part. You can do the rest using the package installer.

Thanks. i have to say it is a fantastic mod, very useful. Great job, man!
Title: Re: SMFShop - Shop MOD
Post by: silber112 on May 18, 2009, 06:24:42 PM
Quote from: vbgamer45 on May 10, 2009, 08:07:42 PM
Hello All,
I am going to taking over the modification and redoing it completely for SMF 2.0. Will update you with the latest updates and plans.
Plan to fix any out standing issues with SMF 1.1.x
Main development will focus on SMF 2.0 with a major code clean up, new features, new items.
Will setup a bug tracker, looking for team members to work on the mod, support, translators anyway that you can help will be great!

Thanks,
vbgamer45

Yes!!! I hope you start a forum like daniels about the shop. I am very happy, I am waiting to see new modifications at the shop and the final realise of the SMF pets and other Items  :D

Thanks a lot again to update the mod, if you need any help contact me  ;)
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on May 18, 2009, 09:41:29 PM
I need any help I can get. The more the better.
Will have another SMF 1.1.x update this week.
Title: Re: SMFShop - Shop MOD
Post by: gman123 on May 19, 2009, 05:01:48 PM
Quote from: sleepy-arcade.ath.cx on May 10, 2009, 05:03:19 PM

what name chnager

change user name or change display name?

For me as well its that yes.
Title: Re: SMFShop - Shop MOD
Post by: Neverhurry on May 20, 2009, 01:35:04 PM
Hello, 

i have problem to insall a mod called "stars and Badges" after i installed this shop mod, i found out that in order to install the stars and badges mod it is necessary to have "'is_guest' => false,", but as following shows, the shop mod codes replaced it.

what can i do to get away this conflict?

thank youuuuuuuuuu!!! (http://www.cinask.com/Smileys/skype/thanks.gif)

QuoteFind: [Select]


      'is_guest' => false,

Replace With: [Select]


      // Begin SMFShop MOD Version New Version
'money' => $profile['money'],
// End SMFShop MOD
Title: Re: SMFShop - Shop MOD
Post by: gman123 on May 20, 2009, 03:42:40 PM
Quote from: neverhurry on May 20, 2009, 01:35:04 PM
Hello, 

i have problem to insall a mod called "stars and Badges" after i installed this shop mod, i found out that in order to install the stars and badges mod it is necessary to have "'is_guest' => false,", but as following shows, the shop mod codes replaced it.

what can i do to get away this conflict?

thank youuuuuuuuuu!!! (http://www.cinask.com/Smileys/skype/thanks.gif)

QuoteFind: [Select]


      'is_guest' => false,

Replace With: [Select]


      // Begin SMFShop MOD Version New Version
'money' => $profile['money'],
// End SMFShop MOD
Try readding it in above the SMF Shop EX: SMF Shop should have added it below perhaps.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on May 20, 2009, 09:23:28 PM
New release! Rolled up a lot of Daneil's latest changes that he made that never made into the public version.

Version 3.1.1 for SMF 1.1.x
+Added checking if the username already exists when using the Change Username item.
+Edited several item files to use updateMemberData() instead of using a database query
+Added support for board-specific credit amounts, based off request at http://www.daniel15.com/forum/index.php/topic,554.html. This may not be fully functional at the moment.
![Shop.template.php] Fixed bug on View Other Members' Inventory page (reported by Sakuragi - http://www.daniel15.com/forum/index.php/topic,525.45.html)
![install_SMF1-1.xml] Fixed bug regarding Load.php edit (reported by feeble - http://www.daniel15.com/forum/index.php/topic,635.html)
![Steal.php] Fixed bug reported by jdv (thanks to Sakuragi) - http://www.daniel15.com/forum/index.php/topic,559.0.html
![Shop-Inventory.php] Fixed bug when viewing member's inventory, reported by thelastkiss (http://www.daniel15.com/forum/index.php/topic,532.msg2772.html#msg2772)
![Shop.template.php] Removed unneeded (commented) code
![Shop.template.php] Fixed 'Buy Stuff' display issue in Firefox
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: gman123 on May 20, 2009, 11:14:10 PM
Quote from: vbgamer45 on May 20, 2009, 09:23:28 PM
New release! Rolled up a lot of Daneil's latest changes that he made that never made into the public version.

Version 3.1.1 for SMF 1.1.x
+Added checking if the username already exists when using the Change Username item.
+Edited several item files to use updateMemberData() instead of using a database query
+Added support for board-specific credit amounts, based off request at http://www.daniel15.com/forum/index.php/topic,554.html. This may not be fully functional at the moment.
![Shop.template.php] Fixed bug on View Other Members' Inventory page (reported by Sakuragi - http://www.daniel15.com/forum/index.php/topic,525.45.html)
![install_SMF1-1.xml] Fixed bug regarding Load.php edit (reported by feeble - http://www.daniel15.com/forum/index.php/topic,635.html)
![Steal.php] Fixed bug reported by jdv (thanks to Sakuragi) - http://www.daniel15.com/forum/index.php/topic,559.0.html
![Shop-Inventory.php] Fixed bug when viewing member's inventory, reported by thelastkiss (http://www.daniel15.com/forum/index.php/topic,532.msg2772.html#msg2772)
![Shop.template.php] Removed unneeded (commented) code
![Shop.template.php] Fixed 'Buy Stuff' display issue in Firefox
Is there a way to update to 3.1.1 rather then reinstall and loose point stuff?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on May 20, 2009, 11:17:47 PM
I removed the deleting of the points from the new releases so data is left for older releases that would still be an issue.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Realinfo on May 21, 2009, 09:27:20 AM
I have ver Version Number: 3.0 (Build 12)............. is there need to un-install is first.............


I have this mod for many months, but I can't guess how I make it intersting , so my members take part in it................. so tell me how u use it in ur forum.....................
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: gman123 on May 21, 2009, 06:21:34 PM
Quote from: vbgamer45 on May 20, 2009, 11:17:47 PM
I removed the deleting of the points from the new releases so data is left for older releases that would still be an issue.
Not sure I understand. Basicly my concern was I have a good syetem most members have lots of points and Items I made... can the new version be put on with out effecting that? Will this new version affect custom mods?
Also I can't add my own Pictures... I get the following Error
(http://img195.imageshack.us/img195/1808/picture1h.png)
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on May 21, 2009, 07:42:13 PM
That's a permission issue make sure that sources/shop/item_images is writable
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: gman123 on May 21, 2009, 08:26:38 PM
Quote from: vbgamer45 on May 21, 2009, 07:42:13 PM
That's a permission issue make sure that sources/shop/item_images is writable
I can't it says they don't exist. I am the full admin of the site. And its only that folder... is it because I am hosting multiple sites on the host?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: master_of_jellyfish on May 25, 2009, 02:55:57 AM
When will the version for SMF 2.0 released?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: SosniTo.sk on May 25, 2009, 05:38:51 AM
Hello,
I have a problem. After the installation shop 3.1.1 , I am in editing, or delete the profile error is displayed:
QuoteUnknown column 'a.file_hash' in 'field list'
Súbor: /webhosting/sosnito.sk/www/Sources/ManageAttachments.php
Riadok: 570
Please where do I start?
(Forgive me for my poor English)
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Joe N on May 25, 2009, 06:31:14 AM
Glad you got it updated!
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: SosniTo.sk on May 25, 2009, 08:43:11 AM
   
Please give me exact instructions
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on May 25, 2009, 08:57:24 AM
Quote from: SosniTo.sk on May 25, 2009, 05:38:51 AM
Hello,
I have a problem. After the installation shop 3.1.1 , I am in editing, or delete the profile error is displayed:
QuoteUnknown column 'a.file_hash' in 'field list'
Súbor: /webhosting/sosnito.sk/www/Sources/ManageAttachments.php
Riadok: 570
Please where do I start?
(Forgive me for my poor English)
That is a bug in SMF please post in the SMF support forum.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: gman123 on May 25, 2009, 06:23:25 PM
Quote from: gman123 on May 21, 2009, 08:26:38 PM
Quote from: vbgamer45 on May 21, 2009, 07:42:13 PM
That's a permission issue make sure that sources/shop/item_images is writable
I can't it says they don't exist. I am the full admin of the site. And its only that folder... is it because I am hosting multiple sites on the host?
Any ideas is it possible for me to make a new folder and have it direct its image grabbing to that folder?
That'd be great if you know how. I assume its easy. Few code edits?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Thenewguy2009 on May 26, 2009, 01:29:58 AM
quick questions and its probably a pretty one to answer.  Great mod by the way.  My question is: How do you change the text of some things?

Example:  When testing, steal from another member...when the person fails, its said they lost karma.  How can I change the failed text?

Also, how can I make my own items?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Thenewguy2009 on May 26, 2009, 05:01:58 AM
aww ok, been playing around with it for the last two hours lol.  I managed to figure out how to change the language in the shops.english.php.  I then thought i knew how to make new items, but that failed.  I went to your site to download a template for it, but im getting a php error. 

I still would like to know how I can add my own items and description in this mod.  Thank you. 
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: master_of_jellyfish on May 27, 2009, 11:29:50 AM
*bump* still want to know if there is a release date for a ShopMod that works on SMF 2.0
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Lithriel on May 27, 2009, 12:20:09 PM
A release date would be nice.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: KahneFan on May 27, 2009, 12:41:24 PM
Don't poke the bear.


We are all volunteers here. I'm just glad someone has stepped up to do this and help us all out.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on May 27, 2009, 08:59:44 PM
Planned in the next two weeks.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: gman123 on May 27, 2009, 10:36:41 PM
Quote from: gman123 on May 25, 2009, 06:23:25 PM
Quote from: gman123 on May 21, 2009, 08:26:38 PM
Quote from: vbgamer45 on May 21, 2009, 07:42:13 PM
That's a permission issue make sure that sources/shop/item_images is writable
I can't it says they don't exist. I am the full admin of the site. And its only that folder... is it because I am hosting multiple sites on the host?
Any ideas is it possible for me to make a new folder and have it direct its image grabbing to that folder?
That'd be great if you know how. I assume its easy. Few code edits?
Any?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: MaXiForum.cz on May 28, 2009, 06:32:52 AM
Send money and view inventory in Profile:

(http://www.maxipicture.cz/thumb.php?picture=./uploaded_files/39/1243506887-1.jpg) (http://www.maxipicture.cz/ukaz/uploaded_files/39/1243506887-1.jpg)

Find:
<tr>
<td><b>', $txt[86], ': </b></td>
<td>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</td>


Replace:
<!-- Begin SMF   MOD New version -->

</tr><tr>

<td><b>Zlatých:</b></td>

<td>', $modSettings['shopCurrencyPrefix'], $context['member']['money'], $modSettings['shopCurrencySuffix'], '
</td>

<tr><td></td><td>
[<a href="', $scripturl, '?action=shop;do=sendmoney;member=', $context['member']['username'], '">Odeslat zlaté</a>] [<a href="', $scripturl, '?action=shop;do=invother2;member=', $context['member']['username'], '">Zobrazit inventář</a>]
</td>

<!-- End SMFShop MOD -->



or

Find:
<!-- Begin SMFShop MOD New version -->
</tr><tr>
<td><b>Credits:</b></td>
<td>', $modSettings['shopCurrencyPrefix'], $context['member']['money'], $modSettings['shopCurrencySuffix'], '</td>
<!-- End SMFShop MOD -->


replace:
<!-- Begin SMF   MOD New version -->

</tr><tr>

<td><b>Zlatých:</b></td>

<td>', $modSettings['shopCurrencyPrefix'], $context['member']['money'], $modSettings['shopCurrencySuffix'], '
</td>

<tr><td></td><td>
[<a href="', $scripturl, '?action=shop;do=sendmoney;member=', $context['member']['username'], '">Odeslat zlaté</a>] [<a href="', $scripturl, '?action=shop;do=invother2;member=', $context['member']['username'], '">Zobrazit inventář</a>]
</td>

<!-- End SMFShop MOD -->
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: gman123 on May 28, 2009, 05:44:43 PM
Quote from: gman123 on May 27, 2009, 10:36:41 PM
Quote from: gman123 on May 25, 2009, 06:23:25 PM
Quote from: gman123 on May 21, 2009, 08:26:38 PM
Quote from: vbgamer45 on May 21, 2009, 07:42:13 PM
That's a permission issue make sure that sources/shop/item_images is writable
I can't it says they don't exist. I am the full admin of the site. And its only that folder... is it because I am hosting multiple sites on the host?
Any ideas is it possible for me to make a new folder and have it direct its image grabbing to that folder?
That'd be great if you know how. I assume its easy. Few code edits?
Any?
No? Darn. And Max if you were talking to me that not what I ment. I want to know if theres a way I can make a folder that has pictures of the Items and make it grab the pictures from that folder rather then the folder it is already grabbing them from.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: mikeandike on May 29, 2009, 04:04:39 PM
I tried searching the topic and didn't find anything, forgive me if I've missed it.

How can I change the shop name? Like, when the user goes to ?action=shop, I want the title to be something like "The Bank" or "Money Center" instead of just displaying the word "Shop"

Can I do this?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: SA™ on May 29, 2009, 04:15:59 PM
i think in themes/default/languages/shop.english.php

find

$txt['shop'] = 'Shop';

change what in red to what you want
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: mikeandike on May 29, 2009, 04:20:35 PM
thank you thank you thank you

that did the trick.  :D
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: littenburg on May 30, 2009, 02:21:58 PM
when i change the settings, they don't save, like it says it is saved, but when i go and look, everything is still how it was when i first installed it, so i go back to the settings, and everything is blank, and nothing is checked...please help, i would love to use this mod
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on May 30, 2009, 06:26:27 PM
What version of the mod are you using?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: littenburg on May 30, 2009, 07:18:24 PM
im using the latest of everything,  smf 1.1.9, and shop 3.1.1
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: gman123 on May 31, 2009, 12:34:05 AM
No help 4 me?  :'(
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: silber112 on May 31, 2009, 02:32:54 PM
vbgamer45, please add something to give other Membergroups permisions to admin the SHOP.

It is very important  :)
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on May 31, 2009, 02:42:54 PM
Add it to the feature requests
http://www.smfhacks.com/smfshop/index.php?action=projects
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: silber112 on May 31, 2009, 03:02:07 PM
Another thing that interests me is, How can I update my SMFShop_3-0_Fresh_Install to the last to Shop MOD - Version 3.1.1.

My forum is very big, it haves about 8.000 users and the shop is one of the most used mods, i can not loose any data...
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on May 31, 2009, 03:05:53 PM
Be very careful before SMF Shop when uninstalled used to drop the tables and remove the shop points. I would not uninstall it via the package manager.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: silber112 on May 31, 2009, 03:24:55 PM
Quote from: vbgamer45 on May 31, 2009, 03:05:53 PM
Be very careful before SMF Shop when uninstalled used to drop the tables and remove the shop points. I would not uninstall it via the package manager.

I am from spain, I dont understand you perfectly but are you saying that we have to desinstall it manualy and then instal the new shop manualy using the old mysql tables?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Thenewguy2009 on June 02, 2009, 02:15:53 PM
Any idea on how to add your own items and description in this mod?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on June 02, 2009, 07:24:55 PM
You would need to code them check Sources/Shop there is an items directory with some examples.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: gman123 on June 02, 2009, 09:03:07 PM
Quote from: gman123 on May 28, 2009, 05:44:43 PM
Quote from: gman123 on May 27, 2009, 10:36:41 PM
Quote from: gman123 on May 25, 2009, 06:23:25 PM
Quote from: gman123 on May 21, 2009, 08:26:38 PM
Quote from: vbgamer45 on May 21, 2009, 07:42:13 PM
That's a permission issue make sure that sources/shop/item_images is writable
I can't it says they don't exist. I am the full admin of the site. And its only that folder... is it because I am hosting multiple sites on the host?
Any ideas is it possible for me to make a new folder and have it direct its image grabbing to that folder?
That'd be great if you know how. I assume its easy. Few code edits?
Any?
No? Darn. And Max if you were talking to me that not what I ment. I want to know if theres a way I can make a folder that has pictures of the Items and make it grab the pictures from that folder rather then the folder it is already grabbing them from.
Any news on that?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on June 02, 2009, 10:02:07 PM
My best guess it is is an issue with permissions check with your host.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: gman123 on June 02, 2009, 10:58:32 PM
Quote from: vbgamer45 on June 02, 2009, 10:02:07 PM
My best guess it is is an issue with permissions check with your host.
ingoring that as an issue is there still a way to make it grab its Item Images from another folder? Please Quote me so I know your talking to me if you don't mind.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Diamond1444 on June 04, 2009, 05:54:42 PM
I need the same information, please - about how to add new items to the shop!
Thanks. 
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: silber112 on June 10, 2009, 05:03:20 PM
Are you still working on the new version for the smf 2.0?

Any news? I kan not wait more!  >:(
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on June 10, 2009, 08:58:23 PM
Yes most likely one more week busy this weekend.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: __RaaVaNaN__ on June 11, 2009, 02:05:17 AM
i already using Shop mod But Now I Am Getting error In this To Files Kindly help me any one i dont know coding so plz :)
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: SA™ on June 11, 2009, 02:18:37 AM
and the error being what? please elabrate so we can better help you
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: __RaaVaNaN__ on June 11, 2009, 07:09:21 AM
(http://i42.tinypic.com/23lo940.jpg)   


See this image brother my shop items not visible in that While Uninstalling i am Getting Error In

ManagePermissions.php
RemoveTopic.php  this two files kindly help me i need this mod
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: gman123 on June 14, 2009, 02:16:42 AM
Quote from: gman123 on June 02, 2009, 10:58:32 PM
Quote from: vbgamer45 on June 02, 2009, 10:02:07 PM
My best guess it is is an issue with permissions check with your host.
ingoring that as an issue is there still a way to make it grab its Item Images from another folder? Please Quote me so I know your talking to me if you don't mind.
Any one going to even try to help me?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Vampy on June 14, 2009, 06:33:30 PM
Quote from: vbgamer45 on June 10, 2009, 08:58:23 PM
Yes most likely one more week busy this weekend.

I'm waiting for this before I upgrade :P
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on June 14, 2009, 09:32:30 PM
Will let you know once it is ready
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Joe N on June 15, 2009, 02:28:50 PM
Quote from: vbgamer45 on June 14, 2009, 09:32:30 PM
Will let you know once it is ready

When abouts will it be?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: neteater on June 16, 2009, 12:27:29 PM
getting this error while tryimg to install
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

also attaching screen shot and my theme is dafault red colored theme and my forum version is 1.1.9
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: MaXiForum.cz on June 16, 2009, 12:42:25 PM
Edit this file by hand ;)
Or send it...
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on June 16, 2009, 12:56:19 PM
Quote from: neteater on June 16, 2009, 12:27:29 PM
getting this error while tryimg to install
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

also attaching screen shot and my theme is dafault red colored theme and my forum version is 1.1.9
I would still install you can later attempt to manual update that file.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: neteater on June 23, 2009, 10:50:00 AM
i am facing a new problem whenever i tries to edit catagories/item all shop setting got deleted it not working well and all values in general setting reseted to zero
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: DonnaMarie on June 23, 2009, 10:30:15 PM
I am trying to UNINSTALL

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

It is not what i expected... So I just want to uninstall but I am scared.. I emailed techs at my Host and they said it means it is not really installed. But that sounds like crap to me.. Anyone able to give any info/help?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: neteater on June 24, 2009, 12:46:20 AM
Quote from: westatlantamommas on June 23, 2009, 10:30:15 PM
I am trying to UNINSTALL

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

It is not what i expected... So I just want to uninstall but I am scared.. I emailed techs at my Host and they said it means it is not really installed. But that sounds like crap to me.. Anyone able to give any info/help?
continue with you uninstall and then upload  that file which is saying test fail message
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: neteater on June 24, 2009, 01:01:31 AM
Quote from: neteater on June 23, 2009, 10:50:00 AM
i am facing a new problem whenever i tries to edit catagories/item all shop setting got deleted it not working well and all values in general setting reseted to zero
any update for me
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: radioninty on June 24, 2009, 08:22:42 PM
Hi there

Would it be possible if someone could make me/explain to me how to make an item.

I want people to be able to choose an item that sends me, the admin, a specific message.
For example, people can use their posts to buy real items, so each "item" in the shop is a message along the lines of "redeem points for a t shirt" and then allow the user to input their address in the message that gets sent...

I don't think I've explained that very well....
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: LastCaress on June 26, 2009, 02:29:01 PM
Hi. Anyone have any luck with the 3.0 to 3.1.1 upgrade?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: silber112 on June 26, 2009, 06:50:11 PM
Quote from: LastCaress on June 26, 2009, 02:29:01 PM
Hi. Anyone have any luck with the 3.0 to 3.1.1 upgrade?

I am interested in this too, I supose that if we desinstal the 3.0 and delite the tables in the database and after that instal the new versión and aply a back up of the items and the credits of the old one it will work...

But after doing anithing i will wait to hear what the mod autor recomend..
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Thenewguy2009 on June 26, 2009, 11:02:21 PM
above your avatar there is a clickable link that says: send money to (whoever)

Is there a way to change that text?

Ive been playing around with trial and error in the shop.language file and I cant figure it out.  Thanks for the help. 
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: silber112 on June 27, 2009, 01:04:37 PM
Quote from: Thenewguy2009 on June 26, 2009, 11:02:21 PM
above your avatar there is a clickable link that says: send money to (whoever)

Is there a way to change that text?

Ive been playing around with trial and error in the shop.language file and I cant figure it out.  Thanks for the help.

search wor it in the display.template.php of your theme..
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Thenewguy2009 on June 27, 2009, 01:08:16 PM
Beautiful! Just didnt know where to look. Thank you so much!
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: silber112 on June 27, 2009, 02:50:26 PM
Quote from: Thenewguy2009 on June 27, 2009, 01:08:16 PM
Beautiful! Just didnt know where to look. Thank you so much!

download  the php file to your pc, open it with dreamweaver or a text a editor and search for send money to and then edit it...
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Thenewguy2009 on June 27, 2009, 03:07:42 PM
thanks, i understand that.  I already made the changes, just curious where the changes were. 

I have another question though.  On this mod, when you go to buy stuff, is there a way to change that template up?

Like have the categories in a block type setting on the left hand side or in the center?  Now its just 10 items per page and members have to use the drop down for different categories. 
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Thenewguy2009 on June 27, 2009, 10:06:44 PM
Im getting this error code:

8: Undefined index: shop_im_sendmoney_message
File: /home/content/t/e/t/test/html/Sources/shop/Shop-Send.php
Line: 135 and 133

anyone know what could be causing this?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on June 27, 2009, 10:08:25 PM
Is that from the latest version?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Thenewguy2009 on June 27, 2009, 10:14:46 PM
yep
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Neverhurry on June 28, 2009, 07:09:37 AM
hi, i installed the shop mod, but i can not find the "shop" button in menu. where to activate it? thanks!

index.template.php was atacked by exploit, fix. thanks.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Joe N on June 28, 2009, 08:25:55 AM
smf 2.0 yet?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on June 28, 2009, 09:57:55 AM
no still a week or two away.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Joe N on June 28, 2009, 10:07:24 AM
Quote from: vbgamer45 on June 28, 2009, 09:57:55 AM
no still a week or two away.

Can't wait!  :D
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Thenewguy2009 on June 29, 2009, 01:27:56 AM
Quote from: Thenewguy2009 on June 27, 2009, 10:06:44 PM
Im getting this error code:

8: Undefined index: shop_im_sendmoney_message
File: /home/content/t/e/t/test/html/Sources/shop/Shop-Send.php
Line: 135 and 133

anyone know what could be causing this?

any help on this?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Thenewguy2009 on June 29, 2009, 02:10:14 PM
Aww about my error post above.  A few posts back, I changed "send money" to is display.template.php.  Do you think that this error is due to that as in the code there it says sendmoney in the shop-send.php?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Celdric on June 30, 2009, 09:49:01 AM
Undefined index: shop_im_sendmoney_message

shop_im_sendmoney_message is a text variable. Normally you can find it in Shop.english.php. Seems that your shop can't find it.

I would say check, if it's there. :)
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Thenewguy2009 on June 30, 2009, 06:55:29 PM
celdric, let me look in that file.  I have no clue why it would be gone though.  I hope that is the correct answer to this problem.  Thank you so much for the response and Ill get back with you asap. 
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Thenewguy2009 on June 30, 2009, 08:42:42 PM
Nope its not there anymore.  I rewrote the send money on the display temp to something else.  I figured that might be the case.  Now in the english, its the stated as the same thing I changed it to in display temp. 

How can I make this error go away? 
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Sudhakar Arjunan on July 02, 2009, 04:14:52 PM
Quote from: vbgamer45 on June 28, 2009, 09:57:55 AM
no still a week or two away.

Great , keep rocking.

We will wait for the updates.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: MF30 on July 02, 2009, 10:11:52 PM
./Sources/ManageBoards.php     Failed

i have SMF 1.1.9v.
help!
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: CKWT on July 03, 2009, 12:12:41 AM
do this


./Sources/ManageBoards.php


Find: [Select]


         'override_theme' => 0,

Add After: [Select]


         // Begin SMFShop code
         'countMoney' => 1,
         'shop_pertopic' => 0,
         'shop_perpost' => 0,
         'shop_bonuses' => 1,
         // End SMFShop code


Find: [Select]


      // Checkboxes....

Add Before: [Select]


      // Begin SMFShop code
      // Are we counting credits in this board?
      // TODO: Rename this? It's kept as countMoney for backwards compatibility...
      $boardOptions['countMoney'] = isset($_POST['countMoney']);
      // How many credits do we get per post/topic?
      $boardOptions['shop_pertopic'] = !empty($_POST['shop_pertopic']) ? (int) $_POST['shop_pertopic'] : 0;
      $boardOptions['shop_perpost'] = !empty($_POST['shop_perpost']) ? (int) $_POST['shop_perpost'] : 0;
      // Bonuses in this board?
      $boardOptions['shop_bonuses'] = isset($_POST['shop_bonuses']);
      // End SMFShop code

it's all right here
http://mods.simplemachines.org/?mod=65
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: MF30 on July 03, 2009, 08:49:10 AM
Quote from: CKWT on July 03, 2009, 12:12:41 AM
do this


./Sources/ManageBoards.php


Find: [Select]


         'override_theme' => 0,

Add After: [Select]


         // Begin SMFShop code
         'countMoney' => 1,
         'shop_pertopic' => 0,
         'shop_perpost' => 0,
         'shop_bonuses' => 1,
         // End SMFShop code


Find: [Select]


      // Checkboxes....

Add Before: [Select]


      // Begin SMFShop code
      // Are we counting credits in this board?
      // TODO: Rename this? It's kept as countMoney for backwards compatibility...
      $boardOptions['countMoney'] = isset($_POST['countMoney']);
      // How many credits do we get per post/topic?
      $boardOptions['shop_pertopic'] = !empty($_POST['shop_pertopic']) ? (int) $_POST['shop_pertopic'] : 0;
      $boardOptions['shop_perpost'] = !empty($_POST['shop_perpost']) ? (int) $_POST['shop_perpost'] : 0;
      // Bonuses in this board?
      $boardOptions['shop_bonuses'] = isset($_POST['shop_bonuses']);
      // End SMFShop code

it's all right here
http://mods.simplemachines.org/?mod=65

Thanks, but I do not have the:

// Checkboxes....

See my  ./Sources/ManageBoards.php    
in attach.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: MaXiForum.cz on July 03, 2009, 11:24:01 AM
MF30 check this:
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: MF30 on July 03, 2009, 01:06:52 PM
Quote from: MaxiPes on July 03, 2009, 11:24:01 AM
MF30 check this:

Thanks! :P
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: MaXiForum.cz on July 03, 2009, 03:44:44 PM
Quote from: MF30 on July 03, 2009, 01:06:52 PM
Thanks! :P

   
Works? :)
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: [Core] on July 03, 2009, 03:49:48 PM
Nice mod thanks.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: MF30 on July 03, 2009, 04:57:19 PM
Quote from: MaxiPes on July 03, 2009, 03:44:44 PM
Quote from: MF30 on July 03, 2009, 01:06:52 PM
Thanks! :P

   
Works? :)

yap. :)
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Alex_Zorzful on July 06, 2009, 07:17:18 PM
12.     Execute Modification     ./Sources/RemoveTopic.php     Test failed

How do i fix that?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: MaXiForum.cz on July 07, 2009, 08:42:11 AM
Quote from: Alex_Zorzful on July 06, 2009, 07:17:18 PM
12.     Execute Modification     ./Sources/RemoveTopic.php     Test failed

How do i fix that?

Send this file...
It must modificated by hand.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: cele on July 07, 2009, 10:58:05 AM
I have this 2 errors

Error in Package Installation
./Themes/default/Display.template.php     Test failed
./Sources/RemoveTopic.php     Test failed

what can i do?

I have to install it anyway and then fix them by hand or i have to do the fixes before?

excuse my bad english :P
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on July 07, 2009, 11:41:10 AM
I would install it then fix them by hand.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Celdric on July 07, 2009, 11:54:10 AM
Quote from: Thenewguy2009 on June 30, 2009, 08:42:42 PM
Nope its not there anymore.  I rewrote the send money on the display temp to something else.  I figured that might be the case.  Now in the english, its the stated as the same thing I changed it to in display temp. 

How can I make this error go away? 

Doesn't matter what you changed. Your shop looks for shop_im_sendmoney_message in Shop.english.php. And if it's not there, what would be easier to add it again?

How to do that? Use your fantasy. :) You have the zipfile of the shop, right?

Just unzip it on your hard-drive. Then you have the correct language files. Again, just unzip. Don't install the shop again.
Now copy the shop_im_sendmoney_message and paste it into the Shop.english.php that you currently use.
That should make the error message dispappear.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: neteater on July 14, 2009, 11:59:14 AM
hi  i am using v1.1.9 and i have these errors  items are duplicated in buy item area  and shop button displayed two time attaching thumbnail for better exp.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: neteater on July 15, 2009, 01:39:43 PM
i uninstalled it but there is empty area in admin area and shop button is also which files need modification i have default red color theme
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Realinfo on July 16, 2009, 09:26:55 AM
I have SMFSHOP ver 3.0.0........... How I will upgrade it to latest ver.................
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on July 22, 2009, 02:42:01 PM
Just install the latest version it should autoupgrade your release.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: davieb on July 26, 2009, 06:14:49 AM
Hi, just tried this out and noticed something which may be a bug, if not I can't see anyway to switch it off.

The links that say "View Inventory" and "send money to" are still visible to everyone even though I've only got the shop available to 1 membergroup

Is there a way to remove these if a member doesn't have access to the shop?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: improv on July 30, 2009, 12:59:48 PM
Hello there.
I'm having a simple question:
Is there a method to show 'your' current credits at a specific page(custom action)?
Thanks in advance.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on July 30, 2009, 07:27:29 PM
Quote from: improv on July 30, 2009, 12:59:48 PM
Hello there.
I'm having a simple question:
Is there a method to show 'your' current credits at a specific page(custom action)?
Thanks in advance.
You could write an sql query to  grab  that data from the credits column in the members table and then create a page to do so.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: improv on July 31, 2009, 09:37:03 AM
I can't seem to find the table, only these:
   smf_shop_categories      
   smf_shop_inventory    
   smf_shop_items
In which table may I find the credits stored of all users?


Edit : found them in the members table.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on July 31, 2009, 11:34:15 AM
Glad you were able to find it.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Joe N on July 31, 2009, 11:40:00 AM
Smf 2x yet?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on July 31, 2009, 12:23:43 PM
No
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: ScottDB on July 31, 2009, 07:36:25 PM
Hi all, I just installed this on my SMF 1.1.10 forum with Simple Portal 2.2 and can not see any admin features or tabs.  It says it was a successful install but cant see anything. What do I do next?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on July 31, 2009, 07:50:16 PM
Try to reinstall and check file permissions
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: ScottDB on July 31, 2009, 09:03:13 PM
I have done that but when I check permissions I can see a space between Simple Portal and Personal Messaging that has just check boxes and lines. No text. All boxes are checked. When I uninstall it the section is gone. When I reinstall it comes back so I gather that this is the permission section of the mod. Is there a manual install for this?

Modified: Just noticed I do have shop in my default theme. Just have no control over permission. Also I noticed that in the buy section of shop all items are listed twice. Probably due to uninstall and reinstall.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: ScottDB on July 31, 2009, 10:46:42 PM
Assuming that I can get the previous posts problems solved I would also like to know how to get this added on to the other themes in my forum.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on July 31, 2009, 11:08:01 PM
Check under Admin -> Server settings

Make sure the language is set to English and not english utf8
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: ScottDB on August 01, 2009, 12:52:02 AM
That did the trick. Thanks so much. Now if fixing the store listings in the buy section can just be as easy of a fix. Also how to get it into the custom themes. Is there a place I can go to get the manual install instructions?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on August 01, 2009, 12:53:28 AM
You should be able to use the manual install instructions on the mod site for the mod at
http://mods.simplemachines.org/?mod=65
Then just do the theme edits to your custom themes
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Joe N on August 01, 2009, 05:11:42 AM
Quote from: vbgamer45 on July 31, 2009, 12:23:43 PM
No

When?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on August 01, 2009, 01:42:14 PM
When it is completed. Most likely for SMF RC2
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Kindred on August 02, 2009, 01:41:30 AM
well, that's a problem with your theme, not with the mod(s)

It looks like your theme uses images for the topnav rather than text.... which means that you will have to create the images that you want the system to use rather than just using text.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: ScottDB on August 02, 2009, 11:38:51 AM
That's what I thought the problem was but wasn't sure. Can you tell me if it is possible to take an image from the image file and copy and edit it to make a new one? If so, what should I name the new image file to make it work correctly. Have this problem in a couple of themes on a couple of buttons. How do I check to make sure that I am naming the image file correctly.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Joe N on August 02, 2009, 01:15:51 PM
Quote from: vbgamer45 on August 01, 2009, 01:42:14 PM
When it is completed. Most likely for SMF RC2

I am using the other shop then
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: SA™ on August 02, 2009, 02:32:00 PM
Quote from: ScottDB on August 01, 2009, 09:45:24 PM
Hi all, I got this to work on my custom themes but the buttons are not right. They are smaller than the rest and the letters don't show up unless the cursor is hovering over it. Then the letters show up in red. I figure it has to be an image file problem or something. Also having the same problem with my chat button on this hgf3 them. Still havent got answer back from chat help. Here is a pic. File attached.

it cos you are uysing a custom theme withn default theme code you have to change it so it the same as your custom theme

your theme index.template.php

change

echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'shop' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=shop">Shop</a>
</td>' , $current_action == 'shop' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


to

echo '<li><a' , $current_action=='shop' ? ' class="current"' : '' , ' href="', $scripturl, '?action=shop"><span>Shop</span></a></li>';
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: ScottDB on August 02, 2009, 05:43:07 PM
Thanks for the reply. In your post you stated that I need to change my code on my theme/index.template.php and showed me what code I needed to change. There is nothing in the change to edit box however. Did you mean this to be that I would have to look up the default index.template.php and look for this line of code and copy it and change the theme/index.template.php to that code?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: LC on August 09, 2009, 12:29:43 AM
Is there going to be any more items created? I looked at the SmfShop forum but saw only a few.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: ScottDB on August 09, 2009, 01:28:57 AM
I just upgraded a couple of days ago to 2.0 rc1.2 so I no longer have this problem. Thanks for the info though. I'm learning more about this program and php every day thanks to your guys help.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Joe N on August 09, 2009, 03:44:08 AM
Quote from: LadyChaos on August 09, 2009, 12:29:43 AM
Is there going to be any more items created? I looked at the SmfShop forum but saw only a few.

Click Here - http://smfshop.com/forum/index.php?PHPSESSID=8e2cbb5c5566c707d6768996a385adac&board=28.0
Or - http://smfshop.com/forum/index.php?PHPSESSID=8e2cbb5c5566c707d6768996a385adac&board=31.0
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: LC on August 09, 2009, 04:25:14 PM
Quote from: Joe N on August 09, 2009, 03:44:08 AM
Quote from: LadyChaos on August 09, 2009, 12:29:43 AM
Is there going to be any more items created? I looked at the SmfShop forum but saw only a few.

Click Here - http://smfshop.com/forum/index.php?PHPSESSID=8e2cbb5c5566c707d6768996a385adac&board=28.0
Or - http://smfshop.com/forum/index.php?PHPSESSID=8e2cbb5c5566c707d6768996a385adac&board=31.0

Thanks for the links, but I have looked at both of those sections, I have most of those items on the shop.
:P
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: ScottDB on August 13, 2009, 02:43:33 PM
I just upgraded to 2.0 rc1.2 and found out that this mod is not supported in 2.x. Man what a bummer. I really wanted this on my forum.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: swan on August 17, 2009, 01:39:31 PM
Ok i dont know if this is the right place but have added SMFShop Inventory Post Modification but cant seem to find where to set it so that it shows in peoples posts.  Can someone help please
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on August 17, 2009, 02:08:01 PM
Quote from: ScottDB on August 13, 2009, 02:43:33 PM
I just upgraded to 2.0 rc1.2 and found out that this mod is not supported in 2.x. Man what a bummer. I really wanted this on my forum.
Planned maybe if i get a good block this week I can add it.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Deus Evil on August 27, 2009, 06:42:30 PM
Is there away people can buy credits via paypal to use in the shop?

Ive been looking everywere and I just cant find the setting

Deus
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on August 27, 2009, 09:08:51 PM
Not currently. Good idea though
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: 3dhomejoe on August 30, 2009, 08:07:29 PM
Would it be safe for me to install the mod on SMF 1.1.10 if it gives me this error?

Thanks

Quote

1.     Execute Code     installScript.php     
2.    Extract Tree    ./Sources/shop    
3.    Extract File    ./Themes/default/languages/Shop.english.php    
4.    Extract File    ./Themes/default/languages/Shop.english-utf8.php    
5.    Extract File    ./Themes/default/ShopAdmin.template.php    
6.    Extract File    ./Themes/default/Shop.template.php    
7.    Execute Modification    ./index.php    Test successful
8.    Execute Modification    ./Sources/Load.php    Test successful
9.    Execute Modification    ./Sources/ManageBoards.php    Test successful
10.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
11.    Execute Modification    ./Sources/Post.php    Test successful
12.    Execute Modification    ./Sources/RemoveTopic.php    Test successful
13.    Execute Modification    ./Sources/Subs.php    Test successful
14.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
15.    Execute Modification    ./Sources/Subs-Members.php    Test successful
16.    Execute Modification    ./Themes/default/Display.template.php    Test failed
17.    Execute Modification    ./Themes/default/index.template.php    Test successful
18.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
19.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
20.    Execute Modification    ./Themes/default/languages/Errors.english.php    Test successful
21.    Execute Modification    ./Themes/default/languages/ManagePermissions.english.php    Test successful
22.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on August 30, 2009, 08:10:16 PM
Yes it would be. You would just need to do that one part manually if you want shop information listed by users avatars in posts.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: 3dhomejoe on August 30, 2009, 08:41:03 PM
ok, thanks
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: CTRicardo on August 31, 2009, 08:24:21 PM
Hi Guys i need help with SMF Shop Mod. I need know how i put more number in the price of the items, i put 100000 in the price and the mod replace this for 999999,99 ...

Thanks Guys

COngrats
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: CTRicardo on September 01, 2009, 10:28:41 AM
Quote from: CTRicardo on August 31, 2009, 08:24:21 PM
Hi Guys i need help with SMF Shop Mod. I need know how i put more number in the price of the items, i put 100000 in the price and the mod replace this for 999999,99 ...

Thanks Guys

COngrats

I need help please !
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Bob Perry of Web Presence Consulting on September 09, 2009, 07:05:44 AM
Just installed on SMF 1.1.10, only one error on test install (ManageBoards.php), everything else seems to function perfectly except for when a normal user actually posts a message... they are not getting credited with the appropriate number of credits... did some checking and discovered that the test install failed on file Sources/manageboards.php because in my file the search criteria for the second edit that it does where it looks for "// Checkboxes.... " doesn't exist so it didn't execute that edit... need to know exact location in file to insert the new code... help?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Bob Perry of Web Presence Consulting on September 12, 2009, 03:35:42 AM
Quote from: bperry921 on September 09, 2009, 07:05:44 AM
Just installed on SMF 1.1.10, only one error on test install (ManageBoards.php), everything else seems to function perfectly except for when a normal user actually posts a message... they are not getting credited with the appropriate number of credits... did some checking and discovered that the test install failed on file Sources/manageboards.php because in my file the search criteria for the second edit that it does where it looks for "// Checkboxes.... " doesn't exist so it didn't execute that edit... need to know exact location in file to insert the new code... help?

Hello? Any help with this?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Bob Perry of Web Presence Consulting on September 14, 2009, 09:32:26 PM
Quote from: bperry921 on September 12, 2009, 03:35:42 AM
Quote from: bperry921 on September 09, 2009, 07:05:44 AM
Just installed on SMF 1.1.10, only one error on test install (ManageBoards.php), everything else seems to function perfectly except for when a normal user actually posts a message... they are not getting credited with the appropriate number of credits... did some checking and discovered that the test install failed on file Sources/manageboards.php because in my file the search criteria for the second edit that it does where it looks for "// Checkboxes.... " doesn't exist so it didn't execute that edit... need to know exact location in file to insert the new code... help?

Hello? Any help with this?

Well how about this? Can someone shoot me a copy of Sources/ManageBoards.php from version 1.1.9 of SMF and I will try to find the location myself?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on September 14, 2009, 09:39:11 PM
That probably can be found in the archives
http://download.simplemachines.org/?archive
For older reasons of SMF
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Bob Perry of Web Presence Consulting on September 15, 2009, 12:26:13 AM
Quote from: vbgamer45 on September 14, 2009, 09:39:11 PM
That probably can be found in the archives
http://download.simplemachines.org/?archive
For older reasons of SMF

Thanks, found it, made the edit but it's still not working, users don't get credits for posting, however, new registrations do get their credits... no errors in smf log

HELP?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Oldiesmann on September 24, 2009, 04:46:33 PM
Quote from: bperry921 on September 15, 2009, 12:26:13 AM
Quote from: vbgamer45 on September 14, 2009, 09:39:11 PM
That probably can be found in the archives
http://download.simplemachines.org/?archive
For older reasons of SMF

Thanks, found it, made the edit but it's still not working, users don't get credits for posting, however, new registrations do get their credits... no errors in smf log

HELP?

You need to make sure you have each board set to give shop credits. Go to Admin -> Manage Boards, click "Modify" next to a board and make sure the appropriate box is checked.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Sakurachan on September 24, 2009, 09:01:56 PM
Is this going to work for SMF 1.1.10 ever?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on September 24, 2009, 09:16:07 PM
Yes it should work fine with SMF 1.1.10
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Sakurachan on September 24, 2009, 10:34:51 PM
Quote from: vbgamer45 on September 24, 2009, 09:16:07 PM
Yes it should work fine with SMF 1.1.10

Hmm, it didn't show it eariler for some odd reason. It said it only supported by to 1.1.9.

I'll give this one a go!

Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on September 24, 2009, 10:42:14 PM
Yeah forgot to update that one.
But all mods should work for the minor versions.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Sakurachan on September 24, 2009, 10:45:54 PM
O-o,. why don't I have access to the shop? It does display a 'shop' button, I'm sure..

I can only edit the things as the admin in the ACP.

I've set it so all my moderators and regular members can access this shop as well.

Is there any trick to possibly add this permission for my membergroup? (admin)

Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: 4b11l on September 25, 2009, 06:04:18 PM
Is there a way to track what users has bought? Or, a way to disable the member using the item bought twice when "delete item from inventory after use" is unchecked?

Or, is there an item mod that will PM an administrator with a pre-defined message when the member uses an item.

I have a plan to use this mod to give out freebie products and none of the item mods so far can suffice for this purpose. I can not find any item mods on the wiki page either. Thanks.

For some reason I can not search this thread properly. It is only showing 1 result.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: slayer143 on September 26, 2009, 10:44:54 PM
money deposited in the bank is not getting any interest at all.
Can someone explain why it is so?
This is for SMF 1.1.10

Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on September 26, 2009, 11:04:14 PM
I belive you have to setup a cron job for interest
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: 4b11l on September 27, 2009, 09:34:06 PM
Quote from: 4b11l on September 25, 2009, 06:04:18 PM
Is there a way to track what users has bought? Or, a way to disable the member using the item bought twice when "delete item from inventory after use" is unchecked?

Or, is there an item mod that will PM an administrator with a pre-defined message when the member uses an item.

I have a plan to use this mod to give out freebie products and none of the item mods so far can suffice for this purpose. I can not find any item mods on the wiki page either. Thanks.

For some reason I can not search this thread properly. It is only showing 1 result.

Bump.

Would the PM part be easily writable that someone can write an item of it for me? Thanks.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Bob Perry of Web Presence Consulting on September 29, 2009, 11:18:27 AM
Quote from: Oldiesmann on September 24, 2009, 04:46:33 PM
Quote from: bperry921 on September 15, 2009, 12:26:13 AM
Quote from: vbgamer45 on September 14, 2009, 09:39:11 PM
That probably can be found in the archives
http://download.simplemachines.org/?archive
For older reasons of SMF

Thanks, found it, made the edit but it's still not working, users don't get credits for posting, however, new registrations do get their credits... no errors in smf log

HELP?

You need to make sure you have each board set to give shop credits. Go to Admin -> Manage Boards, click "Modify" next to a board and make sure the appropriate box is checked.

Sorry took so long to reply, been sick, I have double checked all settings and everything is as it should be as far as I am aware, the new registrations get their credits, the new topics & posts get their PER WORD credits, but NOT the default PER TOPIC/POST credits... the Bank Interest is functioning perfectly... I do however get the following error in the admin back office on general settings... "Unable to connect to SMFHacks website to check for new version"... no errors in SMF error log on save of any settings
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: jonidfld on September 29, 2009, 05:10:30 PM
Hiya,

;) evening all!!!

I have a prob, i tried on the smfshop site - but got no reply. When a member purchases an item from the shop, sometimes they get two of the item in their inventory.

That's: they pay for one item but get two. The stock goes down by two. They are charged for one. Its creating a bit of chaos.

:crazy2:

Tis a problem. Any help or advise?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: garfmaj on October 02, 2009, 07:06:53 PM
I have Shop 3.0 set up, and I just upgraded our forum from 1.1.5 to 1.1.10, and was hoping to upgrade the shop to 3.1, but all I can find is a fresh installation for 3.1, or an upgrade from 2.3. :/ Where would I be able to upgrade our version or find a list of instructions? *is new to the site*
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: PINOYBusinessClub on October 04, 2009, 12:16:13 PM
This is great. Installed successfully on 1.1.10 custom theme (ofc with a few manual install)

Only thing i noticed is that my forum has DOUBLE breadcrumbs/linktree whenever one goes to the  Shop.

been searching how to remove this.

anyone?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Pinball Nation on October 04, 2009, 01:28:22 PM
Hello,If i upgrade to the new version will my members lose all of there post points or credits?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on October 04, 2009, 01:45:08 PM
Quote from: Pinball Nation on October 04, 2009, 01:28:22 PM
Hello,If i upgrade to the new version will my members lose all of there post points or credits?
If you upgrade no but if you uninstall the old version I believe you will loose the points
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Pinball Nation on October 05, 2009, 04:31:15 PM
Thanks.But if i  want to install a newer version of the shop mod is what i should have ask.Will members lose all there stuff.Sorry about the confusion.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Kindred on October 05, 2009, 09:35:23 PM
Quote from: vbgamer45 on October 04, 2009, 01:45:08 PM
Quote from: Pinball Nation on October 04, 2009, 01:28:22 PM
Hello,If i upgrade to the new version will my members lose all of there post points or credits?
If you upgrade no but if you uninstall the old version I believe you will loose the points
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on October 05, 2009, 09:47:15 PM
That's correct older versions of SMF Shop when uinstalled would acutally drop the SMF Shop tables and entries in smf_members
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Rhyme on October 07, 2009, 02:02:51 PM
I'm wanting to attempt to use this mod and see if it will work with what I want, but I'm having issues with the ./Sources/Load.php files.  The second edit that needs to be made, I can't find what it's asking me to find.

Also are we able to use our own images in this system and add to the directory? And is there a randomize with this that will allow a user to buy an item but what they get will be random depending on what we stock?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Bob Perry of Web Presence Consulting on October 08, 2009, 03:25:48 AM
Quote from: bperry921 on September 29, 2009, 11:18:27 AM
Quote from: Oldiesmann on September 24, 2009, 04:46:33 PM
Quote from: bperry921 on September 15, 2009, 12:26:13 AM
Quote from: vbgamer45 on September 14, 2009, 09:39:11 PM
That probably can be found in the archives
http://download.simplemachines.org/?archive
For older reasons of SMF

Thanks, found it, made the edit but it's still not working, users don't get credits for posting, however, new registrations do get their credits... no errors in smf log

HELP?

You need to make sure you have each board set to give shop credits. Go to Admin -> Manage Boards, click "Modify" next to a board and make sure the appropriate box is checked.

Sorry took so long to reply, been sick, I have double checked all settings and everything is as it should be as far as I am aware, the new registrations get their credits, the new topics & posts get their PER WORD credits, but NOT the default PER TOPIC/POST credits... the Bank Interest is functioning perfectly... I do however get the following error in the admin back office on general settings... "Unable to connect to SMFHacks website to check for new version"... no errors in SMF error log on save of any settings

still need some advice on this issue, some things work as expected, smf 1.1.10, have several other companion mods that are supposedly integrated with "Shop", such as trader and SMFBuy, Downloads... some things work, some don't.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: PINOYBusinessClub on October 09, 2009, 03:24:05 AM
Quote from: PINOYBusinessClub on October 04, 2009, 12:16:13 PM
This is great. Installed successfully on 1.1.10 custom theme (ofc with a few manual install)

Only thing i noticed is that my forum has DOUBLE breadcrumbs/linktree whenever one goes to the  Shop.

been searching how to remove this.

anyone?


still trying to find out how to go around this.

any free hand out there?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Iviiik on October 10, 2009, 07:14:34 AM
when will be new version for SMF 2.0 RC 1.2 :( ?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: MeowMommy on October 11, 2009, 03:09:14 PM
I posted this in Scripting Help a while back and didn't get any replies. I'm not sure this is the right place, but I'll give it a try.

I have a couple of items I'm trying to create for SMF Shop, and they're beyond my very limited coding knowledge.

The first one is a rock to throw with a random chance of hitting the person you're throwing at. This is NOT necessarily another member; several people want to throw rocks at Kanye West.  :D So what I want to do is, when they use the rock, have them input the name of the person they want to throw it at, and then have it respond by telling them whether the rock hit that person.

The second is a bit more complicated. I've had a couple requests for a trading card type of game. What I'd LIKE to do is have people buy either a single card or a pack of five cards WITHOUT knowing which card(s) they were getting. When they use the item, it would then give them cards at random which would appear in their inventory with their other shop items, and could be traded for other cards.

Not sure if it matters, but I'm running SMF 1.1.10 with the default theme. Any help would be appreciated!  :)
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Rhyme on October 12, 2009, 01:39:11 PM
Quote from: MeowMommy on October 11, 2009, 03:09:14 PM
I posted this in Scripting Help a while back and didn't get any replies. I'm not sure this is the right place, but I'll give it a try.

I have a couple of items I'm trying to create for SMF Shop, and they're beyond my very limited coding knowledge.

The first one is a rock to throw with a random chance of hitting the person you're throwing at. This is NOT necessarily another member; several people want to throw rocks at Kanye West.  :D So what I want to do is, when they use the rock, have them input the name of the person they want to throw it at, and then have it respond by telling them whether the rock hit that person.

The second is a bit more complicated. I've had a couple requests for a trading card type of game. What I'd LIKE to do is have people buy either a single card or a pack of five cards WITHOUT knowing which card(s) they were getting. When they use the item, it would then give them cards at random which would appear in their inventory with their other shop items, and could be traded for other cards.

Not sure if it matters, but I'm running SMF 1.1.10 with the default theme. Any help would be appreciated!  :)

I plan on doing the second one.  I think the best bet if you don't get the response here (I'm looking for the same thing) is to download the mod for the IPB forums shop.  They have those types of items.  Look at the coding for that mod and then place it into this shop mod.  Both use the same php coding so it should work.  I've just been a bit to lazy to do this myself, lol.  But I have worked with the market for the other type on Nsider2.com.  You could even go to that forum and ask one of the tech Admin.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on October 12, 2009, 10:43:02 PM
There should a couple examples items i think in the Sources/Shop folder.

Currently working on a public release for SMF 2.0 RC2 of SMF Shop
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: MaXiForum.cz on October 13, 2009, 04:20:35 AM
Quote from: vbgamer45 on October 12, 2009, 10:43:02 PM
There should a couple examples items i think in the Sources/Shop folder.

Currently working on a public release for SMF 2.0 RC2 of SMF Shop

Very nice!
And shop log?
This is very useful thing :)
I make this for my forum...
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on October 13, 2009, 07:34:48 PM
Shop log? What are you looking for to be in the log?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Dawni on October 14, 2009, 01:20:15 AM
SMF Shop 3.1.1

I'm getting errors after a large package upgrade 1.1.10, which I needed to upgrade my database:

Random Money: (Still functions; just spits errors in admin error log)
8: Use of undefined constant id - assumed 'id'
File: /home/myspacea/public_html/Sources/shop/items/RandomMoney.php
Line: 78
   
http://www.myspaceappmasters.com/index.php?action=shop;do=inv3&amp;id=505
8: Use of undefined constant user - assumed 'user'
File: /home/myspacea/public_html/Sources/shop/items/RandomMoney.php
Line: 78
WHERE ID_MEMBER = {$context[user][id]}", __FILE__, __LINE__);
Edit ~ Fixed both by changing code to
WHERE ID_MEMBER = {$context['user']['id']}", __FILE__, __LINE__);

Egg  Avatar: (Still functions; just spits errors in admin error log)
8: Undefined index: eggtaunt
File: /home/myspacea/public_html/Sources/shop/items/EggUserV2.php
Line: 176
if(($_POST['eggtaunt'] == "")||(!isset($_POST['eggtaunt'])))

SMF Shop Lottery 1.0 (during reinstall after ugrade):
Installations actions for "SMF Shop Lottery":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Themes/default/languages/Shop.english.php    Test successful
2.    Execute Modification    ./Sources/shop/Shop.php    Test successful
3.    Execute Modification    ./Themes/default/Shop.template.php    Test successful
4.    Execute Code    LotterySQL.php   
5.    Extract File    ./Sources/shop/LotteryDraw.php   
6.    Extract File    ./Sources/shop/Shop-Lottery.php   
7.    Extract File    ./Sources/shop/items/Lottery.php

BUT... I get this after attempting to install: (probably because there was a lottery & jackpot, but not a drawing, in place before the upgrade)
Duplicate entry 'lottery_pot' for key 1
File: /home/myspacea/public_html/Packages/temp/LotterySQL.php
Line: 42
// Add a place to store the jackpot. Start jackpot off at 1000 just because I want to
db_query("INSERT INTO {$db_prefix}settings (`variable`, `value`) VALUES ('lottery_pot', '1000')",__FILE__,__LINE__);

Edit ~ fixed this one by commenting out line 42 & reinstall
Can anyone assist with this? Please?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: MaXiForum.cz on October 14, 2009, 11:44:58 AM
Quote from: vbgamer45 on October 13, 2009, 07:34:48 PM
Shop log? What are you looking for to be in the log?

ID, When, Who, Money, To :)
Shop log :)
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: silber112 on October 18, 2009, 06:41:45 AM
Quote from: MaXiForum.cz on October 14, 2009, 11:44:58 AM
Quote from: vbgamer45 on October 13, 2009, 07:34:48 PM
Shop log? What are you looking for to be in the log?

ID, When, Who, Money, To :)
Shop log :)

¿Only money? Items TOO!!!  >:(
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Iviiik on October 19, 2009, 10:12:18 AM
how long yet ? :)

i want smf shop :D :D
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on October 20, 2009, 07:52:47 PM
RC2 public release!
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: franklinrony on October 20, 2009, 07:58:00 PM
Quote from: vbgamer45 on October 20, 2009, 07:52:47 PM
RC2 public release!
wow thanks :)
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Iviiik on October 21, 2009, 12:08:49 PM
and where i can download new version ? ;) and manual :)
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on October 21, 2009, 07:54:48 PM
The latest version can be found on the modsite help can be found at http://www.smfshop.com
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Iviiik on October 22, 2009, 03:49:16 AM
and where i can find manual ? :)
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on October 22, 2009, 11:39:23 AM
Check out http://www.smfshop.com I think there are some guides there.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: GMCbris on October 23, 2009, 04:01:30 AM
can someone tell me what the cron job for interest is?

I have no idea on such things - lol
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: jonidfld on October 23, 2009, 04:13:32 AM
Hi guys, im hoping someone can help with this, ive asked on smfshop.com but have no reply so far..........

I really need your help on this one....the shop was working fine then stopped.

At the mo, the shop homepage has no bank stats - the page is stretched horizontally, there is no shop items listed in the stores even though the count says there is.

Members inventory dont show up on the main shop page. In the admin section, all the settings are wiped. If you change them and save it just blanks them again.

Here's the error in cpanel error_log:

PHP Fatal error:  require() [<a href='function.require'>function.require</a>]: Failed opening required '/home/idontfee/public_html/forum/Sources/shop/items/.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/idontfee/public_html/forum/Sources/shop/ShopAdmin.php on line 245

Hope you can help!
;)
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: LC on October 24, 2009, 01:31:56 AM
Quote from: GMCbris on October 23, 2009, 04:01:30 AM
can someone tell me what the cron job for interest is?

I have no idea on such things - lol
From the shop wiki  (http://www.dansoftaustralia.net/smfshop_wiki/Main_Page)

http://www.dansoftaustralia.net/smfshop_wiki/Bank_Interest

Or you can use a site like onlinecronjobs.com to set it up.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: GMCbris on October 24, 2009, 02:02:16 AM
Quote from: LadyChaos on October 24, 2009, 01:31:56 AM
Quote from: GMCbris on October 23, 2009, 04:01:30 AM
can someone tell me what the cron job for interest is?

I have no idea on such things - lol
From the shop wiki  (http://www.dansoftaustralia.net/smfshop_wiki/Main_Page)

http://www.dansoftaustralia.net/smfshop_wiki/Bank_Interest

Or you can use a site like onlinecronjobs.com to set it up.
Thank you

I will check out online cron jobs
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: E-boy on October 24, 2009, 06:58:18 PM
Hey, I'm looking for an item that changes the user's membergroup.

User X buys "Change membergroup to Haunted". Then user X fills in the name of user Y, which is member of the "Normal" group. After user X submits, user Y is member of the Haunted group.

I also look for an item that restores the group back to its original.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: LC on October 24, 2009, 07:02:09 PM
Quote from: E-boy on October 24, 2009, 06:58:18 PM
Hey, I'm looking for an item that changes the user's membergroup.

User X buys "Change membergroup to Haunted". Then user X fills in the name of user Y, which is member of the "Normal" group. After user X submits, user Y is member of the Haunted group.

I also look for an item that restores the group back to its original.
http://smfshop.com/forum/index.php/topic,369.0.html - for buying the membergroup

There isn't an item (that I could find anyway) that allows the user to buy a method to restore their old membergroup.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: E-boy on October 24, 2009, 07:08:29 PM
I can live with that. Thank you very much for your quick and helpful answer!
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Daisuke_aurora on October 24, 2009, 11:53:19 PM
Quote from: Rhyme on October 12, 2009, 01:39:11 PM
Quote from: MeowMommy on October 11, 2009, 03:09:14 PM
I posted this in Scripting Help a while back and didn't get any replies. I'm not sure this is the right place, but I'll give it a try.

I have a couple of items I'm trying to create for SMF Shop, and they're beyond my very limited coding knowledge.

The first one is a rock to throw with a random chance of hitting the person you're throwing at. This is NOT necessarily another member; several people want to throw rocks at Kanye West.  :D So what I want to do is, when they use the rock, have them input the name of the person they want to throw it at, and then have it respond by telling them whether the rock hit that person.

The second is a bit more complicated. I've had a couple requests for a trading card type of game. What I'd LIKE to do is have people buy either a single card or a pack of five cards WITHOUT knowing which card(s) they were getting. When they use the item, it would then give them cards at random which would appear in their inventory with their other shop items, and could be traded for other cards.

Not sure if it matters, but I'm running SMF 1.1.10 with the default theme. Any help would be appreciated!  :)

I plan on doing the second one.  I think the best bet if you don't get the response here (I'm looking for the same thing) is to download the mod for the IPB forums shop.  They have those types of items.  Look at the coding for that mod and then place it into this shop mod.  Both use the same php coding so it should work.  I've just been a bit to lazy to do this myself, lol.  But I have worked with the market for the other type on Nsider2.com.  You could even go to that forum and ask one of the tech Admin.

If you'd like, I can make this card game and the rock item for you. I have spent a year learning PHP and am now good enough to help out (I recently made an entire Stat based-RPG system for my own site) and the rock will probably take 10 minutes, if even. The cards I can make, but you'll need to explain how the game works, all the cards, and their pictures or abilities or whatever.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Daisuke_aurora on October 24, 2009, 11:54:39 PM
Quote from: E-boy on October 24, 2009, 06:58:18 PM
Hey, I'm looking for an item that changes the user's membergroup.

User X buys "Change membergroup to Haunted". Then user X fills in the name of user Y, which is member of the "Normal" group. After user X submits, user Y is member of the Haunted group.

I also look for an item that restores the group back to its original.

I may be able to hep with an item to restore the user's membergroup, but it depends. What other membergroups are there on your site? If it's just the two, then it'll be an easy fix.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Iviiik on October 29, 2009, 06:48:11 PM
I cant find Shop for SMF 2.0 RC1.2 with install manual :(  :'( on http://smfshop.com
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on October 29, 2009, 07:34:35 PM
Not yet released for SMF 2.0.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: SAFAD on November 04, 2009, 02:36:33 PM
SMF 2 Please ?
1 Will Die Soon
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on November 04, 2009, 07:53:50 PM
Yes as soon as RC2 public is released.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: gman123 on November 04, 2009, 09:57:22 PM
Can I upgrade SMF Shop 3.0 to 3.1.1 without losing every ones items and cash?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on November 04, 2009, 10:03:36 PM
I would not uninstall SMF Shop but just the run latest version. If you uninstall the older versions it looses cash I believe and items.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: LC on November 05, 2009, 06:00:54 PM
Got this error when trying to load a profile.

http://----/index.php?action=profile
8: Undefined index: money
File: /home/---/site/Sources/Load.php
Line: 1211

Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: Iviiik on November 10, 2009, 05:59:43 PM
Quote from: vbgamer45 on November 04, 2009, 07:53:50 PM
Yes as soon as RC2 public is released.

rather, how soon :) ?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: vbgamer45 on November 11, 2009, 03:38:27 PM
Soon now that RC2 is out.
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: gman123 on November 11, 2009, 04:21:20 PM
Quote from: vbgamer45 on November 04, 2009, 10:03:36 PM
I would not uninstall SMF Shop but just the run latest version. If you uninstall the older versions it looses cash I believe and items.

For previous upgrades they had an actual upgrader instead or reinstalling a whole thing do you plan on this?
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: LC on November 12, 2009, 08:47:10 PM
Quote from: LadyChaos on November 05, 2009, 06:00:54 PM
Got this error when trying to load a profile.

http://----/index.php?action=profile
8: Undefined index: money
File: /home/---/site/Sources/Load.php
Line: 1211
Any help with this, please?
It's not the profile, nothing else uses "money" but this mod. :P
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: MaXiForum.cz on November 13, 2009, 01:15:09 AM
Quote from: vbgamer45 on November 11, 2009, 03:38:27 PM
Soon now that RC2 is out.

And will be shoplog vbgamer45?
Can I send to you my file? ;)
Title: Re: SMFShop - Shop MOD - Version 3.1.1
Post by: LC on November 13, 2009, 08:35:27 PM
Quote from: LadyChaos on November 12, 2009, 08:47:10 PM
Quote from: LadyChaos on November 05, 2009, 06:00:54 PM
Got this error when trying to load a profile.

http://----/index.php?action=profile
8: Undefined index: money
File: /home/---/site/Sources/Load.php
Line: 1211
Any help with this, please?
It's not the profile, nothing else uses "money" but this mod. :P
Solved it myself. For some reason this line

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

Didn't want to work properly. Removed it and the error is gone. Wonder why it did that.
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 14, 2009, 06:26:08 PM
Released a version that works with SMF 2.0 RC2 with curve theme!
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: LC on November 14, 2009, 07:27:26 PM
Hmm.. it seems now I have an issue with the credits being displayed in the post area. All it says is $array credits instead of the actual amount.

I think I did something wrong, will someone help me out?

Not sure if I should post the post.template.php and profile.template.php, I will if needed.

Thanks to any who can help.
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: Daisuke_aurora on November 14, 2009, 09:44:47 PM
CAn you post a screen of what it is doing? and maybe one of the profile area that shows points / shop area that shows people's balances?
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: Vyache on November 15, 2009, 04:18:21 AM
./Sources/RemoveTopic.php

Both instances do not include { } brackets closing the while loop and the if statement. Please fix this problem. I can do a manual install, but based on so many problems. I'm not sure to install it yet.
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: Liam. on November 15, 2009, 08:12:00 AM
Are you sure Vyache? I've had a look through it and no errors come up when installing, and it doesn't seem to have any coding errors. Maybe the RemoveTopic.php would have that in, but vBGamer will get that instantly for the next release.
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: MaXiForum.cz on November 15, 2009, 09:58:08 AM
Thanks vbgamer45
ShopLog no/yes?

EDIT: OK
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 15, 2009, 10:53:32 AM
Quote from: Vyache on November 15, 2009, 04:18:21 AM
./Sources/RemoveTopic.php

Both instances do not include { } brackets closing the while loop and the if statement. Please fix this problem. I can do a manual install, but based on so many problems. I'm not sure to install it yet.
For what version of the Shop for SMF 2.0?
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: silber112 on November 15, 2009, 12:43:04 PM
THANKS A LOT, But where can I find the SMFShop Inventory Post Modification for this version?

SMFPets, lotery , SMFShop Stats Modification are very important too, please update the modifications...
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: Liam. on November 15, 2009, 01:04:58 PM
I doubt there will be a log for this, all it was, was an update to 2.0, nothing else.
And Silber, as for those modifications, download them, and go into the "package-info.xml" file. Then when it says "<install='verionnumber'>" and the same for uninstall, change it to just "<install>" and "<uninstall>". THat will sort it.
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 15, 2009, 03:03:45 PM
Quote from: silber112 on November 15, 2009, 12:43:04 PM
THANKS A LOT, But where can I find the SMFShop Inventory Post Modification for this version?

SMFPets, lotery , SMFShop Stats Modification are very important too, please update the modifications...
I would contact the authors of those mods and ask them to update it to the latest version if possible
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: Liam. on November 15, 2009, 03:20:09 PM
Quote from: vbgamer45 on November 15, 2009, 03:03:45 PM
Quote from: silber112 on November 15, 2009, 12:43:04 PM
THANKS A LOT, But where can I find the SMFShop Inventory Post Modification for this version?

SMFPets, lotery , SMFShop Stats Modification are very important too, please update the modifications...
I would contact the authors of those mods and ask them to update it to the latest version if possible

The problem with that is that the SMFShop Forums were only active a couple of years ago now, not many people (especially developers) go there now, just people who want to request an item.
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: Vyache on November 15, 2009, 07:05:25 PM
Quote from: vbgamer45 on November 15, 2009, 10:53:32 AM
Quote from: Vyache on November 15, 2009, 04:18:21 AM
./Sources/RemoveTopic.php

Both instances do not include { } brackets closing the while loop and the if statement. Please fix this problem. I can do a manual install, but based on so many problems. I'm not sure to install it yet.
For what version of the Shop for SMF 2.0?

The most recent. #  SMFShop3.1.4forSMF2.0RC2..zip # (106kB) # [33]
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 15, 2009, 07:34:08 PM
I don't belive thats the case.
It finds this

while ($rowMembers = $smcFunc['db_fetch_assoc']($requestMembers))
updateMemberData($rowMembers['id_member'], array('posts' => 'posts - ' . $rowMembers['posts']));

And changes it to

// Begin SMFShop code
while ($rowMembers = $smcFunc['db_fetch_assoc']($requestMembers))
{
updateMemberData($rowMembers['id_member'], array('posts' => 'posts - ' . $rowMembers['posts']));

global $smcFunc, $modSettings;
$smcFunc['db_query']('', '
UPDATE {db_prefix}members
SET money = IF(money >= {int:amount}, money - {int:amount}, 0)
WHERE id_member = {int:member}
LIMIT 1',
array(
'amount' => $modSettings['shopPointsPerPost'],
'member' => $rowMembers['id_member'],
));
}
// End SMFShop code
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: Vyache on November 15, 2009, 09:17:13 PM
Quote from: vbgamer45 on November 15, 2009, 07:34:08 PM
I don't belive thats the case.
It finds this

while ($rowMembers = $smcFunc['db_fetch_assoc']($requestMembers))
updateMemberData($rowMembers['id_member'], array('posts' => 'posts - ' . $rowMembers['posts']));

And changes it to

// Begin SMFShop code
while ($rowMembers = $smcFunc['db_fetch_assoc']($requestMembers))
{
updateMemberData($rowMembers['id_member'], array('posts' => 'posts - ' . $rowMembers['posts']));

global $smcFunc, $modSettings;
$smcFunc['db_query']('', '
UPDATE {db_prefix}members
SET money = IF(money >= {int:amount}, money - {int:amount}, 0)
WHERE id_member = {int:member}
LIMIT 1',
array(
'amount' => $modSettings['shopPointsPerPost'],
'member' => $rowMembers['id_member'],
));
}
// End SMFShop code


My file does have { } braces. It does not find the code. It is looking for something without braces.

The code for the install...
  while ($rowMembers = $smcFunc['db_fetch_assoc']($requestMembers)) updateMemberData($rowMembers['id_member'], array('posts' => 'posts - ' . $rowMembers['posts'])); 

My ./Sources/RemoveTopic.php SMF 2.0 RC2
while ($rowMembers = $smcFunc['db_fetch_assoc']($requestMembers))
{
updateMemberData($rowMembers['id_member'], array('posts' => 'posts - ' . $rowMembers['posts']));

if($modSettings['karmaValueThread'] > 0)
$request = $smcFunc['db_query']('', '
UPDATE {db_prefix}members
SET karma_good = karma_good - {int:newkarma}
WHERE id_member = {int:memberid}',
array(
'newkarma' => $modSettings['karmaValueThread'],
'memberid' => $rowMembers['id_member']
)
);
}

This came with the smf install...

Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 15, 2009, 09:25:28 PM
You have a mod that modified the remove topic code. The default code does not have karmaValueThread in it's files.
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: LC on November 15, 2009, 11:51:21 PM
Quote from: Daisuke_aurora on November 14, 2009, 09:44:47 PM
CAn you post a screen of what it is doing? and maybe one of the profile area that shows points / shop area that shows people's balances?
Profile area information does not show up on profiles do to another mod. (Which is fine by me less stuff on people's profile.)

But the post area is where I am getting a $array credits being displayed.

(http://i35.tinypic.com/295qot0.png)



Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: Kindred on November 16, 2009, 12:43:15 AM
looks like,because of the other mod, your statement in display.template.php which SHOULD be calling for a variable is acually described as text instead.   so, look for a stay single quote in the template...
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: LC on November 16, 2009, 03:33:10 AM
Quote from: Kindred on November 16, 2009, 12:43:15 AM
looks like,because of the other mod, your statement in display.template.php which SHOULD be calling for a variable is acually described as text instead.   so, look for a stay single quote in the template...
Found it! Thank you very much.  ;D
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: Iviiik on November 16, 2009, 05:59:11 PM
Great ! ;) thank you  vbgamer45  :-*
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: Iviiik on November 17, 2009, 06:10:36 PM
can you edit manage.boards.template ?  :) i dont want shop in all topics  :(
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: Kreator on November 20, 2009, 06:49:52 PM
I have a problem with my shop in RC2 if I try to buy an item I keep getting this problem

Table 'animanon_com.shop_inventory' doesn't exist
File: /customers/animanon.com/animanon.com/httpd.www/Forum3/Sources/shop/Shop-Buy.php
Line: 232

I have checked my tables, and I do have a table smf_shop_inventory

the code in Shop-Buy.php at that line is as follows

$smcFunc['db_insert']('insert', $db_prefix . 'shop_inventory',
         array(
            'ownerid' => 'int',
            'itemid' => 'int',
            'amtpaid' => 'float',
            'trading' => 'int',
            'tradecost' => 'float',
            ),
         array(
            array(
               'ownerid' => $user_info['id'],
               'itemid' => $_GET['id'],
               'amtpaid' => $row['price'],
               'trading' => 0,
               'tradecost' => 0.00,
               ),
            ),
         array());


how can i fix this any suggestions? thanks

Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: LC on November 21, 2009, 02:49:29 AM
Quote from: Kreator on November 20, 2009, 06:49:52 PM
I have a problem with my shop in RC2 if I try to buy an item I keep getting this problem

Table 'animanon_com.shop_inventory' doesn't exist
File: /customers/animanon.com/animanon.com/httpd.www/Forum3/Sources/shop/Shop-Buy.php
Line: 232

I have checked my tables, and I do have a table smf_shop_inventory

the code in Shop-Buy.php at that line is as follows

$smcFunc['db_insert']('insert', $db_prefix . 'shop_inventory',
         array(
            'ownerid' => 'int',
            'itemid' => 'int',
            'amtpaid' => 'float',
            'trading' => 'int',
            'tradecost' => 'float',
            ),
         array(
            array(
               'ownerid' => $user_info['id'],
               'itemid' => $_GET['id'],
               'amtpaid' => $row['price'],
               'trading' => 0,
               'tradecost' => 0.00,
               ),
            ),
         array());


how can i fix this any suggestions? thanks

Is the item a custom one? Just curious, I have had this issue come up before myself.
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: Kreator on November 21, 2009, 05:18:13 AM
I have used the "download V2" item to create a product, thinking about it I wonder if that is the problem as its a 1.1.10 php file

Does the download item work on smf 2 RC2 or does it have the same problem as the 1.1.10 version in that it times out on large files.




EDIT: No I used the one that came with the package it still throws up the database error!
anybody want to try and solve this I`m sure its in the code But I`m not that knowledgeable about that!
Its pretty pointless having a shop installed and you can`t even buy anything!
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: Daisuke_aurora on November 21, 2009, 01:21:40 PM
Quote from: Kreator on November 20, 2009, 06:49:52 PM
I have a problem with my shop in RC2 if I try to buy an item I keep getting this problem

Table 'animanon_com.shop_inventory' doesn't exist
File: /customers/animanon.com/animanon.com/httpd.www/Forum3/Sources/shop/Shop-Buy.php
Line: 232

I have checked my tables, and I do have a table smf_shop_inventory

the code in Shop-Buy.php at that line is as follows

$smcFunc['db_insert']('insert', 'shop_inventory',
         array(
            'ownerid' => 'int',
            'itemid' => 'int',
            'amtpaid' => 'float',
            'trading' => 'int',
            'tradecost' => 'float',
            ),
         array(
            array(
               'ownerid' => $user_info['id'],
               'itemid' => $_GET['id'],
               'amtpaid' => $row['price'],
               'trading' => 0,
               'tradecost' => 0.00,
               ),
            ),
         array());


how can i fix this any suggestions? thanks



I edited the code to work now. Basically, the table does exist, but you didn't need the $db_prefix part because that was making it look for a table called 'animanon_com.shop_inventory' where it needed to find just 'shop_inventory'.
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: Kindred on November 21, 2009, 11:03:24 PM
the table... like all other smf tables, should have been created using the same prefix as the rest of your tables.
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: waggles on November 23, 2009, 08:20:54 AM
When attempting to buy something, the following error occurs:

Table 'waggles_smf.shop_inventory' doesn't exist
File: /home/waggles/public_html/Sources/shop/Shop-Buy.php
Line: 232

2.0 RC2, SMFShop 3.1.4

Help?
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: Kreator on November 23, 2009, 11:36:53 AM
Try doing The post above yours waggles  It worked when I changed the  shop.php code with the line

$smcFunc['db_insert']('insert', 'RC2_shop_inventory',

RC2_shop_inventory being the table that I have on the database
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: Daisuke_aurora on November 23, 2009, 01:24:50 PM
You had the same problem as the one above you.

$smcFunc['db_insert']('insert', 'shop_inventory',

Try that one.
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: SA™ on November 23, 2009, 03:46:20 PM
it should be just
   
$smcFunc['db_insert']('insert', '{db_prefix}shop_inventory',


as far as i know ', $db_prefix . ' is not used in smf2
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: Kreator on November 23, 2009, 05:09:46 PM
all I know is that when I changed it to look at the actual table it worked fine.

if the $db_prefix isn`t used in Smf2 then the original code is incorrect. as this is the actual code from the shop-buy php file

$smcFunc['db_insert']('insert', $db_prefix . 'shop_inventory',
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 23, 2009, 08:33:58 PM
Version 3.1.5
!Fixed some bugs with inserts for SMF 2.0 RC2
!Fixed bug with send email item if a textarea was included as an extra field
!Fixed bug for SMF 1.1.x for only using integers instead of floats for board bonuses.
Title: Re: SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support!
Post by: LC on November 23, 2009, 10:56:16 PM
Quote from: vbgamer45 on November 23, 2009, 08:33:58 PM
Version 3.1.5
!Fixed some bugs with inserts for SMF 2.0 RC2
!Fixed bug with send email item if a textarea was included as an extra field
!Fixed bug for SMF 1.1.x for only using integers instead of floats for board bonuses.
Newb question, just install and run the package if I have the older version installed? Or uninstall then install this version? :P
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 24, 2009, 12:38:26 AM
You might have to do an uninstall then reinstall to get latest update.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Kreator on November 24, 2009, 02:01:23 AM
Will the update overwrite the tables, and members lose all their credits,  Like it used to on earlier versions?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 24, 2009, 09:00:15 AM
It should not removed the uninstall code that did that.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Joker™ on November 24, 2009, 09:43:19 AM
i just wanna ask how to install it on SMF 2.0 RC1.2....

Thanx in advance
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 24, 2009, 02:30:14 PM
Does not support RC 1.2 you would need to upgrade
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Kreator on November 24, 2009, 05:06:53 PM
It deletes all the items/stock you have placed into the shop on upgrading!......though members hav`nt lost any cash!

is the stock not placed into a table??
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 24, 2009, 08:07:51 PM
Should all be in tables. Will need to check that out.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Prosperous on November 25, 2009, 02:50:18 AM
I am currently developing a new hosting service and am trying to figure out what forum software to use. I have been referred to using SMF many times, as well as phpBB, however I am unsure what my final decision will be at the moment. Something I am looking for is a points/shop/cash system; basically if you want to use the free hosting portion of my service, then you will need to post on the forum, gain points and use those points to pay for your hosting every month. Some additional features could include the ability to give points to other members, show a list of stats such as the top 10 members with most points, etc.

I am not sure at what stage or how feature-rich this modification is, but will it enable me to do what I want as discussed above?

I hope to hear from you soon vbgamer45.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 25, 2009, 09:27:49 AM
You can't use points to pay for real items yet.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Prosperous on November 25, 2009, 09:31:29 AM
What do you mean? I am the hosting service, I will be offering the hosting packages via the shop and my clients will purchase the packages from the shop with their points. It can't work like that?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 25, 2009, 09:33:22 AM
Does not work like that at the moment. You would need to create a custom item and have it coded to handle real world purchases.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Prosperous on November 25, 2009, 09:35:34 AM
Oh I get you now, but I don't want it to act like that. All I want to do at the moment is for a client to purchase the item (which you state as being custom as I have to create it) with their points on the forum, then I will see that it's been purchased and I will manually create the hosting account for them.

Does that sound more logical?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 25, 2009, 09:38:13 AM
That would work but you would need to monitor the items bought daily to check that people ordered a package.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Prosperous on November 25, 2009, 09:40:58 AM
Yeah of course. I require them to request a package in a board on the forum and then it will go on from there. I have a couple more questions for you:

- There is some text in the shop pages that say credits and what not, where are those files so I can edit the text to say points (if I'm allowed to do that of course)?
- Also, on my profile it says 'Credits:' and then shows my points as '2 points'. How can I change the 'Credits:' bit to 'Points' and remove the 'points' from '2 points'?

Thanks for the help so far.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Daisuke_aurora on November 25, 2009, 01:20:56 PM
Under the Admin tab, you can select General Settings, then you can change the Prefix to Points and leave the Suffix box empty.

And you could make the package so that when the user uses the item, it just sends you a PM to tell you that "Username" has purchased an account.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Prosperous on November 25, 2009, 01:25:38 PM
Yeah I've already set all that up, but in my profile it displays as this:

Credits:
    Points: 45


Whilst it is correct in post view, it is incorrect in profile view... I want the field to only have the points and the 'Credits:' to say 'Points:'. Do you get what I mean?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Daisuke_aurora on November 25, 2009, 01:56:09 PM
sure do.

in forum/themes/default

in profile.template.php:

use the Ctrl + f function to find the word "Credits" and replace it with whatever you want it to be, in this case "Points" and then turn off the prexif on admin/shop admin/general settings.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Kreator on November 25, 2009, 02:40:54 PM
I have a suggestion for any new updates, Once you have made an Item, ( especially Downloads) it would be nice to be able to edit the Path of the file. You are unable to do this at the moment and requires the item to be deleted and then start a new item.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Daisuke_aurora on November 25, 2009, 03:05:30 PM
That can be done. If you'd like I can work on it. It would basically make the path to the download something you can edit from the edit screen.

And you could always edit the DB fields or the file for the item to change the Download.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: GMCbris on November 25, 2009, 07:17:51 PM
I have searched this and was shown a lot of old entries - but the change log says this is fixed

Steal is only giving negative karma - basically you always fail

We have tested it and for the last 30 attempts it fails

Should I try change the code as suggested in posts back in 07?

Thanks
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Prosperous on November 25, 2009, 11:24:38 PM
Quote from: Daisuke_aurora on November 25, 2009, 01:56:09 PM
sure do.

in forum/themes/default

in profile.template.php:

use the Ctrl + f function to find the word "Credits" and replace it with whatever you want it to be, in this case "Points" and then turn off the prexif on admin/shop admin/general settings.
I don't find the word 'Credits', except in the code below:

<dt>', $txt['shop_profile_credits'], ':</dt>

I am 100% sure that I am in the right file also. Do you know what the problem is?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Daisuke_aurora on November 26, 2009, 08:26:31 PM
in forum/themes/default/languages

in shop.english.php:

USe CTRL + H to find and replace all instances of Credits with Points. This should fix the profiles as well as things like the Shop saying you have Credits.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Prosperous on November 26, 2009, 09:15:10 PM
I have just taken a look through the entire file and edited the things that I thought needed editing. I haven't seen any changes yet, does it take time for the forum to notice the file has been changed? If not, then I don't know what's happened. I edited the file in cPanel via the 'Edit File with Code Editor' link (it's like using DreamWeaver in cPanel itself).

I didn't notice the option to edit the 'Credits:' text in user profiles. I am unsure whether I edited it or not so I'll just wait for a reply for the above question.

Thanks for your help so far Daisuke_aurora.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Daisuke_aurora on November 26, 2009, 09:24:35 PM
Not a problem. I'd be of more help if I saw the changes to the way SMF shop has been coded by vbgamer45, as he seems to have made changes to the way it is done.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Prosperous on November 26, 2009, 09:26:40 PM
Do you think it better for me to post on the official SMFShop support forum?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Daisuke_aurora on November 26, 2009, 09:47:13 PM
Unfortunately, no. Dansoft gave this prokect up a little while ago, and I believe vbgamer45 unofficially picked it up. He wrote the new version as far as I know, so he should be able to fix your problem easily. As I said, my fix works for the older versions of SMF shop. However, if you need any other PHP coding help, feel free to PM me.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Prosperous on November 27, 2009, 04:11:48 AM
Oh really? That's not good at all. Well in a way it's good that someone has taken over the project but I really thought that Daniel was still dealing with the project. So vbgamer45 is the creator of the new version, right? If so, then it's most probably him that I'll need to speak to.

That should be all for now to be honest Daisuke_aurora, however the only problem I'm having is still to do with updating the shops pages. I have edited descriptions and the welcome message in the file you specified however it's now been over 7 hours and nothing has changed... If it was server or cPanel related, surely it'd be fixed by now?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: ishy on November 27, 2009, 07:08:47 AM
I have an issue in that images are not showing up within the shop. The perms are set on the images folder to 777, so is there something else I am missing?

And...can you use html or bbcode within the shop?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Prosperous on November 27, 2009, 01:02:14 PM
Another quick question I've got regarding this modification.

I have the SMFShop modification installed on my forum, and I know that there is the ability to turn off the post count, however is there an option to disable the post count to increase but NOT the points count? It is for my 'Forum Games' board and I don't want people to get points for posting within the board but I still want their post counts to increase.

I look forward to hearing from you as soon as possible. 8)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: GMCbris on November 27, 2009, 08:00:25 PM
Quote from: GMCbris on November 25, 2009, 07:17:51 PM
I have searched this and was shown a lot of old entries - but the change log says this is fixed

Steal is only giving negative karma - basically you always fail

We have tested it and for the last 30 attempts it fails

Should I try change the code as suggested in posts back in 07?

Thanks
Can I bump this please
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Kreator on November 28, 2009, 08:30:56 AM
I now have an extensive error log  with a variable count as being undefined , I am using simple portal to display a shop block on the frontpage, but I get this error 

8: Undefined variable: countFile: /customers/animanon.com/animanon.com/httpd.www/Forum3/Sources/PortalBlocks.php
Line: 2970

Going to the file reveals that it has something to the shop mod  (see code)

2965:               echo '
2966:                              <tr>
2967:                                 <td class="sp_shop">
2968:                                    ', $item['image'], '
2969:                                 </td>
==>2970:                                 <td class="sp_shop_info', $item_count != ++$count ? ' sp_shop_divider' : '', '">
2971:                                    <strong>', $item['name'], '</strong><br />
2972:                                    ', $txt['shop_price'], ': ', $item['price'], '<br />
2973:                                    ', $context['user']['money'] < $item['price'] ? sprintf($txt['shop_need'], formatMoney($item['price'] - $context['user']['money'])) : $item['link'], '
2974:                                 </td>
2975:                              </tr>';
2976:   
2977:            echo


any fix I can apply?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 28, 2009, 11:36:57 AM
That would be a bug with simple portal on how they have the block defined.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Prosperous on November 28, 2009, 05:31:51 PM
Is anyone able to help me with my issue (first post on this page, just scroll up)?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Daisuke_aurora on November 28, 2009, 07:18:45 PM
There should be an option to make only certain boards give points.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: darkkurama on November 28, 2009, 07:48:20 PM
Hi, I have a little conflict with two mods: this one and Tinyportal. The thing is that I cannot access to page 2 of the shop, because a variable appears in both mods:

when trying to access page 2 ---> http://www.dkanimesite.es/index.php?action=shop;do=buy;sort=0;sortDir=0;cat=-1;page=2
accessing a category of news of tinyportal ----> http://www.dkanimesite.es/index.php?cat=6

As you can see, the "cat" variable appears on both urls, resulting on this message when entering the first URL: "The article isn't active, hasn't been approved yet, or simply does not exist. ". I think that's the root of my conflict problem; Is there a way to change the shop "cat" variable to "cate" or something like that to enter the page 2 correctly?

Thanks and awesome mod, this is the only problem I have, but the rest of the features are just sweet!
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 28, 2009, 09:57:17 PM
That cat part is really bad. I use that in nearly all my mods if there is a conflict with Tiny Portal.
Looks like they added that as a global variable
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: rjckE on November 29, 2009, 12:39:20 AM
Hello all. I am using this mod at SMF 2.0 RC2. I was modifying some code lines in Display.template.php to make able to users to send a certain ammount of "credits" or "points" to the user who made a post (for a Giving Points System). This is, after the signature i want to put

"Give points: 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10" where each number represents the ammount of points that you want to send to another user (in this case, the user who post above)...

Can someone help me with this? I almost have it
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Prosperous on November 29, 2009, 01:58:45 AM
Quote from: Daisuke_aurora on November 28, 2009, 07:18:45 PM
There should be an option to make only certain boards give points.

Where can I find this option?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: darkkurama on November 29, 2009, 08:06:48 AM
Quote from: vbgamer45 on November 28, 2009, 09:57:17 PM
That cat part is really bad. I use that in nearly all my mods if there is a conflict with Tiny Portal.
Looks like they added that as a global variable

But isn't there a solution? I would edit all .php files if needed
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Daisuke_aurora on November 29, 2009, 01:55:57 PM
to Rjcke: If you would like, you could make it so that there is a box to enter a number at the bottom of each post, and you can enter any number of points to send to the poster, then click a "Send" button. I could help make this for you if you want, as I am waiting for my site to come back online I have a little free time.

to porkowog: It should be under the board permissions, you have the option to turn off giving points. I do the same on my site, only giving points for certain boards and not others.

To dark kurama: You can probably edit the php files that came with tiny portal and replace all instances of "cat" with "cate." Uninstall the package, edit the files, then reinstall it all again, and you should be fine.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: rjckE on November 29, 2009, 04:10:53 PM
Quote from: Daisuke_aurora on November 29, 2009, 01:55:57 PM
to Rjcke: If you would like, you could make it so that there is a box to enter a number at the bottom of each post, and you can enter any number of points to send to the poster, then click a "Send" button. I could help make this for you if you want, as I am waiting for my site to come back online I have a little free time.

Hi Daisuke_aurora, thanks for your reply. I only want text links, without boxes or textfields. How can i do that?


Another question, is there a way to give to all users (or all users of a membergroup) a certain amount of points each day?

Thanks
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Daisuke_aurora on November 29, 2009, 10:24:30 PM
That can be done as well. And there is indeed a way to give members a certain amount of points each day.

To the first part: If you would like, I can find out where to make the edits and to what files to make it work, then post here on what you'll need to do.

As for part 2: What are you using to host your site? Do you have permission to use Cron Jobs?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: rjckE on November 29, 2009, 10:28:39 PM
Quote from: Daisuke_aurora on November 29, 2009, 10:24:30 PM
That can be done as well. And there is indeed a way to give members a certain amount of points each day.

How can i do that? :)

Quote from: Daisuke_aurora on November 29, 2009, 10:24:30 PM
To the first part: If you would like, I can find out where to make the edits and to what files to make it work, then post here on what you'll need to do.

Yes please. I only need to know what should the link be... like . $scripturl$ .'/index.php?do=sendmoney2*********** but i don't know what's the correct link to send money using direct links.. did you understand?

Quote from: Daisuke_aurora on November 29, 2009, 10:24:30 PM
As for part 2: What are you using to host your site? Do you have permission to use Cron Jobs?

I have a paid host. I have permissions to use Cron Jobs but i really don't know how to use them
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Daisuke_aurora on November 29, 2009, 10:45:44 PM
What you would need to do is set up a code that will get the poster's ID, then set up the necessary information so that when you link to the send money feature it will have the selections made for you. I will look into it and see what I can do, it should be fairly easy though.

And as for cron jobs, you should be able to link to a script for the cron job to run, and set what time and in what increments to run the script. You would need to set it to go off every day (preferably at midnight). If you need help, I can do it with you step by step so you have no problem setting it up.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: rjckE on November 29, 2009, 11:05:00 PM
Quote from: Daisuke_aurora on November 29, 2009, 10:45:44 PM
What you would need to do is set up a code that will get the poster's ID, then set up the necessary information so that when you link to the send money feature it will have the selections made for you. I will look into it and see what I can do, it should be fairly easy though.

And as for cron jobs, you should be able to link to a script for the cron job to run, and set what time and in what increments to run the script. You would need to set it to go off every day (preferably at midnight). If you need help, I can do it with you step by step so you have no problem setting it up.

Ok please ^_^
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Daisuke_aurora on November 29, 2009, 11:35:10 PM
Alright then. Give me a day or two and I'll make the script for adding points to everyone and figure out the edits for giving people points for their posts.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: darkkurama on November 30, 2009, 01:34:50 AM
Quote from: Daisuke_aurora on November 29, 2009, 01:55:57 PM
To darkkurama: You can probably edit the php files that came with tiny portal and replace all instances of "cat" with "cate." Uninstall the package, edit the files, then reinstall it all again, and you should be fine.

I can't uninstall Tinyportal >_> isn't more easier to modify this mod?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: ishy on November 30, 2009, 06:53:59 AM
Quote from: ishy on November 27, 2009, 07:08:47 AM
I have an issue in that images are not showing up within the shop. The perms are set on the images folder to 777, so is there something else I am missing?

And...can you use html or bbcode within the shop?

I'd like to bump this; I think it got overlooked.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 30, 2009, 08:48:58 AM
Right click on the broken image and check it's url see if you can copy and paste the url into a browser to see if the image exists
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Kreator on November 30, 2009, 11:02:49 AM
Are the images folder set with appropriate permissions in the shop?


I only use the downloadV2.0 and in description, bbc and html are not allowed.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: rjckE on November 30, 2009, 12:33:39 PM
Quote from: vbgamer45 on November 30, 2009, 08:48:58 AM
Right click on the broken image and check it's url see if you can copy and paste the url into a browser to see if the image exists

Hey vbgamer45, can you help me with this (link) (http://www.simplemachines.org/community/index.php?topic=22396.msg2380044#msg2380044) pleeease? :)

Regards
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Daisuke_aurora on November 30, 2009, 01:02:51 PM
To DarkKurama: Yes, you could simply edit the files, but if the tinyportal made a database change to make a "cat" variable, you would need to find it and change it as well.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: ishy on November 30, 2009, 07:46:00 PM
Quote from: vbgamer45 on November 30, 2009, 08:48:58 AM
Right click on the broken image and check it's url see if you can copy and paste the url into a browser to see if the image exists

There aren't any broken image links. Just...nothing.... The folder is there, and the images in it.

And as I said, the folder is set to 777, so shouldn't be a permissions issue unless it has to be lower than that.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: silber112 on November 30, 2009, 08:07:19 PM
WHEN WILL BE A SHOP LOG BE DONE?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on December 02, 2009, 10:12:47 AM
Quote from: silber112 on November 30, 2009, 08:07:19 PM
WHEN WILL BE A SHOP LOG BE DONE?
What's that? Is that an item
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Daniel15 on December 02, 2009, 10:38:33 AM
Quote from: vbgamer45 on December 02, 2009, 10:12:47 AM
Quote from: silber112 on November 30, 2009, 08:07:19 PM
WHEN WILL BE A SHOP LOG BE DONE?
What's that? Is that an item
I guess something like this: http://smfshop.com/forum/index.php/topic,891.msg9192.html
(ie. a log when people buy stuff)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: darkkurama on December 03, 2009, 09:40:39 AM
Quote from: Daisuke_aurora on November 30, 2009, 01:02:51 PM
To DarkKurama: Yes, you could simply edit the files, but if the tinyportal made a database change to make a "cat" variable, you would need to find it and change it as well.

Can you help me? :D!
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Daisuke_aurora on December 03, 2009, 12:58:34 PM
Sure tell me where you got the package and I'll edit it for you.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: MaXiForum.cz on December 04, 2009, 09:57:00 AM
Quote from: Daniel15 on December 02, 2009, 10:38:33 AM
Quote from: vbgamer45 on December 02, 2009, 10:12:47 AM
Quote from: silber112 on November 30, 2009, 08:07:19 PM
WHEN WILL BE A SHOP LOG BE DONE?
What's that? Is that an item
I guess something like this: http://smfshop.com/forum/index.php/topic,891.msg9192.html
(ie. a log when people buy stuff)

Yes Daniel15! It is pretty easy but isn´t it possible that the SMFShop includes Item Purchase Logs (http://smfshop.com/forum/index.php/topic,891.msg9192.html)?
It is a lot of people that can´t php coding ;)
Thanks
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: perplexed on December 04, 2009, 10:15:40 AM
I've just noticed that something is missing from this new version (3.1.5) there was always an option in Admin > boards to select which boards you collected shop points on.

I just looked in admin > boards and I don't have that checkbox any more.  I had about a third of my boards set up to give points and the rest not, and now they are all giving points.

How to fix this please?  Is this option left out on purpose or an oversight?

thanks

edit:  I had a quick look at the manual instructions on the mod site and I think it might have come from /manageboards and /subs-boards in the 1.1 version but that isn't in the 2.0 RC2 version manual install instructions so I don't know how to fix it.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: darkkurama on December 04, 2009, 12:04:29 PM
Quote from: Daisuke_aurora on December 03, 2009, 12:58:34 PM
Sure tell me where you got the package and I'll edit it for you.

The mod is installed at www.dkanimesite.es. If you can, create and account or try to reach me by msn please :( (or the minichat at the forum)

Darkkurama
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: ishy on December 05, 2009, 08:06:43 AM
Quote from: ishy on November 30, 2009, 07:46:00 PM
Quote from: vbgamer45 on November 30, 2009, 08:48:58 AM
Right click on the broken image and check it's url see if you can copy and paste the url into a browser to see if the image exists

There aren't any broken image links. Just...nothing.... The folder is there, and the images in it.

And as I said, the folder is set to 777, so shouldn't be a permissions issue unless it has to be lower than that.

Here's the problem:

var image_url = "http://oldschoolhp.net/forum/Themes/Chocolate_Curvaceous/images/shopimg/item_images/" + document.theAdminForm.icon.value;


The folder was completely weird....I just made those folders and uploaded all the images to it, and it works now.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: perplexed on December 05, 2009, 09:17:57 AM
Quote from: vbgamer45 on October 22, 2009, 11:39:23 AM
Check out http://www.smfshop.com (http://www.smfshop.com) I think there are some guides there.

I looked there today but it seems a little quiet, so I'll post my problem here too and maybe someone can help

==========

I have a problem using this egguser item on smf 2.0 RC2

It installed correctly with no errors but when I tried to egg someone I got a fatal error as follows:

Fatal error: Call to undefined function db_query() in /home/xxxxxx/public_html/mysite.com/forum/Sources/shop/items/EggUserV2.php  on line 206

line 206 is


   if($userID = mysql_fetch_assoc(db_query("SELECT `ID_MEMBER` , `memberName`, `avatar` FROM {$db_prefix}members WHERE memberName = '".$_POST['egguser']."' OR realName = '".$_POST['egguser']."' LIMIT 1", __FILE__, __LINE__))) 


I know there are db differences between 1.1.10 and 2.0 but I don't know how to fix this.  Anyone?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on December 05, 2009, 10:27:23 AM
db_query is not part of SMF 2.0 and needs to be converted. Check out the SMF 2.0 code it is something like $smfFunc['db_query'] and then without the __FILE___ and __LINE__ ending
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: perplexed on December 05, 2009, 11:29:24 AM
thanks for the quick reply VB, but I don't know how to take your info and change this code so that it works. :(
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: SA™ on December 05, 2009, 02:13:50 PM
i updated it for smf2

http://smfshop.com/forum/index.php/topic,354.msg9220.html#msg9220
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on December 05, 2009, 02:16:12 PM
Thanks! That help many uses of that item!
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: perplexed on December 05, 2009, 02:44:33 PM
Quote from: Sleepy Arcade on December 05, 2009, 02:13:50 PM
i updated it for smf2

http://smfshop.com/forum/index.php/topic,354.msg9220.html#msg9220 (http://smfshop.com/forum/index.php/topic,354.msg9220.html#msg9220)

thanks dude :)

VB, did you see this other issue yet?  I dunno why it's not in the new shop as it was in the old code

Quote from: quiteperplexed on December 04, 2009, 10:15:40 AM
I've just noticed that something is missing from this new version (3.1.5) there was always an option in Admin > boards to select which boards you collected shop points on.

I just looked in admin > boards and I don't have that checkbox any more.  I had about a third of my boards set up to give points and the rest not, and now they are all giving points.

How to fix this please?  Is this option left out on purpose or an oversight?

thanks

edit:  I had a quick look at the manual instructions on the mod site and I think it might have come from /manageboards and /subs-boards in the 1.1 version but that isn't in the 2.0 RC2 version manual install instructions so I don't know how to fix it.

~ thanks
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Prosperous on December 09, 2009, 09:57:15 AM
Thanks for posting quiteperplexed! If it wasn't you requesting it, it was me. I've already messaged vbgamer45 about it but I have not received a reply yet.

vbgamer45, this is a feature of the SMFShop that I really need in order to maintain my hosting service as well as maintaining the community. Is there any specific reason as to why it hasn't been introduced for the new version?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on December 09, 2009, 12:09:59 PM
Main reason lack of time have a lot of mods/sites to manage.

For now focusing on bug fixes.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: perplexed on December 09, 2009, 12:14:19 PM
VB, if I take the code from manageboards from the old version and paste it in to my file, will that work?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on December 09, 2009, 12:49:46 PM
Probably not since RC2 is different will get that fixed for the next update for RC2
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Liam. on December 09, 2009, 01:00:51 PM
It's actually a pretty good feature. Oh well. vB, when exactly will you get around to adding new features/default items, etc.? I don't mind, but it'd be cool to know :P
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Prosperous on December 09, 2009, 08:23:08 PM
I definitely agree with iKorp. This feature is an important one and there are quite a lot of requests for it now. Even just an estimate time and/or date that you will get around to doing it will be fine with us, I'm sure.

Is there any reason why it wasn't added in the update for RC2 to begin with? What other features are missing?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: silber112 on December 09, 2009, 08:29:52 PM
ADD a limit for buying items please
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on December 09, 2009, 08:41:10 PM
More than likely middle or late of Jan 2010
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Prosperous on December 09, 2009, 08:42:56 PM
Fair enough. No chance at getting it done ANY sooner at all?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on December 09, 2009, 09:12:01 PM
Not very likely
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Prosperous on December 09, 2009, 09:38:17 PM
Ok, no problem then vbgamer45. Looks like we'll be waiting for the update come January! 8)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: dkharp on December 11, 2009, 05:52:12 AM
Thank you for this mod!  I get this error when I go into shop admin.

Quote
Fatal error: require_once() [function.require]: Failed opening required '/home/content/j/o/h/johnnyskid/html/Sources/shop/ShopAdmin.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/j/o/h/johnnyskid/html/Sources/Admin.php on line 622

I also get this error when I click the shop tab
QuoteFatal error: require_once() [function.require]: Failed opening required '/home/content/j/o/h/johnnyskid/html/Sources/shop/Shop.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/j/o/h/johnnyskid/html/index.php on line 384
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on December 11, 2009, 10:26:24 AM
The mod did no install correctly reinstall the mod.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: illusioner on December 11, 2009, 10:45:19 AM
A couple of quick questions...

1) Is there a way to make it so only categories show up on the main shop page instead of the list of all items?

2) I didn't see an answer to the steal option - is that designed to only give negative karma or is there really an opportunity for someone to steal another person's credit?

3) Is there a way for an Admin to use this option to quickly and easily put something in someone's inventory without the need to purchase the item?  For example, if I would like to give a user 10 creme pies, can I (the admin) easily do this and if so, how?

Thank you!

We love this mod!
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: dkharp on December 11, 2009, 12:47:15 PM
That did it! Thank you! Must have been an issue with mt net connection
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: LC on December 11, 2009, 07:46:07 PM
Quote from: illusioner on December 11, 2009, 10:45:19 AM
A couple of quick questions...

1) Is there a way to make it so only categories show up on the main shop page instead of the list of all items?

2) I didn't see an answer to the steal option - is that designed to only give negative karma or is there really an opportunity for someone to steal another person's credit?

3) Is there a way for an Admin to use this option to quickly and easily put something in someone's inventory without the need to purchase the item?  For example, if I would like to give a user 10 creme pies, can I (the admin) easily do this and if so, how?

Thank you!

We love this mod!
I can answer #2.  You can assign the item to give negative karma or not, if the person attempts to steal credits from someone else. So yes, another person can "attempt" to steal another person's credits. The success rate is determined by you in the "edit item" section. It's like a game of chance, but it can steal credits from others if that person hits the right one. I would be wary of using this item, it may reallly piss off your members. There was another item at SMFShop.com that gave insurance against stealing of credits among other things, but I don't know if it still exists or not.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: illusioner on December 11, 2009, 09:49:47 PM
Quote from: LadyChaos on December 11, 2009, 07:46:07 PM
Quote from: illusioner on December 11, 2009, 10:45:19 AM
A couple of quick questions...

1) Is there a way to make it so only categories show up on the main shop page instead of the list of all items?

2) I didn't see an answer to the steal option - is that designed to only give negative karma or is there really an opportunity for someone to steal another person's credit?

3) Is there a way for an Admin to use this option to quickly and easily put something in someone's inventory without the need to purchase the item?  For example, if I would like to give a user 10 creme pies, can I (the admin) easily do this and if so, how?

Thank you!

We love this mod!
I can answer #2.  You can assign the item to give negative karma or not, if the person attempts to steal credits from someone else. So yes, another person can "attempt" to steal another person's credits. The success rate is determined by you in the "edit item" section. It's like a game of chance, but it can steal credits from others if that person hits the right one. I would be wary of using this item, it may reallly piss off your members. There was another item at SMFShop.com that gave insurance against stealing of credits among other things, but I don't know if it still exists or not.

Thank you so much! :)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: LC on December 13, 2009, 03:49:09 AM
Quote from: illusioner on December 11, 2009, 09:49:47 PM
Quote from: LadyChaos on December 11, 2009, 07:46:07 PM
Quote from: illusioner on December 11, 2009, 10:45:19 AM
A couple of quick questions...

1) Is there a way to make it so only categories show up on the main shop page instead of the list of all items?

2) I didn't see an answer to the steal option - is that designed to only give negative karma or is there really an opportunity for someone to steal another person's credit?

3) Is there a way for an Admin to use this option to quickly and easily put something in someone's inventory without the need to purchase the item?  For example, if I would like to give a user 10 creme pies, can I (the admin) easily do this and if so, how?

Thank you!

We love this mod!
I can answer #2.  You can assign the item to give negative karma or not, if the person attempts to steal credits from someone else. So yes, another person can "attempt" to steal another person's credits. The success rate is determined by you in the "edit item" section. It's like a game of chance, but it can steal credits from others if that person hits the right one. I would be wary of using this item, it may reallly piss off your members. There was another item at SMFShop.com that gave insurance against stealing of credits among other things, but I don't know if it still exists or not.

Thank you so much! :)
You are welcome.  ;)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Daisuke_aurora on December 14, 2009, 10:57:00 PM
The item in question, point shields, are in fact still around, and could be made simply even if not.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: dkharp on December 18, 2009, 11:55:04 AM
This is cool. what I want to use this mod for is. When you make a certain amount of posts you get free stuff. Real free stuff. Like a coffee mug or T-shirt and so. The only thing is when they reach the post requirement and pick there item how would I go about getting shipping info. Any ideas and or suggestion?

Or is anyone using it for this?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: perplexed on December 18, 2009, 01:46:09 PM
yeah I use it for something like that... There's an item called "sent email to admin" that you could use for that purpose.  :)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: dkharp on December 18, 2009, 01:49:48 PM
can I see what it looks like on your site please? Or what is link to your site.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Sun11 on December 19, 2009, 08:10:33 AM
I think its the only SMF plugin Shop out there.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: distante on December 19, 2009, 10:13:59 AM
Anyone knows If I can install it in a smf RC1.2 Forum?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on December 19, 2009, 11:37:57 AM
Yes it works with SMF 2.0 RC2
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: distante on December 19, 2009, 04:11:01 PM
Quote from: vbgamer45 on December 19, 2009, 11:37:57 AM
Yes it works with SMF 2.0 RC2

But my forum is SMF 2.0 RC 1.2

It still works?  :-\
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on December 19, 2009, 04:11:41 PM
No you would need to upgrade
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: distante on December 19, 2009, 04:12:05 PM
ok, thank you.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: illusioner on December 20, 2009, 05:19:16 PM
Quote from: illusioner on December 11, 2009, 10:45:19 AM
A couple of quick questions...

1) Is there a way to make it so only categories show up on the main shop page instead of the list of all items?

2) I didn't see an answer to the steal option - is that designed to only give negative karma or is there really an opportunity for someone to steal another person's credit?

3) Is there a way for an Admin to use this option to quickly and easily put something in someone's inventory without the need to purchase the item?  For example, if I would like to give a user 10 creme pies, can I (the admin) easily do this and if so, how?

Thank you!

We love this mod!

Just a quick follow up to see if anyone had any answers for questions 1 and 3? We want to use the store to manage a user inventory type program.

Thanks.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: ~DS~ on December 29, 2009, 03:25:45 PM
Credits are not counting. It stays 0 when creating a topics and posting. Nothing. Any solution to this?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on December 29, 2009, 08:05:21 PM
What SMF version? And what are your settings for credits
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: ~DS~ on December 29, 2009, 08:54:34 PM
Quote from: vbgamer45 on December 29, 2009, 08:05:21 PM
What SMF version? And what are your settings for credits

Never mind, already fixed by doing the code manually. Thank again.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on December 29, 2009, 09:07:57 PM
Glad you got it working
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: ~DS~ on December 31, 2009, 05:57:40 PM
Member reported a fatal error:

QuoteWhat are you doing? That ISN'T your item!!! And you even went to inv3!! Well, I thought you might try that... Stop trying to steal, SMFShop is smarter than that ;)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: ~DS~ on January 02, 2010, 02:19:28 PM
Found the problem, it was somehow related to "Random money" item.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: SEEN on January 06, 2010, 09:44:58 AM
im trying to combine this mod with advanced rep system..

is the items to add karma will be able to add rep points in advanced rep system?

will these mods be able to work together?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Maxtor on January 06, 2010, 10:46:55 AM
i found a bug,
when someone buy "Change Display name" he can change his display name to whatever he wants, even if its used by onother member.

But the correct would be to see this message :

The following errors occurred when trying to save your profile:

    * The selected username has already been taken.

Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 06, 2010, 08:01:58 PM
Quote from: maxtor on January 06, 2010, 10:46:55 AM
i found a bug,
when someone buy "Change Display name" he can change his display name to whatever he wants, even if its used by onother member.

But the correct would be to see this message :

The following errors occurred when trying to save your profile:

    * The selected username has already been taken.


What version of SMF?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Maxtor on January 07, 2010, 02:38:42 PM
Quote from: vbgamer45 on January 06, 2010, 08:01:58 PM
What version of SMF?

SMF1.1.11 and SMFShop3.1.5
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: andris11 on January 07, 2010, 04:09:25 PM
I installed it to SMF RC2.0. It's good and working. I want to do a VIP category so they will be able to buy VIP membergroup. I could see that there is a function which says:

"change membergroup by Daniel15..." But if i want to add this item i got an error:

Fatal error: Function name must be a string in D:\Web\Webroot\teszt\Sources\shop\items\PrimaryMemberGroup.php on line 66


I dont know whats wrong the 66 line is:

while ($row = $smfFunc['db_fetch_assoc']($result))



PLEASE HELP ME!
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Maxtor on January 07, 2010, 05:20:56 PM
Quote from: andris11 on January 07, 2010, 04:09:25 PM
I installed it to SMF RC2.0. It's good and working. I want to do a VIP category so they will be able to buy VIP membergroup. I could see that there is a function which says:

"change membergroup by Daniel15..." But if i want to add this item i got an error:

Fatal error: Function name must be a string in D:\Web\Webroot\teszt\Sources\shop\items\PrimaryMemberGroup.php on line 66


I dont know whats wrong the 66 line is:

while ($row = $smfFunc['db_fetch_assoc']($result))



PLEASE HELP ME!

D:\Web\Webroot ? are you using wamp? maybe there is a problem with php version , i might be wrong.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Lil Foams on January 07, 2010, 11:26:38 PM
I installed the shop and I think I did everything right, but now in the admin panel there's a blank box at the bottom, and the shop page has lots of blank things on it.

SMF version 1.1.11.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: LC on January 08, 2010, 01:10:28 AM
Quote from: Lil Foams on January 07, 2010, 11:26:38 PM
I installed the shop and I think I did everything right, but now in the admin panel there's a blank box at the bottom, and the shop page has lots of blank things on it.

SMF version 1.1.11.

Check your error log and post whatever errors may be coming up.

Also, are you using a custom theme?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Lil Foams on January 08, 2010, 01:18:46 AM
Quote from: LC on January 08, 2010, 01:10:28 AM
Check your error log and post whatever errors may be coming up.

Also, are you using a custom theme?

No I am not using a custom theme.

Also, I'm not even sure what errors to post. I'm not the greatest with coding identification. Could you maybe be more specific as to what I should be looking for?

There's so many errors... I don't know what to look for. I have like over 60 pages of errors... :l I don't know where to look for anything.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: souljaa on January 08, 2010, 02:40:27 AM
Hey guys, I just installed this MOD on SMF 1.1.11. I see the Shop Panel in the ADMIN panel, but it doesn't show up when posting, like I can't see the amound I have or anything. I am using a different theme, I did the change several times but still no change.
Anybody know what's wrong?
Also, it works on the default theme.
Thanks in advance :)
Souljaa
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: LC on January 08, 2010, 04:45:53 AM
Quote from: Lil Foams on January 08, 2010, 01:18:46 AM
Quote from: LC on January 08, 2010, 01:10:28 AM
Check your error log and post whatever errors may be coming up.

Also, are you using a custom theme?

No I am not using a custom theme.

Also, I'm not even sure what errors to post. I'm not the greatest with coding identification. Could you maybe be more specific as to what I should be looking for?

There's so many errors... I don't know what to look for. I have like over 60 pages of errors... :l I don't know where to look for anything.

When you installed the mod were there any tests that failed? Which theme are you using from SMF? Default, Babylon, Classic?

As far as what to look for in the errors, anything that says shop in it, or you can clear the error log and then repeat going into the admin panel and the shop page, come back and see what errors show up.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: LC on January 08, 2010, 04:48:34 AM
Quote from: souljaa on January 08, 2010, 02:40:27 AM
Hey guys, I just installed this MOD on SMF 1.1.11. I see the Shop Panel in the ADMIN panel, but it doesn't show up when posting, like I can't see the amound I have or anything. I am using a different theme, I did the change several times but still no change.
Anybody know what's wrong?
Also, it works on the default theme.
Thanks in advance :)
Souljaa
Seems you need to make some edits for the custom theme. Using the mod page parser, you can do the custom edits by looking at what files your theme changes from the default theme. These files could be index.template.php, etc.

To use the parser, just go the mod main download page and on the right where it says version, select 1.1.11 and click parse. Then look through the parsed page for the files that have been altered, add the code found on the page onto the files in your theme.

For more information click here. http://docs.simplemachines.org/index.php?topic=402.0
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Lil Foams on January 08, 2010, 04:52:45 AM
When you installed the mod were there any tests that failed? Which theme are you using from SMF? Default, Babylon, Classic?

As far as what to look for in the errors, anything that says shop in it, or you can clear the error log and then repeat going into the admin panel and the shop page, come back and see what errors show up.
[/quote]

Default. Also, I will take another look in the admin panel and the shop page to show you the problem I was describing.

Is it alright if we continue this in Private Message? Just send me a message if so.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: LC on January 08, 2010, 04:56:10 AM
Quote from: Lil Foams on January 08, 2010, 04:52:45 AM
When you installed the mod were there any tests that failed? Which theme are you using from SMF? Default, Babylon, Classic?

As far as what to look for in the errors, anything that says shop in it, or you can clear the error log and then repeat going into the admin panel and the shop page, come back and see what errors show up.
Quote
Default. Also, I will take another look in the admin panel and the shop page to show you the problem I was describing.

Is it alright if we continue this in Private Message? Just send me a message if so.
Well here, it's best to have the issues posted in public view in case others need help with the same problem, plus support team and the mod author will be able to help you as well if needed.

I just know easy to fix solutions, if you need something more complicated, they would be the ones to help with that.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: souljaa on January 08, 2010, 11:24:46 AM
Hi there guys! Thanks for the response.
I did do the parse editing in my theme and still made no changes at all. Everything works fine, the shop and admin panel shop just can't see it on the theme :S.
And as for the Error Log, I've checked and nothing seems to indicate an error in the Shop MOD. I think it's just my Display.template but I've edited that several times and it won't change.
Thanks!
Souljaa
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: andris11 on January 08, 2010, 12:01:32 PM
Quote from: maxtor on January 07, 2010, 05:20:56 PM
Quote from: andris11 on January 07, 2010, 04:09:25 PM
I installed it to SMF RC2.0. It's good and working. I want to do a VIP category so they will be able to buy VIP membergroup. I could see that there is a function which says:

"change membergroup by Daniel15..." But if i want to add this item i got an error:

Fatal error: Function name must be a string in D:\Web\Webroot\teszt\Sources\shop\items\PrimaryMemberGroup.php on line 66


I dont know whats wrong the 66 line is:

while ($row = $smfFunc['db_fetch_assoc']($result))



PLEASE HELP ME!

D:\Web\Webroot ? are you using wamp? maybe there is a problem with php version , i might be wrong.

what php version doest it need?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Lil Foams on January 08, 2010, 03:18:42 PM
QuoteWell here, it's best to have the issues posted in public view in case others need help with the same problem, plus support team and the mod author will be able to help you as well if needed.

I just know easy to fix solutions, if you need something more complicated, they would be the ones to help with that.


Quote from: error log8: Undefined index: shop_admin_usergroup
File: /home/lilfoams/public_html/forums/Sources/Subs.php
Lines: 2865

8: Undefined index: shop_admin_restock
File: /home/lilfoams/public_html/forums/Sources/Subs.php
Line: 2864

8: Undefined index: shop_admin_inventory
File: /home/lilfoams/public_html/forums/Sources/Subs.php
Line: 2863

8: Undefined index: shop_admin_cat
File: /home/lilfoams/public_html/forums/Sources/Subs.php
Line: 2862

8: Undefined index: shop_admin_items_addedit
File: /home/lilfoams/public_html/forums/Sources/Subs.php
Line: 2861

8: Undefined index: shop_admin_general
File: /home/lilfoams/public_html/forums/Sources/Subs.php
Line: 2860

8: Undefined index: shop_admin
File: /home/lilfoams/public_html/forums/Sources/Subs.php
Line: 2858

Unable to load the 'Shop.english' language file.

8: Undefined index: shop_view_all
File: /home/lilfoams/public_html/forums/Themes/default/Shop.template.php (main sub template - eval?)
Line: 200

8: Undefined index: shop_richest_bank
File: /home/lilfoams/public_html/forums/Themes/default/Shop.template.php (main sub template - eval?)
Line: 189

8: Undefined index: shop_view_all
File: /home/lilfoams/public_html/forums/Themes/default/Shop.template.php (main sub template - eval?)
Line: 176

8: Undefined index: shop_richest_pocket
File: /home/lilfoams/public_html/forums/Themes/default/Shop.template.php (main sub template - eval?)
Line: 165

8: Undefined index: shop_currently_have2
File: /home/lilfoams/public_html/forums/Themes/default/Shop.template.php (main sub template - eval?)
Line: 140

8: Undefined index: shop_currently_have1
File: /home/lilfoams/public_html/forums/Themes/default/Shop.template.php (main sub template - eval?)
Line: 140

8: Undefined index: shop_welcome_full
File: /home/lilfoams/public_html/forums/Themes/default/Shop.template.php (main sub template - eval?)
Line: 127

8: Undefined index: shop_welcome
File: /home/lilfoams/public_html/forums/Themes/default/Shop.template.php (main sub template - eval?)
Line: 125

8: Undefined index: shop
File: /home/lilfoams/public_html/forums/Themes/default/Shop.template.php (main sub template - eval?)
Line: 122

8: Undefined index: shop_trade
File: /home/lilfoams/public_html/forums/Themes/default/Shop.template.php (shop_above sub template - eval?)
Line: 82

8: Undefined index: shop_bank
File: /home/lilfoams/public_html/forums/Themes/default/Shop.template.php (shop_above sub template - eval?)
Line: 77

8: Undefined index: shop_invother
File: /home/lilfoams/public_html/forums/Themes/default/Shop.template.php (shop_above sub template - eval?)
Line: 73

8: Undefined index: shop_send_item
File: /home/lilfoams/public_html/forums/Themes/default/Shop.template.php (shop_above sub template - eval?)
Line: 68

8: Undefined index: shop_send_money
File: /home/lilfoams/public_html/forums/Themes/default/Shop.template.php (shop_above sub template - eval?)
Line: 63

8: Undefined index: shop_yourinv
File: /home/lilfoams/public_html/forums/Themes/default/Shop.template.php (shop_above sub template - eval?)
Line: 59

8: Undefined index: shop_buy
File: /home/lilfoams/public_html/forums/Themes/default/Shop.template.php (shop_above sub template - eval?)
Line: 56

8: Undefined index: shop
File: /home/lilfoams/public_html/forums/Themes/default/Shop.template.php (shop_above sub template - eval?)
Line: 52

8: Undefined index: shop
File: /home/lilfoams/public_html/forums/Themes/default/Shop.template.php (shop_above sub template - eval?)
Line: 48

8: Undefined index: shop
File: /home/lilfoams/public_html/forums/Sources/shop/Shop.php
Line: 128

8: Undefined index: shop
File: /home/lilfoams/public_html/forums/Sources/shop/Shop.php
Line: 82

8: Undefined index: shop
File: /home/lilfoams/public_html/forums/Sources/shop/Shop.php
Line: 69

8: Undefined index: shop_guest_message
File: /home/lilfoams/public_html/forums/Sources/shop/Shop.php
Line: 57

Also, I have screenshots of the blank things I was describing.

Admin panel: http://i45.tinypic.com/20s6cti.jpg
Shop page: http://i45.tinypic.com/1qqzo9.jpg
^^ Exchange those X's in the links with T's. ^^
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Lil Foams on January 11, 2010, 04:03:44 AM
Can I get a bit of help, please? Read some of my previous posts.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 11, 2010, 08:59:13 AM
Your missing the Shop.english.php file from your themes/default/languages folder.
Download the shop zip find and copy the file over to that directory on your forum.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Lil Foams on January 12, 2010, 12:41:01 AM
Quote from: vbgamer45 on January 11, 2010, 08:59:13 AM
Your missing the Shop.english.php file from your themes/default/languages folder.
Download the shop zip find and copy the file over to that directory on your forum.

Wow, I'm so stupid. I thought I had it in there.

It works now, thanks. LOL *facepalm*
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: uniektekniek on January 13, 2010, 11:18:44 PM
hey all.. im having a slight prob installing this on 1.1.11.. im using default theme but its heavily modded, running tinyportal and alot of other bits and peices..

when installing the test failed on ./Sources/ManageBoards.php... i tried to grab the manual install instructions for 1.1.11 off the mod page but it says "Sorry, but this modification does not appear to be compatible with the selected version."

any ideas?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Fantom007 on February 02, 2010, 02:52:32 AM
HEllo daniel can u make this mod for SMF 2.0 RC1.2
I need that.
[email protected]
contact me
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on February 02, 2010, 09:34:33 AM
That probably will not happen since SMF 2.0 RC2 is the current release.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Stigmartyr on February 03, 2010, 10:40:14 PM
Is there any way to actually move this mod forward into a real shop?  I've used this mod for years, and the concept of earning credits for participation is fabulous, but members accumulate so many credits that are practically worthless because they cannot exchange them for real world items.

I mean there are only so many pet rocks people want to buy.  I've used it for gaining access to membergroups, and allowing members to make topics sticky, but I would really love this mod if they could buy a Tshirt, or a real item with it somehow. 

I'd like to let them use credits to acquire items.  This mod doesn't let me add any items that aren't already included in it.. :(  Besides even if I could add custom items, how would I get a notification an item is pending shipment?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on February 03, 2010, 11:13:54 PM
I have a real paid SMF Store mod that deals with selling digital and physical items.

The SMF Shop mod I see as an item based and virtual currency system that is used to unlock items and other areas of the forum.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Stigmartyr on February 04, 2010, 12:22:10 AM
Quote from: vbgamer45 on February 03, 2010, 11:13:54 PM
I have a real paid SMF Store mod that deals with selling digital and physical items.

The SMF Shop mod I see as an item based and virtual currency system that is used to unlock items and other areas of the forum.

Can it convert karma or user participation into some form of discount on items? :)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on February 04, 2010, 12:24:51 AM
Not at this time but would be a good request.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: steve51184 on February 06, 2010, 11:00:25 PM
hi there i'm trying to install smfshop (latest) on smf 2.0 rc2 (updated from 1.1.10 with smfshop3.0) but after i upload the package 'SMFShop3.1.5forSMF2.0RC2' and click install in the package manager i get a 'Unable to find package file!' error why is this?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on February 06, 2010, 11:02:48 PM
First step check your forum's error log.
If that doesn't help then upload the file to your packages folder for your forum then try to install it.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: steve51184 on February 06, 2010, 11:06:46 PM
Quote from: vbgamer45 on February 06, 2010, 11:02:48 PM
First step check your forum's error log.
If that doesn't help then upload the file to your packages folder for your forum then try to install it.

1. "There are currently no error log entries."

2. i did upload it to the package folder but i got that error
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on February 06, 2010, 11:09:26 PM
make a temp folder in the packages folder and give it permissions of 755 if it does not exist
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: steve51184 on February 06, 2010, 11:13:44 PM
Quote from: vbgamer45 on February 06, 2010, 11:02:48 PM
First step check your forum's error log.
If that doesn't help then upload the file to your packages folder for your forum then try to install it.

i've got this error in my error log:

Quote
Apply Filter: Only show the error messages of this member  myusername
Apply Filter: Only show the error messages of this IP address myip
     Reverse chronological order of list Today at 04:08:19 am
Apply Filter: Only show the error messages of this session sessionid
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://domain.com/index.php?action=admin;area=packages;sa=install;package=SMFShop3.1.5forSMF2.0RC2..zip
Apply Filter: Only show the errors with the same message
8: Undefined variable: entryname
Apply Filter: Only show the errors from this file
File: /var/www/Sources/Subs-Package.php
Line: 1526

Quote from: vbgamer45 on February 06, 2010, 11:09:26 PM
make a temp folder in the packages folder and give it permissions of 755 if it does not exist

tried that same error
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Exochat on February 07, 2010, 08:40:02 PM
Stigmatyr:

You can add your own custom items rather than those included. Upload your own custom image to Sources/shop/item_images/
Then go to your ADD/EDIT/DELETE items and select ROCK option. Just change the details to match your own requirements, select your newly installed custom image and make sure that the item cannot be "used" and then click save.
This has now added your own custom image for sale in your shop and you can repeat the same procedure of uploading more images and selecting the ROCK option each time to add further custom items to the shop.

This method will allow you to sell custom items that members of your site can buy and display in their inventory but it will not allow any "use" feature. If you want them to be able to "use" the item once bought you will have to code the "use" yourself as a new rule. The developer appears to have covered a broad range of "use" rules already but as there are literally infinite possibilites of new rules, it is hard for any developer to cover every option for everyone.

Bear in mind tho, that if you intend to sell real items you best make sure you have a profitable site able to cope with it. If you advertise that members will be paid real offers in exchange for posting, word will spread around the internet that you can get something for virtually nothing and you may end up with hundreds of new members all posting like crazy hoping to get enough credits to bag themselves a free mug or a free tshirt. Does your business plan have a plan to cover the costs should you find that in one week you have 11 Tshirt and 8 Mug orders? If you cant find the money required to purchase and ship around $100 of orders then you may end up letting people down that may complain about your site offering something and not delivering it. This could be both bad publicity and a legal issue if you are not careful and covered yourself.
Its a nice idea to think you can encourage your 20 active members to post more and it will cost you a $10 Tshirt every 3 or 4 months...... but do you really want to encourage them out of your own pocket and at a risk that more and more people will take advantage and your costs quickly rise? If you limit yourself to just 1 Tshirt in stock, what happens when it has been bought and you dont offer anything else? You will soon find people walking away having lost their main incentive for being there.

I think that is why people stick with virtual currency and virtual items, because it offers much greater simplicity and can do it for free.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: legostrat on February 07, 2010, 10:22:59 PM
Quote from: andris11 on January 07, 2010, 04:09:25 PM
I installed it to SMF RC2.0. It's good and working. I want to do a VIP category so they will be able to buy VIP membergroup. I could see that there is a function which says:

"change membergroup by Daniel15..." But if i want to add this item i got an error:

Fatal error: Function name must be a string in D:\Web\Webroot\teszt\Sources\shop\items\PrimaryMemberGroup.php on line 66


I dont know whats wrong the 66 line is:

while ($row = $smfFunc['db_fetch_assoc']($result))



PLEASE HELP ME!

I'm getting this same error...  Does anybody know what to do?  I'm not sure what version of PHP I'm running.  If anybody can tell me how to find out in cPanel, I'll check.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: steve51184 on February 07, 2010, 11:58:10 PM
anyone have any ideas to my problem?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on February 07, 2010, 11:59:31 PM
I would try installing other mods and see if it is the issue sounds like a general smf issue though
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: steve51184 on February 08, 2010, 12:03:09 AM
Quote from: vbgamer45 on February 07, 2010, 11:59:31 PM
I would try installing other mods and see if it is the issue sounds like a general smf issue though

i have 20+ mods installed and all work find and none gave any errors only yours... please help/suggest....
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on February 08, 2010, 12:12:34 AM
Quote from: legostrat on February 07, 2010, 10:22:59 PM
Quote from: andris11 on January 07, 2010, 04:09:25 PM
I installed it to SMF RC2.0. It's good and working. I want to do a VIP category so they will be able to buy VIP membergroup. I could see that there is a function which says:

"change membergroup by Daniel15..." But if i want to add this item i got an error:

Fatal error: Function name must be a string in D:\Web\Webroot\teszt\Sources\shop\items\PrimaryMemberGroup.php on line 66


I dont know whats wrong the 66 line is:

while ($row = $smfFunc['db_fetch_assoc']($result))



PLEASE HELP ME!

I'm getting this same error...  Does anybody know what to do?  I'm not sure what version of PHP I'm running.  If anybody can tell me how to find out in cPanel, I'll check.

Released 3.1.5.1 to fix that issue thanks for the report
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Stigmartyr on February 08, 2010, 12:27:55 AM
Quote from: Exochat on February 07, 2010, 08:40:02 PM
Stigmatyr:

You can add your own custom items rather than those included. Upload your own custom image to Sources/shop/item_images/
Then go to your ADD/EDIT/DELETE items and select ROCK option. Just change the details to match your own requirements, select your newly installed custom image and make sure that the item cannot be "used" and then click save.
This has now added your own custom image for sale in your shop and you can repeat the same procedure of uploading more images and selecting the ROCK option each time to add further custom items to the shop.

This method will allow you to sell custom items that members of your site can buy and display in their inventory but it will not allow any "use" feature. If you want them to be able to "use" the item once bought you will have to code the "use" yourself as a new rule. The developer appears to have covered a broad range of "use" rules already but as there are literally infinite possibilites of new rules, it is hard for any developer to cover every option for everyone.

Bear in mind tho, that if you intend to sell real items you best make sure you have a profitable site able to cope with it. If you advertise that members will be paid real offers in exchange for posting, word will spread around the internet that you can get something for virtually nothing and you may end up with hundreds of new members all posting like crazy hoping to get enough credits to bag themselves a free mug or a free tshirt. Does your business plan have a plan to cover the costs should you find that in one week you have 11 Tshirt and 8 Mug orders? If you cant find the money required to purchase and ship around $100 of orders then you may end up letting people down that may complain about your site offering something and not delivering it. This could be both bad publicity and a legal issue if you are not careful and covered yourself.
Its a nice idea to think you can encourage your 20 active members to post more and it will cost you a $10 Tshirt every 3 or 4 months...... but do you really want to encourage them out of your own pocket and at a risk that more and more people will take advantage and your costs quickly rise? If you limit yourself to just 1 Tshirt in stock, what happens when it has been bought and you dont offer anything else? You will soon find people walking away having lost their main incentive for being there.

I think that is why people stick with virtual currency and virtual items, because it offers much greater simplicity and can do it for free.

Wow that's really awesome, I'll install and test the new features then.  I do have sponsors who donate items and cash so I can throttle rewards appropriately.

Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: steve51184 on February 08, 2010, 12:35:34 AM
yay that one works for me thank you!!!
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: steve51184 on February 08, 2010, 12:48:08 AM
hey i have a question do aLL shop items with with smf 2 rc2? like the profile image etc?

are there any i shouldn't use?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on February 08, 2010, 12:51:35 AM
All the ones included should be ok
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: steve51184 on February 08, 2010, 12:58:12 AM
Quote from: vbgamer45 on February 08, 2010, 12:51:35 AM
All the ones included should be ok

should? erm ok... have they been tested? and the profile image one here does this work: http://smfshop.com/forum/index.php/topic,100.0.html


also how do we do interest on this? i used to run:

/usr/bin/php -q /var/www/web8/web/Sources/shop/dointerest.php > /var/www/web8/web/interest_log.htm

but that gives an error:

QuoteFatal error: Call to undefined function db_query() in /var/www/web8/web/Sources/shop/dointerest.php on line 20
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on February 08, 2010, 01:03:59 AM
Interest is a Scheduled Task 2.0 you don't have to setup a cron job anymore
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: steve51184 on February 08, 2010, 01:05:49 AM
Quote from: vbgamer45 on February 08, 2010, 01:03:59 AM
Interest is a Scheduled Task 2.0 you don't have to setup a cron job anymore

ahh right (duh lol) nice one thanks :)

also can you confirm that all items that come with the latest smf shop work on rc2?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: steve51184 on February 08, 2010, 01:09:01 AM
Quote from: vbgamer45 on February 08, 2010, 01:03:59 AM
Interest is a Scheduled Task 2.0 you don't have to setup a cron job anymore

wait are you sure as it's not in my task list?

(http://i46.tinypic.com/o6l66f.png)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on February 08, 2010, 01:09:22 AM
They should work fine with RC2 can't confirm though but the code looks good
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: steve51184 on February 08, 2010, 01:17:16 AM
Quote from: vbgamer45 on February 08, 2010, 01:09:22 AM
They should work fine with RC2 can't confirm though but the code looks good

how can you not confirm? are you not making this mod for smf2 rc2? i thought you would have tested them :(
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on February 08, 2010, 01:19:06 AM
Haven't tested them all but the code is all ported from SMF 1.1.x to SMF 2.0.x
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Exochat on February 08, 2010, 07:00:10 AM
PPBZ: I would suggest testing each of the items yourself to make sure they work with your SMF Shop. If there are any that do not appear to work its better to ask for help so that the developers can quickly fix the one issue, than spend hours trying to test items that probably all work correctly already. It wastes developer time to keep re-testing all the items when they could be working on other more serious issues or new features.

As far as my own experience of RC 2.0 and SMF Shop. I find that most of the items have worked correctly, but havent tried every one for my own personal reasons of not needing them all.

As for scheduled tasks. I have nothing under mine to suggest the SMF Shop has a scheduled task either. Would the Bank mod have to be activated for it to appear in the list or should it be there regardless?
It doesnt effect me as I dont use it but merely helping the above user by confirming I do not see it either. :)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: SA™ on February 08, 2010, 09:22:11 AM
Quote from: ppbz on February 08, 2010, 01:09:01 AM
Quote from: vbgamer45 on February 08, 2010, 01:03:59 AM
Interest is a Scheduled Task 2.0 you don't have to setup a cron job anymore

wait are you sure as it's not in my task list?

(http://i46.tinypic.com/o6l66f.png)

it auto :) runs every day to run manulay goto admin>Scheduled Tasks>Daily Maintenance
tick the box run now and the hit run now button down the bottom
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Exochat on February 08, 2010, 09:30:38 AM
Oh its under the DAILY MAINTENANCE option and doesnt have its own option like the Feed Poster does?
Nice! Thanks for explaining :)

Ok.... I have noticed a small issue on SMF RC2

If you add an item to one category, then move it to another, it doesnt display the totals in the new category correctly.

For example. Create an item in Uncategorised, then move that item to Category 1.... Category 1 has an item in it but still displays 0 Items (on the category selection list in the shop itself).

It doesnt appear to update the categories if you edit/move items around.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: SA™ on February 08, 2010, 09:52:17 AM
it should do if i rember correctly in shop-subs.php there is a function to recount catagory totals but i dont know wheaether it is hooked up to anything you can try shop.php

add

recountItems();

after

isAllowedTo('shop_main');

that should recont them after you visit the shop

[edit yes cat recounts dont seem to be hooked up unless immissing it ]
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Exochat on February 08, 2010, 11:39:06 AM
Thanks, will give it a try and let you know if it works :)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Exochat on February 08, 2010, 11:57:55 AM
No luck..... I added it and when i go to the Shop it throws up an error with the array on Shop-Subs.php on line 112

Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on February 08, 2010, 12:00:00 PM
What error?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Exochat on February 08, 2010, 12:12:27 PM
If I place recountItems(); on Shop.php after isAllowedTo('shop_main'); as SleepyArcade suggests, and then go to the shop on my site I get this error come up:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Array' at line 1
File: /home/#####/public_html/Sources/shop/Shop-Subs.php
Line: 112


If i remove that suggested piece of code my shop works correctly again but it is still not displaying the correct total items per category for the ones that have been edited and moved to a new category.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: ~DS~ on February 08, 2010, 12:19:47 PM
Sorry for the dumb question vbgamer45, but where do I download updated items?
I was wondering if it's here: http://smfshop.com/forum/index.php
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: SA™ on February 08, 2010, 12:57:13 PM
i think i see the problem in subs-shop.php on line 110

$result = $smcFunc['db_query']("

should be

$result = $smcFunc['db_query']('',"
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Exochat on February 08, 2010, 05:14:13 PM
Fantastic job Sleepy Arcade.

For anyone else wanting to fix that bug just follow this advice:
http://www.simplemachines.org/community/index.php?topic=22396.msg2492984#msg2492984

then follow this advice:
http://www.simplemachines.org/community/index.php?topic=22396.msg2492804#msg2492804

and it will fix the categories bug that displays the incorrect number of items in each category.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: ~DS~ on February 09, 2010, 09:59:37 AM
When using username item I get a error:
QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'member_name = 'Charlie' LIMIT 1' at line 4
File: /home/me/public_html/forum/Sources/shop/items/ChangeUsername.php
Line: 66
My members are seeing this:
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: SA™ on February 09, 2010, 10:12:22 AM
in sources/shop/items/ChangeUsername.php

find

$result = $smcFunc['db_query']('', "
SELECT
member_name
FROM {db_prefix}members
WHER member_name = '" . $_POST['newusername'] . "' LIMIT 1");


replace with

$result = $smcFunc['db_query']('', '
SELECT member_name
FROM {db_prefix}members
WHER member_name = {int:key}
LIMIT 1',
array(
'key' => $_POST['newusername'],
)
);
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: ~DS~ on February 09, 2010, 10:41:55 AM
Quote from: Sleepy Arcade on February 09, 2010, 10:12:22 AM
in sources/shop/items/ChangeUsername.php

find

$result = $smcFunc['db_query']('', "
SELECT
member_name
FROM {db_prefix}members
WHER member_name = '" . $_POST['newusername'] . "' LIMIT 1");


replace with

$result = $smcFunc['db_query']('', '
SELECT member_name
FROM {db_prefix}members
WHER member_name = {int:key}
LIMIT 1',
array(
'key' => $_POST['newusername'],
)
);


Ok, now it said: "Wrong value type sent to the database. Integer expected. (key)"
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: SA™ on February 09, 2010, 10:51:07 AM
{int:key}

should be

{string:key}


use new package :)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on February 09, 2010, 10:53:38 AM
Quick box fix release

SMF Shop 3.1.5.2 for SMF 2.0 RC2
!Fix bug in changeusername shop
!Recount items bug fix thanks sleepy arcade

Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: ~DS~ on February 09, 2010, 10:55:42 AM
Sleepy, it keep throwing back, lol.
QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'member_name = 'Charlie'
LIMIT 1' at line 3
File: /home/me/public_html/forum/Sources/shop/items/ChangeUsername.php
Line: 70
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on February 09, 2010, 10:56:46 AM
The issue was WHERE was misspelled it was WHER but  not WHERE
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: ~DS~ on February 09, 2010, 11:03:32 AM
Quote from: vbgamer45 on February 09, 2010, 10:56:46 AM
The issue was WHERE was misspelled it was WHER but  not WHERE
LOL. Ok it works perfect now, thank you.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: pointalk on February 14, 2010, 09:18:16 PM
QuoteSQL :

CREATE TABLE `smf_shop_items` (

id int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
name varchar( 50 ) NOT NULL default '',
DESC text NOT NULL default '',
price decimal( 8, 2 ) unsigned NOT NULL default 0.00,
module tinytext NOT NULL default '',
stock smallint( 6 ) NOT NULL default 0,
info1 text NOT NULL default '',
info2 text NOT NULL default '',
info3 text NOT NULL default '',
info4 text NOT NULL default '',
input_needed tinyint( 3 ) unsigned NOT NULL default 1,
can_use_item tinyint( 3 ) unsigned NOT NULL default 1,
delete_after_use tinyint( 1 ) unsigned NOT NULL default 1,
image tinytext NOT NULL default '',
category smallint( 6 ) NOT NULL default 0,
PRIMARY KEY ( id )
) TYPE = MYISAM ;



MySQL :

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc text NOT NULL default '',
  price decimal(8,2) unsigned NOT NULL default 0' at line 4


MySQL version 5.0.89
How to fix?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on February 15, 2010, 12:25:06 AM
If you are doing it manually put DESC  in backticks like `DESC`
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: pointalk on February 15, 2010, 04:48:17 AM
What is backticks?
Can you tell me how to put DESC  in backticks like `DESC`?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Exochat on February 16, 2010, 06:21:55 AM
Hey guys, found myself another block to my plans for world domination :p

In the Admin backend>Membergroup Features, you can award certain membergroups amounts of credits.

There doesnt appear to be one for Regular Members. It only displays Admin, Global Mod, and Mod. Is this a fault with my installation or is there no option to mass reward regular members?

If there is no option then what would be an easy hack so that regular members can be rewarded on mass, without doing it one at a time?

Cheers for any advice :)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: venex on February 16, 2010, 03:29:46 PM
Quote from: Exochat on February 16, 2010, 06:21:55 AM
Hey guys, found myself another block to my plans for world domination :p

In the Admin backend>Membergroup Features, you can award certain membergroups amounts of credits.

There doesnt appear to be one for Regular Members. It only displays Admin, Global Mod, and Mod. Is this a fault with my installation or is there no option to mass reward regular members?

If there is no option then what would be an easy hack so that regular members can be rewarded on mass, without doing it one at a time?

Cheers for any advice :)
Same question here... and two others too:

- I don't know if you have an option to set the number of extra credits one can gain by posting in one specific board. I was kind of translating the MOD and I saw something similar in the things I had to translate but I can't find anything similar in my forum.
- I have an issue with the item that let the users change their name. My name is "VeNeX" and I changed my name (not the username but the name that people see). Another users came and changed his name to "VeNeX" because I no longer had that name as "default". The thing is that I don't want that to happen because in my forum is very rare that someone change his/her name and want to stay with it. Most of the changes are for a bit...

Can someone help me?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: waruna on February 16, 2010, 03:48:40 PM
When posts are deleted, does credits also reduced?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: t3ngu on February 16, 2010, 06:00:23 PM
Awesome mod. I have a question though, is it possible to add an item to change your avatar and the avatar of other members?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on February 16, 2010, 06:41:15 PM
Yes it is possible you would have to code it though.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: LC on February 17, 2010, 02:33:26 PM
I love this mod, but there are items from the smf-shop site that no longer work with RC2.

Leaving me with not much options but to learn PHP and make em myself.  :-\
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on February 17, 2010, 02:39:53 PM
I would try to contact the authors of those items to have them updated.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Eudemon on February 19, 2010, 01:11:57 PM
where do i set so the member will have the permission to access the shop?
i've tried permissions and shop administration but i still can't figure out how

never mind, problem is solved, it didn't show in permissions bcuz i was using a different language
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Iviiik on February 19, 2010, 02:40:55 PM
hi, why i can´t change settings for categories ? :( i don´t want have credits in all sections :( or it is my fault in source ?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Carlosvk on March 03, 2010, 05:32:30 PM
Hello, I have a problem.
When I want to add more images in Sources / shop / item_images not leave me (use FileZilla). He says this:

Command: TYPE I
Response: 227 Entering Passive Mode (64,191,87,134,78,121)
Command: STOR (image).gif
Response: 200 TYPE is now 8-bit binary
Command: PASV
Answer: 553-Can't open that file: Permission denied
Response: 553 Rename / move failure: No such file or directory
Error: Critical error file transfer
Response: 227 Entering Passive Mode (64,191,87,134,123,198)
Command: STOR (image).gif
Answer: 553-Can't open that file: Permission denied
Response: 553 Rename / move failure: No such file or directory
Error: Critical error file transfer

(image) is any image.

I've tried changing the permissions to 777, but not let me.

PS: Sorry for my English, am Spanish.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: raggi5 on March 03, 2010, 05:43:42 PM
looks like your folder isnt writable :) Just CHMOD it to 777 :) then, CHMOD back to 755 :)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: Carlosvk on March 04, 2010, 10:10:34 AM
I just can not set the permissions to 777, will not let me :(.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support!
Post by: vbgamer45 on March 04, 2010, 11:48:33 AM
If not 777 try 755
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 08, 2010, 07:01:47 PM
Added SMF 2.0 RC3 Support!
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: ~DS~ on March 08, 2010, 07:04:05 PM
Damn, the first mod for RC3  :o
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: rock91 on March 17, 2010, 09:45:58 PM
How can I add images to the shop? I mean why can't I. It won't let me. I try to change the permissions but nothing, I can't. I tried naming a gif I made ''Airplane'' and it did substitute the Airplane image in the item_images folder with the one I made but I can't add images that have different names from the ones already in the folder.

Please help it's urgent :(  ...I really want to add more images, that's it

oh and
Version Information:
Version Number: 3.1 (SMF 2.0 branch) (Build 5)
Database Version: 3.0 (Build 15)
Release Date: 23th November 2009



AND A BUG



So. I made 3 categories right? I placed some items in each one of them. I go to the shop and see that indices that there are 0 items in the all categories but if I select a category, the items are there. What's causing this? How can I fix? I'm using SMF 2.0 RC3 and:
Version Information:
Version Number: 3.1 (SMF 2.0 branch) (Build 5)
Database Version: 3.0 (Build 15)
Release Date: 23th November 2009

expecting solution...





DAMNIIIIIIIIIITTTTTTTTTTTTTTTTTTTTTT...I tried reinstalling it but it gives me the folowing line
when I click shop :  Fatal error: require_once() [function.require]: Failed opening required '/home/sirmooco/public_html/anime-forums.tk/Sources/shop2/Shop.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sirmooco/public_html/anime-forums.tk/index.php on line 385
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: XaiverCorp on March 26, 2010, 09:43:25 PM
I need help because i get this error when try to add change membergroup:
Fatal error: Function name must be a string in /home/********/public_html/Sources/shop/items/PrimaryMemberGroup.php on line 66

The Line that the error is on is:
  while ($row = $smfFunc['db_fetch_assoc']($result))

Can someone please help?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 26, 2010, 09:51:54 PM
Using latest version of SHop mod and SMF 2.0?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: rd on March 26, 2010, 09:53:11 PM
Is it possiable to sell digital items with this mod?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 26, 2010, 09:54:39 PM
To sell items for real money? If so no.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: rd on March 26, 2010, 10:00:20 PM
What about allowing certain member groups to buy the item?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: tanshin on March 27, 2010, 08:26:59 PM
Hi there, I'm having an issue with the e-mail function.

Fatal error: Call to undefined function: htmlspecialchars_decode() in /homepages/5/d301581944/htdocs/smf/Sources/shop/items/EmailAdmin.php  on line 77

I'm using what I assume is the latest version (SMF shows 3.1.5.2) on 2.0 RC2. Let me know what other info is needed.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 27, 2010, 08:59:29 PM
That is caused since your host is on PHP4 still.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: tanshin on March 27, 2010, 09:11:29 PM
That's annoying... for some reason I used PHP 4 on purpose... but I can't remember why now.

I think it was because the converter we wanted to use wouldn't work with PHP 5. I'll have to try and upgrade that and see what happens.

EDIT: What am I talking about. That was MySQL I'm thinking of. *goes to modify .htaccess*
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: NoSoKoMoS™ on March 28, 2010, 04:44:48 AM
hello i need SMFShop button code! please help me
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: NoSoKoMoS™ on March 28, 2010, 03:35:59 PM
no one ???
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: hcfwesker on March 28, 2010, 08:22:52 PM
Great MOD, but ... how do you add other member groups to access the Shop in the AdminCP?  So they can add items and edit options?

The only way I've found out was to give them the admin membergroup.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 31, 2010, 07:35:33 PM
You need to give them permissions. Under admin -> Permissions
Then modify each group and give them shop permissions
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: rock91 on March 31, 2010, 10:58:37 PM
The shop has a bug. When you put items in the categories, it basically indicates the number of items being 0 in the categories.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: hcfwesker on April 01, 2010, 08:08:52 PM
Quote from: vbgamer45 on March 31, 2010, 07:35:33 PM
You need to give them permissions. Under admin -> Permissions
Then modify each group and give them shop permissions
The option was never there, but the SMFShop site actually had an edit in the ManagePermissions to add this option to the member group permissions.   :)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: Robert. on April 08, 2010, 03:50:30 PM
This mod is absolutely great! :) But one problem: i can't find where i have to put the second Dutch php file.
QuoteAlso, copy the following into Modifications.dutch.php:

   1.
      <?php
   2.
      // Version: 1.1; Modifications
   3.
       
   4.
      // Begin SMFShop code
   5.
      $txt['cannot_shop_main'] = 'Je bent niet toegestaan de winkel te bekijken!';
   6.
      $txt['cannot_shop_buy'] = 'Je bent niet toegestaan artikelen te kopen.';
   7.
      $txt['cannot_shop_invother'] = 'Je bent niet toegestaan de inventaris van andere leden te bekijken.';
   8.
      $txt['cannot_shop_sendmoney'] = 'Je bent niet toegestaan om geld naar een ander lid toe te sturen.';
   9.
      $txt['cannot_shop_senditems'] = 'Je bent niet toegestaan om artikelen naar een ander lid toe te sturen.';
  10.
      $txt['cannot_shop_bank'] = 'Je bent niet toegestaan de bank te bezoeken.';
  11.
      $txt['cannot_shop_trade'] = 'Je bent niet toegestaan de ruilmarkt te bezoeken.';
  12.
      // End SMFShop code
  13.
       
  14.
      // Begin SMFShop code
  15.
      $txt['permissiongroup_shop'] = 'SMFShop';
  16.
       
  17.
      $txt['permissionname_shop_main'] = 'Geeft toegang tot SMFShop';
  18.
      $txt['permissionname_shop_buy'] = 'Koop artikelen';
  19.
      $txt['permissionname_shop_invother'] = 'Bekijk andermans inventaris';
  20.
      $txt['permissionname_shop_sendmoney'] = 'Stuur geld';
  21.
      $txt['permissionname_shop_senditems'] = 'Stuur artikelen';
  22.
      $txt['permissionname_shop_bank'] = 'Bank';
  23.
      $txt['permissionname_shop_trade'] = 'Ruilmarkt';
  24.
       
  25.
      $txt['permissionhelp_shop_main'] = 'Als deze optie uitgevinkt is, zal de gebruiker totaal niet in staat zijn de winkel te bezoeken. Als u alleen de toegang naar een gedeelte wilt ontzeggen, gebruik dan de permissies hieronder.';
  26.
      // End SMFShop code
  27.
       
  28.
      //Begin SMFShop MOD 2.2 (Build 10)
  29.
      $txt['whoall_shop'] = 'Bekijkt de <a href="'.$scripturl.'?action=shop">Winkel</a>.';
  30.
      //End SMFShop MOD
  31.
      ?>
That it says, but i don't know where to put it.  :o Can someone help me?   :)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on April 08, 2010, 04:09:42 PM
Should go in themes/default/languages folder.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: Robert. on April 08, 2010, 04:21:23 PM
Thankyou very mutch, VBgamer! :) It works great now!  :D
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: |Fran| on April 08, 2010, 11:47:56 PM
hi i wanted to put the 10 best changers and the top 10 buyers I hope you can help me
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: Afro on April 09, 2010, 03:57:43 PM
I want to start selling real time items on the shop.
Things like calling cards etc. Of course it will be a promotional selling in which people can purchase the items from the money they accumulated through post. I will buy the times in real time with real money and keep it until someone buys it, then i will send it to the person. How do i start that VB.

EG. a prepaid calling card where people will buy and the numbers will be shown to them after payment.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: eidytasaka on April 09, 2010, 05:50:04 PM
Hey,

Since last month i'm using SMF Shop in my board, but i caught myself wondering if is possible to make items that expires xx days after, just like the Arcade Mod does. It would be very helpful to sell items like 'CSS Nickname modifications'. I saw this function working fine at a vbulletin board.

I'm 1.1.11 / Shop 3.0

Thanks,

Eidy Tasaka.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: venex on April 11, 2010, 04:08:01 PM
Is there any feature to make some boards more important than others in terms of earning coins?? I was translating and I saw something like that but I can't find that feature in the admin panel...
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: eidytasaka on April 11, 2010, 08:01:53 PM
Just look at each forum config, individually, in Manage Boards section.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: flapjack on April 11, 2010, 09:45:34 PM
any chance for that nice rounded curve edges in mod's pages?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on April 12, 2010, 11:26:17 AM
Maybe in the future low on my priority right now.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: distante on April 13, 2010, 11:17:42 AM
Hello! Thanks for this MOD!

I'm now doing some changes in the display, And I want to put the first 6 items of "my inventory" right below the signature. I was trying to find how to do this but I can't do it!.

Any one know how can I do this?

Thanks

:)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: Sakuradreams on April 17, 2010, 09:33:33 PM
I'm slowly going through all 100+ pages, but I'm going to venture a post since I'm getting sleepy. I just installed the shop mod and it's looking great so far. Is there a way to customize how the items are displayed in posts? This question is similar to the above poster, but I would like it displayed under the avatar instead.

Forgot to mention, my SMF version is 1.1.11.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: ephralon on April 21, 2010, 05:19:26 AM
I installed this great mod for the first time on my 2.0 RC3 forum yesterday and it says Version Number: 3.1 (SMF 2.0 branch) (Build 5), Database Version: 3.0 (Build 15), Release Date: 23th November 2009.

There is a problem though. I as admin can send items and money to other users, but none of the regular members or other usergroups can. No matter whether we try from the shop menu or from the link beneath a users avatar, they always get the message "ERROR: The member you typed doesn't exist!". It doesn't matter how they write the username (with or without "") or if they use the member search, the error pops up regardless.

I looked through the member permission settings and activated all shop permissions for every usergroup, but still no result. Since it works for the admin it seems like a permissions problem to me. Is there some setting elsewhere that I overlooked?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: hcfwesker on April 21, 2010, 05:45:08 PM
@ distante  &  Sakuradreams

I have no clue why the addition to the Shop MOD (Shop Inventory MOD) is not posted in this topic.   It is labeled as a "beta" add on; but works perfectly, and pretty customizable.

http://smfshop.com/forum/index.php/topic,1175.0.html ( you'll need to register before you can download the attched MOD, and use a package parser if you run into any errors)

I've only used this for SMF 1.1.11 ; so you're good to go if you're on 1.1.11

The topic has has some tweaks to change the order they display.  And, you can set however many items you want to show, and if you want them in the avatar or signature.

But that SMFShop forum is everything about the SMFShop MOD.  Any tricks or add ons will be on that forum.

You can check a sig on my forum as an example, if that's what you're looking for.  It's the 2nd box under the sig, right below my listed Awards.  http://www.brawldomain.com/index.php?topic=5816.0 

Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: hcfwesker on April 22, 2010, 10:58:28 PM
Now I'm having an issue ....

This MOD has been working perfectly since I added last month.  And, I have the Shop Inventory MOD added as well.

The Shop items bought are suppose to be added in the profile field in order they were bought, it's been like that for a month now.  But, now when a new item is bought, it will get added in a member's display(signature) in a random spot.

http://www.brawldomain.com/index.php?topic=5966.msg119764;boardseen#new

^ items are in the Sig, now I have to turn buying items off until I can get this fixed.

I'm on 1.1.11,  and have no idea why this started happening all of a sudden :(

Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: zonakaoz on April 25, 2010, 07:04:09 PM
where in the name of good are de settings for this mod? i installed but.. i didnt found the settings,,,
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: Afro on April 26, 2010, 02:23:29 PM
I have a special request Vb.
I configured my shop in a way that users of the forum can use the money they get from posts to buy Recharge cards.
I disabled buying the stuff for them though but enabled the trade center.
So i bought all the cards i added and move them to trade center for members to buy.

Now i am looking for an SMS gateway that can auto send a message to the buyers assuming the buyers put their numbers on the forum.
I tried buying a card with another ID and it sent me a message confirming the transaction.
So i assumed that action can be forwarded to mobile phones.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: eidytasaka on May 02, 2010, 11:32:05 PM
Quote from: eidytasaka on April 09, 2010, 05:50:04 PM
Hey,

Since last month i'm using SMF Shop in my board, but i caught myself wondering if is possible to make items that expires xx days after, just like the Arcade Mod does. It would be very helpful to sell items like 'CSS Nickname modifications'. I saw this function working fine at a vbulletin board.

I'm 1.1.11 / Shop 3.0

Thanks,

Eidy Tasaka.

Anyone, please?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on May 06, 2010, 04:27:50 AM
Not currently built into the mod sorry.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: akbora on May 06, 2010, 04:32:45 AM
Very very good and lovely  mod. I like it very much. Everything works perfectly bank rate etc.

I ask that, is it possible to create other items or are there items else? Thanks

Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on May 06, 2010, 04:38:18 AM
Yes it is possible check the shop forums at smfshop.com easy to add/create your own items.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: Afro on May 07, 2010, 07:51:42 AM
Can the value of NEW POST go lower than "1" ?
I tried 0.5 and nothing happened/changed.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: Arantor on May 07, 2010, 07:53:57 AM
No it can't go lower than one. I seem to remember being asked to look at it a while ago, and it's rounded to whole numbers.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: Afro on May 07, 2010, 07:56:29 AM
That was a fast response arantor.
Thanks

I am using the mod for realtime money value.
And people are coming in fast to make money, so i need to lower the prize for posts.
I guess i need to think of a new method then.
Maybe 2=1 style. Gonna be confusing though.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: Afro on May 09, 2010, 01:45:08 PM
here is an error.
"Method Not Implemented

GET to /index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

That happened after clicking on "buy now" link on a block from the simple portal.

any fix ?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on May 09, 2010, 03:25:11 PM
That's a mod_security issue contact your host to disable it.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: Afro on May 09, 2010, 03:42:11 PM
Quote from: vbgamer45 on May 09, 2010, 03:25:11 PM
That's a mod_security issue contact your host to disable it.

What exactly am i suppose to ask them to disable ?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on May 09, 2010, 04:00:17 PM
To disable mod_Security
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: Afro on May 09, 2010, 04:50:15 PM
ok then..

disabling mod_security worked.
welldone vb.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: Afro on May 12, 2010, 06:01:39 AM
VB..
Do you have any code to call out the TRADE CENTER to display in homepage of simple portal ?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: ephralon on May 12, 2010, 07:01:02 AM
Sorry to bother again, but my problem from the last page still persists. I doublechecked all options and everything that pertains to the Shop mod is active. Regular users can still not send items to other users on RC3, only admins can. I also do not see the options to make posts in certain boards more or less valuable than others.
Is the RC3 version simply not as advanced as the 1.1 version yet?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: Afro on May 12, 2010, 07:06:29 AM
Quote from: ephralon on May 12, 2010, 07:01:02 AM
Sorry to bother again, but my problem from the last page still persists. I doublechecked all options and everything that pertains to the Shop mod is active. Regular users can still not send items to other users on RC3, only admins can. I also do not see the options to make posts in certain boards more or less valuable than others.
Is the RC3 version simply not as advanced as the 1.1 version yet?

Did your check the permissions for other users ?
admin/permissions/ Send an Item to Someone
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: ephralon on May 12, 2010, 01:38:32 PM
Yes, all boxes are ticked in the Shop permissions, for all membergroups (except guests, of course).
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: RoCKeT-88 on May 13, 2010, 10:13:13 AM
I don't know how to put a text link in at the top in the links row.  It did not insert one this time after I had installed to rc3 and reinstalled this. 

This is the theme I have.

Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: MajorTomSawyer on May 14, 2010, 04:14:05 AM
I seem to have caused a bug>

Quote
Welcome to the Shop!
Welcome to the Shop! Here, you can "buy" stuff with the credits you get from posting on the forum! For each post you make on the forum, you'll earn 10 Resources per new topic and 8 Resources per new post

You currently have 0 Resources in your pocket and 0 Resources in the bank
And right below that there is this:

Quote
10 Richest Members (Pocket)
MajorTomSawyer - 88 Resources
Sabre Jade Wylde - 50 Resources

View All Members

and

Quote10 Richest Members (Bank)
MajorTomSawyer - 10000 Resources
Sabre Jade Wylde - 10000 Resources

So I am unable to buy anything. 

Just trying to squash the last of the bugs before I open the forum to the public.

Edit: I should mention I am running SMF 1.1.11 and running 3.1.5 on the SMF mod.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: MajorTomSawyer on May 14, 2010, 02:51:54 PM
Anyone know the part of the code that controls this?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: pointalk on May 16, 2010, 01:32:29 AM
can you develop this item

"Member can use smfshop money to buy index text ad space.
Admin can set the ad price/day."
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on May 16, 2010, 07:01:36 AM
I would place a request on smfshop.com maybe somebody will do it.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: Adish - (F.L.A.M.E.R) on May 16, 2010, 09:53:57 AM
Hey There,
I am having a little problem with giving permissions to other membergroups to manage the shop via admin panel. I have checked all the edits are in place, all the permission's are assigned to the membergroup and still the 'shop administration' area in the admin panel does not show up for that particular membergroup? I seem to be missing something somewhere. Any directions ?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: pointalk on May 19, 2010, 08:37:37 PM
When topic delete or remove to Recycle Bin, smfshop money will decrease.
How to achieve?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: di3f00l on May 22, 2010, 12:09:05 AM
How about an option to delete items in your inventory?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on May 22, 2010, 12:10:17 AM
Good idea maybe one day
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: di3f00l on May 22, 2010, 12:33:32 AM
Quote from: vbgamer45 on May 22, 2010, 12:10:17 AM
Good idea maybe one day

Cool :] because like for instance i just bought the rock to test it, and no one will want in for auction, and it just looks like crap in my inventory... xD

edit: maybe modify the use button so that for unusable items, it shows a trash button that 'uses' it but doesn't really do anything.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: aerolite on May 23, 2010, 06:54:17 PM
How to edit this part?

QuoteWelcome to the Shop!
Welcome to the Shop! Here, you can "buy" stuff with the credits you get from posting on the forum! For each post you make on the forum, you'll earn 1.00 zeny per new topic and 1.00 zeny per new post

You currently have 21.00 zeny in your pocket and 0.00 zeny in the bank
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on May 23, 2010, 07:08:11 PM
I would check the language files for the shop
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: CommanderMadi on May 23, 2010, 07:26:56 PM
WOW!, That Mod is a GODLIKE, I INFINITY LIKE IT!
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: wushdishmeen on May 24, 2010, 09:14:33 PM
I'm having an issue with this shop mod.  It worked at first but for some reason it no longer works correctly.

When I Add the Item "Send E-mail to Admin" and edit the additional field options and then add the items,   I go back to the item and click "Edit" and all of the additional fields including the e-mail and subject fields are gone and just show a "0"  (zero) in all of the boxes.

This feature worked before and I successfully had it send an email to myself and showed all the proper information.  When I Used the Item it asked for the info and everything.

But now when I use the items it just shows a "0" and a use item button and editing the item everything is gone!!  What happened here?  I didn't change anything except change ONE of my items stock to sold out (set the stock to zero).  I tried changing the stock back and it did nothing.

PLEASE HELP!
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: di3f00l on May 25, 2010, 01:18:48 PM
Testing the bank and it doesn't work. I have it enabled and interest set to 2% but it hasn't added any money to my user. I have 10000 deposited.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: tanshin on May 25, 2010, 03:35:09 PM
Quote from: wushdishmeen on May 24, 2010, 09:14:33 PM
I'm having an issue with this shop mod.  It worked at first but for some reason it no longer works correctly.

When I Add the Item "Send E-mail to Admin" and edit the additional field options and then add the items,   I go back to the item and click "Edit" and all of the additional fields including the e-mail and subject fields are gone and just show a "0"  (zero) in all of the boxes.

This feature worked before and I successfully had it send an email to myself and showed all the proper information.  When I Used the Item it asked for the info and everything.

But now when I use the items it just shows a "0" and a use item button and editing the item everything is gone!!  What happened here?  I didn't change anything except change ONE of my items stock to sold out (set the stock to zero).  I tried changing the stock back and it did nothing.

PLEASE HELP!

This happens to me as well. I've made it a habit now to plan out what I'm adding and make sure it's right. If not, then I delete it and make it again.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: Adish - (F.L.A.M.E.R) on May 25, 2010, 03:45:47 PM
Quote from: (F.L.A.M.E.R) on May 16, 2010, 09:53:57 AM
Hey There,
I am having a little problem with giving permissions to other membergroups to manage the shop via admin panel. I have checked all the edits are in place, all the permission's are assigned to the membergroup and still the 'shop administration' area in the admin panel does not show up for that particular membergroup? I seem to be missing something somewhere. Any directions ?

Any help?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: diontoradan on May 26, 2010, 02:31:21 PM
this mod is awesome, it could create a MMORPG like virtual economy...

i would like to request a reward system for member who make backlinks to the forum, maybe it could integrate with social networking button...
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: steve51184 on May 29, 2010, 03:35:07 PM
is there a way to disable the 'Shop' link for guests as atm my guests can see it and it looks out of place:

(http://img197.imageshack.us/img197/2456/jhjghjt.jpg)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on May 29, 2010, 09:13:32 PM
Yeah i think you can with permissions set shop disabled.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: steve51184 on May 30, 2010, 06:38:24 AM
Quote from: vbgamer45 on May 29, 2010, 09:13:32 PM
Yeah i think you can with permissions set shop disabled.

yes the shop is disabled but the link is still there
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on May 30, 2010, 10:48:03 AM
Disabled in permissions hmm
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: steve51184 on May 30, 2010, 02:04:34 PM
Quote from: vbgamer45 on May 30, 2010, 10:48:03 AM
Disabled in permissions hmm

yeah but it still shows the link
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on May 30, 2010, 02:09:16 PM
Probably is a bug then may need a fix.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: steve51184 on May 30, 2010, 06:02:52 PM
Quote from: vbgamer45 on May 30, 2010, 02:09:16 PM
Probably is a bug then may need a fix.

was thinking the same thing
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: steve51184 on May 30, 2010, 06:30:43 PM
right i've found the problem (please excuse my non-technical explaining i'm not a pro at this)

after looking at the code for the button in '/Sources/Subs.php' i see it looks like this:

'shop' => array(
'title' => $txt['shop_menu_button'],
'href' => $scripturl . '?action=shop',
'show' => true,
),


i compared this to another custom button from the arcade mod which looks like this:

'arcade' => array(
'title' => $txt['arcade'],
'href' => $scripturl . '?action=arcade',
'show' => $context['allow_arcade'],
'sub_buttons' => array(
),


as you can see the 'show' bit on the arcade link has the '$context['allow_arcade']' thing (not sure on the name) and this will only show the link IF that person is allowed to see the arcade (ie. guests can not) but the shop link only has 'true'

i'm not sure if that was a mistake and if there's an option for it but as a VERY dirty hack to get it to not show for guests it can be changed to '!$user_info['is_guest']' which will only show for none guests (ie. registered members)

again not sure it you forgot to add the right bit there (is there something like a $context['allow_shop'] ?) but it is an easy fix ;)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: goldenboy48 on June 06, 2010, 02:31:01 PM
Hey is it possible to add commas after every 3 numbers when we display Cash/Points. Meaning changing $100000 to $100,000

Thanks :)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: di3f00l on June 06, 2010, 02:53:25 PM
Quote from: PanesarV on June 06, 2010, 02:31:01 PM
Hey is it possible to add commas after every 3 numbers when we display Cash/Points. Meaning changing $100000 to $100,000

Thanks :)
That'd be nice.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on June 06, 2010, 03:10:08 PM
Possible would use number format in php
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: Surria on June 16, 2010, 05:59:08 AM
I have reinstalled SMF (version 1.1.11, will be upgrading to 2.0 soon) and of course the shop mod.  However, when trying to restore my database I get the following error:




SQL query:

CREATE TABLE `smf_shop_items` (
id int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
name varchar( 50 ) NOT NULL ,
DESC text NOT NULL ,
price decimal( 8, 2 ) unsigned NOT NULL ,
module tinytext NOT NULL ,
stock smallint( 6 ) NOT NULL ,
info1 text NOT NULL ,
info2 text NOT NULL ,
info3 text NOT NULL ,
info4 text NOT NULL ,
input_needed tinyint( 3 ) unsigned NOT NULL default 1,
can_use_item tinyint( 3 ) unsigned NOT NULL default 1,
delete_after_use tinyint( 1 ) unsigned NOT NULL default 1,
image tinytext NOT NULL ,
category smallint( 6 ) NOT NULL ,
PRIMARY KEY ( id )
) TYPE = MYISAM ;

MySQL said:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc text NOT NULL,
  price decimal(8,2) unsigned NOT NULL,
  module tinytext ' at line 4




Mind you, I am not so good with coding or the like and have no idea what I have gotten myself into.  If someone could help, it would be much appreciated.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on June 16, 2010, 10:55:11 AM
Put ` alround DESC so it is like `DESC`
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: Aportadordelmix on June 16, 2010, 11:03:27 AM
using pretty you can do this in the profile...


is currently

http://www.simplemachines.org/community/index.php?action=profile;u=160719

so

http://www.simplemachines.org/community/profile/username?

Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: IDunc on June 17, 2010, 02:11:19 PM
I get a Test Failed in Removetopic.php and test failed in display.template.php.

Any help?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on June 17, 2010, 02:32:58 PM
Install it then make that change manually
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: IDunc on June 17, 2010, 02:40:21 PM
How? I don't know anything about that.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on June 17, 2010, 03:08:25 PM
Check modsite for manual install instructions
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: venex on June 22, 2010, 01:15:13 AM
Question:

I had this MOD when I used RC2... Upgraded my forum to RC3. Installed the Shop... everything perfect... until I went to check the shop (like, where the items are) and I had no items... I just had the default ones... but not the ones that I had before... Also, my users lost all their items, the ones that they bought...

This was like 3 weeks ago... If there is any solution, I would want the items back... but if not, it's ok... I just want to know if there are something I can do next time when I plan to upgrade my forum again... i don't want to lose my items again :/...

Any ideas? ;D.

Thanks! :D
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on June 22, 2010, 10:32:58 AM
No solution before the mod used to delete all items and data when it was uninstalled no longer is the case now.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: tanshin on June 22, 2010, 01:13:09 PM
Actually, I ran into this myself back when I had to restore my forum.

If you have a sql backup (which you should have made before you upgraded), look through your SQL file for smf_shop_items (where smf_ is your table prefix). If you take the table structure and the table data commands and use them in your mysql database you'll get your items back.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: venex on June 23, 2010, 02:17:05 AM
Quote from: tanshin on June 22, 2010, 01:13:09 PM
Actually, I ran into this myself back when I had to restore my forum.

If you have a sql backup (which you should have made before you upgraded), look through your SQL file for smf_shop_items (where smf_ is your table prefix). If you take the table structure and the table data commands and use them in your mysql database you'll get your items back.
I'll have that in mind next time :D..

I had a backup that my VPS make automatically but, because it makes it daily (u never know where u gonna get a lammer "hacking" your site) and because it can hold up to 3 backups... I lost the one before the upgrade since I upgraded my foruim like 2 or 3 weeks ago.

But thanks a lot :D.. I'll have that in mind.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: ephralon on July 01, 2010, 02:47:52 AM
Now we found out why sending items didn't work right on my forum.
The search function of the "send item/money" form in the shop tab brings up screennames, but sending items only works with the original username. Like, I come up as "eph" but my username is "ephralon", so sending items to "eph" brings up the message "user doesn't exist".
It works fine when clicking the "send money" button beneath an avatar, as that gets the correct username from the database.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 02, 2010, 12:44:00 AM
So you have eph as your displayname and a different username is that correct?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: ephralon on July 02, 2010, 02:56:27 AM
Exactly, the username is ephralon and the screenname is eph. I tried this with regular members who changed their displayname and it's the same, I cannot send them items unless I use the link beneath their avatar. So it was never a permissions problem, sorry about that. The only users who helped me test the mod have identical usernames/displaynames, that's why I could always send them stuff without a problem.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 02, 2010, 09:38:45 AM
New update
Version 3.1.6
!Fixed issue sending money only checking for username and not displayname too
+Now using comma separators for points/cash
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: Bugo on July 03, 2010, 05:04:07 AM
I think that you can add in Shop.template.php this line:
echo '<br class="clear"/>';
echo '
</p>';
echo '<br class="clear"/>';
}


// The main shop page (ie. the index)
function template_main()
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: ephralon on July 05, 2010, 02:55:49 AM
Thank you for the update!
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 05, 2010, 10:45:53 AM
Glad you enjoy it!
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: saucerfoot on July 07, 2010, 02:29:02 PM
Hey guys

when i tried to install this shop mod on my smf message board this error message appear

Fatal error: Function name must be a string in /home/saucerfo/public_html/smf/install.php  on line 59

so how can i fix this then
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 07, 2010, 04:18:07 PM
Check that you are using the right version of the Shop mod for your SMF version
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: saucerfoot on July 07, 2010, 04:22:02 PM
Hey vbgamer45

i am using this version of the shop hack for my smf board

           SMFShop3.1.6forSMF2.0.zip
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 07, 2010, 05:21:24 PM
Whats your SMF version?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: saucerfoot on July 07, 2010, 05:29:52 PM
hey

my smf version is

Powered by SMF 2.0 RC3
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: saucerfoot on July 07, 2010, 06:57:57 PM
help me
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 07, 2010, 07:43:43 PM
I don't understand
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: saucerfoot on July 07, 2010, 07:55:43 PM
Hey

do not worry i get it up and running now
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: IKING xx IKROWN on July 10, 2010, 03:54:49 AM
getting this error

Fatal error: Function name must be a string in /home/content/95/6399695/html/Sources/shop/items/PrimaryMemberGroup.php on line 66

when i try to add the "change membergroup"

LINE65          if (!defined('SMF'))
LINE66
LINE67                    die('Hacking attempt...');


could you assist me with this please?

also i have the shop mod and the smfstore installed and would like to know if there is anyway possible to use the 2 mods in conjuction with one another? i have asked that it be in an update for smfstore to allow the members to use there points to make purchases in the actual store but have had no luck in getting any reply back from the person who created the smfstore mod maybe you can assist us with this.
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 10, 2010, 10:33:09 AM
What smf version are you using?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: IKING xx IKROWN on July 10, 2010, 04:16:28 PM
i am using smf 2.0 RC3
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: MaXiForum.cz on July 10, 2010, 04:21:17 PM
What´s new in version 3.1.6 vbgamer45? :)
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 10, 2010, 06:10:28 PM
Nothing
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: IKING xx IKROWN on July 11, 2010, 01:28:44 PM
any ideas what may be the problem?
Title: Re: SMFShop- Version 3.1.5 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 11, 2010, 10:46:28 PM
Quote from: IKING xx IKROWN on July 11, 2010, 01:28:44 PM
any ideas what may be the problem?
Fixed new update

Version 3.1.6.1
!Fixed bug in Change Membergroup item
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: IKING xx IKROWN on July 18, 2010, 01:45:14 AM
any ideas about a possible integration of the smfshop with the smfstore seems to be a skipped over feature that is talked about on the support and features section over at smfhacks.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 18, 2010, 10:24:46 AM
Not something I plan on adding.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: forfun on July 20, 2010, 02:12:15 AM
Hello all!
I need help to install the ad management.  I am running SMF 2.0 RC3, and PortaMX portal.  below is the errors that I got during the file comparability check, so I stop the installation.
Please help
Thanks much in advanced

   
Quote7.     Execute Modification     ./Themes/default/MessageIndex.template.php     Test failed
      1.    Add After    ./Themes/default/MessageIndex.template.php    Test failed
      2.    Add After    ./Themes/default/MessageIndex.template.php    Test successful
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 20, 2010, 03:29:53 PM
I would install then do that one spot manually
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: forfun on July 20, 2010, 04:11:21 PM
Quote from: vbgamer45 on July 20, 2010, 03:29:53 PM
I would install then do that one spot manually
Thanks for the response, but that will not help, if you don't give me more details.  Do what manually?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 20, 2010, 04:18:59 PM
Install the one part where it failed manually.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: forfun on July 20, 2010, 04:52:05 PM
Quote from: vbgamer45 on July 20, 2010, 04:18:59 PM
Install the one part where it failed manually.
Based on the error, is it possible that you can tell me in details what string, or code that I need to install manually.
Thanks
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 20, 2010, 05:26:46 PM
Check modsite for manual install instructions
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: forfun on July 20, 2010, 06:37:33 PM
Thx much!
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Melissa524 on July 25, 2010, 07:06:03 PM
I am using SMFshop 3.1.61 and SMF 2.0 RC3.  I can't find the way to turn of a board and keep people from getting credits in certain board.  I go under Boards and Modify but it isn't there.  I have asked this on the main support board, but I haven't gotten a response.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Afro on July 27, 2010, 11:06:25 AM
Vbgamer, do you have any code to call random items from trade center ?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 27, 2010, 11:12:37 AM
No
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: venex on July 27, 2010, 11:32:50 AM
Quote from: Melissa524 on July 25, 2010, 07:06:03 PM
I am using SMFshop 3.1.61 and SMF 2.0 RC3.  I can't find the way to turn of a board and keep people from getting credits in certain board.  I go under Boards and Modify but it isn't there.  I have asked this on the main support board, but I haven't gotten a response.
same here.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 27, 2010, 11:35:04 AM
I don't think there is a way
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: venex on July 27, 2010, 12:16:08 PM
But there was cuz I used it.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: excaliburj on July 27, 2010, 05:12:35 PM
There are definitely supposed to be board based options.

The mod adds the below code to ManageBoards.template.php:

loadLanguage('Shop');
echo '
<div id="override_theme_div">
<dl class="settings">
<dt>
<b>', $txt['shop_count_points'], '</b><br />
', $txt['shop_count_points_msg'], '<br /><br />
</dt>
<dd>
<input type="checkbox" name="countMoney"', !empty($context['board']['countMoney']) ? ' checked="checked"' : '', ' class="check" />
</dd>

<dt>
<b>', $txt['shop_credits'], '</b><br />
', $txt['shop_credits_msg'], '<br /><br />
</dt>
<dd>
', $txt['shop_per_new_topic'], ': ', $modSettings['shopCurrencyPrefix'], '<input type="text" name="shop_pertopic" value="', !empty($context['board']['shop_pertopic']) ? $context['board']['shop_pertopic'] : '', '" size="5" />', $modSettings['shopCurrencySuffix'], '<br />
', $txt['shop_per_new_post'], ': ', $modSettings['shopCurrencyPrefix'], '<input type="text" name="shop_perpost" value="', !empty($context['board']['shop_perpost']) ? $context['board']['shop_perpost'] : '', '" size="5" />', $modSettings['shopCurrencySuffix'], '
</dd>


<dt>
<b>', $txt['shop_bonuses_enabled'], '</b><br />
', $txt['shop_bonuses_enabled_msg'], '<br /><br />
</dt>
<dd>
<input type="checkbox" name="shop_bonuses"', !empty($context['board']['shop_bonuses']) ? ' checked="checked"' : '', ' class="check" />
</dd>
</dl>
</div>';
// End SMFShop code


This 'should' provide the options to count the board (or not), to have custom points for the board for new posts and new topics, and to include Shop 'Bonuses ' (word and character count).

As it's a template file, of course, the edits might have to be made to any theme which supplies its own ManageBoards.template.php file. So, check the theme you're using. If it doesn't have that file, make sure hat Shop code was added to your default theme file.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Melissa524 on July 27, 2010, 09:51:29 PM
It wasn't added.  Just to make sure I can add that to the file at the bottom or does it have to be in a certain place?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: excaliburj on July 27, 2010, 10:01:22 PM
Certain place. And if that part of the install didn't work right, you may want to check other files, too.

You can see all the edits/inserts needed by going to the mod's page ( http://mods.simplemachines.org/?mod=65 ), select your SMF version in the dropdown on the right, and press the 'Parse' button.

That'll show you all the files that get changed, what to look for and what to insert/replace.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Afro on July 28, 2010, 07:04:03 AM
Quote from: vbgamer45 on July 27, 2010, 11:12:37 AM
No

Any plans to do that ? Please. I really need it to place items on the homepage using SP block.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Melissa524 on July 28, 2010, 10:22:38 PM
Okay I looked at the Parse of RC3 Version and I can't find the code that you linked me anywhere on it.  Not sure what to do.
Title: Re: SMFShop - Shop MOD
Post by: Melissa524 on July 29, 2010, 01:43:49 AM
Quote from: Chit-Chat ChatterBox Boss on May 01, 2009, 04:13:47 PM
when I am making boards and I come to this selection

Quote
Count Shop Points                                []
Members will receive Shop credits for posting in this forum.              []

Shop Credits
If custom values are set for these two settings, they will override the settings set on the SMFShop administration page. Set these to "0" to use the default values (currently $8Chatter Bucks per topic, and $5Chatter Bucks per post)

                                           Per new topic: $[  ]Chatter Bucks
                                           Per new post: $[  ]Chatter Bucks
Enable Shop Bonuses                        []
Shop Bonuses will be take effect in this board

when I select all those boxes and i sometimes put '0' in the post new topic and post new post boxes. then I hit modify or create board and it makes the board. I reopen this board with modify and these boxes and the money amount is blank. Why does it keep doing this. I have no errors in the error log.

Okay I got the stuff that was missing added to the file, but now I am having the same problem as the person as the quote.  I haven't found a solution so far in the posts. 
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: excaliburj on July 29, 2010, 06:35:18 AM
That's not a problem. That's what's supposed to happen. When it's 0/blank (and Shop points count in that board), it will give the values that are given in the Shop Admin page.

It doesn't put those values in each board, because if you change the default value, you'd have to go to each board and change it there. too. 0/blank will always use the default.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: excaliburj on July 29, 2010, 11:01:59 AM
Going over the packages, it appears that this per board functionality, which worked in the 1.1 compatible mod, is not implemented in the 2.0 line.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Melissa524 on July 29, 2010, 12:01:23 PM
aww... well, darn it... it was one of the reasons why I like that mod.  Thanks for the help. 
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Marsh on July 30, 2010, 04:23:34 PM
When i try to create a change membergroup item i get this error.

Fatal error: Function name must be a string in /home/marsh99/touchofdeathforums.com/smf/Sources/shop/items/PrimaryMemberGroup.php  on line 66

Any ideas?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: slaytcafe.com on July 30, 2010, 06:28:33 PM
not works bank interest without cron job.

give error : Fatal error: Call to undefined function db_query() in /home/xxx/xxxx.com/dointerest.php on line 17

an idea?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on August 01, 2010, 09:53:38 PM
Is that with the latest version of SMF Shop? And i am guessing you are using SMF 2.0?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: slaytcafe.com on August 02, 2010, 08:37:41 AM
Quote from: vbgamer45 on August 01, 2010, 09:53:38 PM
Is that with the latest version of SMF Shop? And i am guessing you are using SMF 2.0?

Yes, I use smf 2.0.RC3 with latest version of smf shop..
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on August 02, 2010, 02:53:40 PM
You do not use dointerest.php in SMF 2.0 delete that file

There should be a SMF Shop interest scheduled task inside of SMF
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: hcfwesker on August 03, 2010, 07:13:44 PM
Hi.  Been using this MOd for awhile, and love it!!!!

Lately been getting complaints with "sending items"  ... a lot of members are getting items they don't care for.

Is there anyway to add something so member's have to approve items sent to them, before they are added to their items?

Thank you :0
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on August 03, 2010, 09:29:12 PM
Not currently no way for members to approve items before they get them.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Sakurachan on August 13, 2010, 09:08:54 PM
Got this working fine on I believe all themes but two right now. Good MOD and 10/10! :)
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Exochat on August 13, 2010, 09:19:50 PM
This mod is one awesome mod....... but it needs more Items.

I have been on the official site but none of them are fully supported now :(

Maybe we can get some coders to support making ideas.

A couple of ideas that people may not have thought of yet but are do-able right now if you want to play, is the ability to add Pictures and Videos as shop items.

For this to happen you need to use "Display Message" item, and then use the BBCode option to embed an image using an img tag to show full size images when a person clicks the USE button..... this may be useful for websites wishing to give away Wallpapers????

The other idea you can do right now is if you have the excellent Aeva Media mod installed, as any YouTube (etc) Video URL you post on to the Display Message Item will embed automatically into the message, so once a user purchases it and clicks USE....... they get the YouTube video play directly in the "Message" without them having to do anything!

Anyway, I just thought I would share a couple of tips on ways of using some of the current options available in new and unique ways, but it really could do with a proper amount of development set aside for new items. As the developer is busy developing so many incredibly good Mods, maybe 2 or 3 excellent coders (i.e - better than me, lol) might consider working together to develop some new ones for it as its the one area that has been left virtually untouched for several years!

Hope the tips help and well done on the great work!
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: lax.slash on August 17, 2010, 06:37:19 PM
I'm having some trouble with the installation of this mod. The Sources/shop directory exists, has 777 for the permissions, and all the files are in there, but for some reason, there's no folders in it. I installed it with Package Manager. When I try to go to the Add/Edit/Delete items screen, I get this error:


ERROR: Cannot open Sources/shop/items dir!


So, I tried to upload the shop folder again via FileZilla, and I got many errors that look like this:


Status: Starting upload of C:\Users\LaxSlash\Downloads\SMFShop3.1.6.1forSMF2.0\shop\items\testitem2.php
Command: CWD /Sources/shop/items
Response: 550 /Sources/shop/items: No such file or directory
Command: CWD /Sources/shop
Response: 250 CWD command successful
Command: MKD items
Response: 550 items: File exists
Command: CWD /Sources/shop/items
Response: 550 /Sources/shop/items: No such file or directory
Command: SIZE /Sources/shop/items/testitem2.php
Response: 550 SIZE not allowed in ASCII mode
Command: PASV
Response: 227 Entering Passive Mode (67,15,55,238,155,24).
Command: STOR /Sources/shop/items/testitem2.php
Response: 550 /Sources/shop/items/testitem2.php: Not a directory
Error: Critical file transfer error


Everything in the sources directory is 777. Do you think it's an issue with the mod, SMF, my host, or am I doing something wrong? I'm almost sure that it's my host, but I just wanted to ask here first. I don't know what the issue would be though.

I'm using SMF 2.0 RC3.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: lax.slash on August 18, 2010, 12:15:34 PM
I solved the issue by manually creating the folders on the server, and uploading the files that way.

EDIT: Actually, nevermind. I accidentally uploaded them into the Sources directory.  So, I found out, after looking at the shop directory closer, the SMF package manager uploaded the folders as actual files.  Why it did this, I don't know, but I guess I just have to check the mods I install for a while now.  My issue is still resolved, though. :)
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on August 18, 2010, 12:37:58 PM
Glad you were able to figure it out!
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: hcfwesker on August 20, 2010, 04:54:58 PM
Hey, VB, I first posted on the Shop site, not sure if you support the Lottery MOD.  But, I'm getting this error when trying to access it.

Database Error
Table 'brawldom_website.smf_lottery_win' doesn't exist
File: /home/brawldom/public_html/Sources/shop/Shop-Lottery.php
Line: 32

I had this going on my forum before, but members weren't interested, now they are, so I re-Installed it, but getting this error when going to the Lottery section in Shop.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on August 20, 2010, 05:06:22 PM
That looks like for addon or item for the shop seems the tables were not installed.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: hcfwesker on August 20, 2010, 05:23:56 PM
Is there any info on how I install them.   Sorry, I know all about editing files and installing packages, just don't use the Myphp or SQL sections too much :(
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on August 20, 2010, 05:31:36 PM
I would search the files for CREATE Table statements and run them manually on the database using something like phpmyadmin
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: hcfwesker on August 20, 2010, 06:17:20 PM
thank you, VDg :)  With help from my host were able to follow your lead and get it to work.

Only problem now is, I can't select the Lottery ticket when adding a new shop item. 

EDIT:  Woo-hoo.  got it.  forgot to move Lottery.php to shop/items
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on August 20, 2010, 07:57:25 PM
Glad you got it working!
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Hasta La Vista on August 23, 2010, 06:29:32 AM
Hello,

The Credit Steal option doesn't work orderly on my SMF.
If somebody would like to steal, he gets -10 karma. - It's okay
But he doesn't get the any points. So he can't steal the points from the target person.
And then the target person doens't lose anything.

What's the mistake?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Adish - (F.L.A.M.E.R) on August 23, 2010, 06:31:45 PM
Hey vbgamer,
I have been trying to use this mod on SMF 2.0 RC3 and it seems one of the major features of shop points per board settings is not included in SMF 3.1.6.1 ?

There are no edits in ManageBoards.php and Managerboards.template.php for them. I just tried the same edits of 3.1.6 for SMF 1.x, it does show the option, although it does not accept the settings. I assume there are some database queries which are missing somewhere although I am unable to find the right one.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on August 23, 2010, 06:33:57 PM
Haven't added that yet that was added to shop after the SMF 2.0 branch was started.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Adish - (F.L.A.M.E.R) on August 23, 2010, 06:39:20 PM
oh, well is there a simple work around? It does throw out a few undefined strings which I can fix it, although the data from the database does not get picked up or get added. I think it might be just a matter of a few missing queries.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on August 23, 2010, 06:41:30 PM
No workaround for that would need to be added into the mod.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Adish - (F.L.A.M.E.R) on August 23, 2010, 06:45:11 PM
Alright thanks, I'll probably wait then.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: wynnyelle on September 12, 2010, 11:04:02 AM
The STORE is RESETTING ITSELF TO DEFAULT ERASING EVERYONES INVENTORIES AND THE ENTIRE STORE LIST.....ALL BY ITSELF!!!

I NEED IMMEDIATE AND EXTREME HELP!!

This is a MAYDAY!! MY FORUM IS OUT OF CONTROL!!! It happened TWICE within the past 24 hours!!!!

please....HELP ME!!!!!

site is here... (http://warriorcatsrpg.com) verson 2.0.3
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on September 12, 2010, 02:02:16 PM
Older versions of the Shop when uninstalled would remove all inventory,settitngs. This has been changed in recent versions to no longer do that.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Saintcrow on September 22, 2010, 08:55:47 AM
Hey,

First thanks for this great mod =) So I use it on my RPG Board and I was wondering, can I change the 'buy' button to a kind of send money to ... button.
You see I want the money to go to a special user everytime when someone buys an Item in the shop and not just like puff and gone ^^

I hope you guys understand what i mean =)

thx
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on September 22, 2010, 11:27:09 AM
Yeah you would just need to modify the language file in themes/default/languages/shop.english.php
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Saintcrow on September 22, 2010, 03:18:55 PM
and like what ?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on September 22, 2010, 03:34:37 PM
Just search for the text Buy and change to Send Money
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: venex on September 23, 2010, 04:14:44 PM
vbgamer45 you think in the future there will be a "transactions" page? Some ppl in my forum are saying that their credits just vanished which I think is a lie... so with a transaction page I could prove that the shop doesn't just "erase" their coins...
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: wynnyelle on September 28, 2010, 10:44:02 PM
I have 2 serious problems with our shop. I'm using 2.0 RC3 version. 

1. We have an RPG and I only want it to count credits on the roleplay boards, it is counting them everywhere and there is no little box to shut it on or off. It is destroying the careful system we had going before this disastrous upgrade, I need a fix on this ASAP.

2. Even worse, whenever someone buys one item, it gives them double, triple or however many of that item they can afford, draining ALL their points however many they had to spare. This started a few days ago out of nowhere I need serious help fixing this, PLEASE PLEASE.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Bugo on October 06, 2010, 08:54:01 AM
SMFShop3.1.6smf1.1.x.zip » install_SMF1-1.xml

Hardcoded text:
<a href="', $scripturl, '?action=shop">Shop</a>
<td><b>Credits:</b></td>

Shop.templat.php:
<td class="catbg">', $txt['shop'], ' Stuff</td>
and 3 times:
/> Find Members</a>

SMFShop3.1.6.1forSMF2.0.zip, ShopAdmin.template.php:
/> Find Members</a>
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Josh' on October 06, 2010, 05:59:24 PM
looks nice :)
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: rodinhas10 on October 09, 2010, 04:03:02 AM
Hi,

i´m installing this mod. After i clicked apply, shows a warning:
QuoteError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

The test failed at:
Sources/ManageBoards.php
and
Themes/default/Display.template.php

Please help
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on October 09, 2010, 05:28:12 AM
You will need to make those two changes manually get the manaully install instructions after you install the mod.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: rodinhas10 on October 09, 2010, 05:31:42 AM
i´m sorry,i really don´t know how to work with code...is there another way?

there is a warning before the install. Can i install the mod with no problem?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on October 09, 2010, 05:41:22 AM
You can install but if you need those features on those pages you have to do a manual code install for that part
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: rodinhas10 on October 09, 2010, 05:45:04 AM
So, what you are saying is that i have to change those two .php files correct?
How can i do that?

I really don´t know what to do and how to do it.
If i attach those files would you change them for me?
I would appreciate..

news: i already can see the shop administration

testing: I´m testing the mod and Credits appear only in profile. Is there a way to show under avatar?
Also, is there a way to have a "shop" with articles that members can "buy" with points/ credits earned?

Thank´s
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Harvester on October 20, 2010, 10:36:14 PM
I c urrently have the older version - 3.0 - installed on my forums. I want to update to the newest. Do I hve to uninstall my old version completely in order to update to the latest?

Also, Id like to set all my members back to 0 points. How can I set everyone back to 0?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on October 21, 2010, 04:28:12 PM
You do not have to uninstall to upgrade.
To reset all points you need an sql query.
UPDATE smf_members SET money = 0;
And that will fix the points
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Harvester on October 21, 2010, 05:10:22 PM
Quote from: vbgamer45 on October 21, 2010, 04:28:12 PM
You do not have to uninstall to upgrade.
To reset all points you need an sql query.
UPDATE smf_members SET money = 0;
And that will fix the points

thank you very much.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on October 21, 2010, 05:17:26 PM
Glad to help
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: lehoang101101 on October 26, 2010, 07:07:20 AM
I'm trying to install SMFSHOP MOD (http://custom.simplemachines.org/mods/index.php?mod=65) for my site but my hosting doesn't support auto install MOD.

I made the instructions but I can't execute file install.php. I'm using SMF 2.0.3. Anybody can help me? Thank you ...

<?php

global $smcFunc$db_prefix;

// New settings for the shop mod
$newSettings = array(
'shopVersion' => '3.0',
'shopDate' => '23th November 2009',
'shopBuild' => '15',
'shopCurrencyPrefix' => '',
'shopCurrencySuffix' => ' credits',
'shopPointsPerTopic' => '10',
'shopPointsPerPost' => '8',
'shopInterest' => '2',
'shopBankEnabled' => '1',
'shopImageWidth' => '32',
'shopImageHeight' => '32',
'shopTradeEnabled' => '1',
'shopItemsPerPage' => '10',
'shopMinDeposit' => '0',
'shopMinWithdraw' => '0',
'shopRegAmount' => '0',
'shopPointsPerWord' => '0',
'shopPointsPerChar' => '0',
'shopPointsLimit' => '0',
'shopFeeWithdraw' => '0',
'shopFeeDeposit' => '0',
);

// Insert them into the database
// !!! This is done evily like this!
foreach ($newSettings as $variable => $value)
{
$smcFunc['db_insert']('replace''{db_prefix}settings',
array(
'variable' => 'string',
'value' => 'string',
),
array(
'variable' => $variable,
'value' => $value,
),
array()
);
}

// Add a column for money
$smcFunc['db_add_column']('{db_prefix}members', array(
'name' => 'money',
'type' => 'decimal',
'default' => '0.00',
));

// Add a column for banked money
$smcFunc['db_add_column']('{db_prefix}members', array(
'name' => 'moneyBank',
'type' => 'decimal',
'default' => '0.00',
));


// Modify Boards
$smcFunc['db_add_column']('{db_prefix}boards', array(
'name' => 'countMoney',
'type' => 'tinyint',
'size' => 1,
'default' => '1',
));


$smcFunc['db_add_column']('{db_prefix}boards', array(
'name' => 'shop_pertopic',
'type' => 'decimal',
'size' => '9,2',
'default' => '0.00',
));


$smcFunc['db_add_column']('{db_prefix}boards', array(
'name' => 'shop_perpost',
'type' => 'decimal',
'size' => '9,2',
'default' => '0.00',
));


$smcFunc['db_add_column']('{db_prefix}boards', array(
'name' => 'shop_bonuses',
'type' => 'tinyint',
'size' => 1,
'default' => '1',
));


// Item table
$smcFunc['db_create_table']('{db_prefix}shop_items',
array(
array(
'name' => 'id',
'type' => 'int',
'size' => 10,
'auto' => true,
),
array(
'name' => 'name',
'type' => 'varchar',
'size' => 50,
),
array(
'name' => 'desc',
'type' => 'text',
),
array(
'name' => 'price',
'type' => 'decimal',
'size' => '8,2',
'default' => '0.00',
),
array(
'name' => 'module',
'type' => 'tinytext',
),
array(
'name' => 'stock',
'type' => 'smallint',
'size' => 6,
),
array(
'name' => 'info1',
'type' => 'text',
'null' => true,
),
array(
'name' => 'info2',
'type' => 'text',
'null' => true,
),
array(
'name' => 'info3',
'type' => 'text',
'null' => true,
),
array(
'name' => 'info4',
'type' => 'text',
'null' => true,
),
array(
'name' => 'input_needed',
'type' => 'tinyint',
'size' => 1,
'default' => 0,
),
array(
'name' => 'can_use_item',
'type' => 'tinyint',
'size' => 1,
'default' => 0,
),
array(
'name' => 'delete_after_use',
'type' => 'tinyint',
'size' => 1,
'default' => 0,
),
array(
'name' => 'image',
'type' => 'tinytext',
'null' => true,
),
array(
'name' => 'category',
'type' => 'smallint',
'size' => 6,
'default' => 0,
),
),
array(
array(
'name' => 'id',
'type' => 'primary',
'columns' => array('id'),
),
),
array(),
'overwrite');

// Inventory table
$smcFunc['db_create_table']('{db_prefix}shop_inventory',
array(
array(
'name' => 'id',
'type' => 'int',
'size' => 10,
'auto' => true,
),
array(
'name' => 'ownerid',
'type' => 'int',
'size' => 10,
),
array(
'name' => 'itemid',
'type' => 'int',
'size' => 10,
),
array(
'name' => 'amtpaid',
'type' => 'decimal',
'size' => '8,2',
'default' => '0.00',
),
array(
'name' => 'trading',
'type' => 'tinyint',
'size' => 1,
),
array(
'name' => 'tradecost',
'type' => 'decimal',
'size' => '8,2',
'default' => '0.00',
),
),
array(
array(
'name' => 'id',
'type' => 'primary',
'columns' => array('id'),
),
),
array(),
'overwrite');

// Category table
$smcFunc['db_create_table']('{db_prefix}shop_categories',
array(
array(
'name' => 'id',
'type' => 'smallint',
'size' => 5,
'auto' => true,
),
array(
'name' => 'name',
'type' => 'varchar',
'size' => 50,
),
array(
'name' => 'count',
'type' => 'int',
'size' => 10,
),
),
array(
array(
'name' => 'id',
'type' => 'primary',
'columns' => array('id'),
),
),
array(),
'overwrite');

// Insert shop items
$smcFunc['db_insert']('insert''{db_prefix}shop_items',

// Fields
array(
'name' => 'string',
'desc' => 'string',
'price' => 'float',
'module' => 'string',
'stock' => 'int',
'image' => 'string',
'info1' => 'int',
'info2' => 'int',
'input_needed' => 'int',
'can_use_item' => 'int',
'delete_after_use' => 'int',
),

// Values
array(
// testitem
array(
'name' => 'Test Item',
'desc' => 'Just a test item!',
'price' => 10.00,
'module' => 'testitem',
'stock' => 50,
'image' => 'blank.gif',
'info1' => 0,
'info2' => 0,
'input_needed' => 0,
'can_use_item' => 0,
'delete_after_use' => 0,
),

// RandomMoney
array(
'name' => 'Random Money',
'desc' => 'Get a random amount of money, between -190 and 190!',
'price' => 75,
'module' => 'RandomMoney',
'stock' => 50,
'image' => 'blank.gif',
'info1' => -190,
'info2' => 190,
'input_needed' => 0,
'can_use_item' => 1,
'delete_after_use' => 1,
),

// AddToPostCount
array(
'name' => 'Add 100 to Post Count',
'desc' => 'Increase your Post Count by 100!',
'price' => 50,
'module' => 'AddToPostCount',
'stock' => 50,
'image' => 'blank.gif',
'info1' => 100,
'info2' => 0,
'input_needed' => 1,
'can_use_item' => 1,
'delete_after_use' => 1,
),

// IncreaseKarma
array(
'name' => 'Increase Karma',
'desc' => 'Increase your Karma by 5',
'price' => 100,
'module' => 'IncreaseKarma',
'stock' => 50,
'image' => 'blank.gif',
'info1' => 5,
'info2' => 0,
'input_needed' => 1,
'can_use_item' => 1,
'delete_after_use' => 1,
),

// ChangeUsername
array(
'name' => 'Change Username',
'desc' => 'Change your Username!',
'price' => 50,
'module' => 'ChangeUsername',
'stock' => 50,
'image' => 'blank.gif',
'info1' => 0,
'info2' => 0,
'input_needed' => 1,
'can_use_item' => 1,
'delete_after_use' => 1,
),

// ChangeUserTitle
array(
'name' => 'Change User Title',
'desc' => 'Change your User Title',
'price' => 50,
'module' => 'ChangeUserTitle',
'stock' => 50,
'image' => 'blank.gif',
'info1' => 0,
'info2' => 0,
'input_needed' => 1,
'can_use_item' => 1,
'delete_after_use' => 1,
),

// IncreaseTimeLoggedIn
array(
'name' => 'Increase Total Time',
'desc' => 'Increase your total time logged in by 12 hours.',
'price' => 50,
'module' => 'IncreaseTimeLoggedIn',
'stock' => 50,
'image' => 'blank.gif',
'info1' => 43200,
'info2' => 0,
'input_needed' => 1,
'can_use_item' => 1,
'delete_after_use' => 1,
),

// ChangeOtherTitle
array(
'name' => 'Change Other\'s Title',
'desc' => 'Change someone else\'s title',
'price' => 200,
'module' => 'ChangeOtherTitle',
'stock' => 50,
'image' => 'blank.gif',
'info1' => 0,
'info2' => 0,
'input_needed' => 1,
'can_use_item' => 1,
'delete_after_use' => 1,
),

// DecreasePost
array(
'name' => 'Decrease Posts by 100',
'desc' => 'Decrease <i>Someone else\'s</i> post count by 100!',
'price' => 200,
'module' => 'DecreasePost',
'stock' => 50,
'image' => 'blank.gif',
'info1' => 0,
'info2' => 0,
'input_needed' => 1,
'can_use_item' => 1,
'delete_after_use' => 1,
),

// StickyTopic
array(
'name' => 'Sticky Topic',
'desc' => 'Make any one of your topics a sticky!',
'price' => 400,
'module' => 'StickyTopic',
'stock' => 50,
'image' => 'blank.gif',
'info1' => 0,
'info2' => 0,
'input_needed' => 1,
'can_use_item' => 1,
'delete_after_use' => 1,
),

// StickyTopic
array(
'name' => 'Sticky Topic',
'desc' => 'Make any one of your topics a sticky!',
'price' => 400,
'module' => 'StickyTopic',
'stock' => 50,
'image' => 'blank.gif',
'info1' => 0,
'info2' => 0,
'input_needed' => 1,
'can_use_item' => 1,
'delete_after_use' => 1,
),

// StickyTopic
array(
'name' => 'Steal Credits',
'desc' => 'Try to steal credits from another member!',
'price' => 50,
'module' => 'Steal',
'stock' => 50,
'image' => 'blank.gif',
'info1' => 40,
'info2' => 0,
'input_needed' => 1,
'can_use_item' => 1,
'delete_after_use' => 1,
),

// Rock
array(
'name' => 'Rock',
'desc' => 'Well... It does nothing',
'price' => 5,
'module' => 'Rock',
'stock' => 50,
'image' => 'blank.gif',
'info1' => 40,
'info2' => 0,
'input_needed' => 0,
'can_use_item' => 0,
'delete_after_use' => 0,
),

// ChangeDisplayName
array(
'name' => 'Change Display Name',
'desc' => 'Change your display name!',
'price' => 5,
'module' => 'ChangeDisplayName',
'stock' => 50,
'image' => 'blank.gif',
'info1' => 0,
'info2' => 0,
'input_needed' => 1,
'can_use_item' => 1,
'delete_after_use' => 1,
),

// ChangeDisplayName
array(
'name' => 'Change Display Name',
'desc' => 'Change your display name!',
'price' => 5,
'module' => 'ChangeDisplayName',
'stock' => 50,
'image' => 'blank.gif',
'info1' => 0,
'info2' => 0,
'input_needed' => 1,
'can_use_item' => 1,
'delete_after_use' => 1,
),
),
array());
?>

Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Kindred on October 26, 2010, 09:01:27 AM
1- use code tags for code
2- why did you include that? It looks to be the standard install from the mod package
3- why can't you execute that file?   If your forum runs, that page should also run.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: roonekoos on October 29, 2010, 01:52:00 AM
Is there a place to download new items for smf 2.0 rc3?
Smf shop site is outdated.

Thanks.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on October 29, 2010, 10:26:46 AM
Third party items have not been updated it is best to contact their author to update them
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: venex on November 07, 2010, 04:57:09 PM
Hi!!!

I was just wondering if its possible to deny users from buying an item more than X times. Sometimes I put and item and the seniors users (who have more money than the other ones) buy every single item of that kind... and they they sell it pretty expensive so they become richer and richer... IT'S A MONOPOLY (haha)... so I was thinking if there's a way to allow them to BUY (from the store) only X amount of items so the other users have also the opportunity to get the item. I said buy from the store because it shouldn't include if they buy the item from another user... they're should be only allow to buy X amount of items (of the same kind) from the store..

is it possible? D: S:
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on November 07, 2010, 06:43:11 PM
Not built in yet for buying limits.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Capcom on November 08, 2010, 09:21:36 AM
Hey

I'm using SMF2 CR3, I installed SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 and it worked but the problem is items pics dont appear, look at the pic i uploaded

plz, plz I need your help guys

thanks
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Capcom on November 09, 2010, 02:39:43 PM
no one?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: userBD on November 15, 2010, 02:16:52 PM
Please, can someone edit this mod for theme mysticjade

Thanks everyone who try edit this
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: hcfwesker on November 21, 2010, 10:38:48 PM
Quote from: XxDevilxX on November 08, 2010, 09:21:36 AM
Hey

I'm using SMF2 CR3, I installed SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 and it worked but the problem is items pics dont appear, look at the pic i uploaded

plz, plz I need your help guys

thanks

Did you make sure to upload it in your  Sources/shop/item_images folder ... or the folder may not be in the right directory, since they are the default items..
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: swan on November 23, 2010, 09:28:03 AM
Has anyone got any ideas how to reset the credits.  We havent "opened" the shop yet but some people have way more than others.  Also can the Top Purchasers be cleared?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Daniel15 on November 30, 2010, 06:00:17 AM
For people that don't get replies to this topic, I'd suggest to post to the SMFShop support forum at www.smfshop.com. Often it's hard to manage all the posts in here :)
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: eyo on December 02, 2010, 10:40:08 AM
subs.php error here on install. :( 2.0rc4
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on December 02, 2010, 12:20:10 PM
Can you post the full error like which step on Subs.php it failed?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: eyo on December 02, 2010, 04:45:07 PM
*    16.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Add Before    ./Sources/Subs.php    Test failed


im just running a theme called "reference" fwiw, really basic theme for a default layout
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: hcfwesker on December 06, 2010, 02:00:28 AM
Quote from: XxDevilxX on November 08, 2010, 09:21:36 AM
Hey

I'm using SMF2 CR3, I installed SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 and it worked but the problem is items pics dont appear, look at the pic i uploaded

plz, plz I need your help guys

thanks

Just checked myself.  You'll have to goto Admin > Shop Administration > Add/edit/delete Items >   then, edit each item, selecting a pic from the Image dropdown, the image should show up immediately when selecting one.

Upload your own images under  Sources/shop/item_images folder.

Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: eyo on December 10, 2010, 02:32:29 AM
*    15.    Execute Modification    ./Themes/default/Display.template.php    Test failed
      1.    Add After    ./Themes/default/Display.template.php    Test failed
*    16.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Add Before    ./Sources/Subs.php    Test failed


please help me with this. im too scared to run into a board wipeout if i install this. would these errors affect its performace?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: hcfwesker on December 10, 2010, 04:57:50 PM
Quote from: ggman on December 10, 2010, 02:32:29 AM
*    15.    Execute Modification    ./Themes/default/Display.template.php    Test failed
      1.    Add After    ./Themes/default/Display.template.php    Test failed
*    16.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Add Before    ./Sources/Subs.php    Test failed


please help me with this. im too scared to run into a board wipeout if i install this. would these errors affect its performace?

The display template file affect shop related stuff showing in your members profiles , and "send other users money".

Subs.php is very important. 

They're both very easy adds.  You can attach both files here, and I'll add the edits for you, or you can use the package parser on the MOD page, with your version.

Also, please list which smf version you are using ;)
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: eyo on December 10, 2010, 09:36:59 PM
smf 2.0rc4
thanks in advance man. can you also point me where i can learn like basic editing for the easy packages? also i tried the package parser thing and was scared of all the error messages below and i dont understand what that thing really does so i didnt continue.

Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: hcfwesker on December 10, 2010, 10:55:18 PM
If you have msn, skype, or any other instant messenger, PM me with your contact name.  I'll teach you, for free lol, cause you do need to learn this stuff eventually :)

Also, I would actually recommend this Shop MOD (http://custom.simplemachines.org/mods/index.php?mod=1794) for RC4
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: eyo on December 11, 2010, 02:53:56 AM
ok thanks man i will pm you with all the msns and skypes i got lol.
i need someone to point me in the right direction, i think im a bit overwhelmed by everything i see. :)


ok ill downlaod the sa shop mod instead
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Saintcrow on December 16, 2010, 11:37:43 AM
Is there a chance to mod the Shop so I can add Items to the members invetory through the shop administration ??
Title: Zero Credits = banned
Post by: Biology Forums on December 22, 2010, 12:04:45 AM
Is there a way to configure SMFShop (Shop Mod), where if a user gets 0 credits, they are automatically banned? Every user starts off with 50 points (10 point decrease for every new topic started)... I get a lot of people starting topics (asking questions) without willing to respond to any questions of other users; anyway of doing this?
Title: Re: Zero Credits = banned
Post by: live627 on December 22, 2010, 01:02:22 AM
there is... but smfshop?
Title: Re: Zero Credits = banned
Post by: Biology Forums on December 22, 2010, 10:22:50 AM
What do you mean?
Title: Re: Zero Credits = banned
Post by: DoctorMalboro on December 22, 2010, 02:41:19 PM
and how do they raise their points? how is the system?
Title: Re: Zero Credits = banned
Post by: Biology Forums on December 22, 2010, 06:44:06 PM
If they post, they get 15 points. If they start a new topic, they get -10.
Title: Re: Zero Credits = banned
Post by: Biology Forums on December 22, 2010, 09:01:03 PM
Can someone please help me with this mod?

Is there a way to configure SMFShop (Shop Mod), where if a user gets 0 credits, they are automatically banned? Every user starts off with 50 points (10 point decrease for every new topic started)... I get a lot of people starting topics (asking questions) without willing to respond to any questions of other users; anyway of doing this?
Title: Re: Zero Credits = banned
Post by: busterone on December 22, 2010, 09:13:26 PM
You will probably get better results if you ask in that mod's support topic. vbgamer wrote it, so he would be the best one to ask.
http://www.simplemachines.org/community/index.php?topic=22396.0 (http://www.simplemachines.org/community/index.php?topic=22396.0)

edit- shuban -  It looks like this topic got merged to the correct board.  :D
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: hcfwesker on December 26, 2010, 07:12:31 PM
Why not just goto the Shop page on your forum, and look for members in the negative, then ban them.  I've honestly never seen a forum that punished members for making new topics.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: ford1001 on December 28, 2010, 01:02:10 AM
i uninstalled this mod because i wasn't using it, but the button isn't going away,
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on December 28, 2010, 01:27:38 AM
index.template.php for SMF 1.1.x Subs.php for SMF 2.0 to remove button
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Saintcrow on January 03, 2011, 03:49:01 AM
Quote from: Saintcrow on December 16, 2010, 11:37:43 AM
Is there a chance to mod the Shop so I can add Items to the members invetory through the shop administration ??

any Idea ??
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: souljaa on January 10, 2011, 05:39:18 PM
Hey guys! Well I installed the Shop MOD on my forum...the button shows up, it works well, everything is going smoothly, except the amount of Points doesn't show up in the User Info..like when we post, the amount we have is nowhere to be shown..I know we have to edit the Display.template.php file..which I did..on the default version and my theme one as well..But nothing seems to be showing up :S...Any help would be greatly appreciated!
PS: Even when I put my theme to the default one, it doesn't work, nothing shows up.
I've attached my theme display.template.php file if anyone could take a look at it.
Thanks a lot!
Souljaa
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Quexinos on February 02, 2011, 12:22:04 AM
Does anyone have mods for this like the DisplayNameCSS for SMF 2.0?... I looked at the site but all of the ones there are for SMF 1.1.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Mari-chi on February 06, 2011, 08:33:09 PM
Really cool mod; I'm glad to have found this! :)

Just wondering: Does anyone know how to make it so that credits aren't given in boards that don't raise post counts?

I've disabled the 'count posts' feature on one particular board. I made a test post, and although my post count was not increased, I got credits for posting. >_<

Thanks for any input. :)
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: hcfwesker on February 06, 2011, 10:06:06 PM
Quote from: Mari-chi on February 06, 2011, 08:33:09 PM
Just wondering: Does anyone know how to make it so that credits aren't given in boards that don't raise post counts?

you'll have to manually go to each board'd modify page, and there are 2 options for the shop money on each board.  just uncheck box options, and it should work.

you probably weren't aware the options were there ;)
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Mari-chi on February 06, 2011, 10:11:55 PM
No, I checked each board--but it's not there. :S There's category, order, full name, description, permission profile, allowed groups, moderators, count posts, and board theme, but nothing that allows me to check/uncheck Credit count. Maybe I have to manually add in the code... Which part of the code dictates that?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: hcfwesker on February 06, 2011, 11:08:30 PM
Quote from: Mari-chi on February 06, 2011, 10:11:55 PM
No, I checked each board--but it's not there. :S There's category, order, full name, description, permission profile, allowed groups, moderators, count posts, and board theme, but nothing that allows me to check/uncheck Credit count. Maybe I have to manually add in the code... Which part of the code dictates that?

any files that has ManageBoards in the php file title.  Whichever edits the shop mod was suppose to do, there, may not have gotten edited correctly.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Mari-chi on February 06, 2011, 11:32:15 PM
Hmm, I don't see any instructions telling me to edit any ManageBoards files: http://custom.simplemachines.org/mods/index.php?action=parse Would you be able to tell me?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: tempneff on February 09, 2011, 04:06:09 AM
Will someone kindly help me to figure out why me item doesn't work. I am just trying to make a simple, no input item. Attached is the test item template I used and my item. Thanks

When I upload my item, the 'add items' function gives an error

"The website encountered an error while retrieving http://tempneff.com/b/index.php?action=shop_items_edit. It may be down for maintenance or configured incorrectly."

when I remove the file it then becomes functioning again.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: snyperthugs on February 17, 2011, 12:21:23 PM
OK, Is there a way to make this mod work with CPAlead.com?? So when they do a survey it will add points to their SMF/Mysite account?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: SA™ on February 17, 2011, 12:31:54 PM
chnage

class item_pancakesextends itemTemplate

to

class item_pancakes extends itemTemplate

Quote from: tempneff on February 09, 2011, 04:06:09 AM
Will someone kindly help me to figure out why me item doesn't work. I am just trying to make a simple, no input item. Attached is the test item template I used and my item. Thanks

When I upload my item, the 'add items' function gives an error

"The website encountered an error while retrieving http://tempneff.com/b/index.php?action=shop_items_edit. It may be down for maintenance or configured incorrectly."

when I remove the file it then becomes functioning again.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: grynmoors on February 22, 2011, 08:21:59 PM
Description: Compatible With:
    1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.8, 1.1.9, 1.1.10, 1.1.11, 1.1.12, 1.1.13, 2.0 RC3, 2.0 RC4, 2.0 RC5

When a purchase for "Make Topic Sticky" is attempted to be used, the user receives the following error:

Database Error
Please try again. If you come back to this error screen, report the error to an administrator.

SMF 2.0 RC5 Simple Portal 2.3.3

Is this related to permissions? Settings? Bug? Is there a solution and what is it? Thanks much for nice mod, members are having a lot of fun with it.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Biology Forums on February 23, 2011, 12:44:14 AM
how do you remove the decimal from the points that are shown underneath a persons avatar when displaying a thread.

i.e. 20345.00 credits --> 20345 credits
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Genesisnx on February 26, 2011, 12:15:12 PM
Quote from: Groovystar on September 28, 2010, 10:44:02 PM
I have 2 serious problems with our shop. I'm using 2.0 RC3 version. 

1. We have an RPG and I only want it to count credits on the roleplay boards, it is counting them everywhere and there is no little box to shut it on or off. It is destroying the careful system we had going before this disastrous upgrade, I need a fix on this ASAP.

2. Even worse, whenever someone buys one item, it gives them double, triple or however many of that item they can afford, draining ALL their points however many they had to spare. This started a few days ago out of nowhere I need serious help fixing this, PLEASE PLEASE.

Having this problem too on 2.0 RC5, can't seem to find how to turn it off in specific boards any more! The option is just not there and its ruining our RP. A fix to this would be really nice.  :(
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: TheMortician4 on March 09, 2011, 01:49:56 PM
I upgraded to the SMFShop 3.1.6 mod and somehow now have a duplicate credit line in the members profiles. How do I remove this?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 09, 2011, 01:54:02 PM
Open up Profile.template and remove the extra shop entry
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: TheMortician4 on March 09, 2011, 01:56:09 PM
St
Quote from: vbgamer45 on March 09, 2011, 01:54:02 PM
Open up Profile.template and remove the extra shop entry
ill a newbie, could you give me a little more detail on what to look for. Don't want to make a mistake.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 09, 2011, 01:59:02 PM
At this time I do not have time to look into exact issues but can give you a general idea what files are involved.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: TheMortician4 on March 09, 2011, 02:02:04 PM
Quote from: vbgamer45 on March 09, 2011, 01:59:02 PM
At this time I do not have time to look into exact issues but can give you a general idea what files are involved.

I uninstalled SMF Shop and upgraded to the latest mod.  When I look at any members profile, I see 2 lines for the credits, I attached the Screen shot in the original post.


SMF 1.1.13, and Simple Portal 2.3.3, SMF Shop SMFShop    3.1.6
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: TheMortician4 on March 09, 2011, 02:12:45 PM
Quote from: TheMortician4 on March 09, 2011, 02:02:04 PM
Quote from: vbgamer45 on March 09, 2011, 01:59:02 PM
At this time I do not have time to look into exact issues but can give you a general idea what files are involved.

I uninstalled SMF Shop and upgraded to the latest mod.  When I look at any members profile, I see 2 lines for the credits, I attached the Screen shot in the original post.


SMF 1.1.13, and Simple Portal 2.3.3, SMF Shop SMFShop    3.1.6

Got it, the file was in the shop folder...


Thank you
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on March 13, 2011, 10:48:12 PM
I wanted to install this mod. It's just I get one error. The tag is missing.



Find:
'mlist' => array(    //This tag is missing


Add before
// Begin SMFShop code
// !!! Add subactions?
'shop' => array( 'title' => $txt['shop_menu_button'], 'href' => $scripturl . '?action=shop', 'show' => true, ),
// End SMFShop code

Can any one tell me where I can add the tag in at so I can get this MOD installed.


Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 13, 2011, 10:58:20 PM
mlist should be in there if not look for calender or any other action.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on March 13, 2011, 11:30:05 PM
Quote from: vbgamer45 on March 13, 2011, 10:58:20 PM
mlist should be in there if not look for calender or any other action.

It was all the way at the bottom of the page. I added what was missing and force the install. It seems to be working. How Ever this is not what I was looking for.

http://www.simplemachines.org/community/index.php?topic=426107.0 (http://www.simplemachines.org/community/index.php?topic=426107.0)

Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on March 14, 2011, 02:21:47 PM
Creating my own Item for SMF Shop.

I setting up a PHP script to let me add Items into my shop, with some new changes and I'm a little lost on this, since I never coded in PHP like this before.

Can I ask some general questions about putting some of this crap together.?

1) Can I add my own fields in.
2) Is how do I get the users current credits.
3) I need to setup a new table and add data to it.
4) Sending emails

See my idea is for users who post messages can get credits. With these credits they can buy games, Since my forums section is all about games.

1) I need to add an option to it called Shipping. This is the amount of credits the user needs to ship the game to them. This can be changed when I'm adding a new item.

2) I need to get the users credits and subtract the shipping credits from there total. If they don't have enough credits. Its stops there.

3) I want to be able to save this to a mysql table. {db_prefix}invoices

4) I need to send the buyer and seller an email.


Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on March 15, 2011, 05:23:22 PM
Well I see that's it's not going to happen, So can any one tell me where I can get help in making a item for Shop

Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 15, 2011, 08:02:03 PM
Check out smfshop.com they have some examples but mostly it is on your own for custom item development.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on March 15, 2011, 08:55:00 PM
Oh, Cool. Thank You.

Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on March 16, 2011, 11:07:59 PM
Well if any one is still watching this forum. I'm not getting any where on SMFShop. and I just created a new item and I get ERROR: Could not create instance of 'Item_Sale' item!

I made this one real simple and I checked every thing 10 times and I still get this dun result.

PLEASE any one have any ideas on what I could be doing wrong
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on March 18, 2011, 03:13:34 PM
I really could use some help here.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: WasdMan on March 23, 2011, 01:29:43 PM
Download file xxx problem

1. Activated the download function.
2. File name: file_name_here.txt
3. File Path (INCLUDING FILE NAME): /var/www/virtual/myportal.com/htdocs/files/file_name_here.txt

After the inventory is included in your purchase this item.
Use, the browser writes:

File Not Found
Firefox can not find the file (s) http://myportal.com/index.php?action=shop; inv3 do = view & id = 21 places.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on March 23, 2011, 03:18:03 PM
Make sure your using from the root of your web site. So like this

root/files/misc/filename.zip -->> This is where the file should be on your server.

Then the

File Name : filename.zip
URL : /files/misc/filename.zip

That should fix that.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: WasdMan on March 24, 2011, 04:03:14 AM
I tried many ways to provide access but failed.

File Path (INCLUDING FILE NAME): /var/www/virtual/myportal.com/htdocs/files/file_name_here.txt

The Settings.php as follows: $boarddir = '/var/www/virtual/myportal.com/htdocs';      # The absolute path to the forum's folder. (not just '.'!)

What would be the solution?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on March 24, 2011, 08:00:15 AM
Then use the full URL. http://www.domain.com/path to file/filename.zip

Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: WasdMan on March 24, 2011, 08:13:44 AM
I gave the exact location of the file. But I get this error message:

File Not Found
Firefox can not find the file (s) http://myportal.com/index.php?action=shop; inv3do=view&id=27 places.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on March 24, 2011, 08:50:33 AM
Ok, what I did was I attached a new item for you. It's provides a link to the file that you want users to download. Remember, When you add this new Item. Use the Full URL.

Test the URL. Copy and paste the URL in your browser and press enter. When your browser starts the download. Then you know your using the right URL.

Upload the download.php file into your root/shop/shop/items folder. Then as all ways add a new item.

Sorry. I forgot that in that item there is a bug in it. I will have to write a new one. Oh, and did you download the update for ShopAdmin.php too




Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on March 24, 2011, 10:50:59 AM
Any way that last file I sent, like I said will give the user a Link. The user will have to click on the link in order to download the file. In this post I attached a new file and it was a pain. Any way if you set the path right. It will work. I tested this on both image files and well as zip files and it works.

The only bug in it is that it won't return the line return 'File has been sent'; after the download starts. That's just a bug in Shop. All so if this can't find the file. It will error out and show you the path and file name of the file your trying to download. That should give you a better idea on what path to use..

Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Dreadfear on March 24, 2011, 12:17:35 PM
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?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on March 24, 2011, 01:00:56 PM
It is, I would have to play with that idea. I had the same idea. That users can buy Credits with paypal. The idea is the same. It's the same idea using a button. If you log on your paypal and create a new button. I'm sorry I don't remember where. That's the idea I had. is to use a the same button option.



Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: WasdMan on March 26, 2011, 06:37:29 AM
I do not work on bank interest
Missing a file?
Or something else?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on March 26, 2011, 08:40:46 AM
? =What, Try giving more detail

You don't don't work on bank interest. <-- ?
File missing or some thing else <-- ?. Try uploading the missing file.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: shahjr on March 26, 2011, 09:01:21 PM
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 shop/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 sa 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

edit: added colon after msql_close() and commented out global context
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on March 26, 2011, 09:39:17 PM
Hint, There is NO shop2 folder.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: shahjr on March 26, 2011, 11:52:06 PM
Quote from: bigjoe11a on March 26, 2011, 09:39:17 PM
Hint, There is NO shop2 folder.

edited:

i first had that post on sa shop. i couldnt get it working so i uninstalled it and got smf shop and had the same issue. sorry, forgot to edit original post.

so anyclue whats going on?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on March 27, 2011, 01:57:06 AM
Well the older version of shop uses a folder called shop2, when the newer version only uses the folder called shop. So upload your items in the shop/items folder

Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: shahjr on March 27, 2011, 07:40:50 AM
hmm, i made sure that its under shop folder. also i edited my code again and found some bugs, like adding return statement. but it still wont work
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on March 27, 2011, 10:10:52 AM
Ok, give me like 24 hours to play with your code above and I'll let you know what I find
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: shahjr on March 27, 2011, 10:52:50 AM
Quote from: bigjoe11a on March 27, 2011, 10:10:52 AM
Ok, give me like 24 hours to play with your code above and I'll let you know what I find

k thanks. above two tables come from amxbans for counter strike game servers. amxbans is a system where you can ban a hacker or add server admin online. what i was trying to achieve was that members on my forum could buy admin from shop and i had that php script to modify corresponding tables.

let me know if you dont understand something.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on March 27, 2011, 11:15:36 AM
Ok, well that sounds like a cool idea. I do have one question for you. Is the server that your running SMF on the same server that the mysql database is on. and I'm all most done here.

The other thing is you didn't give me an idea of the table lay out in the database's that your using so I added some comments at the bottom of the item of what the lay out of you tables should look like.

The only error I saw was line 79.
//$id = mysql_insert_id(); You can't get an insert id until after the insert'

You have to do an insert before you can get the insert id of the last record inserted.

I should be posting an updated Item for you in about 15 or 20 minutes.

Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on March 27, 2011, 11:28:02 AM
Ok, here you go. Just make sure of the database tables are right. If you still get errors. Let me what the errors are.

Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: shahjr on March 27, 2011, 12:03:11 PM
Quote from: bigjoe11a on March 27, 2011, 11:28:02 AM
Ok, here you go. Just make sure of the database tables are right. If you still get errors. Let me what the errors are.

omg bro, i love you. now it appears and i can add people on db, table structure is pretty much same. however, that db is different my my smf db.

however, there is one thing that is not working. when i enter my username and steamid and click submit, the page takes a while to reload
and eventually this message pops up

QuoteServer error
The website encountered an error while retrieving http://ratedxclan.net/index.php?action=shop;do=inv3&id=3. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this web page later.
HTTP Error 500 (Internal Server Error):An unexpected condition was encountered while the server was attempting to fulfill the request

however, i was monitoring phpmyadmin, it adds my name and steam id instantly in the database. also then i click "back" on my browser,  this message pops up. and i am able to use the item again.
Quote'ERROR: Please enter a new username!
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on March 27, 2011, 03:49:50 PM
Ok, The 1st error your getting is related to the server it self. I would  try running your item more the 1 time to see what happens again.

and the 2nd error your getting is because when you click on the go back button. and because of the 1st error. It blanks out the username from the forum.

Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: frx on March 27, 2011, 06:11:53 PM
Will there be an option to reset all credits at same time?

Or the only way to do it is in the myphpadmin tables?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on March 27, 2011, 09:09:42 PM
Quote from: frx on March 27, 2011, 06:11:53 PM
Will there be an option to reset all credits at same time?

Or the only way to do it is in the myphpadmin tables?

Well resetting users credits to 0 is not a very good idea. Since your users spend time posting topic's.
And doing some thing like that would piss off a lot of users. So that's is not a very good idea.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: venex on April 12, 2011, 09:08:31 PM
vbgamer are you interested on adding some features and SELLING ME (and who ever you want) the upgrade? I love this MOD and I think if somethings are added to it, it would be the best MOD.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: vbgamer45 on April 13, 2011, 01:42:45 PM
At this time I am pretty busy with projects so have no time.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Biology Forums on April 14, 2011, 10:26:20 PM
Hi everyone,

Is there a way to program this mod so that if you're the first one to respond to a topic, you get a different amount of points than if you were the 2nd or 3rd person to respond, etc. ?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: venex on April 15, 2011, 01:22:59 AM
Quote from: vbgamer45 on April 13, 2011, 01:42:45 PM
At this time I am pretty busy with projects so have no time.
Well.. whenever you have time, just let me know. I having some issues with my users because they are getting too rich and whenever I put an item, one person buys it all and then resell it for more coins. So I would like to have a buying limit. Also, it would be great to have a transaction log. People often say "i sent him X amount of coins" and the other one says that he didn't receive it... or things like that. So yeah, those are the two main features that I would be really interested on buying if you can do them some day ;D.

Thanks for answering.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on April 15, 2011, 05:46:28 AM
Quote from: shuban on April 14, 2011, 10:26:20 PM
Hi everyone,

Is there a way to program this mod so that if you're the first one to respond to a topic, you get a different amount of points than if you were the 2nd or 3rd person to respond, etc. ?

Just set the points you wanted to set in the settings page. Like points the user will get when they post a topic or reply to a topic. and leave the per word to 0. and per letter (Char) to 0 too.
Quote from: venex on April 15, 2011, 01:22:59 AM
Quote from: vbgamer45 on April 13, 2011, 01:42:45 PM
At this time I am pretty busy with projects so have no time.
Well.. whenever you have time, just let me know. I having some issues with my users because they are getting too rich and whenever I put an item, one person buys it all and then resell it for more coins. So I would like to have a buying limit. Also, it would be great to have a transaction log. People often say "i sent him X amount of coins" and the other one says that he didn't receive it... or things like that. So yeah, those are the two main features that I would be really interested on buying if you can do them some day ;D.

Thanks for answering.

Well try increasing the amount of the price for the item. If the Item is set for 2500 credits. and your settings allows per word or per Char (Letter) that's why. Try setting these to 0. Just apply the credits given per topic and reply. Then increase the amount for credits for the item.

Remember this is the idea behind SMFShop is for users to buy and sell items that you offer. If all else fails limit the number of items to have for sale.

Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Biology Forums on April 15, 2011, 03:50:51 PM
Quote from: bigjoe11a on April 15, 2011, 05:46:28 AM

I think you misunderstood my question. The person who answers FIRST, gets say 30 points, and the person who answers second within that same topic gets 15 points. The person who answers third gets 15, and so on. I just want to encourage people to answer questions right away so that they get double the points, for example, than if they were 2nd, 3rd, or fourth to answer.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Kindred on April 15, 2011, 05:47:54 PM
no...  the mod is not set up to do anything like that. Doing that would require additional logic and a re-write of the post-point system
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Biology Forums on April 15, 2011, 08:29:41 PM
Quote from: Kindred on April 15, 2011, 05:47:54 PM
no...  the mod is not set up to do anything like that. Doing that would require additional logic and a re-write of the post-point system

Crap, I wish I knew how to program this stuff  :-[
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on April 15, 2011, 09:01:09 PM
Yes, he's right. It doesn't work like that. Sorry. Can I ask why you wanted different amounts to users to post replies and so on.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Biology Forums on April 16, 2011, 01:06:01 PM
As an incentive to be the first to answer. Like you'd find on Yahoo Answers. It's a fun way of competing with those who want the points.

http://biology-forums.com
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: venex on April 16, 2011, 03:51:27 PM
Quote from: bigjoe11a on April 15, 2011, 05:46:28 AM
Quote from: shuban on April 14, 2011, 10:26:20 PM
Hi everyone,

Is there a way to program this mod so that if you're the first one to respond to a topic, you get a different amount of points than if you were the 2nd or 3rd person to respond, etc. ?

Just set the points you wanted to set in the settings page. Like points the user will get when they post a topic or reply to a topic. and leave the per word to 0. and per letter (Char) to 0 too.
Quote from: venex on April 15, 2011, 01:22:59 AM
Quote from: vbgamer45 on April 13, 2011, 01:42:45 PM
At this time I am pretty busy with projects so have no time.
Well.. whenever you have time, just let me know. I having some issues with my users because they are getting too rich and whenever I put an item, one person buys it all and then resell it for more coins. So I would like to have a buying limit. Also, it would be great to have a transaction log. People often say "i sent him X amount of coins" and the other one says that he didn't receive it... or things like that. So yeah, those are the two main features that I would be really interested on buying if you can do them some day ;D.

Thanks for answering.

Well try increasing the amount of the price for the item. If the Item is set for 2500 credits. and your settings allows per word or per Char (Letter) that's why. Try setting these to 0. Just apply the credits given per topic and reply. Then increase the amount for credits for the item.

Remember this is the idea behind SMFShop is for users to buy and sell items that you offer. If all else fails limit the number of items to have for sale.
My items are way more expensive than that lol. It's amazing how my users developed a merchant ability over the last 2 years. It's kind o my fault because I installed the shop with (i think) 2% interest in the bank and did not use the shop that much. Obviously if you keep your money in the bank for long time without touching it, 3 months later you will have a lot of money (that doesn't happen in real life tho.. lol). So yeah, now poeple in my forum sell credits for real money, buy stuff over the internet and can even buy membership subscription since a person asks for forum credits and in exchange, he would pay for the user's membership subscription to the forum. My cheapest items are like 1500 coins. Yesterday I included more items and those are like 10000 coins. I put the interest to 1% and increase the fees of withdrawing and depositing from and to the bank. And I just give 6 coins per comment and 11 per topic. I don't have the "coins per word or per letter... I never had that. Users are not happy but that's the only way I could do it. Plus, one of my users gave me script to add to the shop that let the admin set up a limit per item. If vbgamer wants this to be in the next release, I could put the download link here. Now, I would just need the transactions log.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: anakmacan on April 20, 2011, 01:40:18 AM
Quote from: grynmoors on February 22, 2011, 08:21:59 PM
When a purchase for "Make Topic Sticky" is attempted to be used, the user receives the following error:

Database Error
Please try again. If you come back to this error screen, report the error to an administrator.


Same problem here.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: venex on April 25, 2011, 04:06:13 AM
I found a bug that can duplicate the money u have in the bank... (well... someone else in my forum found it and used it -.-! he's banned now lol... ANOTHER user that knew the bug told us)...

Idk if its safe to post it here... so I'm just gonna ask if you want me to post it here or u want me to send u a PM.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on April 25, 2011, 08:08:06 AM
Just post the bug problem here.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: live627 on April 25, 2011, 08:45:47 PM
Quote from: venex on April 25, 2011, 04:06:13 AM
Idk if its safe to post it here
You're fee to do so
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: treehugger on April 27, 2011, 04:54:00 PM
Using SMF2.0 RC5 on my kids site and would like to let one of the older kids administrate the Shop without giving her full GM/Admin permissions.

Is it possible for a unique Membergroup to administrate the Shop please?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on April 27, 2011, 07:44:59 PM
All you have to do is create a new members group and give access to the admin shop. Then just add the user to the new member group that you want to Admin the shop.


Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: treehugger on April 28, 2011, 03:36:49 AM
My problem is in figuring out where/how to give the admin permission?

In membergroup permissions we have Manage Gallery, Administrate Quiz etc but nothing that I can see for the Shop - just

Allow access to SMF Shop   
Buy Items      
View Other Members' Inventory   
Send Money to Someone    
Send an Item to Someone   
Bank      
Trade Center
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on April 28, 2011, 05:04:43 AM
Look at the premissions for the member group. There should be an option for your shop.

Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: treehugger on April 28, 2011, 10:17:53 AM
Have tried Admin/Shop Admin and Admin/Members/Permissions - nowhere can I see something that lets me let a member administrate?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on April 28, 2011, 11:27:05 AM
Ok, Sorry I don't under stand. I remember seeing it before and I can't under stand why it's not showing now. If you do this.

1) Create a new member Group and call it Admin Shop
2) click on premissions and add a new premission to the Admin Shop Group and this will add it to the list using the advance options from the bottom.
3) Then modify the premissions for that group. I remember seeing a option that said Admin Shop. This should let any one in this group to Admin the Shop and well I don't see that option.

I'll try looking a round some more. I thought there was a way to do this.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: treehugger on April 28, 2011, 05:19:56 PM
You say "add a new permission to the Admin Shop Group" - doesn't that involve writing a scary amount of php? :o
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on April 28, 2011, 08:32:40 PM
Ah. No. You just add a new Regular Group from the Group Members setup.

Click on Admin and then click on Group Members from the left hand side of the page. At the top you will see Regular Groups. Just add a new group. You then can add and change premissions for that group. It's a way for add paid sunscriptions and so on to your forum. The ideas are just about end less.

Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: treehugger on April 29, 2011, 10:44:34 AM
Sorry, I didn't explain very well. I already have the new membergroup - what I meant when I said "doesn't that involve writing a scary amount of php" was that because there isn't a permission to administrate the shop anywhere on the admin permission list, I'd have to write that new permission and add it to the list first.

My reason for posting on this thread was to find out if an Administrate Shop permission already exists and I'm just not seeing it, or if someone already has the code that is needed to add this permission to the list.

Edited to say I found the following on SMFShop site but there isn't 'shop_trade' => false, in my Sources/ManagePermissions.php but there's 'shop_trade' => array(false, 'shop', 'shop'), - will this be the same thing?

The problem with that is that there's no "Shop administration" permission by default, only admins can access the shop admin.
First, follow these instructions:
Quote from: Daniel15 on November 26, 2007, 12:40:35 PM
This requires some slight modifications of SMF's files:
In Sources/ManagePermissions.php, find:
Code: [Select]
'shop_trade' => false,
Add after:
Code: [Select]
'shop_admin' => false,

In Themes/default/languages/ManagePermissions.english.php, find:
Code: [Select]
$txt['permissionname_shop_trade'] = 'Trade Centre';
Add after:
Code: [Select]
$txt['permissionname_shop_admin'] = 'Shop Administration';
Then create a new membergroup, and give that group the "Shop Administration" permission. This should do what you want it to do
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: elf_fu on April 30, 2011, 12:17:33 AM
Installed this five minutes ago on SMF RC5, Argentum 2 theme with Ajax chat, event reminder, add stars to profile and Tiny Portal mods.

Went without a single hitch. I was able to edit the only failed test file, .Sources/Subs.php by myself--and let me just say that I am a complete and utter newb to this--so "without a problem," for install is a beautiful thing.

Now, mind you, I have to learn the settings and ins and out...but still. I think the hardest part turned out the easiest. Thank you for this fantastic mod!
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: elf_fu on April 30, 2011, 08:29:17 AM
Well, now I do have a question :3

SMF Version: RC5
Mods installed: SMF Shop, Event Reminder, Add stars to Profile, Tiny Portal, Ajax Integration, Contact Page
Theme: Argentum2

Everything appears to have installed and is working fine so far, except I thought I had only 1 Failed Test file, turns out I have two. ./Themes/core/Display.template.php needs to be edited. Specifically I believe I need to:

Find:
// Show how many posts they have made.
if (!isset($context['disabled_fields']['posts']))
echo '
<li class="postcount">', $txt['member_postcount'], ': ', $message['member']['posts'], '</li>';


And add after:
// Begin SMFShop 2.3 (Build 11) code
echo '
<li>', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '</li>
<li><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">', $txt['shop_display_view_inventory'], '</a></li>
<li><a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">', $txt['shop_display_send_money'], ' ', $message['member']['name'], '</a></li>';
//END SMFShop code



But NO where can my tired eyes find what I need in order to paste that.

On top of that, my theme doesn't appear to have a profile.template file, so I have NO idea where to

Find:
// Only show the email address fully if it's not hidden - and we reveal the email.

And replace with:

// Begin SMFShop code
// !!! Disabled fields thingy
echo '
<dt>', $txt['shop_profile_credits'], ':</dt>
<dd>', $modSettings['shopCurrencyPrefix'], $context['member']['money'], $modSettings['shopCurrencySuffix'], '</dd>';
// End SMFShop code


Anyone have any ideas how I can have purchased inventory items and currency amount show on the actual profile as well as beside the post?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on April 30, 2011, 09:23:55 AM
when you installed the SMF Shop to SMF. and you didn't get any errors. Then every thing should have been installed correctly.

and the other option is that the php scripts are so old I don't think any one can upgrade the scripts. I tryied and got errors and options that I added won't work. I have to get a basic under standing of just what Dannel is doing. and since I can't get any one to help. A newer version is at a stand still.

Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: elf_fu on April 30, 2011, 10:37:39 AM
Quote from: bigjoe11a on April 30, 2011, 09:23:55 AM
when you installed the SMF Shop to SMF. and you didn't get any errors. Then every thing should have been installed correctly.

and the other option is that the php scripts are so old I don't think any one can upgrade the scripts. I tryied and got errors and options that I added won't work. I have to get a basic under standing of just what Dannel is doing. and since I can't get any one to help. A newer version is at a stand still.

As I said in my original post, I thought I only had 1 error I had fixed by editing myself. Specifically, I edited the .Sources/Subs.php.

But when I double checked my little note pad remind of Test Failed, I realized I had 2 Test Failed errors, only fixing the 1, and I that I did not fix nor edit the Test Failed for the file: .Themes/core/Display.template.php.

Now, as I said, the Parser did not give me any suggestion as to how to fix or edit the .Themes/core/display.template.php, only for /default/--the default is fine. The mod installed the correct edits. 

However, I cannot FIND the "find" part of the code anywhere to start inserting or adding what I believe may be missing--since it doesn't display shop items in the profile. You dig? So no profile display = me thinking I need to edit the file in .Themes/core/display.template.php to get it to work. Only...I don't know where.

And yet again--it DID install correctly, as correctly as it can as in it is working. I have no errors when I use it. I just don't have items displayed in member profiles.

Does that make it any easier for you to understand my issue?
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: elf_fu on April 30, 2011, 12:16:28 PM
Quote from: treehugger on April 29, 2011, 10:44:34 AM
Sorry, I didn't explain very well. I already have the new membergroup - what I meant when I said "doesn't that involve writing a scary amount of php" was that because there isn't a permission to administrate the shop anywhere on the admin permission list, I'd have to write that new permission and add it to the list first.

My reason for posting on this thread was to find out if an Administrate Shop permission already exists and I'm just not seeing it, or if someone already has the code that is needed to add this permission to the list.

Edited to say I found the following on SMFShop site but there isn't 'shop_trade' => false, in my Sources/ManagePermissions.php but there's 'shop_trade' => array(false, 'shop', 'shop'), - will this be the same thing?

The problem with that is that there's no "Shop administration" permission by default, only admins can access the shop admin.
First, follow these instructions:
Quote from: Daniel15 on November 26, 2007, 12:40:35 PM
This requires some slight modifications of SMF's files:
In Sources/ManagePermissions.php, find:
Code: [Select]
            'shop_trade' => false,
Add after:
Code: [Select]
            'shop_admin' => false,

In Themes/default/languages/ManagePermissions.english.php, find:
Code: [Select]
$txt['permissionname_shop_trade'] = 'Trade Centre';
Add after:
Code: [Select]
$txt['permissionname_shop_admin'] = 'Shop Administration';
Then create a new membergroup, and give that group the "Shop Administration" permission. This should do what you want it to do


I went to my root folder, found my Sources folder (which ought to be in your root folder, not inside anything) and was able to find 'shop_trade' => array(false, 'shop', 'shop'),. After it, I added 'shop_admin' => array (false, 'shop', 'shop'), then saved the file and uploaded.

Second, I edited the en as above, copied the file over the original, visited my Admin panel> Permissions, chose my Shop Owners group, and there was then the option to allow them administration access to the Shops. I am using SMF RC5 with the theme: Argentum2

No errors yet. I haven't had any time to rope any members into the group to test yet. I will get back to you on how that goes.

While the above edits gave me no errors, logging into an account that isn't an admin reveals I can't for the LIFE of me find the link to admin it. :/ So.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: treehugger on April 30, 2011, 04:34:03 PM
It always seems such a shame when good mods aren't supported longterm. Have decided to go with SA Shop - the mods seem almost the same but the support is better.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on April 30, 2011, 05:25:54 PM
Quote from: treehugger on April 30, 2011, 04:34:03 PM
It always seems such a shame when good mods aren't supported longterm. Have decided to go with SA Shop - the mods seem almost the same but the support is better.

That would be a better idea. It's just that it doesn't support SMF RC5. only SMF Shop does. That's what sucks.

Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: treehugger on April 30, 2011, 05:36:21 PM
Say on the mod site here that SA Shop 0.7 is for 2.0 RC5 :)
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on April 30, 2011, 05:42:48 PM
Yes I know. I was thinking of some thing else and that mod won't install. Sorry about that.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on April 30, 2011, 05:53:14 PM
Ok, Elf, Look at the image I attached to this message.

Do You have this option in the premissions.

Goto Admin. Click on premissions. and edit the presmissions for Global Moderator. On the right side of the page you should see SMF Shop

Do you see Shop Administration [] with a check box next to it.
if you check this. and save it. You will be able to set up any Members group you want too edit or change your SMF Shop.



Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: elf_fu on May 01, 2011, 01:22:09 AM
I have that clicked and enabled for the group : Shop owners. I have now enabled it for GLobal Mods as well.

I just don't see the link for it anywhere when I log out to my normal user account added to Shop owners group?

At this point, I'd go with the other updated Mod as well if I could, but I am such a beginner and this is such a hassle to learn, I'm afraid uninstalling and trying for the other would end up being useless for me, as I am just not comfortable enough with code yet.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on May 01, 2011, 02:44:57 AM
So, so after checking that box. and clicking save. for the member group you wanted to give access to. Ok, next assign that member group to the Member group that you have the check box check for Admin Shop

Once you have done that. Log off as Admin and log back in using a user that's been  assigned to the new Member Group.

Then click Admin at the top of the page. and if you look on the Left side of the page. You should see all the links for the SMF Shop admin...

Remember that users that have this and only this Member Group will only have access to the SMF Shop


Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: elf_fu on May 01, 2011, 01:46:11 PM
Okay--I guess I haven't been clear: I've already done all of what you are telling me to do.

My issue currently is that there isn't a link to admin anything, anywhere :/ That's my problem. The edited worked fine. The clicking and adding to user group worked fine. There's no link to admin the shop for the normal user account who I have added to the Shop Owners group.

QuoteThen click Admin at the top of the page

There's nothing like that to click. Just "Shop." And there's no "Admin" link anywhere in there, either.

Here's a link to my normal user account, if you look to the left you can see under the tiny home icons I've added the name to the shop owners group, who have access to the shop: http://www.gr.2phatgeeks.com/index.php?action=profile;u=191

When logged in as that User name, I can't see a link to Admin anything :/

QuoteRemember that users that have this and only this Member Group will only have access to the SMF Shop

Yep. I know.

Thanks too, bigjoe11a, for trying to help me. <3
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on May 01, 2011, 02:16:08 PM
Ok, well let me show you some images then of what you should see when you are log in. This will give me a better idea of what's going on. Some thing is not right

I'll send them a little later on after I eat. and your welcome.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on May 01, 2011, 09:27:37 PM
Ok, now look at the images I have attached to this post. Look at this 1st one. Do you see you should see this after you log into your board as the Admin. The Admin has access to every thing.

If you do. Then click on it. then look at the 2st image. You should see that at the lower left side of your page.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: elf_fu on May 02, 2011, 02:20:45 AM
Okay, I'm confused. I don't have any problems with administrating or viewing the shop admin as the admin.When I am logged into a normal member user account that is not an admin--a user I added to the group: Shop Owners, who I have granted the permission: administrate shop, I can't see an admin link and cannot administrate the shop. Administrator account = fineNormal Member account added to user group granted permission to administrate shop = no link to admin shop. Does that make it any clearer?First 2 pics are when logged into the admin, second pic is when I am logged into a normal user added to the Shop Owner group, with "Administrate Shop," selected.

I too, have decided to jump ship. I realized last night that I should probably be using a shop mod that is a) active and b) has a support forum without bugging you endlessly about this. I am so sorry to take up so much of your time, bigjoe11a, and thank you profusely for trying to answer all of my questions and comments.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on May 02, 2011, 08:56:21 AM
np. Glad I was able to help.

Ok, if you see that the shop admin when your log in as a Admin. Good. Now log off and log back in again with a account that you have setup with the new group member that your created. Now at the top. Again you should see the Admin link at the top like you did when you log in as the admin.

If you see good. Click on it and you should then see if you can see the SMF Shop options on the left side of the page.

If you don't see the Admin Link at the top or do not have Admin Link. Then you don't have the Group Member setup right.

Later on Today I'll try doing the same thing your trying to do and see if I can get it to work.

Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: elf_fu on May 03, 2011, 08:30:08 AM
It's okay bigjoe11a, you don't have to anymore--I've uninstalled this mod and installed SA Shop, which works. Users can access the admin panel and such. Thanks again tho' for your help!
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on May 03, 2011, 09:00:05 AM
Oh, ok, np. I didn't like that MOD at all. That's why I installed the newer one. any way. Have fun with it.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Sev-M.C. on May 18, 2011, 11:49:06 AM
Is there a way to create post count based items?

Great Mod  :D
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on May 18, 2011, 12:12:04 PM
There can be, You would have to code it your self.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: MDL on May 19, 2011, 10:08:11 AM
When someone on my forum sends an item the receiver get a PM with de message body empty and subject "Untitle". I've revised the languages files and all the shop files but everything seems fine. What could be the problem? I use spanish_es-utf8 language and SMF 2.0 RC5

Thank you

Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on May 19, 2011, 10:38:10 AM
In your PHP code. and the sendpm();. Make sure the subject and message body are not blank or empty.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: MDL on May 19, 2011, 11:45:58 AM
I can't find the problem, can you help me reviewing the files? I think the problem is in them

Thank you!
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on May 19, 2011, 01:34:42 PM
Ok, I need you to send me the PHP code that your using for the item. When a user buys an item and then uses that item. I need to see the code for that.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: MDL on May 19, 2011, 03:28:13 PM
The problem appeara when sending an object to someone, the reciver get a message in blank. That is, when I go to http://myforum.com/index.php?action=shop;do=senditems and I send an item, the receiver get a PM in blank.

I hope you understand me, I'm spanish :)
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on May 19, 2011, 04:23:18 PM
Ok, well you not the one that sends a item. The user buys the item and then uses the item. All you have to do is send me the ?.php file. so I can look at the code. The ?.php is in the items folders. This is the item that the user buys that you setup to send them an PM with.

In the shop admin you is where you would setup the item to buy. After the user buys the item. The user then in turn can use the item. When the user uses the item. What ever you want to happen, Happens.

You mite not under stand just what I'm trying to tell you. What I need is the file. The file of the item that your using to send the PM..

The idea I get from you is that a user can buy an item and then use it to send some one a PM. Is that right. If so. Then I need to see the Item file.

Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: anakmacan on May 19, 2011, 05:32:55 PM
Anybody can help to make "Top Richest Members In Bank" hidden from the Shop page so only admin can see it ?

Nevermind, i just removed some codes and the list's gone :D
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: Kurakama on May 25, 2011, 03:18:31 PM
is there a way for dont get credits in some boards?

because when I make a board there is not an option for do it.

(http://imageshack.us/m/29/1661/sinttulo3ce.jpg)

any help will be appreciated
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: bigjoe11a on May 25, 2011, 03:32:07 PM
If I under stand you right, No I'm sorry there's not. as far as I know. All boards have the same options for shop...
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: anakmacan on June 06, 2011, 07:14:11 PM
Could anyone update the addons too ? i want to use "Steal logged in time" addon but unfortunately it doesnt work with SMF 2 RC5 :/
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 Support!
Post by: vbgamer45 on June 11, 2011, 08:12:31 PM
Added install support for SMF 2.0 final.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 RC3 Support!
Post by: silber112 on June 11, 2011, 09:17:06 PM
Quote from: venex on April 16, 2011, 03:51:27 PM
Quote from: bigjoe11a on April 15, 2011, 05:46:28 AM
Quote from: shuban on April 14, 2011, 10:26:20 PM
Hi everyone,

Is there a way to program this mod so that if you're the first one to respond to a topic, you get a different amount of points than if you were the 2nd or 3rd person to respond, etc. ?

Just set the points you wanted to set in the settings page. Like points the user will get when they post a topic or reply to a topic. and leave the per word to 0. and per letter (Char) to 0 too.
Quote from: venex on April 15, 2011, 01:22:59 AM
Quote from: vbgamer45 on April 13, 2011, 01:42:45 PM
At this time I am pretty busy with projects so have no time.
Well.. whenever you have time, just let me know. I having some issues with my users because they are getting too rich and whenever I put an item, one person buys it all and then resell it for more coins. So I would like to have a buying limit. Also, it would be great to have a transaction log. People often say "i sent him X amount of coins" and the other one says that he didn't receive it... or things like that. So yeah, those are the two main features that I would be really interested on buying if you can do them some day ;D.

Thanks for answering.

Well try increasing the amount of the price for the item. If the Item is set for 2500 credits. and your settings allows per word or per Char (Letter) that's why. Try setting these to 0. Just apply the credits given per topic and reply. Then increase the amount for credits for the item.

Remember this is the idea behind SMFShop is for users to buy and sell items that you offer. If all else fails limit the number of items to have for sale.
My items are way more expensive than that lol. It's amazing how my users developed a merchant ability over the last 2 years. It's kind o my fault because I installed the shop with (i think) 2% interest in the bank and did not use the shop that much. Obviously if you keep your money in the bank for long time without touching it, 3 months later you will have a lot of money (that doesn't happen in real life tho.. lol). So yeah, now poeple in my forum sell credits for real money, buy stuff over the internet and can even buy membership subscription since a person asks for forum credits and in exchange, he would pay for the user's membership subscription to the forum. My cheapest items are like 1500 coins. Yesterday I included more items and those are like 10000 coins. I put the interest to 1% and increase the fees of withdrawing and depositing from and to the bank. And I just give 6 coins per comment and 11 per topic. I don't have the "coins per word or per letter... I never had that. Users are not happy but that's the only way I could do it. Plus, one of my users gave me script to add to the shop that let the admin set up a limit per item. If vbgamer wants this to be in the next release, I could put the download link here. Now, I would just need the transactions log.

Yes, please. transactions log, limnit buying items
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 Support!
Post by: Biology Forums on June 15, 2011, 10:22:36 PM
Is it possible to allot points if for instance you upload an avatar? Or add something to your profile? How do you go about programming these things. I have so many ideas. :laugh:
Title: Problem with SMFShop
Post by: MDL on June 21, 2011, 04:56:04 PM
Hi everybody :laugh:

I've a problem with this mod. Currently, I use SMF 2.0 and everybody can buy items. All is nice, but there are somes users that use autoclickers, so they can buy more items and they finish with negative credits. For example, if an item cost 10 credits and a user has 100 credits, he can use an autoclicker by puting it in "Buy" botton, so he can buy 11 or 12 items and he finishes with -10 or -20 credits. It's a big problem for me.

I know where is the problem. It's in Shop-Buy.php file, in this part:

// If they don't have enough money
elseif ($context['user']['money'] < $row['price'])
$context['shop_buy_message'] = sprintf($txt['shop_need'], formatMoney($row['price'] - $context['user']['money']));

Perhaps the solution may be some method to ensure that the user has the appropriate amount of credits before buying the item, but I don't know how to do it.

Someone can help me? Thanks!
Title: Re: Problem with SMFShop
Post by: vbgamer45 on June 21, 2011, 05:02:40 PM
It's kind of a race condition if they click too soon before it can record the purchase would need some kind of purchase delay
Title: Re: Problem with SMFShop
Post by: MDL on June 21, 2011, 05:07:04 PM
Yes, that's exactly what I mean, I need some method to verify the amount of credits before each purchase

Thanks
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 Support!
Post by: silber112 on June 22, 2011, 08:30:50 PM
THE SMF SHOP HAVES A BIG ERROR.


YOU CAN BUY ITEMS WITHOUT CREDITS IF YOU CLIK MANY TIMES ON THE BUY BUTON, OR REQUEST MANY TIMES QUE BUY URL SO THAT THE .PHP DOESN´T HAVE TIME TO VERIFY IF THE USERS HAVES CREDITS...


MANY USERS OF MY FORUM HAVE MADE THIS AND HAVE -X CREDITS..   



Try it.. use a program to do many clicks on a buy button and you will se how you will have -X credits.




I use smf 2.0 and the last version of this mod.


Pd: sorry for my worse english, I have contacted the autor of ther mod but he seems to ignore me.
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 Support!
Post by: Biology Forums on June 22, 2011, 09:42:39 PM
Quote from: silber112 on June 22, 2011, 08:30:50 PM
THE SMF SHOP HAVES A BIG ERROR.


YOU CAN BUY ITEMS WITHOUT CREDITS IF YOU CLIK MANY TIMES ON THE BUY BUTON, OR REQUEST MANY TIMES QUE BUY URL SO THAT THE .PHP DOESN´T HAVE TIME TO VERIFY IF THE USERS HAVES CREDITS...


MANY USERS OF MY FORUM HAVE MADE THIS AND HAVE -X CREDITS..   



Try it.. use a program to do many clicks on a buy button and you will se how you will have -X credits.




I use smf 2.0 and the last version of this mod.


Pd: sorry for my worse english, I have contacted the autor of ther mod but he seems to ignore me.

Thanks for letting us know.
Title: Re: Problem with SMFShop
Post by: MDL on June 23, 2011, 06:34:41 AM
Someone can help me, please?
Title: Re: Problem with SMFShop
Post by: silber112 on June 23, 2011, 09:18:50 AM
Quote from: Tested on June 21, 2011, 04:56:04 PM
Hi everybody :laugh:

I've a problem with this mod. Currently, I use SMF 2.0 and everybody can buy items. All is nice, but there are somes users that use autoclickers, so they can buy more items and they finish with negative credits. For example, if an item cost 10 credits and a user has 100 credits, he can use an autoclicker by puting it in "Buy" botton, so he can buy 11 or 12 items and he finishes with -10 or -20 credits. It's a big problem for me.

I know where is the problem. It's in Shop-Buy.php file, in this part:

// If they don't have enough money
elseif ($context['user']['money'] < $row['price'])
$context['shop_buy_message'] = sprintf($txt['shop_need'], formatMoney($row['price'] - $context['user']['money']));

Perhaps the solution may be some method to ensure that the user has the appropriate amount of credits before buying the item, but I don't know how to do it.

Someone can help me? Thanks!


I have this problem too. The users are cheating, and buying stuff.. I think with a javascript verification for the buy will be everithing fixed:

click buy button, a poup up window goes open to confirm the buy..
Title: Re: Problem with SMFShop
Post by: MDL on June 23, 2011, 10:44:27 AM
Quote from: silber112 on June 23, 2011, 09:18:50 AM
I have this problem too. The users are cheating, and buying stuff.. I think with a javascript verification for the buy will be everithing fixed:

click buy button, a poup up window goes open to confirm the buy..

I've tried it. In Shop.template.php, in this part, I've took a code to confirm the purchase:
// If they have enough money, and can buy it
else
echo '
<a href="', $scripturl, '?action=shop;do=buy2&id=', $item['id'], '" onclick="return confirm('Are you sure you want to purchase it?')">', $txt['shop_buynow'], '</a>';


But I get this error:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/servername/public_html/foros/Themes/default/Shop.template.php on line 329
The line is:
<a href="', $scripturl, '?action=shop;do=buy2&id=', $item['id'], '" onclick="return confirm('Are you sure to purchase it?')">', $txt['shop_buynow'], '</a>';

However, the code work perfectly in a simple web:
http://testmk.zobyhost.com/test.php

Why I'm getting this error?
Title: Re: Problem with SMFShop
Post by: mashby on June 23, 2011, 10:47:24 AM
Maybe?
<a href="', $scripturl, '?action=shop;do=buy2&id=', $item['id'], '" onclick="return confirm(\'Are you sure to purchase it?\')">', $txt['shop_buynow'], '</a>';
Title: Re: Problem with SMFShop
Post by: MDL on June 23, 2011, 10:51:02 AM
Quote from: mashby on June 23, 2011, 10:47:24 AM
Maybe?
<a href="', $scripturl, '?action=shop;do=buy2&id=', $item['id'], '" onclick="return confirm(\'Are you sure to purchase it?\')">', $txt['shop_buynow'], '</a>';
Perfect, thank you very much!

I think with this little modification users won't be able to cheat with SMFShop, anyway, I'll tell you!
Title: Re: Problem with SMFShop
Post by: CapadY on June 23, 2011, 12:33:23 PM
Problems with a MOD should be placed in the specific MOD-topic.

For this specific MOD you can the next topic:

http://www.simplemachines.org/community/index.php?topic=22396.0
Title: Re: Problem with SMFShop
Post by: MDL on June 23, 2011, 01:01:36 PM
It was reported, but any solution was given:
http://www.simplemachines.org/community/index.php?topic=22396.msg3085373#msg3085373
Title: Re: SMFShop- Version 3.1.6.1 Now SMF 2.0 Support!
Post by: vbgamer45 on June 23, 2011, 01:29:56 PM
Planning at some point to add a delay which would fix that issue.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on June 23, 2011, 08:46:04 PM
New update

Version 3.1.7
!Added better request protection for race conditions when sending items/shop money
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Blade_Runner on June 23, 2011, 09:27:27 PM
This great mod is not compatible to your contact page mod. Need to manually install. Problem with the following line.
------------------------------
./Sources/Subs.php
         'mlist' => array(
------------------------------
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: IDunc on June 26, 2011, 10:09:22 PM
You should add an option to show the user's inventory in the postbit.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: venex on June 27, 2011, 12:48:36 AM
I think the bank has also that issue described above.... if users select an amount and click a lot of times, they'll end up with negative balance.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on June 27, 2011, 01:06:09 AM
Quote from: venex on June 27, 2011, 12:48:36 AM
I think the bank has also that issue described above.... if users select an amount and click a lot of times, they'll end up with negative balance.
Should be fixed in the last update.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: IDunc on June 28, 2011, 09:37:49 PM
Here is the Test Failed's I get in Sources/RemoveTopic.php:
(http://i447.photobucket.com/albums/qq195/IRifleProdigyI/testfailed2.png)

Attached is my RemoveTopic.php. Please help!
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: MDL on July 06, 2011, 09:41:55 AM
Is there any option to enable or disable the counting of credits in forums? I don't see it when modifying the forums...
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on July 06, 2011, 09:46:55 AM
Not in the SMF 2.0 version currently.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: darkshark on July 12, 2011, 01:31:18 PM
i like this mod. when someone write a topic he get points, but when he is deleting or editing his post the points will stay. is there a way to delete the points too?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on July 12, 2011, 01:51:21 PM
It should remove points make sure you have the shop code in the RemoveTopic.php file.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: darkshark on July 12, 2011, 03:49:31 PM
i installed this mod via backend. i have 2.0 forum.
i checked the code in RemoveTopic.php file. it is still there.

but the points will not be removed.
Title: Re: SMFShop- Support!
Post by: Deon Hamilton on July 13, 2011, 11:23:23 PM
sorry guys to bug you but i hope someone here can help me im having a problem with the shop this is for v3.1.6
the problem is ive added a new investments  it works like the bank realy it is just the same but with all new naming and template
i have all the db working fine ive setup the admin template thats working fine theres only one thing i just cant get it to load the investments template   also ive added the Permissions for the investments but only the admin can see the botton to the investments realy im at a point i need someone's help lol  :'( :'( :'( 


Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: venex on July 25, 2011, 08:10:49 PM
Is there any way to put a limit in the item that let the users change their names? People are putting mad long names that make my page look disorganize. I tried adding something and it blocked them from putting more than 15 characters but it also blocked special characters such as ╚»★«╝ or other like that... any way to put a limit of 15 characters?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on July 25, 2011, 08:24:55 PM
You could add like an strlen check to the item that may work.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Biology Forums on July 25, 2011, 09:25:52 PM
Quote from: vbgamer45 on July 25, 2011, 08:24:55 PM
You could add like an strlen check to the item that may work.

vbgamer45, before you go on Hiatus, could you reply to my last response (message)... There's a problem with the file download
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: venex on July 25, 2011, 10:30:08 PM
Quote from: vbgamer45 on July 25, 2011, 08:24:55 PM
You could add like an strlen check to the item that may work.
That's what we did... but PHP takes weird characters like if they were more characters so if I put a limit of 15, and a user used weird characters, php took only like 4 of them and if they were to put more, it says that the name was too long. So we had to take that out.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on July 30, 2011, 08:02:57 PM
There is a native strlen function I believe in SMF that supports utf8 try using that one instead either
$smcFunc or $func depending on smf version
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Engel on August 05, 2011, 02:54:32 AM
I've been looking for a way to show random items from the user's inventory on a post. Currently I'm using this to show six items from the inventory (since it was the only way that I found) but it only shows items based on the oldest ID of the item, and I would like it to be random, that every time you see the user's post you see any random item from the inventory . Can someone give me a hand? Thank you

Quoteglobal $db_prefix, $smcFunc;
         $request = $smcFunc['db_query']('','
            SELECT it.desc, it.image
            FROM {db_prefix}shop_items AS it,
                {db_prefix}shop_inventory AS iv
            WHERE iv.ownerid = {int:member}
            AND iv.itemid = it.id
            LIMIT 0, 6',
            array(
               'member' => $message['member']['id'],
            )
         );
         if ($smcFunc['db_num_rows']($request))
         {
            echo '<li class="rc5"><fieldset><legend>Personajes</legend>';
         while ($row = $smcFunc['db_fetch_assoc']($request))
         {
            echo '<img src="/Sources/shop/item_images/'.$row['image'].'" title="'.$row['desc'].'" alt="'.$row['image'].'" />&nbsp;';
         }
         $smcFunc['db_free_result']($request);
            echo '</fieldset></li>';
         }   

Also, I realized that Opera shows a single line showing the items instead of keeping them inside the table.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Biology Forums on August 07, 2011, 03:34:41 PM
How do I configure this mod so that if a user adds an avatar, they gain 25 credits?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Engel on August 09, 2011, 12:01:48 AM
Does anyone know how can I add the inventory to the user's profile?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Jessica. on August 18, 2011, 10:16:36 AM
I need help please

Every test was successful except for one of Sources/Load.php

Find:
CASE WHEN mem.id_group = 0 OR mg.stars = {string:blank_string} THEN pg.stars ELSE mg.stars END AS stars,

Add After:
mem.money,

I cannot find the "find" at all in my load.php
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: SC__Programmer on August 26, 2011, 05:17:34 PM
i just now found this mod and i followed this guide to install it: http://custom.simplemachines.org/mods/index.php?action=parse;mod=65;attach=179618;smf_version=2.0

then i followed this,
Move the included directory "shop" to "./Sources".
Move the included file "shop.gif" to "./Themes/default/images/english".
Move the included file "Shop.english.php" to "./Themes/default/languages".
Move the included file "ShopAdmin.template.php" to "./Themes/default".
Move the included file "Shop.template.php" to "./Themes/default".


and i went to my forum and clicked on the shop link.but it came back saying there was a database error =\

(http://i51.tinypic.com/2aki4xz.jpg)

how do i install it to the SQL database?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on August 26, 2011, 07:07:03 PM
You need to run the shopinstall.php to setup the db tables
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: SC__Programmer on August 26, 2011, 08:01:57 PM
it didnt come with shopinstall.php,but it came with install.php.

when i run the install.php script it comes back with this error,
Fatal error: Function name must be a string in /home1/myname/public_html/forum/install.php on line 59

what should i do now?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on August 26, 2011, 08:13:40 PM
make sure you have the right smf version downloaded and copy it to the root of your forum and run it via the browser.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: SC__Programmer on August 26, 2011, 08:35:32 PM
thats what i did :-\

i downloaded the 2.00 Version and i have the 2.00 SMF Version.

right now this has my Forum messed up because you cant even view a topic without it giving a error.so users cant do anything  :(

do you know any other way of doing it?like what tables does it add?or what the sql install code is?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on August 26, 2011, 08:53:07 PM
the sql code is inside the install file but in SMF 2.0 it is based on those functions so harder to find out. you can check SMF 1.1.x for sql code though
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: SC__Programmer on August 26, 2011, 09:03:27 PM
ok well i downloaded the 1.1.x install script,but theres alot of functions in it :P

heres the code,
<?php
// SMFShop install script, version 3.1
// http://www.smfhacks.com/smfshop/


if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');
// Hmm... no SSI.php and no SMF?
elseif (!defined('SMF'))
die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');

// Shop items table
db_query("
CREATE TABLE IF NOT EXISTS 
{$db_prefix}shop_items (
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
name VARCHAR(50) NOT NULL,
`desc` TEXT NOT NULL,
price DECIMAL(8,2) UNSIGNED NOT NULL,
module TINYTEXT NOT NULL,
stock SMALLINT NOT NULL,
info1 TEXT NOT NULL,
info2 TEXT NOT NULL,
info3 TEXT NOT NULL,
info4 TEXT NOT NULL,
input_needed TINYINT UNSIGNED DEFAULT '1' NOT NULL,
can_use_item TINYINT UNSIGNED DEFAULT '1' NOT NULL,
delete_after_use TINYINT(1) UNSIGNED DEFAULT '1' NOT NULL,
image TINYTEXT NOT NULL,
category SMALLINT NOT NULL,
PRIMARY KEY (id)
)"
__FILE____LINE__);

// Shop Inventory table
db_query("
CREATE TABLE IF NOT EXISTS 
{$db_prefix}shop_inventory (
id INT UNSIGNED NOT NULL AUTO_INCREMENT ,
ownerid INT UNSIGNED NOT NULL ,
itemid INT UNSIGNED NOT NULL ,
amtpaid DECIMAL(8, 2) UNSIGNED DEFAULT '0.00' NOT NULL,
trading TINYINT(1) UNSIGNED NOT NULL,
tradecost DECIMAL(8, 2) NOT NULL,
PRIMARY KEY (id)
)"
__FILE____LINE__);

// Category table
db_query("
CREATE TABLE IF NOT EXISTS 
{$db_prefix}shop_categories (
id SMALLINT( 5 ) UNSIGNED NOT NULL  AUTO_INCREMENT,
name VARCHAR( 50 ) NOT NULL ,
count INT UNSIGNED NOT NULL ,
PRIMARY KEY ( id ) 
)"
__FILE____LINE__);

// Settings used in $modSettings array
db_query("REPLACE INTO {$db_prefix}settings (variable,value) VALUES ('shopVersion', '3.1.1')"__FILE____LINE__);
db_query("REPLACE INTO {$db_prefix}settings (variable,value) VALUES ('shopDate', 'May 20, 2009')"__FILE____LINE__);
db_query("REPLACE INTO {$db_prefix}settings (variable,value) VALUES ('shopBuild', '1')"__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopCurrencyPrefix', '')"__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopCurrencySuffix', ' credits')"__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopPointsPerTopic', '10')"__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopPointsPerPost', '8')"__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopInterest', '2')"__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopBankEnabled', '1')"__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopImageWidth', '32'), ('shopImageHeight', '32')"__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable, value) VALUES ('shopTradeEnabled', '1')"__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable, value) VALUES ('shopItemsPerPage', '10')"__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable, value) VALUES ('shopMinDeposit', '0')"__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable, value) VALUES ('shopMinWithdraw', '0')"__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable, value) VALUES ('shopRegAmount', '0')"__FILE____LINE__);

// New settings in SMFShop New Version (Build 12)
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopPointsPerWord', '0')"__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopPointsPerChar', '0')"__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopPointsLimit', '0')"__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopFeeWithdraw', '0')"__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopFeeDeposit', '0')"__FILE____LINE__);

//SMFShop 1.0 items
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock ) VALUES (
'', 'Test Item', 'Just a test item!', '10.00', 'testitem', '50')"
__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock ) VALUES (
'', 'Random Money', 'Get a random amount of money, between -190 and 190!', '75', 'RandomMoney', '50')"
__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock ) VALUES (
'', 'Add 100 to Post Count', 'Increase your Post Count by 100!', '50', 'AddToPostCount', '50')"
__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock ) VALUES (
'', 'Increase Karma', 'Increase your Karma by 5', '100', 'IncreaseKarma', '50')"
__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock ) VALUES (
'', 'Change Username', 'Change your Username!', '50', 'ChangeUsername', '50')"
__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock ) VALUES (
'', 'Change User Title', 'Change your User Title', '50', 'ChangeUserTitle', '50')"
__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock ) VALUES (
'', 'Increase Total Time', 'Increase your total time logged in by 12 hours.', '50', 'IncreaseTimeLoggedIn', '50')"
__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock ) VALUES (
'', 'Change Other\\'s Title',  'Change someone else\\'s title', '200', 'ChangeOtherTitle', '50')"
__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock ) VALUES (
'', 'Decrease Posts by 100', 'Decrease <i>Someone else\\'s</i> post count by 100!!', '200', 'DecreasePost', '50')"
__FILE____LINE__);

//updating pre-1.1 items to 1.1 items
db_query("UPDATE {$db_prefix}shop_items SET info1 = '100', input_needed = 0 WHERE module = 'AddToPostCount'"__FILE____LINE__);
db_query("UPDATE {$db_prefix}shop_items SET info1 = '5', input_needed = 0 WHERE module = 'IncreaseKarma'"__FILE____LINE__);
db_query("UPDATE {$db_prefix}shop_items SET info1 = '43200', input_needed = 0 WHERE module = 'IncreaseTimeLoggedIn'"__FILE____LINE__);
db_query("UPDATE {$db_prefix}shop_items SET info1 = '-190', info2 = '190', input_needed = 0 WHERE module = 'RandomMoney'"__FILE____LINE__);
db_query("UPDATE {$db_prefix}shop_items SET info1 = '40', input_needed = 1 WHERE module = 'Steal'"__FILE____LINE__);

//SMFShop 1.1 items
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock, info1, input_needed, can_use_item) VALUES ('', 'Steal Credits', 'Try to steal credits from another member!', 50, 'Steal', 50, '40', 1, 1)"__FILE____LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock, input_needed, can_use_item) VALUES ('', 'Rock', 'Well.... It does nothing', 5, 'Rock', 50, 0, 0)"__FILE____LINE__);

//SMFShop 1.2 items
db_query("INSERT IGNORE INTO {$db_prefix}shop_items (name, `desc`, price, module, stock, input_needed, can_use_item) VALUES (
'Change Display Name', 'Change your display name!', 50.00, 'ChangeDisplayName', 49, 1, 1)"
__FILE____LINE__);

//SMFShop 2.1 items
db_query("INSERT IGNORE INTO {$db_prefix}shop_items (name, `desc`, price, module, stock, input_needed, can_use_item) VALUES ('Sticky Topic', 'Make any one of your topics a sticky!', 400.00, 'StickyTopic', 50, 1, 1)"__FILE____LINE__);

//default all items to use 'blank.gif'
db_query("UPDATE {$db_prefix}shop_items SET image = 'blank.gif'"__FILE____LINE__);

//add money columns to members table, if they don't already exist
$result db_query("SHOW COLUMNS FROM {$db_prefix}members LIKE 'money'"__FILE____LINE__);
if (
mysql_num_rows($result) == 0
db_query("ALTER TABLE {$db_prefix}members ADD money DECIMAL(9, 2) UNSIGNED DEFAULT '0.00' NOT NULL"__FILE____LINE__);

$result db_query("SHOW COLUMNS FROM {$db_prefix}members LIKE 'moneyBank'"__FILE____LINE__);
if (
mysql_num_rows($result) == 0
db_query("ALTER TABLE {$db_prefix}members ADD moneyBank DECIMAL(9, 2) UNSIGNED DEFAULT '0.00' NOT NULL"__FILE____LINE__);

//give admin money :-)
db_query("UPDATE {$db_prefix}members SET money = '10000' WHERE ID_MEMBER = '1' LIMIT 1"__FILE____LINE__);

//New field in boards table. This specifies whether credits is increased in this board or not.
$result db_query("SHOW COLUMNS FROM {$db_prefix}boards LIKE 'countMoney'"__FILE____LINE__);
if (
mysql_num_rows($result) == 0
db_query("ALTER TABLE {$db_prefix}boards ADD countMoney TINYINT(1) UNSIGNED DEFAULT '1' NOT NULL"__FILE____LINE__);

// Field for custom credits per topic
$result db_query("SHOW COLUMNS FROM {$db_prefix}boards LIKE 'shop_pertopic'"__FILE____LINE__);
if (
mysql_num_rows($result) == 0
db_query("ALTER TABLE {$db_prefix}boards ADD `shop_pertopic` DECIMAL (9, 2) UNSIGNED NOT NULL"__FILE____LINE__);

// Field for custom credits per post
$result db_query("SHOW COLUMNS FROM {$db_prefix}boards LIKE 'shop_perpost'"__FILE____LINE__);
if (
mysql_num_rows($result) == 0
db_query("ALTER TABLE {$db_prefix}boards ADD `shop_perpost` DECIMAL (9, 2) UNSIGNED NOT NULL"__FILE____LINE__);

// Field for whether bonuses are enabled in this board
$result db_query("SHOW COLUMNS FROM {$db_prefix}boards LIKE 'shop_bonuses'"__FILE____LINE__);
if (
mysql_num_rows($result) == 0
db_query("ALTER TABLE {$db_prefix}boards ADD `shop_bonuses` TINYINT (1) UNSIGNED NOT NULL DEFAULT '1'"__FILE____LINE__);



// ---------- Insert the permissions --------------
// Initialise the values array. Give the permissions to all ungrouped members (ID_GROUP = 0)
$values = array("
('shop_main', 0, 1),
('shop_buy', 0, 1),
('shop_invother', 0, 1),
('shop_sendmoney', 0, 1),
('shop_senditems', 0, 1),
('shop_bank', 0, 1),
('shop_trade', 0, 1)"
);

// Get all the non-postcount based groups.
$request db_query("
SELECT ID_GROUP
FROM 
{$db_prefix}membergroups
WHERE minPosts = -1"
__FILE____LINE__);
while (
$row mysql_fetch_assoc($request))
// Add this to the values we need
$values[] = "
('shop_main', 
$row[ID_GROUP], 1),
('shop_buy', 
$row[ID_GROUP], 1),
('shop_invother', 
$row[ID_GROUP], 1),
('shop_sendmoney', 
$row[ID_GROUP], 1),
('shop_senditems', 
$row[ID_GROUP], 1),
('shop_bank', 
$row[ID_GROUP], 1),
('shop_trade', 
$row[ID_GROUP], 1)";


// Give them all their new permission.
db_query("
INSERT IGNORE INTO 
{$db_prefix}permissions
(permission, ID_GROUP, addDeny)
VALUES
implode(', '$values), __FILE____LINE__);
?>



i dont see anything that wouldnt effect 2.0,so can i just run that script?or will it effect my forum since its 2.0?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on August 26, 2011, 09:07:55 PM
Won't work on SMF 2.0 but you can see the SQL in there.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: SC__Programmer on August 26, 2011, 09:22:09 PM
ive tryed to enter it in the SQL tab,but im not good at SQL.

i tryed to split the sql from the php but i couldnt =\

i doubt you would split it and give me the code lol.

im probably going to just give up on it and get rid of the codes i installed.

Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: wynnyelle on August 26, 2011, 09:48:55 PM
I'm running this on 2.0 RC 3 and getting this critical error:

Quote
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=shop;do=bank2
Apply Filter: Only show the errors with the same message
Wrong value type sent to the database. Integer expected. (amount)
Function: require
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/shop/Shop-Bank.php
Line: 90

Does anyone know how I might fix it?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Biology Forums on September 14, 2011, 05:21:42 PM
How do you remove someone's credits? :-[
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on September 14, 2011, 05:45:56 PM
Have to run a sql such as the following
UPDATE smf_members set money = money - AMOUNTHERE where ID_MEMBER = MEMBERIDGOESHERE
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Biology Forums on September 14, 2011, 11:38:01 PM
Quote from: vbgamer45 on September 14, 2011, 05:45:56 PM
Have to run a sql such as the following
UPDATE smf_members set money = money - AMOUNTHERE where ID_MEMBER = MEMBERIDGOESHERE

So there is no what of doing easily? I.e. through the actual software?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on September 15, 2011, 12:23:11 AM
Nothing built in at this time.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Biology Forums on September 15, 2011, 05:12:52 PM
Quote from: vbgamer45 on September 15, 2011, 12:23:11 AM
Nothing built in at this time.

Thanks
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: leegreaves on October 07, 2011, 04:44:15 AM
Ive got an error message coming up when trying to use items in my inventory. If I try to add 100 post counts or use steal another members credits the following error comes up:

Fatal error: require() [function.require]: Failed opening required '/home/rebelgam/public_html/forum/Sources/shop/items/AddToPostCount.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rebelgam/public_html/forum/Sources/shop/Shop-Inventory.php on line 162


Anyone got any ideas on sorting this problem out?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on October 07, 2011, 09:51:00 AM
Does sources/shop/items/AddToPostCount.php exist if not download the shop package and copy that file to that directory
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: leegreaves on October 07, 2011, 12:35:04 PM
It looks like the "items" folder is showing a 0 (zero) byte in size and folder isnt showing properly
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on October 07, 2011, 01:03:22 PM
That would cause the issue reupload them.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: leegreaves on October 08, 2011, 06:21:21 PM
right ok ive found a bug that may need to be fixed in smf shop.

Try this out...go into the smf shop area and into "Buy Stuff" click buy on anything (allowing that u have enuff credits to buy the item) when it goes to the next page instead of clicking your inventory to see if you have the item listed click your browsers back button to go back a page and buy another of the SAME item, continue doing this for(ever) or how ever long u feel. You will notice eventually that your able to buy an item infinitely without running out of credits. After buying an item for say 15 or 20 times, check how many credits you have. You will see your credit balance has now turned negative!!! This requires fixing so that a check for the back browser button is being used and when buying an item a balance check is made to ensure credits are sufficient to cover the item.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: JohnWayne999 on October 09, 2011, 07:16:18 PM
Hello.

This is one of my favorite MOD. Just quickly reporting SMFShop 3.1.5 installed successfully on my SMF 1.1.15, in case someone is experiencing similar problem.

SMF Shop version details:
QuoteVersion Number: 3.1.5 (Build 1)
Database Version: 3.1.1 (Build 1)
Release Date: November 23, 2009

I uploaded the zipfile (SMFShop3.1.7smf1.1.x.zip, taken from http://mods.simplemachines.org/?mod=65 ) to Package Manager and ran a simulation. Two execute modification tests failed namely ./Sources/RemoveTopic.php and ./Themes/default/ManageBoards.template.php

Not to worry. I proceeded with the installation and then manually changed a few things.
RemoveTopic.php was quite straightforward. I just went in manually, located the landmarks and replaced/inserted as instructed. Have to say though the landmark was not exact. Probably one or two extra spaces here and there but no big drama.

ManageBoards.template.php was weirder.  The manual installation instruction told me look for this <input type="checkbox" name="override_theme"', $context['board']['override_theme'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';


and insert this
// Begin SMFShop code
loadLanguage('Shop');
echo '
<tr>
<td>
<b>', $txt['shop_count_points'], '</b><br />
', $txt['shop_count_points_msg'], '<br /><br />
</td>
<td valign="top" align="right">
<input type="checkbox" name="countMoney"', $context['board']['countMoney'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>
<tr>
<td>
<b>', $txt['shop_credits'], '</b><br />
', $txt['shop_credits_msg'], '<br /><br />
</td>
<td valign="top" align="right">
', $txt['shop_per_new_topic'], ': ', $modSettings['shopCurrencyPrefix'], '<input type="text" name="shop_pertopic" value="', $context['board']['shop_pertopic'], '" size="5" />', $modSettings['shopCurrencySuffix'], '<br />
', $txt['shop_per_new_post'], ': ', $modSettings['shopCurrencyPrefix'], '<input type="text" name="shop_perpost" value="', $context['board']['shop_perpost'], '" size="5" />', $modSettings['shopCurrencySuffix'], '
</td>
</tr>
<tr>
<td>
<b>', $txt['shop_bonuses_enabled'], '</b><br />
', $txt['shop_bonuses_enabled_msg'], '<br /><br />
</td>
<td valign="top" align="right">
<input type="checkbox" name="shop_bonuses"', $context['board']['shop_bonuses'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';
// End SMFShop code
after it.



Well I found the closest match (without ';  ) and inserted code manually. That didn't work. Because if you then try to load ADMIN -> Forum -> Boards, php will spit out error message about incomplete syntax and refuses to load. So I guess that missing '; probably made a difference. Not to worry. I simply travelled a bit further down along the file and inserted elsewhere. I ended up inserting that piece of code immediately before this: // Finish off the table.
echo '
<tr>
<td colspan="2" align="right">
<br />';
if (isset($context['board']['is_new']))
echo '
<input type="hidden" name="cur_cat" value="', $context['board']['category'], '">
<input type="submit" name="add" value="', $txt['mboards_new_board'], '" onclick="return !isEmptyText(this.form.board_name);" />';
else
echo '
<input type="submit" name="edit" value="', $txt[17], '" onclick="return !isEmptyText(this.form.board_name);" />
<input type="submit" name="delete" value="', $txt['mboards_delete_board'], '" onclick="return confirm(\'', $txt['boardConfirm'], '\');" />';
echo '
</td>
</tr>
</table>
<input type="hidden" name="sc" value="', $context['session_id'], '" />';



And it seemed to work fine now.

By the way Discuz! had something very similar. From memory Discuz! was even fancier than this, having magic potions, cards that let you ban or mute other users, or have privileges to up/download ratio etc. Would be great if SMFShop can implement something along those lines too.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: T3CHN0 on October 13, 2011, 08:29:32 AM
Hi vbgamer, Like your mods very much. I am looking for a mod something like this but I want to use it like SMFBay Pro to sell buy or swap items with other members. as SMFBay was let go and the creator no longer supports it, I can't ask or expect any updates to it.
I don't normally post out of discussion of current posts but thought this would be the best place to ask and vbgamer makes the best mods so he would be the man to see.. cheers
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on October 13, 2011, 12:46:22 PM
Have two more mods:
Classifieds System
http://www.smfhacks.com/smf-classifieds.php


And store. Store is mainly forum admin's selling products. But you could setup categories that have the store permission to allow users to setup their own products
http://www.smfhacks.com/smf-store.php
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: T3CHN0 on October 13, 2011, 07:47:05 PM
Thankyou for the reply vbgamer, I will put it to my members how much they want it. It was requested by my members but like everyone else expect it for free.
I will collect from my members and buy it, only problem is without testing both I really don't know what one to get. Classifieds looks good... my members want to list
things to buy sell & swap. both mods don't look like they have options for members to list what they are looking for and wanting to buy something not already listed.
but as I said, both mods might do it but with out testing both I don't know which one I should look at buying. can you help me out and let me know what one can do this?
A simple mod with them 3 options on posting an item would be best, and paypal option is always good but not an necessity PLUS the option to have the listings show
in an ezportal block would make the mod much more wanted.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on October 13, 2011, 07:52:05 PM
Demo can be found at http://www.smfhacks.com/storedemo has both store/classifieds and others.

If you need full admin demo let me know can setup them up.

The classifieds has an option to create a category with no price/bidding which could be used as a wanted to buy
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: T3CHN0 on October 13, 2011, 08:21:36 PM
can't register on that site but I guess that's why it is a demo site :) I think Classifieds is the way to go but both look really good. I have already posted to my members and if it's a go ahead I think thats the one i will get. thanks for all this VBGamer
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Account Abandoned on October 23, 2011, 10:03:55 PM
Is it possible (maybe a quick code edit) to make it to where people have to post xx amount of characters before earning a credit when making a new topic or reply? Also, how could I go about limiting the shop point system to certain categories on my forum? I would really like to use this for a contest but those 2 features would be needed.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Quexinos on October 30, 2011, 11:25:05 AM
okay I read you should be able to make it so that some boards don't give you money when you post.  But I can't find where to do this.  Anyone know where this is?  I'm u sing 2.0.1 and the latest version of the shop.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on October 30, 2011, 01:25:38 PM
Not built into the SMF 2.0 version
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Account Abandoned on October 30, 2011, 01:52:41 PM
Quote from: vbgamer45 on October 30, 2011, 01:25:38 PM
Not built into the SMF 2.0 version

Do you have plans to do this at all?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on October 30, 2011, 01:56:46 PM
At the moment no don't have the time.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Account Abandoned on October 30, 2011, 02:15:44 PM
Okay, I understand.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: ayex on November 11, 2011, 12:05:55 AM
Please I'm getting an error whenever I try to remove a post or a topic on my site I have created the topic here on smf and else where all I get is that I should contact my mods support, and I figured the issue is related to smf shop mod. I get the error. I get this in my forum error log

Wrong value type sent to the database. Integer
expected. (amount)
Function: removeTopics
File: /home/cynamix/public_html/naijatechzone.com/
Sources/RemoveTopic.php
Line: 270
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: zushiba on November 11, 2011, 02:24:30 AM
How do I get rid of the View Inventory /  Send Money To Member links in the Postbit?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: techbot on November 27, 2011, 01:24:03 PM
I've used this mod in the past on older versions and loved it. I've got a site now on 2.0.1 and this mod just isn't liking me. I'm using the default theme...do I still need to do the manual code fixes? I'm getting this error:

11.   Execute Modification   ./Sources/RemoveTopic.php   Test failed
   1.   Replace   ./Sources/RemoveTopic.php   Test failed
   2.   Add After   ./Sources/RemoveTopic.php   Test failed

Execute Modification   ./Themes/core/Display.template.php   Test failed
   1.   Add After   ./Themes/core/Display.template.php   Test failed
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Kindred on November 27, 2011, 01:26:47 PM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: techbot on November 27, 2011, 01:30:26 PM
doh! thanks!
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: hcfwesker on November 27, 2011, 10:40:11 PM
Quote from: zushiba on November 11, 2011, 02:24:30 AM
How do I get rid of the View Inventory /  Send Money To Member links in the Postbit?

/Themes/default/Display.template.php

Find
// Begin SMFShop 2.3 (Build 11) code
echo '
<li>', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '</li>
<li><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">', $txt['shop_display_view_inventory'], '</a></li>
<li><a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">', $txt['shop_display_send_money'], ' ', $message['member']['name'], '</a></li>';
//END SMFShop code


Replace with
// Begin SMFShop 2.3 (Build 11) code
echo '
<li>', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '</li>';
//END SMFShop code



Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: techbot on December 12, 2011, 06:19:22 PM
I've got my shop up and running beautifully, but I'd like to change the size of the item avatars to 64x64. I've looked through files, but I'm not sure exactly what I'm looking for


*update* I also noticed that I can only view 24 items in my admin edit/add/delete items option. My shop shows everything, but I can only view the top 24 in admin view
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: arslanafzal321 on December 15, 2011, 07:53:02 PM
hello, I have made all the changes as you said but I got an error when i execute the install.php

Fatal error: Function name must be a string in ..root\smf\install.php on line 59

If you think the problem is in manual execution of install.php, then let me know how to manually execute it, cause I am very new to PHP. I just tired to  open the install.php after uploading to server to my forum directory.
I am using SMF 2.0.1 with SMFShop 3.1.7
Please help
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on December 16, 2011, 04:05:53 PM
Sounds like you downloaded the wrong version? of SMF Shop make sure it is for 2.0 the install.php file.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: wynnyelle on December 18, 2011, 03:12:22 PM
The SMF Shop bank is glitching on my site. Here is one of the member complaints:

Quote
I usually store my FK in the bank, and right now I was trying to remove 5,000 from 12,000 nad, I failed. It said I had 30,000 (which I don;t have) in my pocket and -8,000 in the bank? I tried a few more times, and I get weird numbers eachtime. Finally, I removed more then enough when I took out 50 FK. There must be glitch or something.

Another complaint:

Quote
So, I went to the store to withdraw some FK I was saving, so I could finally buy one of the items, but whenever I try to withdraw my FK, it doesn't work, and it gives me a totally different number then what I withdraw-ed, but I still don't get my FK back out.

FK is what we call our currency. Does anyone know how to fix this thing?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on December 18, 2011, 03:29:52 PM
What SMF Version? And have you done any  mods to the Shop system
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: tribalxgecko on December 19, 2011, 01:05:04 PM
Is there a way to have the shop 'buy stuff' page show a default category instead of [all] when you view it? I will be having a large array of categories, and would like to have the category list show [Uncategorized] instead of [All] by default. Unfortunately I am a complete novice at php, but I have figured out how to do some other changes, I just can't figure this one out. I am assuming that this would be in the Shop_buy.php file, someplace around here:

Modify:Strikeout. I figured it out. Thanks anyway!!
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: wynnyelle on December 20, 2011, 01:50:24 PM
My members are suddenly having a very strange problem. They try to withdraw money from their bank and it tells them they don't have that amount and their banks are going into negative numbers.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: tribalxgecko on December 21, 2011, 02:21:29 PM
I was able to figure out my last issue, but came across another feature that I am curious about.

Is it possible to add a category sort box to the user inventory page? It would work just like it does in the shop: showing all of the items that are in a specific category that the user owns.

I know how to add the category drop down box, and I assume that I will need to edit the shop_inventory table so that it shows the category that the item is in (and in turn put the correct category id value in when the item is purchased)...but that is basically all i know (if it is even correct).
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: tribalxgecko on December 21, 2011, 04:10:28 PM
This is what I have done so far.

I added the category drop down / sort box to a members inventory page.

I added the 'category' field to the shop_inventory table (updating the couple of items that were there already to the correct category id#).

Now, when a person buys an item I need to have it insert the correct category of the item. So I added in a bit of code to do that:

-----------------------------------------------

// Put item in user's inventory
db_query("
INSERT INTO {$db_prefix}shop_inventory
(ownerid, itemid, amtpaid, category)
VALUES (
{$ID_MEMBER},
{$_GET['id']},
{$row['price']},
{$row['category']})",
__FILE__, __LINE__);


-----------------------------------------------

This returns a syntax error regardless of how I try to insert the category value. I don't know if $row is the right thing to use? I have tried $_GET and still get a syntax error. Here is the exact error if that helps:
Quote
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 7
File: /home/tribalex/public_html/SMF/Sources/shop/Shop-Buy.php
Line: 208
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: wynnyelle on January 02, 2012, 02:41:51 PM
Bump. The shop_bank file has an error on line 90.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on January 02, 2012, 05:23:18 PM
What does the error say?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: wynnyelle on January 02, 2012, 06:28:34 PM
This:


http://warriorcatsrpg.com/index.php?action=shop;do=bank2
Apply Filter: Only show the errors with the same message
Wrong value type sent to the database. Integer expected. (amount)
Function: require
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/shop/Shop-Bank.php
Line: 90


It's causing the bank to glitch.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on January 02, 2012, 07:30:04 PM
Fixed update posted
Version 3.1.8
!Fixed bug in the bank for accepting float values.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: wynnyelle on January 02, 2012, 07:33:22 PM
Wait--you posted a fix for this glitch? Where can I find it?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on January 02, 2012, 07:35:17 PM
Just updated on mod site or you can change this in that file

// Add amount to member's bank money, and remove from money in pockey
$smcFunc['db_query']('', "
UPDATE {db_prefix}members
SET moneyBank = moneyBank + {int:amount},
money = money - ({float:amount} + {int:fee})
WHERE id_member = {int:id}
LIMIT 1",
array(
'amount' => $_POST['amount'],
'fee' => $modSettings['shopFeeDeposit'],
'id' => $context['user']['id'],
));

To

// Add amount to member's bank money, and remove from money in pockey
$smcFunc['db_query']('', "
UPDATE {db_prefix}members
SET moneyBank = moneyBank + {int:amount},
money = money - ({int:amount} + {int:fee})
WHERE id_member = {int:id}
LIMIT 1",
array(
'amount' => $_POST['amount'],
'fee' => $modSettings['shopFeeDeposit'],
'id' => $context['user']['id'],
));
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: wynnyelle on January 02, 2012, 08:16:55 PM
Thanks for posting the fix for me.

Unfortunately members still seem to be having problems. I checked to make sure the code was exactly as you said and it is.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on January 02, 2012, 08:45:56 PM
Do you still get that error log?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Biology Forums on January 03, 2012, 01:45:07 AM
Is it possible to configure this mod where if a member clicks the Facebook "like" button on the website, they earn 10 points automatically?

Will pay a fee is someone can configure this for me.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: wynnyelle on January 03, 2012, 01:49:15 PM
No, that error isn't coming up anymore but this is what people are saying:

http://warriorcatsrpg.com/the-help-den/bank-still-not-fixedworking-it-325555.msg8442167.html#new

"
Ok, now it's different. I tried withdrawing money like 20 or so times. And it still said i had a minus amount. So after 20 times of trying to withdraw I gave up. Yet I didn't know that I actually withdrawed more than I need. So after trying to withdraw 84034 like 20 or so times, I went to Shop home and what I saw blew away my mind. I was second place on "Riches Members Pocket" list. So that's like, under Wynn. I know, I cant achieve that in just 6 months of roleplaying, unless i'm awake day and night Rping. "


"I dont know if I should be happy about this or concerned. The bank is letting me enter more than I can. I had 84034 in the bank and entered 1804.56 in and it said I have somtheing around 91246
EDIT: Now I have -9009 or something like that in my "Pocket""

It's actually worse now, in a way--giving people a lot of points they don't have.

I did get this error:

"http://warriorcatsrpg.com/index.php?action=shop;do=bank2
Apply Filter: Only show the errors with the same message
Wrong value type sent to the database. Integer expected. (amount)
Function: require
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/shop/Shop-Bank.php
Line: 90 "

But a lot of people used the bank since this "fix." So I know something else is going on.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Lyne on January 04, 2012, 06:19:45 AM
I'm so sooowwy if this has been asked already... but I've used the search trying to find an answer for days and... nothing. I also checked on the official SMF Shop page and what people commented back in 2007... seems to be missing now.

Okay, so... I'd like to figure out if there's a way to configure the credits earned by forum. Specifically, I'd love to be able to disable the shop giving credits to the users for posting in a certain forum.

There's a chit-chat section in my forum where posts are not counted, and people pretty much abuses posting there for them to earn credits like crazy since the store was implemented.

In the SMF Shop's official forum someone said you could configure permissions per forum, back in 2007, but I can't find the option in SMF2. I've looked for it with the default skin too and... nothing.

Any ideas?
You'd pretty much save my life <3.
Thanks in advance.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: silber112 on January 04, 2012, 07:30:40 AM
Quote from: vbgamer45 on January 02, 2012, 08:45:56 PM
Do you still get that error log?

Will be disponible sommetime a paid versión with more futures? Net Items.. Aditions like Recent purchases and thinks like that?

Thanks
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on January 04, 2012, 01:12:08 PM
Not currently in my plans not sure how I would generate money from it or what a price would be .
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: wynnyelle on January 04, 2012, 06:23:02 PM
Quote from: Lyne on January 04, 2012, 06:19:45 AM
I'm so sooowwy if this has been asked already... but I've used the search trying to find an answer for days and... nothing. I also checked on the official SMF Shop page and what people commented back in 2007... seems to be missing now.

Okay, so... I'd like to figure out if there's a way to configure the credits earned by forum. Specifically, I'd love to be able to disable the shop giving credits to the users for posting in a certain forum.

There's a chit-chat section in my forum where posts are not counted, and people pretty much abuses posting there for them to earn credits like crazy since the store was implemented.

In the SMF Shop's official forum someone said you could configure permissions per forum, back in 2007, but I can't find the option in SMF2. I've looked for it with the default skin too and... nothing.

Any ideas?
You'd pretty much save my life <3.
Thanks in advance.

We have the same problem and it's a big one. There is widespread abuse. 1. all boards earn points the same, nothing we can do to weight some boards more or just turn it off for non-post-counting boards. 2. Editing a post to make it longer or shorter doesn't add or remove points. This is widely exploited. 3. Deleting a post doesn't remove the points it gave. This is also widely exploited.

I'd be very interested in fixes for these 3 things. Name your price.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: hcfwesker on January 04, 2012, 06:46:56 PM
SA Shop allows you to turn off money earning per board, and allows you to set what each board will give for topics and posts.   Not sure why those couldn't be implemented
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on January 04, 2012, 07:16:17 PM
I could add that just don't have time since I have other projects take priority. I might start donation mod updates if it is a good amount can add features that are requested
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: wynnyelle on January 05, 2012, 04:21:28 PM
Fair enough :) When I can cough up the cash and you are willing to spend the time I will let you know.

In the meantime we got problems. The shop is lagging the site. I ws told this:

Quote
it will lag until you fix the shop mod queries to not get cached.

How would i do this?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on January 05, 2012, 04:24:20 PM
Where was this posted at?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: wynnyelle on January 05, 2012, 04:25:03 PM
My host Flamer told me this.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on January 05, 2012, 04:26:32 PM
Can they provide examples? Of the queries or anything so we can track it down?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: wynnyelle on January 05, 2012, 04:34:33 PM
I misundrestood what flamer told me. he means this: My forum uses caching to cut down on lag. The shop cannot work with caching because it caches the shop requests. I need a workaround for this. So the shop is exempt from being cached.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Biology Forums on January 05, 2012, 04:46:29 PM
Quote from: shuban on January 03, 2012, 01:45:07 AM
Is it possible to configure this mod where if a member clicks the Facebook "like" button on the website, they earn 10 points automatically?

Will pay a fee is someone can configure this for me.
Bump
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on January 05, 2012, 04:49:18 PM
Would depend on how it is  done if is possible is just a link that they click then goes to facebook to click Like would have to find out if works.

If it involes using open graph to track likes on memberbasis that is whole another set of apis and that would be expensive.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: wynnyelle on January 05, 2012, 04:58:55 PM
What? Do you mean for the caching workaround?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on January 05, 2012, 05:02:38 PM
Sorry no for another post. What type of caching? If the Shop does caching it would use the same SMF 2.0 caching functions that SMF uses for everything else.

Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: wynnyelle on January 05, 2012, 05:40:28 PM
Ah okay thank you for getting back to me. This is what my host told me:

Quote
We use memcached + Eaccelerator on your server with caching set on level 2. This is causing delay in the updates for the values in your bank. So, you might want to stop it from caching at all.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Lyne on January 06, 2012, 06:42:28 AM
Quote from: Groovystar on January 04, 2012, 06:23:02 PM
Quote from: Lyne on January 04, 2012, 06:19:45 AM
I'm so sooowwy if this has been asked already... but I've used the search trying to find an answer for days and... nothing. I also checked on the official SMF Shop page and what people commented back in 2007... seems to be missing now.

Okay, so... I'd like to figure out if there's a way to configure the credits earned by forum. Specifically, I'd love to be able to disable the shop giving credits to the users for posting in a certain forum.

There's a chit-chat section in my forum where posts are not counted, and people pretty much abuses posting there for them to earn credits like crazy since the store was implemented.

In the SMF Shop's official forum someone said you could configure permissions per forum, back in 2007, but I can't find the option in SMF2. I've looked for it with the default skin too and... nothing.

Any ideas?
You'd pretty much save my life <3.
Thanks in advance.

We have the same problem and it's a big one. There is widespread abuse. 1. all boards earn points the same, nothing we can do to weight some boards more or just turn it off for non-post-counting boards. 2. Editing a post to make it longer or shorter doesn't add or remove points. This is widely exploited. 3. Deleting a post doesn't remove the points it gave. This is also widely exploited.

I'd be very interested in fixes for these 3 things. Name your price.

OMG! Never thought of that. I hope they won't either or they'll drive me crazy D:
I'd be willing to donate for these fixes too.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: wynnyelle on January 08, 2012, 05:50:36 PM
Quote from: Groovystar on January 05, 2012, 05:40:28 PM
Ah okay thank you for getting back to me. This is what my host told me:

Quote
We use memcached + Eaccelerator on your server with caching set on level 2. This is causing delay in the updates for the values in your bank. So, you might want to stop it from caching at all.

Do you have any solutions regarding this? If not, what should I do?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Biology Forums on January 08, 2012, 07:50:43 PM
Quote from: vbgamer45 on January 05, 2012, 04:49:18 PM
Would depend on how it is  done if is possible is just a link that they click then goes to facebook to click Like would have to find out if works.

If it involes using open graph to track likes on memberbasis that is whole another set of apis and that would be expensive.

Could you tell me how much work it would take, I really want this little modification :(
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: wynnyelle on January 08, 2012, 10:01:17 PM
What I mean is, is there a way to create a workaround for the bank that lets it bypass caching of this kind?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Ventic on January 09, 2012, 04:39:39 PM
how i can do all ppl coins 0?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: hcfwesker on January 09, 2012, 04:44:06 PM
Quote from: Ventic on January 09, 2012, 04:39:39 PM
how i can do all ppl coins 0?

run an sql query in phpMyAdmin under smf_members to reset all members 'money' tables to 0

I don't know how to do it, actually, but I think that's your best option.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Ventic on January 09, 2012, 04:52:15 PM
i dont know either dude
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Ventic on January 09, 2012, 04:56:55 PM
and by the way i want only bank money to be wiped
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: hcfwesker on January 09, 2012, 05:40:51 PM
Just found this.  Looks to be exactly what you're looking for.

http://smfshop.com/forum/index.php/topic,1259.msg6894.html#msg6894
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: wynnyelle on January 09, 2012, 10:56:45 PM
Would that help with my caching-bank conflict problem?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: hcfwesker on January 09, 2012, 11:57:32 PM
Quote from: Groovystar on January 09, 2012, 10:56:45 PM
Would that help with my caching-bank conflict problem?

no.  If it would have I would have quoted your post and told you directly.  If I don't post a quote, it means I'm only talking directly to the last poster abocve my post.

The link I provided him allows admins to reset members cash and bank accounts.

I don't really want to say anything in here, but since you only have like 15 items in your shop, it wouldn't be too hard for you to switch to SA Shop, which has most of the features you're asking for.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: wynnyelle on January 10, 2012, 01:54:04 AM
Oh--I'm sorry! I'm not looking to switch to one or the other anyway, I just need a fix for the caching conflict. I'll leave you alone now :)
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Ventic on January 10, 2012, 07:28:59 AM
Quote from: hcfwesker on January 09, 2012, 05:40:51 PM
Just found this.  Looks to be exactly what you're looking for.

http://smfshop.com/forum/index.php/topic,1259.msg6894.html#msg6894
with that bank shop will be wiped?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Ventic on January 10, 2012, 07:48:27 AM
tested and no working
i get a white page when i press for bank wipe
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on January 10, 2012, 01:55:10 PM
That code on that page is for SMF 1.1.x
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Ventic on January 10, 2012, 03:50:34 PM
for smf 2.0.2 what i should do
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Ventic on January 11, 2012, 09:07:52 AM
Quote from: Ventic on January 10, 2012, 03:50:34 PM
for smf 2.0.2 what i should do
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on January 11, 2012, 09:54:59 AM
The code on that page needs to be updated then to 2.0 to work.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Ventic on January 11, 2012, 11:09:33 AM
any other sollution?
if not could you do it?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on January 11, 2012, 12:31:40 PM
Don't have time at the moment.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Ventic on January 11, 2012, 04:08:41 PM
any other guy to help me?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Ventic on January 12, 2012, 03:32:12 PM
Quote from: Ventic on January 11, 2012, 04:08:41 PM
any other guy to help me?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: wynnyelle on January 12, 2012, 03:49:13 PM
Quote from: Groovystar on January 05, 2012, 05:40:28 PM
Ah okay thank you for getting back to me. This is what my host told me:

Quote
We use memcached + Eaccelerator on your server with caching set on level 2. This is causing delay in the updates for the values in your bank. So, you might want to stop it from caching at all.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Ventic on January 13, 2012, 06:07:51 AM
didnt get you dude
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: hcfwesker on January 13, 2012, 10:42:29 AM
Don't think her reply was tpwards you ;)

i suggest you ask in the smf coding discussion how to write a mysql query to reset the moneyBank value to 0 for all members
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: wynnyelle on January 13, 2012, 01:28:21 PM
Thank you I will do that right now. I really need help with this.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: rubix123 on January 14, 2012, 07:39:08 AM
How can I remove this text from poster info within threads? Which file?

Quote
View Inventory
Send Money To User

Thanks  :laugh:
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Ventic on January 14, 2012, 07:54:16 AM
i guess its from index.template if i aint wrong
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: hcfwesker on January 14, 2012, 07:55:58 AM
Quote from: rubix123 on January 14, 2012, 07:39:08 AM
How can I remove this text from poster info within threads? Which file?

Quote
View Inventory
Send Money To User

Thanks  :laugh:

http://www.simplemachines.org/community/index.php?topic=22396.msg3217564#msg3217564

Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Stanyy on January 25, 2012, 07:20:17 PM
Please does anybody know how i can edit the text that says 'Send money to someone' in the shop menu. And i will also like to edit 'Send money to John' thats shows in a member's reply in topics.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: hcfwesker on January 25, 2012, 07:26:45 PM
Check the languages/Shop.englsh.php file

I found these 2 in other files.  Edit the phrases on the right to what you want it to say.

languages/Modifications.english.php
$txt['shop_display_send_money'] = 'Send Money To';
$txt['shop_display_view_inventory'] = 'View Inventory';
 

languages/ManagePermissions.english.php
$txt['permissionname_shop_sendmoney'] = 'Send Money to Someone';
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Stanyy on January 25, 2012, 07:35:21 PM
Ok thanks. I will also like to change the word 'Inventory'. I can see it appears in several places.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: hcfwesker on January 25, 2012, 07:43:39 PM
Edited my post.  Look on the MOd page, and parse your version.  Most of these appear and tell you which language file to find them in, on the parse page.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Goodman854 on January 26, 2012, 11:00:30 AM
The item "EmailAdminv3" is 100% completely broken. If you go to edit it all the values change to zero. Someone ranted about a possible reason to as why this happens and offered a fix which worked a bit but caused a bunch of errors.

This happens on all your Items that are like this.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: bigjoe11a on January 31, 2012, 09:26:29 AM
I wanted to update my forum. Does SMFShop have an option to update it to the new forum. Or do I have to uninstall it and after I update my forum. I have to reinstall it again.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: hcfwesker on January 31, 2012, 09:35:35 AM
When you use the large upgrade smf package, you have to reinstall all MODs.   From what I remember, once you install the Shop back onto the upgraded forum, everything will still be there.  items,  member inventory, etc, will use the same database names.

but, just for safe measure you may want to copy your items, and item images files and folders in a "test"( or another random name you save files in) folder just in case
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: WittyUsername on February 03, 2012, 08:48:32 PM
I probably missed this, but is there I way I can disable money from certain boards being posted in?

I have a spam board, and it's easy to rack up a few hundred "monies" there
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on February 03, 2012, 08:58:34 PM
Quote from: CannedSoup on February 03, 2012, 08:48:32 PM
I probably missed this, but is there I way I can disable money from certain boards being posted in?

I have a spam board, and it's easy to rack up a few hundred "monies" there
Not at the moment
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: WittyUsername on February 03, 2012, 09:42:37 PM
Well, that's a shame. I hope there will be a future release that adds that feature.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: pixeleyes on February 13, 2012, 10:27:09 AM
How to give some credit to all forum user in same time?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on February 13, 2012, 10:28:37 AM
You would need to an sql query such as

Update smf_members set money = money  + 0

Change the 0 to amount of credits
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: pixeleyes on February 13, 2012, 10:46:52 AM
actually I'm not so expert in sql.

Can you explain how to update or which table should I need to update?

thanks
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on February 13, 2012, 10:48:58 AM
That is the query above that you would run.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: pixeleyes on February 13, 2012, 10:54:51 AM
Quote from: vbgamer45 on February 13, 2012, 10:28:37 AM
You would need to an sql query such as

Update smf_members set money = money  + 0

Change the 0 to amount of credits

Thanks  :) its working
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on February 13, 2012, 11:06:31 AM
Glad you got it working!
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: medstorez on February 16, 2012, 01:42:34 PM
I got this error. Now my site is froze up.

Fatal error: Call to undefined function: showbanner() in /home/xxxxxxx/xxxxxxx/forum/Sources/Load.php(1036) : eval()'d code on line 287

This happened after I tried to modify the SUB.PHP file again, then it spit out an error. When I put the original back, it gave me this.. error above.... Im stumped. :'(

Any help would be appreciated
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: vbgamer45 on February 16, 2012, 03:09:11 PM
showBanner does not seem to be part of SMF Shop mod?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Heardy on February 17, 2012, 09:22:09 PM
Is there any way to implement the referral mod into this somehow?

Like refer a friend and if they join you get x amount of credits?

There was another one I was thinking of but I forgot it.. :(
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Ascot on February 21, 2012, 04:03:31 PM
i get tired of searching an answer so i've decided to ask:
How do i show an Admin shop link to  Shop admins membergroup who has already set permission.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on February 25, 2012, 10:05:26 PM
Updated the shop mod.

Version 3.2
!Fixed some caching issues if you used the caching. The money is now cleared when being added/subtracted from a user.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: silber112 on February 25, 2012, 11:59:15 PM
Quote from: vbgamer45 on February 25, 2012, 10:05:26 PM
Updated the shop mod.

Version 3.2
!Fixed some caching issues if you used the caching. The money is now cleared when being added/subtracted from a user.

any way to update withaut unistaling? in wich files have you done edits?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on February 26, 2012, 12:52:07 AM
You would need to use beyond compare to file changes from the old package to the new package.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: WantSome on February 26, 2012, 06:14:57 AM
hiya

I did an uninstall to upgrade to version 3.2 but for some reason that's deleted all the custom items I added to the shop, and cleared all the member's inventories.  Is there a way to get it back?
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Ascot on February 26, 2012, 06:31:11 AM
Quote from: Ascot on February 21, 2012, 04:03:31 PM
How do i show an Admin shop link to  Shop admins membergroup who has already set permission.
No idea about this?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: silber112 on February 26, 2012, 09:24:35 AM
Is there anyway to upgrade without losing any items?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on February 26, 2012, 10:23:02 AM
Warning if you do uninstall it will remove any custom items! To fix you would need to restore from a backup Just noticed this in the package changing it.
And older versions before I started on this project also dropped shop money.


In this case to upgrade I suggest installing manually.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Ascot on February 28, 2012, 09:47:55 AM
Quote from: Ascot on February 26, 2012, 06:31:11 AM
Quote from: Ascot on February 21, 2012, 04:03:31 PM
How do i show an Admin shop link to  Shop admins membergroup who has already set permission.
No idea about this?

Help please, i need it.
regards.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: hcfwesker on February 28, 2012, 05:55:24 PM
Quote from: Ascot on February 28, 2012, 09:47:55 AMHow do i show an Admin shop link to  Shop admins membergroup who has already set permission.

Smf version and Shop version you're using?  Also, since i dotn use this Shop version, can you provide a link to the shop admin page, when you view it on your forum.

What I plan to do, is add a sub-menu link under the Shop tab in the main menu, for memebers with Shop Admin permissions, they can see and click this.  but i need the info i asked for.
Title: Re: SMFShop- Version 3.1.7 Now SMF 2.0 Support!
Post by: Ascot on February 29, 2012, 08:15:38 PM
Quote from: hcfwesker on February 28, 2012, 05:55:24 PM
Quote from: Ascot on February 28, 2012, 09:47:55 AMHow do i show an Admin shop link to  Shop admins membergroup who has already set permission.

Smf version and Shop version you're using?  Also, since i dotn use this Shop version, can you provide a link to the shop admin page, when you view it on your forum.

What I plan to do, is add a sub-menu link under the Shop tab in the main menu, for memebers with Shop Admin permissions, they can see and click this.  but i need the info i asked for.

That's exactly what i need.
I use smf 2.0.2 and SMF shop 3.1.8.
I guess php  link is not valid because it has a session id. But i'll try anyways cause i'm not sure. (testing... guess it works ok).
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: hcfwesker on February 29, 2012, 08:31:58 PM
I just need you to post was comes after ?action= in the link , when you goto the shop admin page
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Nitesh Kunnath on March 09, 2012, 10:49:03 AM
How to rename "Send Money to [Username]" to something different....... I want it to set "Send Credits to..."

I am finding it difficult to search for the exact area where this code has been implemented.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on March 09, 2012, 10:50:18 AM
Check the Shop.english.php langauge file
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Nitesh Kunnath on March 09, 2012, 11:00:19 AM
Quote from: vbgamer45 on March 09, 2012, 10:50:18 AM
Check the Shop.english.php langauge file
can you specify the exact line ?
Coz, I have replaced "money" with "credits" wherever i did see in this php file but still it is shown "money" under profile. Check the screenshot.

You mean this set of line ?
$txt['shop_send_money'] = 'Send Money to Someone';
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Nitesh Kunnath on March 09, 2012, 11:02:27 AM
I am checking the display.template,php file currently.... I think the code must be present there
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Nitesh Kunnath on March 09, 2012, 11:18:04 AM
Not able to solve it.... Please help me with the codes.....I need to change the text "send money to... " to "Send Credits to..."
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: hcfwesker on March 10, 2012, 04:35:10 AM
Quote from: die2mrw007 on March 09, 2012, 10:49:03 AM
How to rename "Send Money to [Username]" to something different....... I want it to set "Send Credits to..."

Themes/default/languages/Modifications.english.php

Find
$txt['shop_display_send_money'] = 'Send Money To';
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Nitesh Kunnath on March 10, 2012, 04:48:13 AM
Quote from: hcfwesker on March 10, 2012, 04:35:10 AM
Quote from: die2mrw007 on March 09, 2012, 10:49:03 AM
How to rename "Send Money to [Username]" to something different....... I want it to set "Send Credits to..."

Themes/default/languages/Modifications.english.php

Find
$txt['shop_display_send_money'] = 'Send Money To';
Thanks a lot... :)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: sildenafil on March 10, 2012, 08:42:39 AM
I keep getting tons of these in my error log... any ideas how to fix that one... is there anyone else having the problem?

8: Undefined index: shopBuild
File: /home/justyne/public_html/rpg/Themes/default/languages/Shop.english.php (eval?)
Line: 172
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: pixeleyes on March 20, 2012, 06:28:11 AM
how to add Bank feature under Send money to someone in poster information.

e.g.
Credit : 1000
Inventory:
Send Money to Someone
Bank : 500
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: AllanD on March 20, 2012, 06:58:13 PM
Looking for help to integrate SMFshop with living avatar.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: InfoStrides on April 05, 2012, 09:56:08 AM
I successfully installed this mod and add items for testing. I added credits to a user and tried to buy stuff which was successful with a message like this "You successfully bought a '₦100 Etisalat'. To use it, click on the "Your Inventory" link on the left."

I visited my inventory as instructed to use my bought stuff. I clicked on use item, here is what I received

QuoteHello, I am a test!
This is all the test item does!!

Back to your Inventory


What do I need to do to fully use it?

Thanks.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on April 05, 2012, 11:35:08 AM
That item appears to be an example item doesn't do anything. Basically an example if you want to build custom items.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: InfoStrides on April 05, 2012, 12:55:14 PM
Quote from: vbgamer45 on April 05, 2012, 11:35:08 AM
That item appears to be an example item doesn't do anything. Basically an example if you want to build custom items.

How do I got about it? Because I added the items.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on April 05, 2012, 03:56:06 PM
There is a coding forum on smfshop.com that talks about coding custom items and has examples
http://smfshop.com/forum/index.php/board,14.0.html?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: InfoStrides on April 06, 2012, 12:44:03 AM
Thanks. I have visited the website but did not answer my issue.

I used send email to Admin feature under Add Items and configure it accordingly. I tested with an account and it indicated success message sent but I did not receive email in the specified email. Do I need to set any other thing?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: InfoStrides on April 06, 2012, 09:45:10 AM
Thanks. It is working now.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: wynnyelle on April 30, 2012, 10:28:14 PM
Hello! I have this installed on my site, the 2.0 version. There is more than one problem with it; one problem is that we need to change the desctiptions that happen when a player tries to use a custom made item. They all say "This is a test item!" and they don't explain anything so the members all get confused.

Can I go somewhere in the code and put in the descritions for when they click on the item to use it?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on April 30, 2012, 10:30:36 PM
Yes you can change the description inside the item itself

Found in
Sources/items/youritemname.php
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Ascot on May 01, 2012, 06:49:10 PM
can someone help me on adapt this item to smf 2.0.2 ?
i'm having the following error on parsing

Quote
Fatal error: Call to undefined function db_query() in /home/lucas/public_html/forum/Sources/shop/items/AddMemberGroup.php on line 30


here's the item code

<?php
//File: AddMembergroup.php
//      Item

//DATE: Mar 07, 2007
//Author Taj

class item_AddMembergroup extends itemTemplate {
    function 
getItemDetails() {
    
$this->authorName "Taj";

$this->authorWeb "http://www.hostadore.com/";

$this->authorEmail "[email protected]";

        
$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]}!!";
    }
}
?>


This came from http://smfshop.com/forum/index.php/topic,316.msg3491.html#msg3491

I tried to change table names to right actual ones but i still have the parse error. (do i need to clean my cache or something?)
If you're so kind, can you test it before posting back ?
Thanks in advance.  :)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Biology Forums on May 01, 2012, 10:40:24 PM
Quote from: Ascot on May 01, 2012, 06:49:10 PM
can someone help me on adapt this item to smf 2.0.2 ?
i'm having the following error on parsing

Quote
Fatal error: Call to undefined function db_query() in /home/lucas/public_html/forum/Sources/shop/items/AddMemberGroup.php on line 30


here's the item code

<?php
//File: AddMembergroup.php
//      Item

//DATE: Mar 07, 2007
//Author Taj

class item_AddMembergroup extends itemTemplate {
    function 
getItemDetails() {
    
$this->authorName "Taj";

$this->authorWeb "http://www.hostadore.com/";

$this->authorEmail "[email protected]";

        
$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]}!!";
    }
}
?>


This came from http://smfshop.com/forum/index.php/topic,316.msg3491.html#msg3491

I tried to change table names to right actual ones but i still have the parse error. (do i need to clean my cache or something?)
If you're so kind, can you test it before posting back ?
Thanks in advance.  :)

Doesn't have to do with Cache, you're simply coding it wrong. Not too sure how though.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Ascot on May 02, 2012, 02:06:25 PM
DONE! tnx
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: wynnyelle on May 04, 2012, 05:45:09 PM
Quote from: vbgamer45 on April 30, 2012, 10:30:36 PM
Yes you can change the description inside the item itself

Found in
Sources/items/youritemname.php

I went in there and there were no files with any of my items in there. Only stuff we don't use. We created our game items by using the test item as a template. I really need this descriptions changed to fit each one becaue it is telling my membres the item doesnt do anything and they are not understanding it, and they are then getting upset. I am dealing with several upset people a day I have to explain to. Please help.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: RoCKeT-88 on May 20, 2012, 01:49:16 AM
Is there some way to show on stats the top ten currency holders that I am not seeing?  Or could it be so easily?  My users are really into this mod and seeing who's ahead and who's not. 

TYIA~

P.S.  This is such an awesome mod!
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: InfoStrides on June 02, 2012, 12:22:15 AM
This mod do not work with post moderation. When a post moderation is set on. Credits are awarded to the posts yet to be approved. Can you help look into this?

Thank you.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: SPKuja on June 04, 2012, 10:19:16 AM
I've installed this mod, and it all installed okay with no errors, but I cannot access the admin panel for it, it hasn't installed any links "On the left" or any where else inside of my admin panel.... Any ideas?

Okay, I have sorted that problem, you acutally have to be set as an Admin to view it not just a user that can use the admin panel...

I now have a different problem. I am trying to use the "EMail and Admin" as an item, which once set up, and used, does not send an e-mail out that I can find! Is there a way to set which e-mail address it comes from, or is there an actual way to make sure it's sending emails out!
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: stormiecub on June 06, 2012, 05:11:49 PM
Only administrator can access my shop. What do I need to fix this? Any member who doesn't have administrative capabilities can't buy or trade at all, and my forum is heavily reliant on a shop system!
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on June 06, 2012, 05:16:03 PM
Admin -> Permissions -> then modify each group and give them shop permissions
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: stormiecub on June 06, 2012, 05:18:40 PM
Thanks! I had tried to go through the usergroups to do it but that was going around my elbow to get to my ear apparently. Easy. Thanks!
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on June 06, 2012, 05:39:45 PM
Glad to help.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Ascot on June 15, 2012, 04:57:24 PM
Does links to buy an object works in posts?
this could be dangerous
cause there's no "buy or not?" alert or similar. 
It just buy.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: bearstreet on June 15, 2012, 09:57:13 PM
is there a subscriptions system that I can integrate with this shop mod where users can buy themselves subscriptions for a particular usergroup,
Like I list membership to a particular usergroup as an item and users can get upgraded to that particular membergroup once they buy that item, I hope I made clear what I want
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Kindred on June 16, 2012, 08:26:38 AM
SMF 2.x has joinable and subscription member groups
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: WantSome on July 23, 2012, 05:35:41 PM
Hello!

I need some help.  I want another membergroup (a staff membergroup) to be able to administrate the shop.  That is, I want them to be able to add items, restock items, etc...

How can I (preferably easily) do this?  Is it even do-able?

I just don't fancy being the only one to ever be able to do anything with the shop admin-wise.

Thanks!
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Kindred on July 23, 2012, 06:14:04 PM
look at the permissions screen
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: WantSome on July 24, 2012, 02:53:20 PM
Thanks Kindred.

If you're talking about the membergroup permissions screen, then the membergroup I want to administrate the forum has every permission ticked.  All of them (there are 106, apparently).  I can't see one in particular that allows them to *administrate* the shop, only view and use the shop.

And although they have all the permissions, they can't see the 'Shop Administration' button at all on the admin panel.  So, although they have all the permissions (unless there is another permissions area I've missed which is possible) they still can't administrate the shop (that is, restock items, add items, etc).

Any help?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Tobias22 on July 27, 2012, 07:55:48 PM
Hey,

Just changed from PHPBB3, due to their failness and switched to SMF. Installed this mod and I am happy to say..it works perfectly. I'm just curious, is there a way I can get it to show what each member has for currency on their mini profile for each post they make? Like above their location or something?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: AllanD on July 27, 2012, 09:49:29 PM
If I remember right check permissions, when I used this mod it showed in the minprofile.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Tobias22 on July 28, 2012, 11:05:02 AM
Nah, I can't find it anywhere in the permissions, it works fine with everything else..Aside from the fact that we can't use Glow/shadow with it..Which annoys me greatly..since that's the only reason I installed it lol.
But it doesn't have an option to show on the mini profile..and I'm not sure why lol..It seems to be on everyone elses site working in the MP
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: iknowyou on August 15, 2012, 06:31:28 AM
Just wondering, does this mod use a lot of CPU resource?

Cheers
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Kendrall on August 22, 2012, 10:28:59 AM
Quote from: WantSome on July 24, 2012, 02:53:20 PM
Thanks Kindred.

If you're talking about the membergroup permissions screen, then the membergroup I want to administrate the forum has every permission ticked.  All of them (there are 106, apparently).  I can't see one in particular that allows them to *administrate* the shop, only view and use the shop.

And although they have all the permissions, they can't see the 'Shop Administration' button at all on the admin panel.  So, although they have all the permissions (unless there is another permissions area I've missed which is possible) they still can't administrate the shop (that is, restock items, add items, etc).

Any help?


Agreed, there isn't a direct method to grant global moderators or maintenance-based profiles the ability to actively administer the SMF Shop.  I installed SMF Shop 3.2 on my test forum, and apparently if you want someone else to manage the shop for you, that person HAS to have FULL administrative privileges (i.e. they need to be an administrator).
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: hcfwesker on August 22, 2012, 01:23:26 PM
About other members managing the Shop ..

Strangely when looking over the edits, there is a shop_admin permission being called for in the shop section of the Admintemplate.php, but i dont see any edits for shop_admin being added to Permissions.php file.

This may could work ...

Sources/ManagePermissions.php

Find
'profile_remote_avatar',
'profile_remove_own',

// Begin SMFShop code
'shop_main',


Replace with
'profile_remote_avatar',
'profile_remove_own',

// Begin SMFShop code
'shop_main',
'shop_admin',


Find
'shop_trade' => array(false, 'shop', 'shop'),

add AFTER
'shop_admin' => array(false, 'shop', 'shop'),


Themes/default/languages/ManagePermissions.english.php

Find
?>

Add ABOVE

$txt['permissionname_shop_admin'] = 'Administrate the Shop';



Haven't tested it since I use SA Shop on my forum witgh this feature already added.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Kendrall on August 23, 2012, 07:15:19 AM
Awesome.  I'll test the changes to the source code and will let you know my results.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Kendrall on August 23, 2012, 08:11:03 AM
It worked!   ;D  Now if I can just get that bloody Lottery Mod to play nicely...according to the programmer, it *should* work for SMF Shop 3.2, but I keep encountering the following error:

Fatal error: Call to undefined function db_query() in /home/.../public_html/.../Packages/temp/LotterySQL.php on line 17

Any ideas?   :-\

Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Kindred on August 23, 2012, 10:04:34 AM
are you running smf 1.1.x or smf 2.0.x?

I'm betting that the lottery mod is designed for 1.1.x and you are running 2.0.x
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Kendrall on August 23, 2012, 10:13:59 AM
Quote from: Kindred on August 23, 2012, 10:04:34 AM
are you running smf 1.1.x or smf 2.0.x?

I'm betting that the lottery mod is designed for 1.1.x and you are running 2.0.x

SMF 2.0.2.   It's likely that the lottery mod is geared for 1.1.x, but I didn't see anything in the author's release notes about which version of SMF was supported.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Kindred on August 23, 2012, 10:24:02 AM
mods for 1.1.x will likely not work on 2.0.x because there was a change in the way db queries were formed...
(SMF changed its structure -- I believe that one reason was to prevent conflicts with other softwares which used the same statement, but different arguments.)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Kendrall on August 23, 2012, 11:01:57 AM
Quote from: Kindred on August 23, 2012, 10:24:02 AM
mods for 1.1.x will likely not work on 2.0.x because there was a change in the way db queries were formed...
(SMF changed its structure -- I believe that one reason was to prevent conflicts with other softwares which used the same statement, but different arguments.)

So much for using SMFShop, then.  I was hoping to really have a nice, complete package to test before putting it into production onto my friend's forum.  Unfortunately, my coding skills have really atrophied over the years, and the thought of having to tweak the code just to get the lottery mod to work is giving me a headache.  *sigh*

Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: hcfwesker on August 23, 2012, 05:10:26 PM
From SMF Lotter modifcation topic. 

QuoteLast Edit: May 04, 2008, 12:23:08 PM by YamiKaitou »

Honestly doubt it was ever upgraded for smf2.  I believe it can still be made compatible with SMf1, but i remembered using this, and it just didnt appeal to members because of how it actually worked, there are other alternatives out there.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Kendrall on August 23, 2012, 08:05:10 PM
Quote from: hcfwesker on August 23, 2012, 05:10:26 PM
From SMF Lotter modifcation topic. 

QuoteLast Edit: May 04, 2008, 12:23:08 PM by YamiKaitou »

Honestly doubt it was ever upgraded for smf2.  I believe it can still be made compatible with SMf1, but i remembered using this, and it just didnt appeal to members because of how it actually worked, there are other alternatives out there.

I didn't see anything else out there, but I'll keep my eyes open.  I have a friend of mine looking into possibly re-writing the code for the lottery, but he and I are both thinking he'll have to write a script from scratch.  Otherwise, what would you suggest as a viable alternative, hcfwesker?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: venex on August 24, 2012, 06:35:09 PM
Quote from: Groovystar on January 03, 2012, 01:49:15 PM
No, that error isn't coming up anymore but this is what people are saying:

http://warriorcatsrpg.com/the-help-den/bank-still-not-fixedworking-it-325555.msg8442167.html#new

"
Ok, now it's different. I tried withdrawing money like 20 or so times. And it still said i had a minus amount. So after 20 times of trying to withdraw I gave up. Yet I didn't know that I actually withdrawed more than I need. So after trying to withdraw 84034 like 20 or so times, I went to Shop home and what I saw blew away my mind. I was second place on "Riches Members Pocket" list. So that's like, under Wynn. I know, I cant achieve that in just 6 months of roleplaying, unless i'm awake day and night Rping. "


"I dont know if I should be happy about this or concerned. The bank is letting me enter more than I can. I had 84034 in the bank and entered 1804.56 in and it said I have somtheing around 91246
EDIT: Now I have -9009 or something like that in my "Pocket""

It's actually worse now, in a way--giving people a lot of points they don't have.

I did get this error:

"http://warriorcatsrpg.com/index.php?action=shop;do=bank2
Apply Filter: Only show the errors with the same message
Wrong value type sent to the database. Integer expected. (amount)
Function: require
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/shop/Shop-Bank.php
Line: 90 "

But a lot of people used the bank since this "fix." So I know something else is going on.
I'm having this issue and it has caused a lot of angry people on my site.

Any solution for this issue?


PS: So there's a new person taking care of this MOD now?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: WantSome on August 29, 2012, 05:27:19 PM
Quote from: hcfwesker on August 22, 2012, 01:23:26 PM
About other members managing the Shop ..

Strangely when looking over the edits, there is a shop_admin permission being called for in the shop section of the Admintemplate.php, but i dont see any edits for shop_admin being added to Permissions.php file.

This may could work ...

Sorry for taking so long to feed back! 

Your code worked perfectly, thank you!  I'm very happy someone else can do all the hard work of administrating the shop now ;)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: xanenightwing on September 24, 2012, 03:50:59 PM
Hi, I'm trying to add an "email admin" item to my shop and each field gets populated with "0" and therefore refuses to work. I looked on the smfshop.com support area for a fix and found one that gives an SQL error.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'text" name="oldmcnick" />

New Nickname: (form field) File: /Sources/shop/ShopAdmin.php


The error, according to this message, is on line 560 of the shopadmin.php file. the line reads:
));

Thanks for the help
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: FireDitto on September 28, 2012, 09:24:03 AM
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 =)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Vongola on October 14, 2012, 03:14:41 PM
hey guys iinstalled smf shop mod succesfully and i have a problem.. normal members cant go in the shop.. how can i change that?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on October 14, 2012, 03:31:08 PM
Admin -> Permissions set them for SMF Shop
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: stylusss on October 28, 2012, 10:31:16 PM
How do you take away someone's credits as an administrator?

There is a member whom I would like to remove some of their credits.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on October 28, 2012, 10:32:33 PM
Use a negative number when giving a person credits
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: stylusss on October 28, 2012, 10:41:24 PM
Quote from: vbgamer45 on October 28, 2012, 10:32:33 PM
Use a negative number when giving a person credits

No, I mean they have 100 credits already, but I personally want to go and make that 10 instead (so remove 90 from what they have earned). How do I do this?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on October 28, 2012, 10:43:22 PM
Use -90 to remove credits
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: stylusss on October 28, 2012, 10:59:47 PM
Quote from: vbgamer45 on October 28, 2012, 10:43:22 PM
Use -90 to remove credits

What do you mean? Where do I input this -90? Is there a slot for it I can't see?

Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: LaurensPlace on October 29, 2012, 06:56:55 AM
can this be done by users who want to buy real products or at least digital products such as ebooks and such?  I just installed this now and works great
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on October 29, 2012, 09:16:06 AM
It could be used for that just might take a little modifying.
I think see an optin that would work use the "Download a file" shop item.

I do have a store system if you are going to be selling real/digital products for income.
http://www.smfhacks.com/smf-store.php
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: stylusss on October 29, 2012, 09:23:29 AM
Quote from: stylusss on October 28, 2012, 10:59:47 PM
Quote from: vbgamer45 on October 28, 2012, 10:43:22 PM
Use -90 to remove credits

What do you mean? Where do I input this -90? Is there a slot for it I can't see?

Any input on this? Seems like you ignored my question lol
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: LaurensPlace on October 29, 2012, 09:36:16 AM
Quote from: vbgamer45 on October 29, 2012, 09:16:06 AM

I do have a store system if you are going to be selling real/digital products for income.
http://www.smfhacks.com/smf-store.php

Great I have a client that asked this and shall pass it on to them
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: ApplianceJunk on October 29, 2012, 10:10:29 AM
Could you make your spam banner a little larger?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on October 29, 2012, 01:39:08 PM
Quote from: stylusss on October 29, 2012, 09:23:29 AM
Quote from: stylusss on October 28, 2012, 10:59:47 PM
Quote from: vbgamer45 on October 28, 2012, 10:43:22 PM
Use -90 to remove credits

What do you mean? Where do I input this -90? Is there a slot for it I can't see?

Any input on this? Seems like you ignored my question lol
hmm I thought there was a way to credits to a member
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: stylusss on October 29, 2012, 06:35:21 PM
I don't know, is there? Should be accessible to admins where they go to the persons profile and change it there in an input box. Does this exist? ???
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: hcfwesker on October 29, 2012, 07:09:31 PM
Quote from: stylusss on October 29, 2012, 06:35:21 PM
I don't know, is there? Should be accessible to admins where they go to the persons profile and change it there in an input box. Does this exist? ???

Try phpMyadmin in your cPanel.  Search the table smf_members, and search that member's id.  Once it pulls up, you can edit and change money,  cashmoney , or shopmoney ( lableed one of those 3 cant remember).  and just change the value of that members money.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: stylusss on October 29, 2012, 09:38:47 PM
Quote from: hcfwesker on October 29, 2012, 07:09:31 PM
Quote from: stylusss on October 29, 2012, 06:35:21 PM
I don't know, is there? Should be accessible to admins where they go to the persons profile and change it there in an input box. Does this exist? ???

Try phpMyadmin in your cPanel.  Search the table smf_members, and search that member's id.  Once it pulls up, you can edit and change money,  cashmoney , or shopmoney ( lableed one of those 3 cant remember).  and just change the value of that members money.

With all do respect, you have to do all that every time you want something this simple to be done?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: hcfwesker on October 29, 2012, 10:30:25 PM
I dont use this SHOp mod, I use SA Shaop.  Just installed this to test ....

Have you tried

Admin > Shop Administration > Member's Inventory ( insert a username)

That allows you to change their money and bank, and delete items they have.

Quote from: stylusss on October 29, 2012, 09:38:47 PM
With all do respect, you have to do all that every time you want something this simple to be done?

I didn't make the mod lol.  just giving you a guaranteed solution to your problem.  Don't know why noone suggested the Shop Admin panel like i listed above.  unless its gone.

Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: stylusss on October 30, 2012, 12:29:46 PM
"Admin > Shop Administration > Member's Inventory ( insert a username)"

that did it! Thanks
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on October 30, 2012, 06:30:59 PM
Mystery solved!
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: stylusss on October 30, 2012, 09:51:49 PM
lol
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: shake410 on November 07, 2012, 06:31:37 PM
hello, i like this mod but i need some help with this. i am trying to use the download xxx file to let my members download video and zip files but it wont work. i use the correct paths but when i try to download it doest work. then when i go back to check the paths what i typed is gone and theres just a 0 in its place. can someone help me with this? if this has already been solved somewhere I apologize i searched but couldnt find any thing.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Waverlymain on November 26, 2012, 02:20:43 PM
The SMF Forum has already preset groups like Newbie, Jr Member, Full Member etc... For a member to go from Jr Member to Full Member they have to make a 100 post. So once they made their 100 post they automatically become a Full Member. So is it possible to set the SMF Shop to automatically deposit a predetermined amount of credits/points into that members account when the system moves them to a different group?

Example:
So basically member X has 450 points/credits in his SMF Shop account from all the post he has made, he makes his 50th post and now he is Jr. Member automatically also SMF Shop automatically deposited 100 (or whatever number I want to set it to) points/credits into his account because he went up to another member group.  So now member X is a Jr. Member and was given 100 more points/credits for a total of 550.

This all being done automatically just like you can fill in the amount of points/credits in the admin control panel to issue for making a post or so many points/credits for a word etc...

Also I know this has been asked before I'm sure but is there a way to set up the through subscriptions or some other mod to sell points through PayPal using the return URL and wants the payment process is done, SMF Shop will deposit whatever amount of points/credits that was set up for that purchase?

Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on November 26, 2012, 05:04:26 PM
No built in paypal support at the moment. You would have to manually process payments
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Waverlymain on November 26, 2012, 08:32:31 PM
Tjank you for the reply. I have see your mod SMF Store and it has a lot of features. Is this a possible feature that you may be adding as far as the buying of points?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on November 26, 2012, 08:41:42 PM
Not likely at the moment busy with work and stuff.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Waverlymain on November 26, 2012, 10:26:57 PM
 :) no worries thanks again
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Mr E S Stranger on December 04, 2012, 10:37:50 AM
Hey, not sure if anyone checks this thread any longer, but I had a few questions that I hope you guys can help with.

Now before I delve too deep, I'm not a code guru or even a code novice for that matter.

I've installed the mod to a test forum and everything thus far seems to be working wonderfully.

The only issue I've ran into is when I buy the "Random Money". It goes into my inventory and when I go to use it I get the error:

Fatal error: Function name must be a string in /home/thesite9/public_html/test/Sources/shop/items/RandomMoney.php on line 83

However, when I refresh once or twice, it takes me back to my inventory and the item has worked.

How can I fix this?

Also, where can I add more items aside from those in the initial install?

Thanks a bunch!

Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on December 04, 2012, 11:02:47 AM
What SMF version?

And is RnadomMoney an item that came with SMF Shop?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Mr E S Stranger on December 04, 2012, 11:11:20 AM
Quote from: vbgamer45 on December 04, 2012, 11:02:47 AM
What SMF version?

And is RnadomMoney an item that came with SMF Shop?

2.0.2 and yeah, it was part of the initial install.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on December 04, 2012, 11:39:55 AM
Quote from: Mr E S Stranger on December 04, 2012, 11:11:20 AM
Quote from: vbgamer45 on December 04, 2012, 11:02:47 AM
What SMF version?

And is RnadomMoney an item that came with SMF Shop?

2.0.2 and yeah, it was part of the initial install.
Posted fix 3.2.1 for SMF 2.0
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Mr E S Stranger on December 04, 2012, 11:50:54 AM
Quote from: vbgamer45 on December 04, 2012, 11:39:55 AM
Quote from: Mr E S Stranger on December 04, 2012, 11:11:20 AM
Quote from: vbgamer45 on December 04, 2012, 11:02:47 AM
What SMF version?

And is RnadomMoney an item that came with SMF Shop?

2.0.2 and yeah, it was part of the initial install.
Posted fix 3.2.1 for SMF 2.0

You, sir, are a genius!

Thanks!!!!!
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on December 04, 2012, 11:53:30 AM
Glad to help
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: WantSome on December 13, 2012, 03:11:19 PM
Hello!

I was wondering, is there a way to limit earning interest below a specific amount?  I have some longstanding users that aren't active and aren't using their points so are getting waaaay too rich.  It's a little difficult for new users to appear anywhere in our stats, etc.

Is there a way to make it so that the interest is only earned on the first X number of points?  So, for example, if I limit the interest to 2% per day on the first 100 000 points, everyone who has over 100 000 points will earn exactly the same per day (I have members who have millions who are earning thousands every day and it's not really fair).

Any help is appreciated!

WS

EDIT:  Also, is there a way to make interest earn only if a member logs on, but not on days that the member does not log on?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: WantSome on December 17, 2012, 01:35:01 PM
Err... Anybody?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: AllanD on January 10, 2013, 11:14:06 AM
Was wondering how to do I remove the shop button in the menu and the inventory in the postbit/forum profile.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: venex on January 11, 2013, 10:50:51 AM
Quote from: WantSome on December 13, 2012, 03:11:19 PM
Hello!

I was wondering, is there a way to limit earning interest below a specific amount?  I have some longstanding users that aren't active and aren't using their points so are getting waaaay too rich.  It's a little difficult for new users to appear anywhere in our stats, etc.

Is there a way to make it so that the interest is only earned on the first X number of points?  So, for example, if I limit the interest to 2% per day on the first 100 000 points, everyone who has over 100 000 points will earn exactly the same per day (I have members who have millions who are earning thousands every day and it's not really fair).

Any help is appreciated!

WS

EDIT:  Also, is there a way to make interest earn only if a member logs on, but not on days that the member does not log on?
great idea. I'd like to have something like that as well.

We also have the same money issue in my forum. People are way too rich and new users are struggling to get up in the charts... unless they buy credits from other members. One way to reduce the amount of credits in our forum is that every time they deposit or withdraw credits, we take away 1% of the amount... but, with large amounts... they ear a lot with the interests... so ur idea is perfect... that way they also become active. 
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: hcfwesker on January 11, 2013, 06:32:35 PM
Quote from: WantSome on December 13, 2012, 03:11:19 PM
Hello!

I was wondering, is there a way to limit earning interest below a specific amount?  I have some longstanding users that aren't active and aren't using their points so are getting waaaay too rich.  It's a little difficult for new users to appear anywhere in our stats, etc.

Is there a way to make it so that the interest is only earned on the first X number of points?  So, for example, if I limit the interest to 2% per day on the first 100 000 points, everyone who has over 100 000 points will earn exactly the same per day (I have members who have millions who are earning thousands every day and it's not really fair).

Any help is appreciated!

WS

EDIT:  Also, is there a way to make interest earn only if a member logs on, but not on days that the member does not log on?

Instead of doing 2% flat, you can make it a smaller interest rate by adding a decimal, like .2% or .02% , which is what I use on my site.  Yes, it would still affect all members but at the same time why give away so much money with interests ;)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: hcfwesker on January 11, 2013, 06:37:26 PM
Quote from: AllanD on January 10, 2013, 11:14:06 AM
Was wondering how to do I remove the shop button in the menu

Sources/Subs.php

Find & REMOVE

// Begin SMFShop code
// !!! Add subactions?
'shop' => array(
'title' => $txt['shop_menu_button'],
'href' => $scripturl . '?action=shop',
'show' => true,
),
// End SMFShop code


Quote from: AllanD on January 10, 2013, 11:14:06 AM
and the inventory in the postbit/forum profile.


Themes/default/Display.template.php

Find

// Begin SMFShop 2.3 (Build 11) code
echo '
<li>', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '</li>
<li><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">', $txt['shop_display_view_inventory'], '</a></li>
<li><a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">', $txt['shop_display_send_money'], ' ', $message['member']['name'], '</a></li>';
//END SMFShop code


Remove the line of what you want removed, if everything ... just remove it all.

Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: AllanD on January 12, 2013, 09:30:27 AM
Thank you very much.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: hcfwesker on January 12, 2013, 12:16:29 PM
You're welcome.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: shadowedfoe on February 08, 2013, 02:27:58 PM
Hi, I just installed the mod and it's working fine only that I cannot seem to find a link to it in the Admin CP?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on February 08, 2013, 02:58:10 PM
There should be a whole Shop area in the admin area.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: jackk on February 09, 2013, 04:18:40 AM
Just wondering, would it be difficult to add functionality where you can buy virtual points with real money?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on February 09, 2013, 12:32:53 PM
Quote from: jackk on February 09, 2013, 04:18:40 AM
Just wondering, would it be difficult to add functionality where you can buy virtual points with real money?
Yes it would be.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: jackk on February 09, 2013, 01:28:12 PM
Quote from: vbgamer45 on February 09, 2013, 12:32:53 PM
Quote from: jackk on February 09, 2013, 04:18:40 AM
Just wondering, would it be difficult to add functionality where you can buy virtual points with real money?
Yes it would be.
Shame to hear that, overall it's great mod, this is the only feature which i miss.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: DEEPSNUYB on February 14, 2013, 11:53:21 PM
These are the errors I am getting.

Unknown column 'money' in 'field list'
File: /var/www/vhosts/domain.com/httpdocs/Sources/shop/Shop.php
Line: 93

Table 'domain.smf_shop_items' doesn't exist
File: /var/www/vhosts/domain.com/httpdocs/Sources/shop/ShopAdmin.php
Line: 692

Table 'domain.smf_shop_items' doesn't exist
File: /var/www/vhosts/domain.com/httpdocs/Sources/shop/ShopAdmin.php
Line: 692

Table 'domain.smf_shop_items' doesn't exist
File: /var/www/vhosts/domain.com/httpdocs/Sources/shop/ShopAdmin.php
Line: 692

blah blah blah and a bunch more.

I did run the install.php and it ran fine.  Obviously it did not create tables in the database.

To make it easier for everyone who is going to come up with this problem and a lot of these hacks seems to have this issue of the "install" file not creating database tables, to please show us how to manually create these table in mySQL.

Please show us the manual SQL inserts so we can get this mod going.  Thanks.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on February 15, 2013, 12:03:05 AM
What SMF version?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: DEEPSNUYB on February 15, 2013, 12:12:56 AM
I apologize.  2.0.4.  Duh.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on February 15, 2013, 12:26:23 AM
Download the SMF 1.1.x version and check the install.php it has the full queries in there.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: DEEPSNUYB on February 15, 2013, 12:34:37 AM
Thanks for that but you have to understand as a programmer, the end user is just that, an end user and not a programmer.

db_query("
   CREATE TABLE IF NOT EXISTS {$db_prefix}shop_items (
      id INT UNSIGNED NOT NULL AUTO_INCREMENT,
      name VARCHAR(50) NOT NULL,
      `desc` TEXT NOT NULL,
      price DECIMAL(8,2) UNSIGNED NOT NULL,
      module TINYTEXT NOT NULL,
      stock SMALLINT NOT NULL,
      info1 TEXT NOT NULL,
      info2 TEXT NOT NULL,
      info3 TEXT NOT NULL,
      info4 TEXT NOT NULL,
      input_needed TINYINT UNSIGNED DEFAULT '1' NOT NULL,
      can_use_item TINYINT UNSIGNED DEFAULT '1' NOT NULL,
      delete_after_use TINYINT(1) UNSIGNED DEFAULT '1' NOT NULL,
      image TINYTEXT NOT NULL,
      category SMALLINT NOT NULL,
      PRIMARY KEY (id)
   )", __FILE__, __LINE__);

This I understand but I am sure that will create errors in the insert.  $db_prefix, do we use SMF? 
   )", __FILE__, __LINE__); is this part of the insert? 

See what I mean.  That is why if you could please just POST it here for everyone can cut and paste and the question will not be asked again.  Thanks so much for your great hacks, they are the best.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on February 15, 2013, 01:05:32 AM
Grab this part and change yeah to smf_

CREATE TABLE IF NOT EXISTS smf_shop_items (
      id INT UNSIGNED NOT NULL AUTO_INCREMENT,
      name VARCHAR(50) NOT NULL,
      `desc` TEXT NOT NULL,
      price DECIMAL(8,2) UNSIGNED NOT NULL,
      module TINYTEXT NOT NULL,
      stock SMALLINT NOT NULL,
      info1 TEXT NOT NULL,
      info2 TEXT NOT NULL,
      info3 TEXT NOT NULL,
      info4 TEXT NOT NULL,
      input_needed TINYINT UNSIGNED DEFAULT '1' NOT NULL,
      can_use_item TINYINT UNSIGNED DEFAULT '1' NOT NULL,
      delete_after_use TINYINT(1) UNSIGNED DEFAULT '1' NOT NULL,
      image TINYTEXT NOT NULL,
      category SMALLINT NOT NULL,
      PRIMARY KEY (id)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: DEEPSNUYB on February 15, 2013, 02:26:12 AM
Not working. 

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 17

The last line, I tried , and ;  still same error

EDIT:  It needs the ) at the end.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: DEEPSNUYB on February 15, 2013, 02:30:22 AM
Ugh, what about the rest of these.  Can you upload everything in a TXT file so people can download what to copy and paste?

// Settings used in $modSettings array
db_query("REPLACE INTO {$db_prefix}settings (variable,value) VALUES ('shopVersion', '3.1.1')", __FILE__, __LINE__);
db_query("REPLACE INTO {$db_prefix}settings (variable,value) VALUES ('shopDate', 'May 20, 2009')", __FILE__, __LINE__);
db_query("REPLACE INTO {$db_prefix}settings (variable,value) VALUES ('shopBuild', '1')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopCurrencyPrefix', '')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopCurrencySuffix', ' credits')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopPointsPerTopic', '10')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopPointsPerPost', '8')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopInterest', '2')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopBankEnabled', '1')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopImageWidth', '32'), ('shopImageHeight', '32')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable, value) VALUES ('shopTradeEnabled', '1')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable, value) VALUES ('shopItemsPerPage', '10')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable, value) VALUES ('shopMinDeposit', '0')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable, value) VALUES ('shopMinWithdraw', '0')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable, value) VALUES ('shopRegAmount', '0')", __FILE__, __LINE__);

// New settings in SMFShop New Version (Build 12)
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopPointsPerWord', '0')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopPointsPerChar', '0')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopPointsLimit', '0')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopFeeWithdraw', '0')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}settings (variable,value) VALUES ('shopFeeDeposit', '0')", __FILE__, __LINE__);

//SMFShop 1.0 items
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock ) VALUES (
'', 'Test Item', 'Just a test item!', '10.00', 'testitem', '50')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock ) VALUES (
'', 'Random Money', 'Get a random amount of money, between -190 and 190!', '75', 'RandomMoney', '50')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock ) VALUES (
'', 'Add 100 to Post Count', 'Increase your Post Count by 100!', '50', 'AddToPostCount', '50')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock ) VALUES (
'', 'Increase Karma', 'Increase your Karma by 5', '100', 'IncreaseKarma', '50')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock ) VALUES (
'', 'Change Username', 'Change your Username!', '50', 'ChangeUsername', '50')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock ) VALUES (
'', 'Change User Title', 'Change your User Title', '50', 'ChangeUserTitle', '50')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock ) VALUES (
'', 'Increase Total Time', 'Increase your total time logged in by 12 hours.', '50', 'IncreaseTimeLoggedIn', '50')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock ) VALUES (
'', 'Change Other\\'s Title',  'Change someone else\\'s title', '200', 'ChangeOtherTitle', '50')", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock ) VALUES (
'', 'Decrease Posts by 100', 'Decrease <i>Someone else\\'s</i> post count by 100!!', '200', 'DecreasePost', '50')", __FILE__, __LINE__);

//updating pre-1.1 items to 1.1 items
db_query("UPDATE {$db_prefix}shop_items SET info1 = '100', input_needed = 0 WHERE module = 'AddToPostCount'", __FILE__, __LINE__);
db_query("UPDATE {$db_prefix}shop_items SET info1 = '5', input_needed = 0 WHERE module = 'IncreaseKarma'", __FILE__, __LINE__);
db_query("UPDATE {$db_prefix}shop_items SET info1 = '43200', input_needed = 0 WHERE module = 'IncreaseTimeLoggedIn'", __FILE__, __LINE__);
db_query("UPDATE {$db_prefix}shop_items SET info1 = '-190', info2 = '190', input_needed = 0 WHERE module = 'RandomMoney'", __FILE__, __LINE__);
db_query("UPDATE {$db_prefix}shop_items SET info1 = '40', input_needed = 1 WHERE module = 'Steal'", __FILE__, __LINE__);

//SMFShop 1.1 items
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock, info1, input_needed, can_use_item) VALUES ('', 'Steal Credits', 'Try to steal credits from another member!', 50, 'Steal', 50, '40', 1, 1)", __FILE__, __LINE__);
db_query("INSERT IGNORE INTO {$db_prefix}shop_items ( id , name , `desc` , price , module , stock, input_needed, can_use_item) VALUES ('', 'Rock', 'Well.... It does nothing', 5, 'Rock', 50, 0, 0)", __FILE__, __LINE__);

//SMFShop 1.2 items
db_query("INSERT IGNORE INTO {$db_prefix}shop_items (name, `desc`, price, module, stock, input_needed, can_use_item) VALUES (
'Change Display Name', 'Change your display name!', 50.00, 'ChangeDisplayName', 49, 1, 1)", __FILE__, __LINE__);

//SMFShop 2.1 items
db_query("INSERT IGNORE INTO {$db_prefix}shop_items (name, `desc`, price, module, stock, input_needed, can_use_item) VALUES ('Sticky Topic', 'Make any one of your topics a sticky!', 400.00, 'StickyTopic', 50, 1, 1)", __FILE__, __LINE__);

//default all items to use 'blank.gif'
db_query("UPDATE {$db_prefix}shop_items SET image = 'blank.gif'", __FILE__, __LINE__);

//add money columns to members table, if they don't already exist
$result = db_query("SHOW COLUMNS FROM {$db_prefix}members LIKE 'money'", __FILE__, __LINE__);
if (mysql_num_rows($result) == 0)
   db_query("ALTER TABLE {$db_prefix}members ADD money DECIMAL(9, 2) UNSIGNED DEFAULT '0.00' NOT NULL", __FILE__, __LINE__);
   
$result = db_query("SHOW COLUMNS FROM {$db_prefix}members LIKE 'moneyBank'", __FILE__, __LINE__);
if (mysql_num_rows($result) == 0)    
   db_query("ALTER TABLE {$db_prefix}members ADD moneyBank DECIMAL(9, 2) UNSIGNED DEFAULT '0.00' NOT NULL", __FILE__, __LINE__);

//give admin money :-)
db_query("UPDATE {$db_prefix}members SET money = '10000' WHERE ID_MEMBER = '1' LIMIT 1", __FILE__, __LINE__);

//New field in boards table. This specifies whether credits is increased in this board or not.
$result = db_query("SHOW COLUMNS FROM {$db_prefix}boards LIKE 'countMoney'", __FILE__, __LINE__);
if (mysql_num_rows($result) == 0)
   db_query("ALTER TABLE {$db_prefix}boards ADD countMoney TINYINT(1) UNSIGNED DEFAULT '1' NOT NULL", __FILE__, __LINE__);

// Field for custom credits per topic
$result = db_query("SHOW COLUMNS FROM {$db_prefix}boards LIKE 'shop_pertopic'", __FILE__, __LINE__);
if (mysql_num_rows($result) == 0)
   db_query("ALTER TABLE {$db_prefix}boards ADD `shop_pertopic` DECIMAL (9, 2) UNSIGNED NOT NULL", __FILE__, __LINE__);

// Field for custom credits per post
$result = db_query("SHOW COLUMNS FROM {$db_prefix}boards LIKE 'shop_perpost'", __FILE__, __LINE__);
if (mysql_num_rows($result) == 0)
   db_query("ALTER TABLE {$db_prefix}boards ADD `shop_perpost` DECIMAL (9, 2) UNSIGNED NOT NULL", __FILE__, __LINE__);

// Field for whether bonuses are enabled in this board
$result = db_query("SHOW COLUMNS FROM {$db_prefix}boards LIKE 'shop_bonuses'", __FILE__, __LINE__);
if (mysql_num_rows($result) == 0)
   db_query("ALTER TABLE {$db_prefix}boards ADD `shop_bonuses` TINYINT (1) UNSIGNED NOT NULL DEFAULT '1'", __FILE__, __LINE__);


   
// ---------- Insert the permissions --------------
// Initialise the values array. Give the permissions to all ungrouped members (ID_GROUP = 0)
$values = array("
      ('shop_main', 0, 1),
      ('shop_buy', 0, 1),
      ('shop_invother', 0, 1),
      ('shop_sendmoney', 0, 1),
      ('shop_senditems', 0, 1),
      ('shop_bank', 0, 1),
      ('shop_trade', 0, 1)");

// Get all the non-postcount based groups.
$request = db_query("
   SELECT ID_GROUP
   FROM {$db_prefix}membergroups
   WHERE minPosts = -1", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
   // Add this to the values we need
   $values[] = "
      ('shop_main', $row[ID_GROUP], 1),
      ('shop_buy', $row[ID_GROUP], 1),
      ('shop_invother', $row[ID_GROUP], 1),
      ('shop_sendmoney', $row[ID_GROUP], 1),
      ('shop_senditems', $row[ID_GROUP], 1),
      ('shop_bank', $row[ID_GROUP], 1),
      ('shop_trade', $row[ID_GROUP], 1)";
      
      
// Give them all their new permission.
db_query("
   INSERT IGNORE INTO {$db_prefix}permissions
      (permission, ID_GROUP, addDeny)
   VALUES
      " . implode(', ', $values), __FILE__, __LINE__);
?>
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on February 15, 2013, 08:05:48 AM
Just repeat remove the db_Query part and the ending and change the prefix
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: DEEPSNUYB on February 16, 2013, 12:35:34 AM
I have given up.  It is too difficult.  Maybe in your next zip update you can just include a text file with the exact syntax that users can copy and paste into mysql. 

all your other hacks are great.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on February 16, 2013, 01:39:18 AM
That is how it is for SMF 2.0 which is why I said to look to SMF 1.1.x
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: atlys on February 20, 2013, 12:39:28 PM
I think I have over-edited. I love this mod, and it functions mostly the way I want it to. But somewhere along the line of editing my code for other mods i can no longer set specific boards to only gain currency.

For example, I want only x amount of boards to gain money when posting. The same amount is fine but currently all boards get currency per post and in my board settings it's not an option to change.

Running SMF 2.0

Thanks for any help
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on February 20, 2013, 02:43:36 PM
[qoute]
I want only x amount of boards to gain money when posting. The same amount is fine but currently all boards get currency per post and in my board settings it's not an option to change.
[/quote]
Don't think I ever had that in the SMF 2.0 version of the shop mod.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: atlys on February 20, 2013, 03:22:21 PM
Someone posted this in another type of similar post threasd. But that person wants different denominations per thread I just want certain threads to not gain at all.

"If you go to "Boards" in the Admin center, then to the settings of a specific board, you can set whether a users post will count towards the shop or not"

This is not an option I see
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on February 20, 2013, 03:34:26 PM
I don't think it was ever added to SMF 2.0
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: atlys on February 20, 2013, 03:41:03 PM
The previous quote came from a 2.0 discussion forum.

i'm a liar, it came from a 1.1x? I think. But it says it should work with 2.0. Since the 2.0 is just an update of the same shop.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on February 20, 2013, 04:00:53 PM
Just was never built they are two separate files for each SMF version that change was never made to SMF 2.0 version.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: atlys on February 20, 2013, 04:16:29 PM
Actually I found it, it's a more complex version. It's the one implemented for this Shop that Daniel15 explains in another help thread but for some reason some of the pieces in the PHP he identified weren't there. So I kept digging for a more recent version.

It's an offsite link, am I allowed to post that here? It has detailed instructions on how to implement what I want and it works perfect.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on February 20, 2013, 04:50:45 PM
Sure I would like to see it.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: atlys on February 20, 2013, 09:14:05 PM
http://rpg-directory.com/threads/smf-shop-mod-boards-on-off.28578/#post-545416

One of the instructions is wrong, I mention that in this thread. But it functions absolutely perfectly.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: hcfwesker on February 24, 2013, 11:34:35 PM
SA Shop has the option.  http://custom.simplemachines.org/mods/index.php?mod=1794

Which SMFShop should have it, because not every board should allow credits.  It's one of the major reasons most users convert to SA Shop, since it allows it.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: WantSome on March 16, 2013, 03:00:29 AM
Quote from: hcfwesker on January 11, 2013, 06:32:35 PM
Quote from: WantSome on December 13, 2012, 03:11:19 PM
Hello!

I was wondering, is there a way to limit earning interest below a specific amount?  I have some longstanding users that aren't active and aren't using their points so are getting waaaay too rich.  It's a little difficult for new users to appear anywhere in our stats, etc.

Is there a way to make it so that the interest is only earned on the first X number of points?  So, for example, if I limit the interest to 2% per day on the first 100 000 points, everyone who has over 100 000 points will earn exactly the same per day (I have members who have millions who are earning thousands every day and it's not really fair).

Any help is appreciated!

WS

EDIT:  Also, is there a way to make interest earn only if a member logs on, but not on days that the member does not log on?

Instead of doing 2% flat, you can make it a smaller interest rate by adding a decimal, like .2% or .02% , which is what I use on my site.  Yes, it would still affect all members but at the same time why give away so much money with interests ;)

That's not really what I had in mind, hcfwesker, but thanks for the advice.  Yes, then interest is less, but it is still enormous for very rich people, and disproportionate.

So, I would still like to know if there is a way to limit the interest earned to a specific amount.  I'd also like to make it so that interest is only earned when people log onto the forum. 

Thanks!

EDIT:

Would it work if I changed in Sources/ScheduledTasks.php

// Create some money out of nowhere. How? By magical means, of course!
$smcFunc['db_query']('', '
UPDATE {db_prefix}members
SET moneyBank = moneyBank + (moneyBank * {float:rate})',
array(
'rate' => $modSettings['shopInterest'] / 100,
));


to
// Create some money out of nowhere. How? By magical means, of course!
$smcFunc['db_query']('', '
UPDATE {db_prefix}members
SET moneyBank = moneyBank + (100000 * {float:rate})',
array(
'rate' => $modSettings['shopInterest'] / 100,
));


In short, I'm saying SET moneyBank = bank balance + (an arbitrary amount * the interest rate I set in settings).

Would that work?  Is there any other place I need to change to modify this?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: FireDitto on March 16, 2013, 08:03:00 AM
Quote from: WantSome on March 16, 2013, 03:00:29 AM
I'd also like to make it so that interest is only earned when people log onto the forum. 

This! xD
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Maxtor on April 06, 2013, 05:19:18 PM
 is there a wa I can disable money from certain boards being posted in?
it is really important.

next to "Count Posts:" there must be added a "Count Money:"
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: hcfwesker on April 14, 2013, 05:19:35 PM
Quote from: maxtor on April 06, 2013, 05:19:18 PM
is there a wa I can disable money from certain boards being posted in?
it is really important.

SA Shop mod allows this option
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: CheeseHead05 on May 16, 2013, 12:48:46 AM
Hi,

As I am new to SMF, I need a little bot of help here.

I recently install a custom theme using ColorizeIt and would like to know if there is a way to remove "inventory from under the user's name in the post area" ?

Thanks in advance!
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on May 17, 2013, 11:50:21 AM
Yes you can edit the display.template.php of your theme and removed the SMF Shop code.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: CheeseHead05 on May 26, 2013, 11:09:25 PM
Quote from: vbgamer45 on May 17, 2013, 11:50:21 AM
Yes you can edit the display.template.php of your theme and removed the SMF Shop code.

What part of the display.template.php do I remove because I removed:

<li><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">', $txt['shop_display_view_inventory'], '</a></li>
                  <li><a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">', $txt['shop_display_send_money'], ' ', $message['member']['name'], '</a></li>';

and got a template parse error:

There was a problem loading the /Themes/default/Display.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/default/Display.template.php on line 337

328:          echo '
329:                   <li>', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '</li>
330:                
331:          //END SMFShop code
332:
333:          
334:          
335:          
336:          // Start of AutoAward         

337:          if (!isset($context['disabled_fields']['posts'])){

338:             $imagesURL = $settings['default_images_url'] . '/medals';         
339:             $medalscore = array (10,20,30,40,50,60,70,90,110,130,150,170,190,210,230,250);
340:          
341:             $mc=1;
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on May 26, 2013, 11:15:07 PM
Just remove this exact part

<li><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">', $txt['shop_display_view_inventory'], '</a></li>
                  <li><a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">', $txt['shop_display_send_money'], ' ', $message['member']['name'], '</a></li>
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: CheeseHead05 on May 26, 2013, 11:36:30 PM

Thanks vbgamer45, it worked!

And one last thing before I get out your hair,

Also, I wanted to delete "Send Money to..." whats the code?

Thanks alot!
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on May 26, 2013, 11:48:02 PM
What page is that on?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: CheeseHead05 on May 27, 2013, 12:13:29 AM
Quote from: vbgamer45 on May 26, 2013, 11:48:02 PM
What page is that on?

What do you mean? Im assuming that it is also in the display.template.php

It shows up under member's name on forum profile.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on May 27, 2013, 12:20:34 AM
I would need to see your display.template.php attach it please.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: CheeseHead05 on May 27, 2013, 01:26:36 AM
How do I attach it? I used '#' but it just looked as if I copied and pasted straight into the thread .
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on May 27, 2013, 09:03:08 AM
There should be an attachments/browse area in the main post area if you not you can post it all using code tags around the code.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: CheeseHead05 on May 27, 2013, 12:54:34 PM
// Begin SMFShop 2.3 (Build 11) code
echo '
<li>', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '</li>

    <li><a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">', $txt['shop_display_send_money'], ' ', $message['member']['name'], '</a></li>';
//END SMFShop code


Here is everything in reference to SMF Shop. I still cant seem to correctly copy/paste what u r asking for. It still taked up an entire page.  >:(
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: hcfwesker on May 28, 2013, 10:24:13 PM
Replace that code with this ...

// Begin SMFShop 2.3 (Build 11) code
echo '
<li>', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '</li>';
//END SMFShop code
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: CheeseHead05 on May 28, 2013, 10:34:34 PM
hcfwesker,

Thank u so much! I am good to go now!
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: CheeseHead05 on June 01, 2013, 03:23:19 AM
hcfwesker,

I installed another theme to another forum and want to know if you can take a look at it because I would like the code to remove "Send Money to' and "View Inventory".....I attempted to apply the code but it didnt work so I just left it in my display.php

Thanks in advance!
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: hcfwesker on June 02, 2013, 05:56:22 PM
All you had to do was replace the old shop code in the file ...

// Begin SMFShop 2.3 (Build 11) code
echo '
<li>', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '</li>
<li><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">', $txt['shop_display_view_inventory'], '</a></li>
<li><a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">', $txt['shop_display_send_money'], ' ', $message['member']['name'], '</a></li>';
//END SMFShop code


with the same shop code i supplied you with 2 posts back ...

// Begin SMFShop 2.3 (Build 11) code
echo '
<li>', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '</li>';
//END SMFShop code
 
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: CheeseHead05 on June 02, 2013, 11:12:01 PM
Thanks hcfwesker!
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: JuleZz on June 27, 2013, 10:50:39 PM
Hi everyone

Any user can acumulate points by creating and then right after deleting that same topic or post!

Don't know if it's just me, but when I delete something the points don't go down!

And the other thing that is happening is that when I edit an item every value goes to 0 and can't be changed! The only work around is to delete the item and create a new one with the new values.

Sorry for my bad english!

Kind regards
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on June 27, 2013, 10:53:46 PM
Yes that is possible.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: JuleZz on June 27, 2013, 10:57:59 PM
Quote from: vbgamer45 on June 27, 2013, 10:53:46 PM
Yes that is possible.

It happens ussualy?

Do you know what can I do to fix this? Or if there is any other mod I can use? I tried SA Shop but samething happens.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: WantSome on July 02, 2013, 04:11:59 PM
Hi vbgamer45,

If this has been asked already I'm sorry - I did a search and couldn't find the answer...

Can you tell me if it is possible, and then how, to remove deleted/banned members from the rich lists on the shop home page.  I do an inactive member purge on a regular basis and unfortunately these are cluttering up that list.

So, for example, how would I go about removing from the rich list members who are banned.
Or
How would I go about removing members who haven't been active in over X days/weeks/months. 

Is that possible at all? 

If not, is it possible to set the credits of those two groups to zero so they just fall off the list (set to zero all members who haven't been active in over X period of time, or who are in one usergroup etc).

Thanks!
WS
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: DeroZ on July 08, 2013, 02:11:41 AM
¿how i can hide "view inventory" (in display.template) of admin user?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Addic on July 08, 2013, 02:52:02 AM
Quote from: Snoopix on July 08, 2013, 02:11:41 AM
¿how i can hide "view inventory" (in display.template) of admin user?

Hi, if you just want to take that out find:
         // Begin SMFShop 2.3 (Build 11) code
echo '
<li>', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '</li>
<li><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">', $txt['shop_display_view_inventory'], '</a></li>
<li><a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">', $txt['shop_display_send_money'], ' ', $message['member']['name'], '</a></li>';
//END SMFShop code


And replace with this:

// Begin SMFShop 2.3 (Build 11) code
echo '
<li>', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '</li>
<li><a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">', $txt['shop_display_send_money'], ' ', $message['member']['name'], '</a></li>';
//END SMFShop code


If you want to take both send money and inventory out just remove the hole code in the first box.

Of course this removes them from any user not just from admins. That's a more complicated task xD
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: DeroZ on July 08, 2013, 02:57:20 AM
but, i want hide "view inventory" link only for admin profile, this code remove link for all users profile, because "inventory" link show real username account, and i don't want show the admin username.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Addic on July 08, 2013, 03:00:28 AM
Oh I see. That I don't know how to do, sorry man =/
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: DeroZ on July 08, 2013, 03:05:57 AM
when i view a inventory the link is : mydomain.com/index.php?action=shop;do=invother2;member=username , for safety reasons i don't want show the username of admin account. maybe also can fix this change "username" for "account id".
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Addic on July 08, 2013, 03:56:15 AM
Try this:

// Begin SMFShop 2.3 (Build 11) code
echo '
<li>', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '</li>
<li><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['name'], '">', $txt['shop_display_view_inventory'], '</a></li>
<li><a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['name'], '">', $txt['shop_display_send_money'], ' ', $message['member']['name'], '</a></li>';
//END SMFShop code


This should work with the user real name not username so it stays hidden as you wanted.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: DeroZ on July 08, 2013, 05:09:15 AM
works!

thx!  ;D
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Addic on July 08, 2013, 05:23:39 AM
Quote from: Snoopix on July 08, 2013, 05:09:15 AM
works!

thx!  ;D

Glad to help ;)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: DeroZ on July 09, 2013, 05:06:42 AM
how i can disable trade of a specific item?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Dhayzon on July 28, 2013, 12:26:53 AM
as show specific item on the display ? ;)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Dijboy on July 28, 2013, 05:51:00 PM
Hi, I would like to request a code that performs a "confirm a purchase" in the shop (like a pop up or page redirection). I searched the site for "confirmation page in SMF Shop" but nil results have returned to my likings. I add a lot of custom content in the shop via "Download xxx file". When I click on "Buy Now!" it doesn't bring up a confirmation page and people tend to lose credit due to misclicks. Can anyone help? Much would be appreciated!
Title: Turkish translation help
Post by: cereleus on August 08, 2013, 06:16:58 PM
hello
How to make Turkish words in the picture
please help me
(http://akvaryumbilyap.com/indirilecekdosya/Untitled.png)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Kindred on August 08, 2013, 08:29:38 PM
modifcations.turkish.php
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: whatever on August 12, 2013, 03:50:48 PM
I know I am being stupid, but hey:
Is there any new item to be added to smfshop? I went to that www.smfshop.com 's forum, and all I got is old items with nothing new to add into the shop~~

Right now, I want an item which won't let your purchase unless you are coming from certain membergroup.

Sigh...if only I am good in php coding:P
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on August 12, 2013, 03:52:34 PM
All the items you see on smfshop.com are the newest.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: whatever on August 13, 2013, 01:31:42 AM
@vbgamer45

guess I will go try requesting new item there then >.<

and another question: I saw an SMS store mod in that smfhacks of yours. Is it the same with SMFShop mod(with much better support and items)?

note:
some of the item can't be downloaded anymore like: http://smfshop.com/forum/index.php?topic=620.0

thanks
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on August 13, 2013, 08:25:47 AM
No the store mod is different that is for selling actual items physical and digital.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: whatever on August 14, 2013, 05:08:02 AM
would be nice if the store could do something like SMF Shop too! but oh well~~

anyway, I made my request on:
http://smfshop.com/forum/index.php?topic=2600.msg10226#new
and
http://www.simplemachines.org/community/index.php?topic=509505.0

I think it should be simple; adding some lines of PHP code into input area of each item's php and then adding some lines of PHP code checking if the user is from membergroup stated by input area, if not then the item can't be used, else the item works.

But yea, I am not a PHP programmer myself:P~~ so may be I am just asking too much >.<

Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Stanyy on September 20, 2013, 05:05:11 PM
Instead of earning credits by making posts, is it possible for a user to earn credits by karma?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on September 20, 2013, 05:06:01 PM
No at the moment.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Stanyy on September 20, 2013, 08:00:14 PM
Can you do a paid job for it?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Bob Perry of Web Presence Consulting on October 01, 2013, 07:03:40 AM
I just created three new items based on Karma, attached
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: insidesportsgambling on October 04, 2013, 01:49:32 PM
Hello for the shop i want to add real products like gift cards that my members can trade in points and buy is there a way to set up a checkout with the shop so when they buy the card it automatically take the points and then they add there shipping information?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on October 04, 2013, 01:53:18 PM
Not at the moment.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: WantSome on October 09, 2013, 12:18:52 PM
Quote from: WantSome on July 02, 2013, 04:11:59 PM
Hi vbgamer45,

If this has been asked already I'm sorry - I did a search and couldn't find the answer...

Can you tell me if it is possible, and then how, to remove deleted/banned members from the rich lists on the shop home page.  I do an inactive member purge on a regular basis and unfortunately these are cluttering up that list.

So, for example, how would I go about removing from the rich list members who are banned.
Or
How would I go about removing members who haven't been active in over X days/weeks/months. 

Is that possible at all? 

If not, is it possible to set the credits of those two groups to zero so they just fall off the list (set to zero all members who haven't been active in over X period of time, or who are in one usergroup etc).

Thanks!
WS

Any responses to the above question?

Thanks!
WS
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on October 09, 2013, 12:35:19 PM
You would need to set the money for those members to zero to disappear.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: handy1 on October 19, 2013, 09:10:18 AM
If someone bought my item, I will get notification PM. Is it possible to get this notification directly my email somehow?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: dany_danay on December 03, 2013, 05:17:37 PM
Sorry for this question, but for update the mod, i have to unistall it?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on December 03, 2013, 05:33:00 PM
No you do not need to
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Kyrianchigozie on December 28, 2013, 04:23:00 AM
Please how can add credit to my admin user because i cant share any credit to users. I think their should be a way to add credit to my account as the forum admin privately witout sharin to other admins.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on December 28, 2013, 08:04:19 AM
I think there is a give credit option. If not alter the money column in the members table for your member id and add credits
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Kyrianchigozie on December 28, 2013, 10:57:07 AM
Please i dont understand, i cant find the option. Am the admin and owner of the forum, but i dont have any credit in my account as an admin, how can i add credit to my self. Thaks
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Oldiesmann on December 28, 2013, 03:16:25 PM
Admin -> Shop Administration -> Members' Inventory

Enter a user's name and click "Next"

That will allow you to edit the credits for that user.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Kyrianchigozie on December 30, 2013, 12:45:12 PM
thanks. Question solved
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Norvidge on January 20, 2014, 04:03:06 PM
Hi! I have pets mod installed with smf shop and i want to know how to display pets item in display. but only pets, not other items of the inventory. someone can help me? :)


and another question. in smfshop forum there is a mod of smfshop called stats. but attached file in that topic is broken. someone has that mod?

regards!
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Wilz on February 06, 2014, 11:34:24 AM
I have installed this mod, but it seems like only administrators can access the shop button. Where can I change the permissions?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on February 06, 2014, 12:58:58 PM
Admin -> Permissions modify each group give them SMF Shop permissions
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Biology Forums on February 11, 2014, 02:28:45 AM
There are many mistakes in this mod that haven't been fixed. For example, the removetopic.php modifications are very, very bad. Here are some corrections after hours of testing on SMF 1.x:

Find:


//while ($rowMembers = mysql_fetch_assoc($requestMembers))
// updateMemberData($rowMembers['ID_MEMBER'], array('posts' => 'posts - ' . $rowMembers['posts']));

//BEGIN SMFShop 2.0 (Build 8) MOD code
while ($rowMembers = mysql_fetch_assoc($requestMembers)) {
updateMemberData($rowMembers['ID_MEMBER'], array('posts' => 'posts - ' . $rowMembers['posts']));
global $modSettings;
db_query("UPDATE {$db_prefix}members
  SET money = money - {$modSettings['shopPointsPerPost']}
  WHERE ID_MEMBER = {$rowMembers['ID_MEMBER']}
  LIMIT 1", __FILE__, __LINE__);
 
cache_put_data('user_settings-' . $rowMembers['ID_MEMBER']}, null, 60);
}

//END SMFShop 2.0 code


Change to:

//BEGIN SMFShop (Removes Topic Credits)
while ($rowMembers = mysql_fetch_assoc($requestMembers)) {
updateMemberData($rowMembers['ID_MEMBER'], array('posts' => 'posts - ' . $rowMembers['posts']));

global $board;
$result_shop = db_query("
SELECT shop_pertopic, shop_perpost, countMoney
FROM {$db_prefix}boards
WHERE ID_BOARD = $board
LIMIT 1", __FILE__, __LINE__);
$boardInfo = mysql_fetch_assoc($result_shop);

if($boardInfo['shop_pertopic'] != 0)
$shop = $boardInfo['shop_pertopic'];
else
$shop = $modSettings['shopPointsPerTopic'];

if(!empty($boardInfo['countMoney']))
{
db_query("UPDATE {$db_prefix}members
  SET money = money - {$shop}
  WHERE ID_MEMBER = {$rowMembers['ID_MEMBER']}
  LIMIT 1", __FILE__, __LINE__);
}
}
//END SMFShop 2.0 code


Find:


//BEGIN SMFShop New Version (Build 8) MOD code
db_query("UPDATE {$db_prefix}members
  SET money = money - {$modSettings['shopPointsPerPost']}
  WHERE ID_MEMBER = {$row['ID_MEMBER']}
  LIMIT 1", __FILE__, __LINE__);
cache_put_data('user_settings-' . $row['ID_MEMBER'], null, 60);
//END SMFShop New Version code


Change to:

//BEGIN SMFShop (Removes Post Credits)
global $board;
$result_shop = db_query("
SELECT shop_pertopic, shop_perpost, countMoney
FROM {$db_prefix}boards
WHERE ID_BOARD = $board
LIMIT 1", __FILE__, __LINE__);
$boardInfo = mysql_fetch_assoc($result_shop);

if($boardInfo['shop_perpost'] != 0)
$shop = $boardInfo['shop_perpost'];
else
$shop = $modSettings['shopPointsPerPost'];

if(!empty($boardInfo['countMoney']))
{
db_query("UPDATE {$db_prefix}members
  SET money = money - {$shop}
  WHERE ID_MEMBER = {$row['ID_MEMBER']}
  LIMIT 1", __FILE__, __LINE__);
}
//END SMFShop New Version code
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: SMFHacks.com Team on February 12, 2014, 11:42:59 AM
Version 3.3
!Better remove topic shop points code thanks to Liam_michael
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: mroyusa on April 08, 2014, 10:35:21 AM
Had to remove smf, was not able to delete topics when installed.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on April 08, 2014, 11:15:40 AM
Ok did you get an error?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: CedarMill on April 21, 2014, 02:32:05 AM
Hello

SMF 2.0.7 + SMFShop3.3forSMF2.0.zip

Error deleting threads and posts:

threads


Database error
Table 'forum.boards' doesn't exist
file: /var/www/user/data/www/forum.net/Sources/RemoveTopic.php
line: 262


posts


Database error
Table 'forum.boards' doesn't exist
file: /var/www/user/data/www/forum.net/Sources/RemoveTopic.php
line: 972


Please help to fix the error :(
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on April 21, 2014, 09:49:50 AM
Did you manually install the mod or any errors on installing?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: CedarMill on April 21, 2014, 11:23:34 AM
installing via admin panel (the package Manager modifications)
the module is installed without errors
but
error logs:
http://i.imgur.com/UYTfSj5.png
http://i.imgur.com/Tf1dUxS.png
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on April 21, 2014, 11:30:52 AM
Attach your Sourves/RemoveTopic.php file
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: CedarMill on April 21, 2014, 11:58:54 AM
attaching a file RemoveTopic.php
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on April 21, 2014, 12:52:26 PM
Updated file attached
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: SMFHacks.com Team on April 21, 2014, 12:55:58 PM
Version 3.3.1
!Fixed bug in SMF 2.0 version on removetopic edits.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: CedarMill on April 21, 2014, 02:02:50 PM
vbgamer45
SMFHacks.com Team

Thank you very much! :)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on April 21, 2014, 02:15:04 PM
Glad to help.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Papoune57 on May 01, 2014, 08:36:12 AM
Hello everyone,
I like to know if there is a mod to end to create groups of members of limited duration (without going through the paid subscription)?
I use SMF Shop and I would like the members of my forum to use their "credits" at the end of access to different groups based on the "sum" paid.
The "Change Group" function exists in the SMF mod Shop but once the member has been "buying" it belongs to the group for an indefinite period, I change hand in the administration to put the original group after a while but it is very convenient.

A paid subscription but using the points system mod.


Thank you in advance for your answers.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on May 01, 2014, 11:35:41 AM
Not at the moment.
Most addons can be found on http://www.smfshop.com
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Socialize on May 11, 2014, 03:02:58 PM
Hey guys!
Later, I will post the Spanish php file for Spanish forums/sites. I am still trying to translate it.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on May 11, 2014, 04:04:40 PM
Awesome can't wait!
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Socialize on May 11, 2014, 06:33:47 PM
I finally translated the file! If anyone wants to test this out on their Spanish site, or they have an extra database to try it. Please do so! Hopefully it works and enjoy! Thanks!
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Harvester on May 14, 2014, 08:12:59 PM
Im trying to figure out how to do a few things.

1. turn off the feature that allows members to give credits to other members.
2. stop displaying how many bass bucks each member has under their names on each of their posts
3. Stop displaying "View Inventory"  for each member under their names on each of their posts

I checked the permissions and the settings and i dont see where i can accomplish  this.

please assist?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on May 14, 2014, 09:10:20 PM
All three I believe require custom coding.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: hcfwesker on May 24, 2014, 07:53:55 PM
Quote from: Harvester on May 14, 2014, 08:12:59 PM
Im trying to figure out how to do a few things.

1. turn off the feature that allows members to give credits to other members.
2. stop displaying how many bass bucks each member has under their names on each of their posts
3. Stop displaying "View Inventory"  for each member under their names on each of their posts

I checked the permissions and the settings and i dont see where i can accomplish  this.

please assist?

So, you basically want to remove everything in the forum mini-profiles that has to do with the Shop.

Simple enough,

Display.template.php

Find and Remove

// Begin SMFShop 2.3 (Build 11) code
echo '
<li>', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '</li>
<li><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">', $txt['shop_display_view_inventory'], '</a></li>
<li><a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">', $txt['shop_display_send_money'], ' ', $message['member']['name'], '</a></li>';
//END SMFShop code



This wont stop members from being able to send money ... but it WILL remove the link making it tougher for them to do ;)

Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: ephman on June 09, 2014, 03:33:17 PM
Hello,

Is it possible as an admin to add/deduct credits from individual members?
I only see option to add/deduct from an entire membergroup. It would be awesome if it was possible to edit each member's individual forum asset :)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on June 09, 2014, 03:46:11 PM
Under Admin -> Shop -> Members' Inventory
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: ephman on June 09, 2014, 10:18:48 PM
Awesome! Thank you :)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on June 09, 2014, 10:22:49 PM
Glad to help.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: jack_1985 on June 26, 2014, 06:01:34 PM
I have noticed that some of the old items do not work properly on a 2.X board. Does someone has the knowledge on how to rephrase this piece of code to the 2.0 formulation? Any help is greatly appreciated.  :)

global $db_prefix;

    $result = db_query("SELECT shop_nameStyle
                        FROM {$db_prefix}members
                        WHERE id_member = {$user}", __FILE__, __LINE__);
   
    $row = mysql_fetch_array($result, MYSQL_ASSOC);
    if (!isset($row['shop_nameStyle']) || $row['shop_nameStyle'] == "") {
        $nameStyle = "";
    } else {
        $nameStyle = "style='".$row['shop_nameStyle']."' ";
    }
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Kindred on June 26, 2014, 06:11:57 PM
I believe that there is a separate version that installs for 2.0.x which uses the 2.0.x db query structure...
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: jack_1985 on June 26, 2014, 06:24:01 PM
Thank you for your reply.  I wasn't aware of that.  :)

I looked through smfshop.com but I didn't manage to find it. Could you please tell me where I could download it? That would be great.  :D
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Kindred on June 26, 2014, 08:29:58 PM
http://mods.simplemachines.org/?mod=65

   SMFShop3.3.1forSMF2.0.zip
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: jack_1985 on June 26, 2014, 10:23:17 PM
The item I was looking for (change display name CSS), unfortunately isn't included in the download package. (That is why I initially asked if somebody knew how to rephrase the code for 2.0).

But thanks anyway, I appreciate the effort.  :)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Bob Perry of Web Presence Consulting on June 26, 2014, 10:28:53 PM
Quote from: jack_1985 on June 26, 2014, 10:23:17 PM
The item I was looking for (change display name CSS), unfortunately isn't included in the download package. (That is why I initially asked if somebody knew how to rephrase the code for 2.0).

But thanks anyway, I appreciate the effort.  :)

I may be able to help you with this, I've become fairly adept at creating items for the shop module... the change display name item that's included in the package doesn't work for you? is this your dilemna?


Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: jack_1985 on June 27, 2014, 07:04:06 AM
Hi Bob,

It would be great if you could share some of your knowledge on this.  :D

The ChangeDisplay item works properly for me. I'm having trouble with an item that changes the style of a display name, for example to a different color. I used to have this item installed on 1.X, but after switching to 2.X, it no longer works. The problem is that when I use the item, it is giving me a blank screen.

This is the code of the item:
if (!defined('SMF'))
die('Hacking attempt...');

class item_ChangeDisplayNameCSS extends itemTemplate
{
function getItemDetails()
{
$this->authorName = 'Daniel15';
$this->authorWeb = 'http://www.dansoftaustralia.net/';
$this->authorEmail = '[email protected]';

$this->name = 'Change Display Name Style';
$this->desc = 'Change the style of your display name (style is admin-definable)';
$this->price = 75;

$this->require_input = false;
$this->can_use_item = true;
$this->addInput_editable = true;
}

function getAddInput()
{
global $item_info;
// If we're adding a new item, default to this.
if ($item_info[1] == '')
$item_info[1] = 'font-style:oblique';

return '
New Style: <input type="text" name="info1" value="' . $item_info[1] . '"><br />
NOTE: The "New Style" can be any CSS formatting property. <b>Do not</b> put a
semicolon (;) at the end as it is appended automatically.<br /><br />';
    }

function onUse()
{
global $db_prefix, $id_member, $item_info;

$result = db_query("
UPDATE {$db_prefix}members
SET shop_nameStyle = CONCAT(shop_nameStyle, '{$item_info[1]}; ')
WHERE id_member = {$id_member}", __FILE__, __LINE__);

return 'Successfully updated your display name style!';
}

}

?>


I have already made changes to the Source codes manually, so that styles that users have chosen in the past by using this item show up again. But the item itself can no longer be used.

Any ideas what the problem might be?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Bob Perry of Web Presence Consulting on June 27, 2014, 09:31:23 PM
Quote from: jack_1985 on June 27, 2014, 07:04:06 AM
Hi Bob,

It would be great if you could share some of your knowledge on this.  :D

The ChangeDisplay item works properly for me. I'm having trouble with an item that changes the style of a display name, for example to a different color. I used to have this item installed on 1.X, but after switching to 2.X, it no longer works. The problem is that when I use the item, it is giving me a blank screen.

This is the code of the item:
if (!defined('SMF'))
die('Hacking attempt...');

class item_ChangeDisplayNameCSS extends itemTemplate
{
function getItemDetails()
{
$this->authorName = 'Daniel15';
$this->authorWeb = 'http://www.dansoftaustralia.net/';
$this->authorEmail = '[email protected]';

$this->name = 'Change Display Name Style';
$this->desc = 'Change the style of your display name (style is admin-definable)';
$this->price = 75;

$this->require_input = false;
$this->can_use_item = true;
$this->addInput_editable = true;
}

function getAddInput()
{
global $item_info;
// If we're adding a new item, default to this.
if ($item_info[1] == '')
$item_info[1] = 'font-style:oblique';

return '
New Style: <input type="text" name="info1" value="' . $item_info[1] . '"><br />
NOTE: The "New Style" can be any CSS formatting property. <b>Do not</b> put a
semicolon (;) at the end as it is appended automatically.<br /><br />';
    }

function onUse()
{
global $db_prefix, $id_member, $item_info;

$result = db_query("
UPDATE {$db_prefix}members
SET shop_nameStyle = CONCAT(shop_nameStyle, '{$item_info[1]}; ')
WHERE id_member = {$id_member}", __FILE__, __LINE__);

return 'Successfully updated your display name style!';
}

}

?>


I have already made changes to the Source codes manually, so that styles that users have chosen in the past by using this item show up again. But the item itself can no longer be used.

Any ideas what the problem might be?

Although I've learned to create items relatively easily, I'm not good with style commands... i always have to tweak these dern things over and over again to get the results i want... if it dealt with the database directly I'd jump on it for ya, but this I will have to defer to the style sheet experts... my suggestion is to see if you can track down the person who originally created this item who may or may not be the one indicated in the internal document
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: donrespeto on June 29, 2014, 06:52:07 AM
I installed the SopMod and i have got this problem:

(http://s2.subirimagenes.com/imagen/previo/thump_8974951pantallazo.png)

Please tell me what should I do
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on June 29, 2014, 10:16:20 AM
Looks like duplicate code added to your themes display.template file
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Neville on July 03, 2014, 03:57:26 AM
Hi everyone  :)
I posted in this topic (http://www.simplemachines.org/community/index.php?topic=524680.msg3715189#msg3715189), but it's not the right board. So I'm quoting my post here :)

QuoteI need some help about the SMFShop mod, but first please forgive me for my bad English.

Well, I've installed SMFShop on my forum, but i've noticed that the admin can't add item to member's inventories and it's a gap. For example: I organize a quiz on my forum, a user win it and i want to add an item to his inventory. How can i do? I could bought the item with an admin account and then give it to the user, but it's very boring and uncomfortable. Finally if i want to give to the member a special item which isn't in the shop, I can't.
Can someone help me? :(


Sorry for my bad English, again.

Thank in advance :)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: jack_1985 on July 05, 2014, 01:11:18 PM
Did anybody manage to get the buyAvatar item working in the Shop for SMF 2.X by any chance?

I can't seem to find a new version anywhere, unfortunately.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Ninja ZX-10RR on July 21, 2014, 03:18:10 PM
An user without being an "administrator" cannot access the admin/shop despite his permissions being set properly.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Nisva on August 13, 2014, 06:57:42 PM
SQL logic error or missing database
unrecognized token: "`"
File: /home/a8987648/public_html/Sources/shop/Shop-Buy.php
Line: 157

I get this error when going to buy
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on August 13, 2014, 07:05:55 PM
Are you using MySQL?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Kindred on August 13, 2014, 07:06:43 PM
You have input something with a bad apostrophe character...   Possibly one of your items or descriptions pasted from word..
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Kimmie on August 18, 2014, 08:15:19 PM
SAShop Mod, SMfShop. While looking at these, one of the main differences I see is that the SA one has a games area included which gives them a another option to make money. Can anyone tell me any other differences between these two mods. I am trying to decide which one would be better and I figured anyone who has used them will be able to help


Thanks :)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: hcfwesker on August 18, 2014, 10:02:07 PM
Quote from: Kimmie on August 18, 2014, 08:15:19 PMCan anyone tell me any other differences between these two mods.

I used them both and tested which I preferred.  And personally, I prefer the SA Shop mod just for the convenience of being able to adjust shops points earned  in each individual board, and select boards which shop money is not earned.  Not sure if it's changed in the past few years, but once SMF Shop is installed, all boards earn the same amount of cash for topics and posts.  I've seen a few request this recently which leads me to believe its still the same.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Bob Perry of Web Presence Consulting on August 18, 2014, 10:23:51 PM
Quote from: Kimmie on August 18, 2014, 08:15:19 PM
SAShop Mod, SMfShop. While looking at these, one of the main differences I see is that the SA one has a games area included which gives them a another option to make money. Can anyone tell me any other differences between these two mods. I am trying to decide which one would be better and I figured anyone who has used them will be able to help


Thanks :)

I too have used them both, my current one is SMFShop, simply because I find creating items is much easier with this...
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Bob Perry of Web Presence Consulting on August 19, 2014, 01:24:00 AM
Speaking of creating items, I've attached one of mine here for anyone who's interested...

This one allows a member to steal, or attempt to steal, another member's Karma. If the robber is unsuccessful, he gets bad Karma, but whether the steal is successful or not, the victim is notified by PM that someone is messing with their Karma, but not informed exactly who did it, lol!!

Site admin definable probability factor for success or failure, and I can modify your site Statistics page to keep tabs on the top members for both good and bad karma...
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Clarey on August 20, 2014, 11:33:50 AM
I recently re-installed this mod on my forums, I did nothing to the mod other then remove the default images and add in a set of icons for our shop items, now when we go into admin and try to add an item or edit an item our webpage is just a blank page. This happens on all themes and the default theme as well. Any ideas as to what is causing this?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on August 20, 2014, 11:47:59 AM
Check your forum's error log for any related errors.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Clarey on August 20, 2014, 12:06:05 PM
Quote from: vbgamer45 on August 20, 2014, 11:47:59 AM
Check your forum's error log for any related errors.

There are no errors in the logs relating to this
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Mstcool on August 23, 2014, 10:38:05 PM
Any way I can remove the "use item" button for the "test" item? I don't wanna delete it for the other items, just the test item so that when people buy the test item, they don't use it.

The way it works at my forum is that they buy ad space using the credits they earned from posting, I renamed the test items to different things. I want them to purchase those and private message me informing me that they have bought it. After they have bought it, I will delete that item from their inventory and add their banner to the space that they have rented. So, I don't want them to be able to click on "use item".
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Bob Perry of Web Presence Consulting on August 23, 2014, 11:16:13 PM
Quote from: Mstcool on August 23, 2014, 10:38:05 PM
Any way I can remove the "use item" button for the "test" item? I don't wanna delete it for the other items, just the test item so that when people buy the test item, they don't use it.

The way it works at my forum is that they buy ad space using the credits they earned from posting, I renamed the test items to different things. I want them to purchase those and private message me informing me that they have bought it. After they have bought it, I will delete that item from their inventory and add their banner to the space that they have rented. So, I don't want them to be able to click on "use item".

If you are familiar with editing source files it should be a snap for ya, find the follow line of code inside the source for the test item and change true to false...

      // Set this to 'false' if the item is unusable. This is good for display
      // items.
      $this->can_use_item = true;
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Mstcool on August 23, 2014, 11:22:30 PM
Quote from: Bob Perry on August 23, 2014, 11:16:13 PM
Quote from: Mstcool on August 23, 2014, 10:38:05 PM
Any way I can remove the "use item" button for the "test" item? I don't wanna delete it for the other items, just the test item so that when people buy the test item, they don't use it.

The way it works at my forum is that they buy ad space using the credits they earned from posting, I renamed the test items to different things. I want them to purchase those and private message me informing me that they have bought it. After they have bought it, I will delete that item from their inventory and add their banner to the space that they have rented. So, I don't want them to be able to click on "use item".

If you are familiar with editing source files it should be a snap for ya, find the follow line of code inside the source for the test item and change true to false...

      // Set this to 'false' if the item is unusable. This is good for display
      // items.
      $this->can_use_item = true;


I haven't learned php yet. What file would I edit? :P
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Bob Perry of Web Presence Consulting on August 23, 2014, 11:36:31 PM
You'll want to edit either /Sources/shop/items/testitem.php OR same directory but file named testitem2.php

be sure to leave everything as is except the word true, change that to false and be sure you don't mistakenly delete the ending colon...

then just replace the live file with the edited one and you should not see a use button after its purchased...

Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Mstcool on August 24, 2014, 12:54:26 AM
Quote from: Bob Perry on August 23, 2014, 11:36:31 PM
You'll want to edit either /Sources/shop/items/testitem.php OR same directory but file named testitem2.php

be sure to leave everything as is except the word true, change that to false and be sure you don't mistakenly delete the ending colon...

then just replace the live file with the edited one and you should not see a use button after its purchased...



Works like a charm! :)

Thank you so much!

One last thing, is there a way I can change "unusable!" to private message [url=#]User[/url] with the following [ulr=#]information[/url]?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Bob Perry of Web Presence Consulting on August 24, 2014, 01:13:31 AM
Quote from: Mstcool on August 24, 2014, 12:54:26 AM
Quote from: Bob Perry on August 23, 2014, 11:36:31 PM
You'll want to edit either /Sources/shop/items/testitem.php OR same directory but file named testitem2.php

be sure to leave everything as is except the word true, change that to false and be sure you don't mistakenly delete the ending colon...

then just replace the live file with the edited one and you should not see a use button after its purchased...



Works like a charm! :)

Thank you so much!

One last thing, is there a way I can change "unusable!" to private message [url=#]User[/url] with the following [ulr=#]information[/url]?

Yes, but too complicated for your experience level, what I would do myself is create a simple html file with the links embedded and some text explanation of the exact procedure they need to follow to get what they paid for... and have it display that instantly upon purchase, don't know for sure if the item in question does that by default, let me know if it does not and i will do it no charge...
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: skeletonkiss on August 24, 2014, 02:37:11 PM
Nevermind, this mod doesn't do what I need.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Mstcool on August 24, 2014, 09:25:00 PM
Quote from: Bob Perry on August 24, 2014, 01:13:31 AM
Quote from: Mstcool on August 24, 2014, 12:54:26 AM
Quote from: Bob Perry on August 23, 2014, 11:36:31 PM
You'll want to edit either /Sources/shop/items/testitem.php OR same directory but file named testitem2.php

be sure to leave everything as is except the word true, change that to false and be sure you don't mistakenly delete the ending colon...

then just replace the live file with the edited one and you should not see a use button after its purchased...



Works like a charm! :)

Thank you so much!

One last thing, is there a way I can change "unusable!" to private message [url=#]User[/url] with the following [ulr=#]information[/url]?

Yes, but too complicated for your experience level, what I would do myself is create a simple html file with the links embedded and some text explanation of the exact procedure they need to follow to get what they paid for... and have it display that instantly upon purchase, don't know for sure if the item in question does that by default, let me know if it does not and i will do it no charge...

Creating the file is no problem. The item doesn't do that but I was thinking of making it so when people click on use item it displays a message saying that they have to private message a user. The item 2 file does that.

What do you think is better? That way or the way you suggested? Thanks for the help btw! :)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Bob Perry of Web Presence Consulting on August 24, 2014, 09:52:04 PM
Quote from: Mstcool on August 24, 2014, 09:25:00 PM

Creating the file is no problem. The item doesn't do that but I was thinking of making it so when people click on use item it displays a message saying that they have to private message a user. The item 2 file does that.

What do you think is better? That way or the way you suggested? Thanks for the help btw! :)

I've had some time to reflect on this a little and here is what I would do in this case, i would create the html file and then use the filedownload2.php item and leave the use button alone this time, that way they would have a permanent copy for themselves and i can modify the item to shoot you, or admin user a PM upon purchase, but remember, each member who buys will get a copy of the same document, if you want it to customized according to member we need to consider an alternative... oh, and you want to make sure that the directory where you store your document(s) is not in the root or any sub directory where any the rest of the SMF source files reside


Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Mstcool on August 24, 2014, 09:55:08 PM
Quote from: Bob Perry on August 24, 2014, 09:52:04 PM
Quote from: Mstcool on August 24, 2014, 09:25:00 PM

Creating the file is no problem. The item doesn't do that but I was thinking of making it so when people click on use item it displays a message saying that they have to private message a user. The item 2 file does that.

What do you think is better? That way or the way you suggested? Thanks for the help btw! :)

I've had some time to reflect on this a little and here is what I would do in this case, i would create the html file and then use the filedownload2.php item and leave the use button alone this time, that way they would have a permanent copy for themselves and i can modify the item to shoot you, or admin user a PM upon purchase, but remember, each member who buys will get a copy of the same document, if you want it to customized according to member we need to consider an alternative...


The admin pm thing sounds like a good thing. So what do I do in order for all of this to work?

Thank you so much for your help! :D
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Bob Perry of Web Presence Consulting on August 24, 2014, 10:08:44 PM
Quote from: Mstcool on August 24, 2014, 09:55:08 PM

The admin pm thing sounds like a good thing. So what do I do in order for all of this to work?

Thank you so much for your help! :D

all you need to do is create the simple html file and the rest is a snap, i can modify the item in just a matter of minutes for admin PM, just let me know when you are ready to test and attach your copy of Sources/shop/items/filedownload2.php here and i'll insert the code and shoot it back to you, you just add the item as normal setup but be sure the path links you enter while setting it up match perfectly or it won't work, this particular item is internally documented fairly well just read everything that it says very carefully while setting it up...
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Mstcool on August 24, 2014, 10:10:28 PM
Alright, I will do that and attach the file in my next post! Thank you so much for your help. I should have the file done by tomorrow because at the moment I'm dead tired.

Once again, thanks for your help! :)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Bob Perry of Web Presence Consulting on August 25, 2014, 05:59:31 PM
Quote from: Mstcool on August 24, 2014, 10:10:28 PM
Alright, I will do that and attach the file in my next post! Thank you so much for your help. I should have the file done by tomorrow because at the moment I'm dead tired.

Once again, thanks for your help! :)

Interesting, I went ahead and did it to my download items and get an error when opening a graphic image using filedownload2.php, but it's functioning pretty good in the other one, and i also give the member some good karma for using it, also it doesn't do the PM until the member "uses" the purchased item, and lastly there are two small sections of text you will want to change to your own liking, just look for the words "change" while editing the item source, being sure NOT to delete any of the punctuation in the two snippets of text... see the attached:
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Mstcool on August 25, 2014, 08:38:01 PM
Thank you so much! And yes, the image isn't a problem because I don't use the images anyways. So, for item 1 and 2, I change it to "true" instead of "false" so that the person is able to use the item?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Bob Perry of Web Presence Consulting on August 25, 2014, 08:48:23 PM
Quote from: Mstcool on August 25, 2014, 08:38:01 PM
Thank you so much! And yes, the image isn't a problem because I don't use the images anyways. So, for item 1 and 2, I change it to "true" instead of "false" so that the person is able to use the item?

If you downloaded the one i posted you don't need to change anything except the two snippets of text i described in previous post, just replace your current version of the source file with mine and have at it, it'll become clear why you need to change with the first test, it only affects the PM so no big rush to change it before putting it live...
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Mstcool on August 25, 2014, 09:17:53 PM
Alright, Thank you so much!

A few more things

So, where it says "change this subject line"

How would I add "Thank You for Purchasing itemnameinsertedhere from the Shop!"

So how can I make it so that "itemnameinsertedhere" automatically gets changed to the name of the item they purchased. Also, if I use BBC in this file, will it work because I want to give them a link to a profile of the person they are supposed to message. EDIT:  Also, please do tell me a way for which I can also add a link to something else (like click here (#post_), so words instead of the actual link), instead of a profile in the code. And finally, I want to make it so it says "Dear usernameinsertedhere,"

So, the "usernameinsertedhere" automatically gets changed to the purchasers name.



Thank you so much for taking your time to help me and I am sorry for asking things again and again! :)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Bob Perry of Web Presence Consulting on August 25, 2014, 10:12:07 PM
Quote from: Mstcool on August 25, 2014, 09:17:53 PM
Alright, Thank you so much!

A few more things

So, where it says "change this subject line"

How would I add "Thank You for Purchasing itemnameinsertedhere from the Shop!"

So how can I make it so that "itemnameinsertedhere" automatically gets changed to the name of the item they purchased. Also, if I use BBC in this file, will it work because I want to give them a link to a profile of the person they are supposed to message. And finally, I want to make it so it says "Dear usernameinsertedhere,"

So, the "usernameinsertedhere" automatically gets changed to the purchasers name.


Thank you so much for taking your time to help me and I am sorry for asking things again and again! :)

Your getting confused about who sees that pm, only the admin sees so you won't be thanking the member in there, although that can be done as well, I will post another one tomorrow night with a little better example for ya, it'll put a couple variables in there so that you will only have to do the normal setup of the various items to be purchased, but i have be up early so gonna shut down for the evening, even in present condition its usable live

Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Mstcool on August 25, 2014, 10:13:48 PM
Quote from: Bob Perry on August 25, 2014, 10:12:07 PM
Quote from: Mstcool on August 25, 2014, 09:17:53 PM
Alright, Thank you so much!

A few more things

So, where it says "change this subject line"

How would I add "Thank You for Purchasing itemnameinsertedhere from the Shop!"

So how can I make it so that "itemnameinsertedhere" automatically gets changed to the name of the item they purchased. Also, if I use BBC in this file, will it work because I want to give them a link to a profile of the person they are supposed to message. And finally, I want to make it so it says "Dear usernameinsertedhere,"

So, the "usernameinsertedhere" automatically gets changed to the purchasers name.


Thank you so much for taking your time to help me and I am sorry for asking things again and again! :)

Your getting confused about who sees that pm, only the admin sees so you won't be thanking the member in there, although that can be done as well, I will post another one tomorrow night with a little better example for ya, it'll put a couple variables in there so that you will only have to do the normal setup of the various items to be purchased, but i have be up early so gonna shut down for the evening, even in present condition its usable live



Thank you so much! You're the best! :)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Bob Perry of Web Presence Consulting on August 26, 2014, 01:55:27 AM
See what you think of this one, see attached...

oh btw, you won't be able to use BBC in your html file, you must construct properly structured html anchor links, if you don't know how... do it just as if BBC would work and attach the file here, or shoot it to me by PM and I'll fix it for you, but get everything else the way you want it first, you have to do "something" constructive dude ;)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Mstcool on August 26, 2014, 08:42:37 PM
Quote from: Bob Perry on August 26, 2014, 01:55:27 AM
See what you think of this one, see attached...

oh btw, you won't be able to use BBC in your html file, you must construct properly structured html anchor links, if you don't know how... do it just as if BBC would work and attach the file here, or shoot it to me by PM and I'll fix it for you, but get everything else the way you want it first, you have to do "something" constructive dude ;)

Oh, wait. If its HTML, then I know how to use it. I was confused because I haven't learned php so I thought there is a special way for php. Thanks for the file, I will use it and let you know! :)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Bob Perry of Web Presence Consulting on August 28, 2014, 03:34:09 AM
Quote from: Mstcool on August 26, 2014, 08:42:37 PM
Oh, wait. If its HTML, then I know how to use it. I was confused because I haven't learned php so I thought there is a special way for php. Thanks for the file, I will use it and let you know! :)

You do realize by now that it matters not what type of file you send them, it can a word doc or graphics, as long you change the description text to reflect to the member just what program they need to read the file once transferred to their PC?
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Mstcool on August 28, 2014, 07:27:28 PM
Oh, I didn't realize that. Alright, thank you so much for your help! :)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Mstcool on August 28, 2014, 10:16:08 PM
Hey, I am pretty dumb and am confused right now. So, I replaced the current filedownload.php file with urs. When I buy the item from the shop, it still says "unsuable!" so I changed "false" to "true" in the items codes, but it still says that.


And just so I am clear, my forum is stored in, public_html/forum, so I upload my files to public_html/forum or public_html/files?

And I change the file name in this code only?

if ($item_info[2] == '') $item_info[2] = dirname(dirname($boarddir)) . '/files/file_name_here.txt';

Cuz it says boarddir which is confusing me.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Bob Perry of Web Presence Consulting on August 28, 2014, 11:51:00 PM
Quote from: Mstcool on August 28, 2014, 10:16:08 PM
Hey, I am pretty dumb and am confused right now. So, I replaced the current filedownload.php file with urs. When I buy the item from the shop, it still says "unsuable!" so I changed "false" to "true" in the items codes, but it still says that.


And just so I am clear, my forum is stored in, public_html/forum, so I upload my files to public_html/forum or public_html/files?

And I change the file name in this code only?

if ($item_info[2] == '') $item_info[2] = dirname(dirname($boarddir)) . '/files/file_name_here.txt';

Cuz it says boarddir which is confusing me.

don't edit anything in the item source file, as long as you uploaded the source file to the right place on your server which should be Sources/shop/items, you should be fine...

as for where to upload the files to be purchased, it recommends a level above your public_html directory, but this is where it gets tricky for novices because the permissions must be set correctly or you'll get file not found errors, but you can name the directory anything you wish when you create it

once you get my source file in the right place you will need to make a new purchase thru the shop to test it, disgard the previous test items...
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Mstcool on August 29, 2014, 01:43:22 AM
Alright, thanks for the info! :)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Mstcool on August 29, 2014, 02:17:09 AM
Hey Bob,

Thank you so much for all your help! Unfortunately, I can't seem to make it work. However, I just changed the message people get after they click on use item, when they buy a test item. Changed it from the default to something else and that seems to work for now. In the future I might change it to the way you and I discussed about. But for now, this is fine. So once again, thank you so much for your help! :)   
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: -Captain Ghost- on September 13, 2014, 05:40:15 AM
Can something like this be made in post
As in image to view resources users had to use their earned credit.

Thanks
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Ninja ZX-10RR on September 13, 2014, 08:04:40 AM
Image link is broken.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: -Captain Ghost- on September 13, 2014, 09:06:24 AM
Quote from: -Captain Ghost- on September 13, 2014, 05:40:15 AM
Can something like this be made in post
As in image to view resources users had to use their earned credit.

Thanks
Link updated
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on September 13, 2014, 09:38:54 AM
Yes it could be made just requires some to program it.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: -Captain Ghost- on September 13, 2014, 10:48:43 AM
Quote from: vbgamer45 on September 13, 2014, 09:38:54 AM
Yes it could be made just requires some to program it.
Can you modify it
Please I am requesting

Thanks
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on September 13, 2014, 12:04:51 PM
Too busy at the moment sorry
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: -Captain Ghost- on September 13, 2014, 12:59:42 PM
Quote from: vbgamer45 on September 13, 2014, 12:04:51 PM
Too busy at the moment sorry
No problem it's your choice to make request complete
Btw I am not asking it today but I am ok if you can do this in coming days or weeks at least if you wish can you confirm that will you do this or not

It totally depends upon you

Thanks :)
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: Zozma on September 30, 2014, 12:46:34 AM
There are a lot of pages in this thread so I'm sorry if this has already been addressed:

I use sub accounts on my site and it's important for the members to accrue points by posting with their sub accounts. However, as the shop works now, they have to log into the account they want to get points with in order to get the points on the right account. What I'm hoping for is the ability to get the points on the correct account even when they post using the "Use Account" posting function, whether they are logged into that account or not.

I hope that makes sense.
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on September 30, 2014, 09:22:25 AM
That would require the subaccounts mod OT be modified I would contact that author and ask them to add support for SMF shop
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: WantSome on November 28, 2014, 02:13:40 PM
Hello, sorry if this has been asked but I couldn't find anything like it.

I think there may be a bug in the code that doesn't allow you to send money to the user if the user has a different display name to their account name.  The same thing happens with the member search tool.  It returns my display name, not my account username.

e.g. my display name is WantSome on my forum but the account username is 'admin'.  So if people try to send money to WantSome the shop tells them the user doesn't exist. 

It makes sending lots of different people credits after a game, say, quite difficult.  I'd appreciate any tips on this!

Thanks!
Title: Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
Post by: hcfwesker on November 28, 2014, 06:03:09 PM
Quote from: WantSome on November 28, 2014, 02:13:40 PMI'd appreciate any tips on this!

I use SA Shop, and haven't tested this, this may be a place to look.

Sources/shop/Shop-Send.php

Find
// Get the id and name of member to send to
$result = $smcFunc['db_query']('', "
SELECT id_member, member_name
FROM {db_prefix}members
WHERE member_name = {string:moneyto}
LIMIT 1",
array(
'moneyto' => $moneyTo,
));
$row = $smcFunc['db_fetch_assoc']($result);


replace with

// Get the id and name of member to send to
$result = $smcFunc['db_query']('', "
SELECT id_member, member_name, real_name
FROM {db_prefix}members
WHERE real_name = {string:moneyto}
LIMIT 1",
array(
'moneyto' => $moneyTo,
));
$row = $smcFunc['db_fetch_assoc']($result);


If it doesn't work, then just revert the changes back to the original.
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: SMFHacks.com Team on November 29, 2014, 12:58:51 AM
Update 3.3.2
!Fixed sending money on Shop-Send.php for users allowing both real_name,member_name instead of just member_name.
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: WantSome on November 29, 2014, 07:48:13 AM
Thanks for the fix!  It works like a dream. 
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on November 29, 2014, 09:43:37 AM
Glad to help.
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: Bob Perry of Web Presence Consulting on December 09, 2014, 08:44:15 AM
I have just spent the last couple days tweaking this mod a bit...
I've corrected the fact that it awards credits to the posting member whether the post will be moderated or not, so spammers can accumulate credits even before, or whether, you allow the post to be published... to correct this you have to adjust the code in Post.php so that if post will be approved automatically no action will necessary, but hold off credit award if it has to be moderated first, this part is easy, just add a conditional statement to the code that adds the credits...

Then in Subs-Post.php add this snippet inside the loop of function approvePosts as the last step, I put it right after it executes counting posts and it seems to function fine so far, this is recent so hasn't been put through a full fledged grinder yet lol, use at your own risk, but that is a flaw in the logic to not have this ability...


//WPC Custom Hack
if (($msgs) && ($approve))
{
// Begin SMFShop code

// New topic?
if ($notification_topics)
$points = !empty($board_info['shop_pertopic']) ? $board_info['shop_pertopic'] : $modSettings['shopPointsPerTopic'];
else
$points = !empty($board_info['shop_perpost']) ? $board_info['shop_perpost'] : $modSettings['shopPointsPerPost'];

// Are bonuses allowed in this board?
// Strip out all BBCode
$plaintext = preg_replace('[\[(.*?)\]]', ' ', $row['body']);
// Convert all newlines into spaces
$plaintext = str_replace(array('<br />', "\r", "\n"), ' ', $plaintext);
// Convert multiple successive spaces into a single space
$plaintext = preg_replace('/\s+/', ' ', $plaintext);

// The bonus for each word...
$points += ($modSettings['shopPointsPerWord'] * str_word_count($plaintext));
// ...and bonus for each letter
$points += ($modSettings['shopPointsPerChar'] * strlen($plaintext));

// Is there a limit set, and are we over it?
if (isset($modSettings['shopPointsLimit']) && $modSettings['shopPointsLimit'] != 0 && $points > $modSettings['shopPointsLimit'])
// If so, set the number of points to the limit
$points = $modSettings['shopPointsLimit'];

// Give the user their points
$result_shop2 = $smcFunc['db_query']('', "
UPDATE {db_prefix}members
SET money = money + {float:points}
WHERE id_member = {int:id}
LIMIT 1",
array(
'points' => $points,
'id' => $row['id_member'],
));
cache_put_data('user_settings-' . $row['id_member'], null, 60);
// End SMFShop code
};


Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: fabriig2 on December 30, 2014, 04:51:47 PM
hi!! any have translate for smfshop 3.3.2 in spansih_es ?? thanks
hola!! alguien tiene la traduccion para smfshop 3.3.2?? graccias
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: WantSome on January 05, 2015, 02:02:20 PM
Hi all!

I have had two members tell me that their pocket money has mysteriously moved from 0 to -3 credits.  Can anyone tell me how it's possibly for negative funds to appear in the pocket?  I thought it was impossible.

Any advice on where to check for any bugs will be appreciated.

I am running 2.0.9 and have recently updated the mod.  Both members tell me that they banked all their funds a while back (i.e. pocket = 0) and haven't since bought anything. 

Thanks!
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: silber112 on January 12, 2015, 05:50:49 PM
2.1?  :)
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on January 12, 2015, 05:56:30 PM
Not at the moment there is another shop mod that works for 2.1 but I will probably upgrade this one too at some point.
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: MESWEB on January 14, 2015, 11:28:38 AM
How to Add Item like "Add Money to Your account" I want integrate this mod with SMS Premium or PayPal. Where is button to disable sending money?
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on January 14, 2015, 11:48:39 AM
I believe you can disable the send money option/item
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: MESWEB on January 14, 2015, 03:15:27 PM
Where in Permissions? Why link add items not working in Admin panel?
How to Add Item looking like "If You want 30 credits buy for 1$ with PayPal"?
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: MESWEB on January 18, 2015, 07:19:24 AM
When I try to delete post i got this error
Database error:
Wrong value type sent to the database. Integer expected. (amount)


http://index.php?pretty;board=samsung.0&amp;action=quickmod

Wrong value type sent to the database. Integer expected. (amount)
Function: removeTopics

Plik: /Sources/RemoveTopic.php

RemoveTopic.php
This error come from Shop Mod:
// Begin SMFShop code
while ($rowMembers = $smcFunc['db_fetch_assoc']($requestMembers))
{
updateMemberData($rowMembers['id_member'], array('posts' => 'posts - ' . $rowMembers['posts']));

global $smcFunc, $modSettings;
$smcFunc['db_query']('', '
UPDATE {db_prefix}members
SET money = IF(money >= {int:amount}, money - {int:amount}, 0)
WHERE id_member = {int:member}
LIMIT 1',
array(
'amount' => $shop,
'member' => $rowMembers['id_member'],
));
cache_put_data('user_settings-' . $rowMembers['id_member'], null, 60);
}
// End SMFShop code
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on January 18, 2015, 12:10:54 PM
You should have more code above that

global $board;
$result_shop = $smcFunc['db_query']('', "
SELECT shop_pertopic, shop_perpost, countMoney
FROM {db_prefix}boards
WHERE ID_BOARD = $board
LIMIT 1");
$boardInfo = $smcFunc['db_fetch_assoc']($result_shop);

if($boardInfo['shop_pertopic'] != 0)
$shop = $boardInfo['shop_pertopic'];
else
$shop = $modSettings['shopPointsPerTopic'];


If you do make sure you have a number set in your shop points per topic in board settings or your main shop settings points per topic.
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: MESWEB on January 18, 2015, 02:59:16 PM
So what i need to do? Something deleting my posts!
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on January 18, 2015, 03:46:03 PM
Check your shop and board shop settings
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: MESWEB on January 18, 2015, 03:53:27 PM
This mod mess my database. What a piece of sh....t  :o
I delete value 0,01 and 0,02 from
QuotePer new topic: Per new post:
This mod stop counting my new post to existing number and before I install this mod I have 143 posts now I have 132 - I don't delete myself any post.
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on January 18, 2015, 04:05:11 PM
Uninstall the mod if is not working. I saw your other support topic. i think your shop settings area wrong.
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: MESWEB on January 18, 2015, 04:19:31 PM
I have default settings. Look at my image. This error what I have is not about settings but query to database. Look at error code "expecting" - integer, so I check this columns and what I see? I saw this column are decimal what meaning - accepts values 0,00 when I try deleting post Shop send query with integer value what means only 0 without comas.
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on January 18, 2015, 04:26:35 PM
The page you are looking at is blank from the image.
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: MESWEB on January 18, 2015, 04:34:44 PM
Sorry printer program have bad day :)
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: MESWEB on January 19, 2015, 02:01:58 PM
How to change code to accepts value 0,01 or 0.01 per new post?
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on January 19, 2015, 02:11:49 PM
Would require extensive changes to make everything go to floats instead of integers not easy to do.
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: littleone on January 31, 2015, 01:34:57 PM
Could I pursuade someone for assistance on resolving this:

8: Undefined index: money
File: /home/xxxx/public_html/forum/Sources/Load.php
Line: 1330
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on January 31, 2015, 01:51:12 PM
Attach that file.
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: littleone on January 31, 2015, 02:11:08 PM
Here ya go.  Thank you!
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on January 31, 2015, 02:28:42 PM
Updated file attached
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: littleone on January 31, 2015, 03:13:14 PM
Thanks VB.  Really appreciate the fast response and help!
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on January 31, 2015, 03:32:39 PM
Glad to help.
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: wynnyelle on February 02, 2015, 11:32:10 AM
Hi I am running this SMF Shop on my forum and what members wanted was to see how many coins they had from the front page. So I tried to add that information to the front page under the name and avatar area. It's displaying the suffix {coins} but nothing where the amount of money should be.

The code:


// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '<div class="userinfo">';

if (!empty($context['user']['avatar']))
echo '
<div class="floatleft" style="width: 80px;">
<div class="avatar" style="margin-left:15px; margin-top:15px;"><img src="', $context['user']['avatar']['href'], '" alt="avatar" style="max-width:80px; max-height:80px;" /></div>
</div>';
$greeting = $txt['hello_member_ndt'] . ', ' . $context['user']['name'];
echo '
<div style="position:absolute; top:14px; left:105px; width:330px; height:110px; white-space:nowrap; overflow:hidden;">
<span style="font-size:16px;"><strong>', $greeting, '</strong>', $context['subaccount_dropdown'], '</span>
<br /><br />
                                                <div style="margin-bottom:6px;"><span style="font-size:14px; width:100%;">', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '</span></div>

<div style="margin-bottom:6px;"><span style="font-size:14px; width:100%;"><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></span></div>
';
// Is the forum in maintenance mode?


That's where I inserted the code to just display the member's amount of money into index.template.php
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on February 02, 2015, 12:18:12 PM
Try this maybe
Change
$message['member']['money']
To
$context['user']['money']
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: wynnyelle on February 02, 2015, 12:27:10 PM
It worked!

Why did that change work, and why didn't the other one work? Thank you for such a prompt response by the way!!
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on February 02, 2015, 01:13:18 PM
The other one referred to a message this one is general area.
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: wynnyelle on February 02, 2015, 02:44:47 PM
Then that must be why it did not work in the profile either when I tried it there the other day? Thank you very much for the information, I'm trying to understand as much as I can of this on my own.
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: Gwenwyfar on February 09, 2015, 11:43:55 AM
I have the credits active in this using word count, but some users decided to abuse it by quoting others whenever possible to add to the count. Would be a good change to disable this.

I tried adding it myself but its not working, can't find out why, the regex itself is working fine by online tests, to select anything between two quote tags.

I tried these:
// Strip whatever is inside quotes
$plaintext = preg_replace('(\[quote?(.+?)\][\s\S]+?quote\])', ' ', $_POST['message']);

// Strip whatever is inside quotes
$plaintext = preg_replace('(\[quote?(.+?)\][\s\S]+?quote\])', ' ', $plaintext);

// Strip whatever is inside quotes
$plaintext = preg_replace('[\[quote?(.+?)\][\s\S]+?quote\]]', ' ', $_POST['message']);


And I added it before the replace to strip BBcode.

I don't think I posted in this topic yet, buts its a great mod, thanks for making it! :)
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: Gwenwyfar on February 11, 2015, 01:18:12 PM
Found the problem, since the second one (strip BBcode) was also using the original message it replaced the quote replacement, just had to change that part to :

// Strip whatever is inside quotes
$plaintext = preg_replace('(\[quote?(.+?)\][\s\S]+?quote\])', ' ', $_POST['message']);
// Strip out all BBCode
$plaintext = preg_replace('[\[(.*?)\]]', ' ', $plaintext);


And if anyone wants to do the same, this is on Post.php  ;)
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: Playertrade on March 10, 2015, 08:24:22 AM
I have a problem, i can not find where i can remove:
View Inventory
Send Money To "name"

Under everyone profile picture when posting, i have removed the mod but this wont go away.. help thanks :)
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: Gluz on May 13, 2015, 10:36:15 PM
I just installed this MOD and I think that the package in the MOD area is wrong, the shopVersion.php says:
$shopVersion['version'] = "3.1 (SMF 2.0 branch)";
$shopVersion['build'] = "5";
$shopVersion['date'] = "23th November 2009";


And the code and edits seems to be that version, as I have to do some manual edits to package-info.xml because some of the fixes that the changelog says it was fixed in the package it doesn't.

Finally, the last update says:
QuoteVersion 3.3.2
!Fixed sending money on Shop-Send.php for users allowing both real_name,member_name instead of just member_name.

but the other admin can't send me anything, as my Display Name is not my Username.

Can you check that please, and update the package in MOD area.
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: josx2 on May 15, 2015, 01:12:44 PM
I'm trying to install this for the first time on 2.0.9, but it kicks up a "test Failed" at two places for "Load.php"

Fail #1 - can't find "IFNULL(pg.group_name, {string:blank_string}) AS post_group, mem.is_activated, mem.warning,"
Fail #2 - can't find "CASE WHEN mem.id_group = 0 OR mg.stars = {string:blank_string} THEN pg.stars ELSE mg.stars END AS stars,"

I tried searching for them myself & no luck. 

TIA!
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: josx2 on May 27, 2015, 10:12:44 AM
just wanted to follow up on my issue reported above.....  Thx
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on May 27, 2015, 10:59:43 AM
I would look at the original SMF code and see what is changed then compared it to your modified files.
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: Kindred on May 27, 2015, 02:14:37 PM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: josx2 on May 27, 2015, 03:59:46 PM
oh geezus

*FACEPALM*

I dunno why I didn't think of comparing to the default load.php.  Dunno how/when I modified those particular sections that were throwing the error, but somehow/someway they were removed from Load.php.   Strange, cause I've been keeping a log of all changes I've made to the code and have nothing about these.   

thanks for the help :)
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: Gwenwyfar on July 18, 2015, 10:17:44 PM
There's another major flaw in the credits system that can be easily abused: Editing your post to remove a lot of spam content to get the maximum credits per post. Would be nice if you could fix that.

Was hoping nobody would find out, but someone always does...
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: vbgamer45 on July 18, 2015, 11:18:33 PM
If it is an issue on the forum try disabling editing of posts. That is a new policy they do here on this SMF forum and seems to help here.
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: Gwenwyfar on July 18, 2015, 11:21:38 PM
Disable editing posts would be a horrible solution. Disabling earning credits would be less harmful. It wouldn't even be like here which you can edit for a period of time, but it would need to be completely disabled to avoid this.

Anyways, for now I've just installed a post history mod, so if anyone is caught cheating they'll receive warns and get credits reduced, thinking of trying a fix at recounting the credits on edit, if I get enough time for that before the mod author can fix it I'll post it here.

Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: Goss on August 10, 2015, 09:22:21 PM
Is there a way to disable the ability to earn points when posting in a specific board?
Title: Re: SMFShop- Version 3.3.2 Now SMF 2.0 Support!
Post by: Gwenwyfar on August 11, 2015, 01:21:32 PM
I don't think it has any option like that. But shouldn't be too hard to disable the mod in that board in the code, if you're not planning on modifying it again.

Now I don't remember if this worked only from post.php, but you could try adding an exception for $current_board
Title: Re: SMFShop - Shop MOD
Post by: Koda on September 20, 2015, 05:28:18 PM
Hello, I am looking for a few custom items for this mod (or another free mod that can do this).

The items are:

Bold new topic
Italicize new topic
Underline new topic
Color/Glow new topic

-----

Bold name
Italicice name
Underline name
Color/Glow name

------

Am more looking for the item to modify new topics.  I did find an old mod that can make names glow, and an item to work with this mod, but I believe the mod is for smf 1.0 not 2.0.  http://smfshop.com/forum/items/some-name-alteration-items/

Thank you!
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on September 22, 2015, 02:07:59 PM
Attached display name css for SMF 1.1.X


Attached SMF Pets SMF 1.1.X
Title: Re: SMFShop - Shop MOD
Post by: dirtfox on September 24, 2015, 04:19:47 PM
Not Displaying Credits on Profile.

I gave myself credits, in the system I do have credits, but I just don't know the Prefix and Suffix to show the amount on profile.
Please help?

(http://i.imgur.com/FWcaqFz.png)
Title: Re: SMFShop - Shop MOD
Post by: Gwenwyfar on September 24, 2015, 06:58:31 PM
Prefix and suffix is your custom name for the credits. Like for example you could add a prefix $ and then it would all be "$ value". Or $ prefix with a "forum gold" suffix would show like "$345 forum gold". Just put whatever you want in it.
Title: Re: SMFShop - Shop MOD
Post by: dirtfox on September 24, 2015, 07:34:30 PM
Quote from: Fortytwo on September 24, 2015, 06:58:31 PM
Prefix and suffix is your custom name for the credits. Like for example you could add a prefix $ and then it would all be "$ value". Or $ prefix with a "forum gold" suffix would show like "$345 forum gold". Just put whatever you want in it.
Didn't work :(
And I still have 100 credits.
This is what I get now with that...
(http://i.imgur.com/yeIk2RW.png)
Title: Re: SMFShop - Shop MOD
Post by: romanos8 on October 27, 2015, 02:04:49 AM
In my forum the mod shows an amount of credit but a different ammount of money vaialble to buy items. I have added to test the ammount of "10 000000" to admins using the membergroup feature of the store mod but my money is still the same. Please check the screens capture


(http://www.simplemachines.org/community/index.php?action=dlattach;topic=22396.0;attach=245085;image)


Title: Re: SMFShop - Shop MOD
Post by: ittiphol on November 10, 2015, 03:05:16 AM
need help

my code works but it's not show avatar

global $smcFunc, $scripturl, $memberContext;

$members_result = $smcFunc['db_query']('', '
   SELECT id_member, real_name, money
   FROM {db_prefix}members
   ORDER BY money DESC
   LIMIT 5');
$members = array();
while ($row_members = $smcFunc['db_fetch_assoc']($members_result))
{
   $members[] = array(
      'name' => $row_members['real_name'],
      'id' => $row_members['id_member'],
      'money' => $row_members['money'],
      'href' => $scripturl . '?action=profile;u=' . $row_members['id_member'],
      'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['id_member'] . '">' . $row_members['real_name'] . '</a>'
   );
}
$smcFunc['db_free_result']($members_result);

if (empty($members))
   return;

echo '<table>'; 
   
foreach ($members as $money) {
   echo '
   <tr>
      <td style="width: 55px; text-align: center;">

';



if (!empty($context['user']['avatar'])){

echo '



<a href="' . $scripturl . '?action=profile;area=forumprofile' . $memID . ';sa=forumProfile" alt="' . $txt['forumProfile'] . '">



<img src="', $context['user']['avatar']['href'],'" style="width: 20px; height: 20px; border: 1px;" alt="' . $txt['forumProfile'] . '" class="picpGal5"/>

</a>';}



else{

                echo ' <a href="' . $scripturl . '?action=profile;area=forumprofile' . $memID . ';sa=forumProfile" alt="' . $txt['forumProfile'] . '">

<img src="', $settings['images_url'], '/noavatar.png" alt="' . $txt['forumProfile'] . '"  width="20" height="20" class="picpGal5"/></a>



';

}



echo '


      </td>
      <td>
         ', $money['link'], '<br />
          <span class="smalltext">
            <strong>Money:</strong> ', $money['money'], '
          </span>
      </td>
   </tr>';
}
echo '
</table>';


:'(
Title: Re: SMFShop - Shop MOD
Post by: margarett on November 10, 2015, 05:06:56 AM
You need to, at least, globalize $context
Title: Re: SMFShop - Shop MOD
Post by: ittiphol on November 10, 2015, 07:13:02 AM
Quote from: margarett on November 10, 2015, 05:06:56 AM
You need to, at least, globalize $context

Thank you but i don't understand please fix my code for me  :'(
Title: Re: SMFShop - Shop MOD
Post by: margarett on November 10, 2015, 07:17:38 AM
global $smcFunc, $scripturl, $memberContext, $context;
Title: Re: SMFShop - Shop MOD
Post by: ittiphol on November 10, 2015, 07:18:23 AM
Quote from: ittiphol on November 10, 2015, 03:05:16 AM
need help

my code works but it's not show avatar

global $smcFunc, $scripturl, $memberContext;

$members_result = $smcFunc['db_query']('', '
   SELECT id_member, real_name, money
   FROM {db_prefix}members
   ORDER BY money DESC
   LIMIT 5');
$members = array();
while ($row_members = $smcFunc['db_fetch_assoc']($members_result))
{
   $members[] = array(
      'name' => $row_members['real_name'],
      'id' => $row_members['id_member'],
      'money' => $row_members['money'],
      'href' => $scripturl . '?action=profile;u=' . $row_members['id_member'],
      'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['id_member'] . '">' . $row_members['real_name'] . '</a>'
   );
}
$smcFunc['db_free_result']($members_result);

if (empty($members))
   return;

echo '<table>'; 
   
foreach ($members as $money) {
   echo '
   <tr>
      <td style="width: 55px; text-align: center;">

';



if (!empty($context['user']['avatar'])){

echo '



<a href="' . $scripturl . '?action=profile;area=forumprofile' . $memID . ';sa=forumProfile" alt="' . $txt['forumProfile'] . '">



<img src="', $context['user']['avatar']['href'],'" style="width: 20px; height: 20px; border: 1px;" alt="' . $txt['forumProfile'] . '" class="picpGal5"/>

</a>';}



else{

                echo ' <a href="' . $scripturl . '?action=profile;area=forumprofile' . $memID . ';sa=forumProfile" alt="' . $txt['forumProfile'] . '">

<img src="', $settings['images_url'], '/noavatar.png" alt="' . $txt['forumProfile'] . '"  width="20" height="20" class="picpGal5"/></a>



';

}



echo '


      </td>
      <td>
         ', $money['link'], '<br />
          <span class="smalltext">
            <strong>Money:</strong> ', $money['money'], '
          </span>
      </td>
   </tr>';
}
echo '
</table>';


:'(


Avatar it's show same all member

Title: Re: SMFShop - Shop MOD
Post by: ittiphol on November 10, 2015, 07:20:04 AM
like this  :-[
Title: Re: SMFShop - Shop MOD
Post by: margarett on November 10, 2015, 08:09:24 AM
Yes, that's what your code is doing really...

You are fetching the 5 "richest" :P users but you are only getting their ID, name and money.

$context['user']['avatar'] holds the user data for the user currently viewing SMF, so it has absolutely no relation to the members you fetched before...
Title: Re: SMFShop - Shop MOD
Post by: ittiphol on November 10, 2015, 08:22:12 PM
Quote from: margarett on November 10, 2015, 08:09:24 AM
Yes, that's what your code is doing really...

You are fetching the 5 "richest" :P users but you are only getting their ID, name and money.

$context['user']['avatar'] holds the user data for the user currently viewing SMF, so it has absolutely no relation to the members you fetched before...

it's not my code i don't know to say (sorry my english a little bit)
you can fix it for me

thank you  :-[
Title: Re: SMFShop - Shop MOD
Post by: erikgracht on November 11, 2015, 11:31:50 AM
Hi to all,

I have the problem using smf latest version with smfshop 3.3.2 with files above 10 mb.
Files under 10 mb are downloaded in good shape but above it gets 0 bytes.

I read about filedownload2.php, but the site with that files has errors. Can somebody attach this file for me?

Thanks in advance and have a nice day

Erik
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on November 11, 2015, 12:15:59 PM
It is probably your php settings check out this topic
http://www.smfhacks.com/index.php/topic,3498.0.html
Title: Re: SMFShop - Shop MOD
Post by: erikgracht on November 11, 2015, 02:51:25 PM
Thanks vbgamer45 for your reply.

I made the info.php and it said on upload_max_filesize 128M
Same for post_max_size

I can't change php.ini, so i used the .htaccess statements to set it to 550M.

Then i tried it again, with the same result. One file of 82.2Mb and one of 182.8 Mb, both downloaded as 0 bytes.

Other suggestions?

Do i needs the earlier mentioned filedownloadv2.php? I don't see that one in the 3.3.2 smfshop package.
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on November 11, 2015, 02:57:35 PM
You should create a phpinfo page and test that it took affect.
Otherwise your host might need to change it.
Title: Re: SMFShop - Shop MOD
Post by: erikgracht on November 11, 2015, 03:02:40 PM
It is still 128M, but then i must be succesfull with the file of 82.2Mb.??

I shall contact the hosting company.

Thanks for your very quick reply 😌

Regards
Erik
Title: Re: SMFShop - Shop MOD
Post by: erikgracht on November 11, 2015, 04:01:52 PM
Strange....

with a file from 4.9 Mb it is successful. no errors in log.
When i took a file at 82.2 MB or the on at 182.8 Mb the download looks as starting but gets 0 bytes.
errorlog gives this error:

http://www.xxxxxxx.org/smf/index.php?action=shop;do=inv3&amp;id=78
2: readfile(0): failed to open stream: No such file or directory
File: /var/www/web/smf/Sources/shop/items/filedownload.php
Line: 75

and line 75:
70:      function onUse()
71:      {
72:         global $context, $smcFunc, $user_info, $item_info, $user;
73:         header('Content-type: application/octet-stream');
74:         header('Content-Disposition: attachment; filename=' . $item_info[1]);
==>75:         readfile($item_info[2]);
76:         
77:            // Get the administrator username
78:            $result = $smcFunc['db_query']('', '
Title: Re: SMFShop - Shop MOD
Post by: chuman on November 17, 2015, 06:08:03 AM
The shop and everything works perfect however there are no permissions to allow anyone besides admins to add /remove / alter the store? My co-admins (Copy of the admin rank entirely) have all the permisisons and cannot alter the store, I'm not sure if thats default or a bug.
Title: Would like to remove "View Inventory"
Post by: .aura. on February 08, 2016, 07:37:09 AM
I have installed the shop, to use as a points system on our forum, thank you its a great mod.

I would like to remove from our members view, the "View Inventory" that sits under each person profile picture.  We dont plan to use the inventory, hence wanting to remove the words from display.   I have looked in the templates files but cant seem to find it.

The View Inventory as shown below is what i wish to remove.

(http://www.elements-of-design.org/aura/removesample.jpg)

Thanks so much in advance for any suggestions. 

aura
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on February 08, 2016, 08:37:26 AM
It would be in the display.template.php file
Title: Re: SMFShop - Shop MOD
Post by: .aura. on February 11, 2016, 09:40:46 AM
thanks for your help, i couldnt find it, decided to try again and suddenly it appeared. *grins*
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on February 11, 2016, 12:10:24 PM
Glad you were able to find it
Title: Re: SMFShop - Shop MOD
Post by: Bob Perry of Web Presence Consulting on February 15, 2016, 01:56:10 AM
Having trouble using items, keeps triggering the cheating error message when it shouldn't... running SMF 2.1 beta 3...
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on February 15, 2016, 09:03:01 AM
Untested with SMF 2.1 beta 3 at this time.
Title: Re: SMFShop - Shop MOD
Post by: Goodman854 on August 28, 2016, 06:17:51 PM
If you edit any items they all zero out and can't be changed this mod and the other one have been broken to the point of unusableness since almost the start. don't know why that happens.
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on August 28, 2016, 06:37:39 PM
Which item which SMF version? How are you editing them?
Title: Re: SMFShop - Shop MOD
Post by: Cuda Cody on November 15, 2016, 09:41:17 PM
After looking in the FAQ's and doing a "search" this seems like the best place to ask a question about the Shop Mod.  LOVE, LOVE, LOVE the idea have having this mod and can't wait to get it installed.  Having some trouble getting it to install correctly.

Here's what happens when I try to install it.  I get a line 16 ./Sources/Subs.php   Test failed.   

Thank you in advance for any tips or help you might suggest.

Here's a screen shot of the error....
(http://forum.e-bodies.org/gallery/1-151116184234.jpeg)

I looked though the 4 pages of searches that came back from the 153 pages in this thread about Sources/Subs.php and I think I'm more confused.  This newb really needs some help.  I'm on SMF version 2.0.12
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on November 15, 2016, 09:56:44 PM
You would need to install it then make the change were it failed manually.
You can upload it to http://www.smfhacks.com/smf-package-parser.html to get the file changes.
Title: Re: SMFShop - Shop MOD
Post by: Cuda Cody on November 15, 2016, 10:08:53 PM
A super thank you for the fast response vbgamer45.  I've seen many of your posts and you are a legend to newb's like me.   And I hate being the newb that asks dumb questions, so let me try to figure out what you are suggesting I do.  I think you want me to take the ZIP file (for the Shop Mod) and upload it to that SMF Package Parser?  Let me try that....

THANKS!!!!!

Quote from: vbgamer45 on November 15, 2016, 09:56:44 PM
You would need to install it then make the change were it failed manually.
You can upload it to http://www.smfhacks.com/smf-package-parser.html to get the file changes.
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on November 15, 2016, 10:10:15 PM
Yes try that.
Title: Re: SMFShop - Shop MOD
Post by: Cuda Cody on November 16, 2016, 01:18:08 AM
I upload the file to the link you shared and I get a page like this:

(http://forum.e-bodies.org/gallery/1-151116221656.jpeg)

Feel like I missed something.  What do I do with that info?

Quote from: vbgamer45 on November 15, 2016, 10:10:15 PM
Yes try that.
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on November 16, 2016, 01:33:57 AM
Fixed a bug in the SMF 2.0 package redownload from the mod site.
Title: Re: SMFShop - Shop MOD
Post by: Cuda Cody on November 16, 2016, 01:44:46 AM
The new 3.3.3 version gives me this message when I try to upload it:

(http://forum.e-bodies.org/gallery/1-151116224310.jpeg)

Quote from: vbgamer45 on November 16, 2016, 01:33:57 AM
Fixed a bug in the SMF 2.0 package redownload from the mod site.
Title: Re: SMFShop - Shop MOD
Post by: Cuda Cody on November 16, 2016, 10:07:27 AM
I installed 3.3.2 with the failed test and it didn't work.  So I tried to remove it and it gives an error in Line 10 (./Sources/Subs.php   Test failed).  Then the Gallery Pro is giving this error....

(http://forum.e-bodies.org/gallery/1-161116070922.jpeg)


If I reinstall the Shop Mod 3.3.2 (again with the error  line 16 ./Sources/Subs.php   Test failed.) the Gallery works again.
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on November 16, 2016, 11:08:19 AM
Yes because the gallery pro thinks smf shop is installed.
You would have to delete in the smf_settings database table references to SMF Shop
Title: Re: SMFShop - Shop MOD
Post by: Cuda Cody on November 16, 2016, 11:54:27 AM
That's if I want to get the Gallery Pro to work without the Shop Mod, correct?  I really want to get the Shop Mod to install and work.

Or are saying to get the 3.3.3 Shop Mod to install correctly I need to make the delete the table?  This is what I get when trying to install the 3.3.3 Shop Mod

(http://forum.e-bodies.org/gallery/1-151116224310.jpeg)



Quote from: vbgamer45 on November 16, 2016, 11:08:19 AM
Yes because the gallery pro thinks smf shop is installed.
You would have to delete in the smf_settings database table references to SMF Shop
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on November 16, 2016, 11:57:27 AM
You can try to install it manaually by uploading it to
http://www.smfhacks.com/smf-package-parser.html
Title: Re: SMFShop - Shop MOD
Post by: Cuda Cody on November 20, 2016, 09:32:05 PM
Looks like I found the 2 Mods that will not work together.  I systematically removed all the Mods on my site one at a time until the Shop Mod would install without any errors.  Wasn't until I removed the Gallery Pro that the Shop Mod would install.

Is anyone else using the Shop Mod with Gallery Pro?
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on November 20, 2016, 11:11:34 PM
What about installing SMF Shop then installing the gallery?
Title: Re: SMFShop - Shop MOD
Post by: Cuda Cody on November 20, 2016, 11:19:51 PM
To help determine the exact issue I'm doing all my testing with no other Mods installed.  When I install the Shop Mod first it works great.  Then install the Gallery Pro second it also works great.  They both function fine until I try to remove the Shop Mod.  If I try to remove the Shop Mod with gallery installed I get this error...

(http://forum.e-bodies.org/gallery/1-201116201649.jpeg)


If I remove Gallery Pro and then try to remove the Shop Mod I get a fatal error....

(http://forum.e-bodies.org/gallery/1-201116201736.jpeg)

Any thoughts on why this might be happening?

Quote from: vbgamer45 on November 20, 2016, 11:11:34 PM
What about installing SMF Shop then installing the gallery?
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on November 21, 2016, 12:43:24 AM
That's normal behavior in SMF when installing packages that modify files. Language files have the most common issue and our safe to ignore in most cases.
If you install a file that edits a place then another mod edits the same area it can cause an unistall conflict unless they are uninstalled in order.



The uninstall file missing in that case that is not normal that sounds like an error in the SMF package manager or file permissions.
Title: Re: SMFShop - Shop MOD
Post by: SMFHacks.com Team on January 15, 2017, 04:05:17 PM
Update
3.3.4
!Removed some mysql_ functions from SMF 2.0 version
!Fixed bug in download file item not removing it from the inventory SMF 2.0
!Some minor security fixes admin side. SMF 2.0
Title: Re: SMFShop - Shop MOD
Post by: redxiii13 on February 15, 2017, 04:16:11 AM
Ive been around and around with this and decided to sign up and ask for help.  Running on 2.0.13

After trying multiple different things I removed everything, purged the cache, went to default theme, and installed only this package. 
If I attempt to edit an item, use an item, (cant see item avatars either) I get:

Fatal error: require(): Failed opening required '/homepages/31/d669353868/htdocs/clickandbuilds/SMF/RedXiii/Sources/shop/items/ChangeUsername.php' (include_path='.:/usr/lib/php5.6') in /homepages/31/d669353868/htdocs/clickandbuilds/SMF/RedXiii/Sources/shop/Shop-Inventory.php on line 162

Item images and all files are in their respective folders so definitely confused.

Title: Re: SMFShop - Shop MOD
Post by: Kindred on February 15, 2017, 08:54:56 AM
are you certain that the Changeusername.php file is present and has the correct chmod permissions?

That error usually indicates that a file is missing, a function is missing from the file, or the file has the wrong chmod permissions (644, maybe 664 might be needed)
Title: Re: SMFShop - Shop MOD
Post by: Bob Perry of Web Presence Consulting on February 18, 2017, 04:18:50 AM
Quote from: SMFHacks.com Team on January 15, 2017, 04:05:17 PM
Update
3.3.4
!Removed some mysql_ functions from SMF 2.0 version
!Fixed bug in download file item not removing it from the inventory SMF 2.0
!Some minor security fixes admin side. SMF 2.0


Having trouble logging into your website, you may have a very old email for my account registered there, bperry921... have repeatedly tried requesting password change, no emails forthcoming, please hook me up I wish to be a beta tester
Title: Re: SMFShop - Shop MOD
Post by: redxiii13 on February 20, 2017, 09:29:42 AM
Quote from: Kindred on February 15, 2017, 08:54:56 AM
are you certain that the Changeusername.php file is present and has the correct chmod permissions?

That error usually indicates that a file is missing, a function is missing from the file, or the file has the wrong chmod permissions (644, maybe 664 might be needed)

Finally went in and checked all permissions.  All permissions available.  Change file is present.  Cant touch a single item or edit it except for the test item.

Can buy the items, change my name or users names but then if i hit submit it fails.
Title: Re: SMFShop - Shop MOD
Post by: aetherdan on March 22, 2017, 06:02:23 AM
Hi All,

Having a major issue with the mod. When ever a user tries to use an item, the server returns a HTTP ERROR 500.

This also happens when trying to add/edit or remove any items from the shop administration part.
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on March 22, 2017, 08:44:48 AM
Check your forum's error log or apache error log for clues
Title: Re: SMFShop - Shop MOD
Post by: aetherdan on March 23, 2017, 12:46:54 AM
Error
[Thu Mar 23 04:25:09.672948 2017] [:error] [pid 21658] [client *removed*] PHP Fatal error:  require(): Failed opening required '/var/www/html/Sources/shop/items/increasetimeloggedin.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/Sources/shop/Shop-Inventory.php on line 219, referer: https://*removed*/index.php?action=shop;do=inv2&id=2


Files in directory of /var/www/html/Sources/shop/items/
ls
AddToPostCount.php     DisplayMessage.php        RandomMoney.php
ChangeDisplayName.php  EmailAdmin.php            Rock.php
ChangeOtherTitle.php   filedownload.php          Steal.php
ChangeUsername.php     IncreaseKarma.php         StickyTopic.php
ChangeUserTitle.php    IncreaseTimeLoggedIn.php  testitem2.php
DecreasePost.php       PrimaryMemberGroup.php    testitem.php


CHMOD Permission of IncreaseTimeLoggedIn.php
  File: 'IncreaseTimeLoggedIn.php'
  Size: 3591            Blocks: 8          IO Block: 4096   regular file
Device: ca01h/51713d    Inode: 397902      Links: 1
Access: (0777/-rwxrwxrwx)  Uid: (   48/  apache)   Gid: (  501/     www)
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on March 23, 2017, 01:03:22 AM
Rename the file to exactly increasetimeloggedin.php
Title: Re: SMFShop - Shop MOD
Post by: aetherdan on March 23, 2017, 01:26:05 AM

[Thu Mar 23 05:21:13.333733 2017] [:error] [pid 23542] [client *removed*] PHP Fatal error:  require(): Failed opening required '/var/www/html/Sources/shop/items/IncreaseTimeLoggedIn.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/Sources/shop/Shop-Inventory.php on line 162, referer: https://*removed*/index.php?action=shop;do=inv


Why is it now wanting correct casing?

Also this time the error occurred when clicking 'use item' on the inventory view page, not on the secondary page that displays:
QuoteThis item requires further input. Please complete the fields below, and then press "Use Item"
Which is odd cause we have gone back a step just by changing the letter casing of the file name, but get the exact same error.

I have gone and installed the mod both ways, via the package browser and by using the upload compressed file. Both ways still have the exact same issue, and permissions seems to be fine, and the files all exist.

Have also CHMOD all directories and files in the shop mod to 777, no change in error.
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on March 23, 2017, 01:47:48 AM
Not sure I guess have a copy of there for both cases and see if it helps.
Title: Re: SMFShop - Shop MOD
Post by: aetherdan on March 23, 2017, 02:04:20 AM
Quote from: vbgamer45 on March 23, 2017, 01:47:48 AM
Not sure I guess have a copy of there for both cases and see if it helps.

That worked!

But now we cant use the shop admin panel to add or remove items. Understandably heres the new error:
[Thu Mar 23 06:14:06.406415 2017] [:error] [pid 3569] [client *removed*] PHP Fatal error:  Cannot redeclare class item_IncreaseTimeLoggedIn in /var/www/html/Sources/shop/items/increasetimeloggedin.php on line 74, referer: https://*removed*/index.php?action=admin;area=shop_general;d9acea6=b3c20b55b81793fb3a4e0ee6e79a4529




EDIT SOLVED!

Ok for anyone who experiences this issue in the future (I expect its a linux case sensitive parsing issue), the problem is a two part fix.


Enjoy the mod and I hope this helps someone in the future.
Title: Re: SMFShop - Shop MOD
Post by: lukonic on March 27, 2017, 07:56:28 AM
Hello,
could someone please teach me(show for like a baby) how to make so that when a person uses the "sticky topic", the topic would become normal again after a week. i mean, how do i make the sticky topic temporary?
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on March 27, 2017, 08:37:26 AM
I don't think that is possible. Once it is sticky always sticky.
Title: Re: SMFShop - Shop MOD
Post by: lukonic on March 27, 2017, 09:02:41 AM
Quote from: vbgamer45 on March 27, 2017, 08:37:26 AM
I don't think that is possible. Once it is sticky always sticky.
Shame, this would've been very useful. i guess i'll have to try to code myself x.x
Title: Re: SMFShop - Shop MOD
Post by: aetherdan on March 30, 2017, 03:19:47 AM
I have noticed that if you disable, under forum permissions for a specific board, it doesn't work. Is this happening for others?

Count Shop Points > Members will receive Shop credits for posting in this forum.

The other thing is that when a post is deleted, it subtracts what appears to be the post credit for a topic, rather than the credit assigned to a post.
Title: Re: SMFShop - Shop MOD
Post by: aetherdan on May 29, 2017, 02:53:49 AM
One more bug, if you send someone 0.5 credits, it gives them one, and you aren't deducted any.
Title: Re: SMFShop - Shop MOD
Post by: Harvester on July 15, 2017, 11:30:49 AM
I have a couple questions.

Im hoping Im just missing something somewhere... but... I am getting shop points for posting in boards that do not have "Count Shop Points Members will receive Shop credits for posting in this forum." checked.

I assumed that in order for someone to get points in the board I would need to check t hat option.

I want points towards the shop to only be awarded for certain boards.

Am i missing something?

Also, how can i reset all members to 0 (zero) points again?

and last but not least, when I go to "Add Item" and select "send email to admin" and click "Next" it loads to a blank white page.   I'd really like to use this feature.
Title: Re: SMFShop - Shop MOD
Post by: Harvester on July 18, 2017, 08:28:07 AM
Can I please get some assistance here?
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on July 18, 2017, 08:33:19 AM
To reset members money run this sql query

Update smf_members set money = 0
Title: Re: SMFShop - Shop MOD
Post by: Harvester on July 18, 2017, 09:55:15 AM
Thank you very much.  :D

Any help on the remaining 2 questions? They are actually the most important questions I need resolved for what I am trying to do.


Quote from: HarvesterIm hoping Im just missing something somewhere... but... I am getting shop points for posting in boards that do not have "Count Shop Points Members will receive Shop credits for posting in this forum." checked.

I assumed that in order for someone to get points in the board I would need to check t hat option.

I want points towards the shop to only be awarded for certain boards.


Also, how can i reset all members to 0 (zero) points again?

and last but not least, when I go to "Add Item" and select "send email to admin" and click "Next" it loads to a blank white page.   I'd really like to use this feature.
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on July 18, 2017, 12:38:46 PM
Email issue can't recreate on my test site

Shop points you have to edit each board and check
"
Count Shop Points
Members will receive Shop credits for posting in this forum."
Title: Re: SMFShop - Shop MOD
Post by: Harvester on July 18, 2017, 01:30:32 PM
Quote from: vbgamer45 on July 18, 2017, 12:38:46 PM


Shop points you have to edit each board and check
"
Count Shop Points
Members will receive Shop credits for posting in this forum."

So, if its NOT checked, no points should be rewarded. Right? Because even tho mine are NOT checked, points are still being rewarded for posts on those boards.
Title: Re: SMFShop - Shop MOD
Post by: Harvester on July 18, 2017, 01:38:18 PM
and to add to this... I just realized that its any item i try to add... it loads to a blank page.. the only two items I can add are test item and test item 2... all others load to a blank page as shown in the screen cap below.

http://prntscr.com/fx9r7q



Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on July 18, 2017, 01:52:17 PM
Anything in the forums error log?
Title: Re: SMFShop - Shop MOD
Post by: Harvester on July 18, 2017, 02:15:27 PM
also if i put anything in these options (shown in lightshot  screen cap below) after i save and go back, the boxes are unchecked and the fields are blank as if i had done nothing.

http://prntscr.com/fxa6kn


i see this error which appears to be an error relate to adding the item


https://fishinpedia.com/bass-fishing-forums/index.php?action=admin;area=shop_items_add;step=1
2: require(/home/jared867/public_html/bass-fishing-forums/Sources/shop/items/emailadmin.php): failed to open stream: No such file or directory
File: /home/jared867/public_html/bass-fishing-forums/Sources/shop/ShopAdmin.php
Line: 277


but i see no error concerning my settings not saving in the boards.
Title: Re: SMFShop - Shop MOD
Post by: Harvester on July 18, 2017, 02:19:17 PM
ok that error  helped me... the error was showing emailadmin.php but on my server the file is named EmailAdmin... I recall issues in the past with capitalization so I renamed the file on my server to emailadmin.php and that resolved that issue.
Title: Re: SMFShop - Shop MOD
Post by: Harvester on July 18, 2017, 07:18:57 PM
this major issue still persists. please help.

Quote from: Harvester on July 18, 2017, 01:30:32 PM

I am getting shop points for posting in boards that do not have "Count Shop Points Members will receive Shop credits for posting in this forum." checked in the specific board settings.

I want points towards the shop to only be awarded for certain boards.

also if i put anything in these options (shown in lightshot  screen cap below) after i save and go back, the boxes are unchecked and the fields are blank as if i had done nothing.

http://prntscr.com/fxa6kn

Title: Re: SMFShop - Shop MOD
Post by: Harvester on July 19, 2017, 09:36:31 AM
can  someone please help me with this issue? I am trying desperately to roll out a program on my site using this Shop (I had run the same program before on my old site for years on SMF 1.x) and I cannot pull it off without this working properly.
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on July 19, 2017, 09:39:17 AM
I don't think I ever did the code for SMF 2.0.x for board counting i don't think that ever worked.
Title: Re: SMFShop - Shop MOD
Post by: Harvester on July 19, 2017, 03:21:11 PM
Quote from: vbgamer45 on July 19, 2017, 09:39:17 AM
I don't think I ever did the code for SMF 2.0.x for board counting i don't think that ever worked.

aw crap. serious? is it that much different than 1.x? Is it hard to get it to work?
Title: Re: SMFShop - Shop MOD
Post by: Harvester on July 19, 2017, 09:15:34 PM
Can anyone help me get this feature working?  I really need to be able to set which boards give points. I dont want all my boards to award points.
Title: Re: SMFShop - Shop MOD
Post by: Harvester on July 27, 2017, 08:36:45 AM
can anyone help me with this? I really want to be able to select which boards award points as the original Shop did. I dont want all my boards to award shop points.
Title: Re: SMFShop - Shop MOD
Post by: Harvester on August 05, 2017, 08:20:07 AM
Really? No one is going to offer any help at all?
Title: Re: SMFShop - Shop MOD
Post by: razzy on August 17, 2017, 07:34:07 PM
I have attempted to install this with SMF 2.0.14 with the Gearbox theme.
I ran into a couple errors and have been looking for some help. The forum I've put together is in bad need of this type of mod, can anyone help?
Title: Re: SMFShop - Shop MOD
Post by: Bob Perry of Web Presence Consulting on August 17, 2017, 09:12:16 PM
Quote from: razzy on August 17, 2017, 07:34:07 PM
I have attempted to install this with SMF 2.0.14 with the Gearbox theme.
I ran into a couple errors and have been looking for some help. The forum I've put together is in bad need of this type of mod, can anyone help?

Been using this mod for quite some time and know it fairly well... be glad to help, what's up? What is the trouble specifically and please try to be as detailed as you can... maybe a link to your site?

Title: Re: SMFShop - Shop MOD
Post by: razzy on August 17, 2017, 10:10:48 PM
Thankfully I managed to get help from the other thread. Thank you SO much for the response all the same. I'm going to be nerding out on customizing this for the next few days.

=)
Title: Re: SMFShop - Shop MOD
Post by: Bob Perry of Web Presence Consulting on August 17, 2017, 10:33:48 PM
Quote from: razzy on August 17, 2017, 10:10:48 PM
Thankfully I managed to get help from the other thread. Thank you SO much for the response all the same. I'm going to be nerding out on customizing this for the next few days.

=)

No problem, say when you get all the settings configured the way you want, I have several custom made shop items that may interest you I'd happily share with any site owners who like to play with all that stuff, also a few that I came across a long time ago from elsewhere that still function great on the current version...

Title: Re: SMFShop - Shop MOD
Post by: razzy on August 18, 2017, 01:59:02 PM
It's funny you mention that. Mind if I pm?
Title: Re: SMFShop - Shop MOD
Post by: Harvester on August 28, 2017, 11:01:55 AM
Quote from: Bob Perry of Web Presence Consulting on August 17, 2017, 09:12:16 PM
Quote from: razzy on August 17, 2017, 07:34:07 PM
I have attempted to install this with SMF 2.0.14 with the Gearbox theme.
I ran into a couple errors and have been looking for some help. The forum I've put together is in bad need of this type of mod, can anyone help?

Been using this mod for quite some time and know it fairly well... be glad to help, what's up? What is the trouble specifically and please try to be as detailed as you can... maybe a link to your site?

Hi Bob. my issue is that I can not set which boards will award points and which will not. Currently ALL boards award points no matter what I do or what settings I change. I have some boards I do not want to award points. I have been trying to get help  with this issue for weeks. Any help would be greatly appreciated.

my site is located at https://fishinpedia.com/bass-fishing-forums/
Title: Re: SMFShop - Shop MOD
Post by: inkvfd on November 06, 2017, 03:40:48 PM
I am using shop and classifieds on my 2.0.14 SMF site. They both use credits. Can I use one credit system for all?
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on November 06, 2017, 03:54:22 PM
Not at the moment.
Title: Re: SMFShop - Shop MOD
Post by: silber112 on November 20, 2017, 05:27:32 AM
Hello!

I am trying to display one item next to in the amount of post in the display.template.php

It worked in smf 2.0.8. Dont know why it doesnt work now(2.0.14)..

would apriciate any kind of help :). Thanks ;)



Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on November 20, 2017, 08:50:05 AM
Don't use mysql_ functions instead use the the built query functions in SMF to do the work
Title: Re: SMFShop - Shop MOD
Post by: silber112 on November 20, 2017, 09:59:48 AM
Quote from: vbgamer45 on November 20, 2017, 08:50:05 AM
Don't use mysql_ functions instead use the the built query functions in SMF to do the work

Could you help me?
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on November 20, 2017, 11:04:09 AM
Sorry i don't have time.
Title: Re: SMFShop - Shop MOD
Post by: Dwev on December 12, 2017, 10:26:57 AM
I've tried to find the answer here, but the thread is very long and even with searches I couldn't find an answer.

I would like to try this mod, but when I try to install it though the Package Manager everything lists as "Succes", except for the installation on our theme (Test failed).

So the problem is related to the theme, I think probably the creating of a button.
I did register on http://smfshop.com/forum/ to see if I can find an answer there, but that seems to be completely overtaken by spammers.

Can anybody point me to how to find a solution for this problem?
Title: Re: SMFShop - Shop MOD
Post by: -Rock Lee- on December 12, 2017, 11:17:13 AM
Quote from: Dwev on December 12, 2017, 10:26:57 AM
I've tried to find the answer here, but the thread is very long and even with searches I couldn't find an answer.

I would like to try this mod, but when I try to install it though the Package Manager everything lists as "Succes", except for the installation on our theme (Test failed).

So the problem is related to the theme, I think probably the creating of a button.
I did register on http://smfshop.com/forum/ to see if I can find an answer there, but that seems to be completely overtaken by spammers.

Can anybody point me to how to find a solution for this problem?

If there was a problem when installing in your theme it is possible not to find the line that you must edit, it usually happens, you simply must see the code to make the modification manually and you should not have problems ...


Regards!
Title: Re: SMFShop - Shop MOD
Post by: Dwev on December 12, 2017, 12:47:36 PM
Quote from: Rock Lee on December 12, 2017, 11:17:13 AMIf there was a problem when installing in your theme it is possible not to find the line that you must edit, it usually happens, you simply must see the code to make the modification manually and you should not have problems ...

If I knew how to find that line, that would work as well.

One of the options to find out which lines would be needed to be altered would be to install in one of the standard themes.
But the installer only lists our own theme as an option, so that doesn't work.

If it helps, I can put the files of the theme accessible online and post a link here...
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on December 12, 2017, 12:50:19 PM
I look at the code it edits and compare it to the default theme then try to make edits to your own theme in similar location
Title: Re: SMFShop - Shop MOD
Post by: -Rock Lee- on December 12, 2017, 09:54:31 PM
Quote from: Dwev on December 12, 2017, 12:47:36 PM
Quote from: Rock Lee on December 12, 2017, 11:17:13 AMIf there was a problem when installing in your theme it is possible not to find the line that you must edit, it usually happens, you simply must see the code to make the modification manually and you should not have problems ...

If I knew how to find that line, that would work as well.

One of the options to find out which lines would be needed to be altered would be to install in one of the standard themes.
But the installer only lists our own theme as an option, so that doesn't work.

If it helps, I can put the files of the theme accessible online and post a link here...

For these cases I have a separate testing forum, install the mod and look for the line in the default theme then I guided a bit by the comments to approximate as much as possible ... with a few attempts to leave it as it should be. Then I see everything works without problems, I pass it to the active forum, it is to avoid problems to the users and others in case something goes wrong.


Regards!
Title: Re: SMFShop - Shop MOD
Post by: Dwev on December 13, 2017, 04:43:34 AM
@ Rock Lee: good idea, and probably the only one that will work here.

By the way I did get it to 'see' the Core Theme before installation (had to be turned on as an option for users to choose), but that also returns the error "Test failed".
There the problem is the same, it won't install in /Themes/core/Display.template.php

I'll try on a compete fresh install, but I think it's weird that it won't install in this theme either (nothing was ever altered there).

Is there a way to find out what a modification does exactly before installing it?
Title: Re: SMFShop - Shop MOD
Post by: -Rock Lee- on December 13, 2017, 08:16:30 AM
@Dwev what happens the theme core is different and usually always gives errors but as it is not taken into account at the time of installing some modification, it is more taken into account that the theme default is met. You can unzip the installer to see what the code does exactly, although seeing the note at the time of installation should suffice; I apologize if I express myself badly I do not dominate English at all yet and some sentences sound weird.


Regards!
Title: Re: SMFShop - Shop MOD
Post by: Dwev on December 15, 2017, 03:42:27 PM
@ Rock Lee: thanks for the advice.

I checked the places that threw errors, copied what should be changed and did it by hand, and now the Shop works in the standard Core Theme!

Thank you very much, I'm pretty sure that I should be able to get it to work in our custom theme as well.
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on December 15, 2017, 04:03:09 PM
Glad you have it working!
Title: Re: SMFShop - Shop MOD
Post by: jack001 on January 07, 2018, 10:36:41 AM
mine not working. Had to uninstall it.
Title: Re: SMFShop - Shop MOD
Post by: Dwev on January 07, 2018, 07:28:53 PM
Didn't get it to work in my custom theme either, and abandoned it as well.
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on January 07, 2018, 07:59:48 PM
Ok you can follow the edits to put in your theme though
Title: Re: SMFShop - Shop MOD
Post by: power505 on January 25, 2018, 07:16:19 AM
Quote from: aetherdan on May 29, 2017, 02:53:49 AM
One more bug, if you send someone 0.5 credits, it gives them one, and you aren't deducted any.
Does anyone found how to solve this problem? This is huge, everyone cheats on my forum.
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on January 25, 2018, 10:15:02 PM
Changed posted new fix.
Title: Re: SMFShop - Shop MOD
Post by: power505 on January 27, 2018, 08:23:40 PM
Great, you solved it with style :) It works, recommending everyone to update their plugin!

Also, is there a possibility to implement some kind of tracking log? It would be more than useful if we could track users transactions. Maybe to store it in SQL table or txt file somewhere on the server.
Title: Re: SMFShop - Shop MOD
Post by: power505 on February 08, 2018, 07:32:00 AM
Quote from: power505 on January 25, 2018, 07:16:19 AM
Quote from: aetherdan on May 29, 2017, 02:53:49 AM
One more bug, if you send someone 0.5 credits, it gives them one, and you aren't deducted any.
Does anyone found how to solve this problem? This is huge, everyone cheats on my forum.
Fix works, but there is another similar bug.

If someone sends 2.5 credits, they are deducted only 2, but receiver receives 3. The same happens with any 0.5 value. One credit is created from nothing.

Maybe a solution would be to completely forbid trading with decimal values?
Title: Re: SMFShop - Shop MOD
Post by: SMFHacks.com Team on February 08, 2018, 10:30:43 PM
Update
3.3.5
!Bug fixes for SMF 2.0.x disable sending partial currency.
Title: Re: SMFShop - Shop MOD
Post by: SMFHacks.com Team on May 10, 2018, 08:13:50 PM
Major update/fix for SMF 2.0.x

4.0
!Fixed all the board level settings for SMF 2.0
Count Shop Points, Shop Credits, and Enable Shop Bonuses
Title: Re: SMFShop - Shop MOD
Post by: SMFHacks.com Team on May 11, 2018, 11:48:31 PM
4.0.1
!Fixed an issue with countMoney on board level. Enable/disabling a board for shop now works.
Title: Re: SMFShop - Shop MOD
Post by: StarredSkies on August 17, 2018, 06:29:18 PM
Hello!

Recently I tried to upgrade from 3.3.5 to 4.0.1 SMFShop and lost all of my choices that I had created for custom items. This removed the custom items from their inventory(once again, they were made from the test item).  I even tried restoring the files from Sources/shop and then Packages/SMFShop, but that didn't seem to recover any of the items. The only thing that remained because of this upgrade was the gems/currency that remained in my user's accounts.

Help? I need this back up really quick.

Thanks in advance.
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on August 17, 2018, 06:42:23 PM
The restore of the files should fix it.
Old versions of the shop mod used to remove sources/shop folder on uninstall

Always install the new version on top of the last.
Title: Re: SMFShop - Shop MOD
Post by: StarredSkies on August 17, 2018, 07:11:07 PM
Restored database. Worked just fine.

How would I install it on top of the last???
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on August 17, 2018, 07:17:14 PM
Have to double check if did that option for this mod. I might not have. There would be an upgrade link when you upload a new version
Title: Re: SMFShop - Shop MOD
Post by: StarredSkies on August 17, 2018, 07:26:58 PM
I did not see an upgrade link, sadly.

Restored the database... lost some posts unfortunately. Lovely day so far! sarcasm
Title: Re: SMFShop - Shop MOD
Post by: StarredSkies on September 21, 2018, 01:24:27 PM
Hello!
Do you think it'd be possible to remove an item from the shop without removing it from member's inventories? Thanks again. <3
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on September 21, 2018, 02:00:31 PM
Like not able to purchase again from the shop?
Title: Re: SMFShop - Shop MOD
Post by: Gwenwyfar on September 21, 2018, 03:31:52 PM
Quote from: StarredSkies on September 21, 2018, 01:24:27 PM
Hello!
Do you think it'd be possible to remove an item from the shop without removing it from member's inventories? Thanks again. <3
I know you can set the item's limit to 0 available. Or you want for it not to show on the list at all?
Title: Re: SMFShop - Shop MOD
Post by: StarredSkies on September 21, 2018, 03:52:00 PM
I'd like to hide it from the shop list but allow it to be an item within their inventory still. Basically Gwen's second comment.

My website would like to use this for limited-time items that will only be available for a certain amount of time. After that, we'd like to hide the item so it de-clutters our shop.
Title: Re: SMFShop - Shop MOD
Post by: Gwenwyfar on September 21, 2018, 05:26:59 PM
I can't remember if you could hide items, but if there isn't an option it should be easy to modify it to not display items with a value of 0.
Title: Re: SMFShop - Shop MOD
Post by: StarredSkies on September 21, 2018, 08:21:11 PM
You cannot hide items within the current mod but I can definitely figure it out. If it was integrated, that'd be nice.
Title: Re: SMFShop - Shop MOD
Post by: Koper on November 02, 2018, 10:51:22 AM
Hello. I would like to enter the paid nickname colors for virtual currency.
How do you make such modifications? I am asking for help
Title: Re: SMFShop - Shop MOD
Post by: Cathal on November 07, 2018, 06:24:43 PM
I am using the Comet theme and trying to follow the instructions for manually modifying themes but nothing matches
e.g.  looking for
Quote// Show how many posts they have made.
                        echo '
                                                                ', $txt[26], ': ', $message['member']['posts'], '<br />
                                                                <br />';

$txt[26] doesn't exist in that file???

Now I understand every theme is gonna have it's quirks but is anyone else using this theme and the shop addon that can maybe give some pointers?
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on November 07, 2018, 07:15:31 PM
That's for SMF 1.1.x
Title: Re: SMFShop - Shop MOD
Post by: overdue on January 06, 2019, 06:46:18 PM
How do I get bought items to show up on my profile and profile in posts?
Title: Re: SMFShop - Shop MOD
Post by: overdue on January 13, 2019, 12:29:36 PM
Why was the display inventory on posts removed from this new version? That is so dumb and kind of defeats the purpose of having a shop.

I've installed both SA Shop and SMFShop on two different installs of smf and while SA is older and probably less secure it still does more than SMFShop.

Example:

SA Shop Display.template.php

         // 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'],'" />&nbsp;&nbsp;';
            }
           
         }
      }
echo '</li>';
         // End shop Mod 



SMFShop  Display.template.php   
   

// Begin SMFShop 2.3 (Build 11) code
         echo '
                  <li>', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '</li>
                  <li><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">', $txt['shop_display_view_inventory'], '</a></li>
                  <li><a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">', $txt['shop_display_send_money'], ' ', $message['member']['name'], '</a></li>';
         //END SMFShop code


SMFShop doesn't display the items. I tried to take the SA Shop coding and use it on SMFShop but it didn't work to show the items. I don't understand why this feature was left out of the updated mod?

I'd also like to know why SMFShop only allows one size of image as the shop items while SA Shop let's you post different sizes. Very frustrating when you post pixel items of different sizes in the shop. I have to choose one size and then let the rest of the items either be squished or stretched. Why SMFShop? Why?!

I think I'm going to have to uninstall SMFShop and install SA Shop as SMFShop falls short on doing well...anything. At least SA is a little closer to the old XMB Shop hack that displayed inventory items on posts. Let me know if someone decides to take the features of SAShop and move them over to SMFShop.
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on January 13, 2019, 04:26:28 PM
They are different mods with different sets of features.
Title: Re: SMFShop - Shop MOD
Post by: overdue on January 14, 2019, 12:21:34 PM
Quote from: vbgamer45 on January 13, 2019, 04:26:28 PM
They are different mods with different sets of features.

Well it would be nice to be able to display items on posts in SMFShop. And the item image of one size fits all requirement really sucks. Not all item images are going to be the same size on some forums. I'll never understand why that was implemented into the script.

Something to consider for the next update.
Title: Re: SMFShop - Shop MOD
Post by: Arantor on January 14, 2019, 02:22:34 PM
Because not everyone has the same needs as you?
Title: Re: SMFShop - Shop MOD
Post by: gman123 on March 24, 2019, 02:59:02 PM
I think I have a very very very old version of this mod installed on my forum but it's not showing up under my package manager to uninstall. It says on it's info page, Your Version: 1.0 RC1. Would you have any idea how I could figure out what things I need to remove for that?

Under about it says: SA Shop 1.0 RC1 © 2012 Sleepy Arcade

Maybe this is a different dievational version from this one and i'm barking up the wrong tree. But any advice would help thanks :(
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on March 24, 2019, 03:19:46 PM
SA Shop is a different shop mod this one here https://custom.simplemachines.org/mods/index.php?mod=1794
Title: Re: SMFShop - Shop MOD
Post by: gman123 on March 24, 2019, 04:25:46 PM
Quote from: vbgamer45 on March 24, 2019, 03:19:46 PM
SA Shop is a different shop mod this one here https://custom.simplemachines.org/mods/index.php?mod=1794
Yah sorry I figured that out after I posted lol, my bad.

To compound on that however, I installed this mod on my other form just now and when I go to add an item I get the following error:

Fatal error: require(): Failed opening required '/home4/*MYWEBSITECENSORED*/public_html/*MYWEBSITECENSORED*/Sources/shop/items/primarymembergroup.php' (include_path='.:/opt/php54/lib/php') in /home3/*MYWEBSITECENSORED*/public_html/*MYWEBSITECENSORED*/Sources/shop/ShopAdmin.php on line 277
this is when adding a member group change item.


Any idea what I can do to fix that?



EDIT: I fixed this, apparently the item is case sensitive on my webserver (probably linux), and the file was Named PrimaryMemberGroup and not primarymembergroup like the code suggested. Maybe worth a look on the next version patch.
Title: Re: SMFShop - Shop MOD
Post by: MegaProyk on March 25, 2019, 01:06:40 AM
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 SMFShop ?

Thank you :)
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on March 25, 2019, 11:41:25 AM
how do you know if it is a affiliate link
Title: Re: SMFShop - Shop MOD
Post by: MegaProyk on March 25, 2019, 01:46:57 PM
I would have to analize more affiliate links for a more complete answer but the URL contains "aff=" or "tag=" or "affiliate"...

I suppose it is possible for the forum/a mod to distinguish url that contain these patterns isn' it ?
If it is, I will be happy to tell you all the patterns I find.

The problem may be if the url does not naturally contain something like that (but I think a pattern is always distinguishable) or if it is shortened/modified (with bitly or the Pretty urls mod for example) I guess...
Perhaps it is possible to distinguish the real/complete link or forbid shortened links in a forum ? For Bitly links I could forbid url that contains "bit.ly" for example...
Title: Re: SMFShop - Shop MOD
Post by: gman123 on March 25, 2019, 10:33:36 PM
the send an email to the admin item is still as broken as it was 3 versions ago. It bugges out and turns into 0's a lot.
Title: Re: SMFShop - Shop MOD
Post by: hipp0 on April 14, 2019, 09:31:34 AM
Im using SMF 2.015 and when I install SMFShop I get blank pages when I view or edit items. Is there anyway to fix this? It installs perfectly fine.
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on April 14, 2019, 10:26:27 AM
Check your forum's error log or server apache error log and see if you can see anything.
Title: Re: SMFShop - Shop MOD
Post by: 4everBlue on April 15, 2019, 03:34:04 PM
I tried adding more images in Sources/shop/item_images/ but it won't let me add anything, I get a Permission Denied error when trying to upload things. How to solve this?
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on April 15, 2019, 04:05:10 PM
Try upload via ftp
Title: Re: SMFShop - Shop MOD
Post by: 4everBlue on April 16, 2019, 02:06:14 PM
Quote from: vbgamer45 on April 15, 2019, 04:05:10 PM
Try upload via ftp

Ah, worked. Thanks :)
Title: Re: SMFShop - Shop MOD
Post by: hipp0 on April 16, 2019, 06:56:52 PM
Quote from: vbgamer45 on April 14, 2019, 10:26:27 AM
Check your forum's error log or server apache error log and see if you can see anything.

Empty needleApply Filter: Only show the errors from this file File: /home/j11kev2nseb0/public_html/Sources/Subs-Portal.php


seems something in the subs-portal is messed up

im unable to add or edit items on 2.015
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on April 16, 2019, 07:32:19 PM
Does that occur when you add/edit item?
Title: Re: SMFShop - Shop MOD
Post by: hipp0 on April 19, 2019, 07:07:08 PM
Quote from: vbgamer45 on April 16, 2019, 07:32:19 PM
Does that occur when you add/edit item?

When I add or edit something it just gives me a blank page.

The errors I listed is what I get when I do anything on the website.
Title: Re: SMFShop - Shop MOD
Post by: aksal on June 01, 2019, 06:14:11 PM
I would like to see a demo of this mod!
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on June 01, 2019, 11:02:20 PM
Check out smfshop.com
Title: Re: SMFShop - Shop MOD
Post by: j_jindal1 on September 27, 2019, 02:39:26 PM
Seems I messed up something... Could someone please help with this issue....

As you can see "view inventory", "coins count" and "send money" links are appearing twice below avatar in post page.

(https://i.ibb.co/rZNVjdK/query.png)

Thanks for the Mod, it really works great..  :)
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on September 27, 2019, 02:47:04 PM
Installed twice in Themes   Display.template.php
Title: Re: SMFShop - Shop MOD
Post by: j_jindal1 on September 27, 2019, 04:08:03 PM
Quote from: vbgamer45 on September 27, 2019, 02:47:04 PM
Installed twice in Themes   Display.template.php

Thanks a lot bro. That was the exact reason for this issue..  :)
Title: Re: SMFShop - Shop MOD
Post by: chinaren on November 10, 2019, 08:21:34 AM
HI there.  Are there any plans to make this available/work for the newest version of SMF?   Pleeeeeese!  :)
Title: Re: SMFShop - Shop MOD
Post by: radenra on November 11, 2019, 04:03:36 AM
Nice !
Title: Re: SMFShop - Shop MOD
Post by: PCWHY on November 16, 2019, 10:36:15 AM
Hi, I am pretty new to SMF so please excuse me if this question has been asked before.

This idea has been driving me crazy: is there a way for the items in the shop inventory to be rearranged so that the users can choose which items show up in which order? For example, imagine they have 10 items and when they post only 4 have been set to show up underneath their avatar: are they able to somehow choose which 4 show up and in which order by rearranging them somehow? Or if the users can't do that, is there a way for admins to rearrange them?

Thank you for your help in advance ^^
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on November 16, 2019, 11:14:50 AM
There is not a way to do either of the two things mentioned right now.
Title: Re: SMFShop - Shop MOD
Post by: Adrek on January 21, 2020, 02:46:06 PM
any solution for add/edit items? When I try to add or edit items all I get is error 500. SMF 2.0.17, latest SMF Shop, PHP: 7.0.33.
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on January 21, 2020, 03:53:29 PM
Anything in your error log or apache error log?
Title: Re: SMFShop - Shop MOD
Post by: Adrek on January 21, 2020, 04:58:36 PM
it seems that mod is searching for changeusername.php on server, but there is file ChangeUsername.php and it fails. Changed filename to lowercase and it seems to work for now. The same goes for all other files with uppercase letters in name
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on January 21, 2020, 05:09:24 PM
Oh interesting yes issue with linux systems due to case sensitive....
Title: Re: SMFShop - Shop MOD
Post by: Koper on February 18, 2020, 07:14:18 PM
Hello.  why in smf shop 4.0.1 when I want to add an item a group change then after pressing further error message 500 appears on the page.
in what file I need to change something so that this error does not jump
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on February 18, 2020, 08:11:15 PM
Check this message
https://www.simplemachines.org/community/index.php?topic=22396.msg4044291#msg4044291
Title: Re: SMFShop - Shop MOD
Post by: Koper on March 07, 2020, 06:12:18 AM
Hello. I have a problem. I would like to change the value that is on the screen but when I change it in the shop games.php file it changes and the winnings are smaller but the information for the throws remains the same and it misleads users. In what file I have to look for it to change it to display it as it should
Title: Re: SMFShop - Shop MOD
Post by: Koper on March 09, 2020, 05:09:34 AM
Hello.  I have a problem in the game room so that users can not play without credit because now they can play without credit and can have -x credit how to change it and where.  Please help
Title: Re: SMFShop - Shop MOD
Post by: Koper on March 22, 2020, 02:26:32 PM
Hello.  I would like to add this game to the smf shop, games room.  there is such a possibility?  someone could help me.  That's what this game is at this link https://radio-relax.pl/kolor/kolo.php
Title: Re: SMFShop - Shop MOD
Post by: Koper on March 30, 2020, 06:25:55 AM
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
Title: Re: SMFShop - Shop MOD
Post by: Adrek on March 30, 2020, 07:37:28 AM
@Koper, in your previous posts I see that on attached screenshot you have SA Shop mod. This topic is about SMFShop mod - do you have SMFShop or SA Shop mod installed? These are two different mods from different authors.
Title: Re: SMFShop - Shop MOD
Post by: Koper on March 30, 2020, 07:42:03 AM
I have sa shop installed
Title: Re: SMFShop - Shop MOD
Post by: Adrek on March 30, 2020, 07:45:39 AM
This is not support topic for SA Shop.

Please post your issue here (I think it's best topic for this) https://www.simplemachines.org/community/index.php?topic=317308.0
ST Shop was originally SA Shop, but now has new owner.

Title: Re: SMFShop - Shop MOD
Post by: Koper on April 01, 2020, 05:11:34 PM
Hello, I have a problem with the smf 4.0.1 store, the point is that I have 5 credits for post and 10 credits for thread. And the problem is that the store does not add anyone credit for posts and threads. how to change it and in what file? please help
Title: Re: SMFShop - Shop MOD
Post by: Koper on April 22, 2020, 06:43:54 AM
Hello.  I would like to put the number of loans of a given user in the chat in the profile which I have integrated with the forum and I know that I can only do not know which code from the php file I would have to insert.  you will help
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on April 22, 2020, 08:55:24 AM
For a different system? That would have to be coded. You can query the users information and find out the details for shop money
Title: Re: SMFShop - Shop MOD
Post by: Xpresskonami on November 27, 2020, 11:05:15 AM
How can I hide members from seeing each other credit. I want only the user to see his/her own credit but hide from other members to see it
Title: Re: SMFShop - Shop MOD
Post by: Koper on January 31, 2021, 11:41:39 AM
Hello.  currently, the number of credits is displayed like this: 53287 @ and I would like it to display like this: 53,287 @ in what file and where I need to add this comma to display the way I want above.
Title: Re: SMFShop - Shop MOD
Post by: Shades. on March 04, 2021, 02:13:39 PM
I have this installed on fresh SMF 2.0.18 and getting "HTTP ERROR 500" when trying to add/edit items. No problem deleting items tho! ???

index.php?action=admin;area=shop_items_add;step=1
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on March 04, 2021, 02:14:22 PM
Anything in forum error log or apache?
Title: Re: SMFShop - Shop MOD
Post by: Shades. on March 04, 2021, 02:17:13 PM
Quote from: vbgamer45 on March 04, 2021, 02:14:22 PM
Anything in forum error log or apache?

https://xxxxxx/index.php?action=admin;area=shop_items_add;step=1Apply Filter: Only show the errors with the same message2: require(/home/xxxxxx/public_html/xxxxxx/Sources/shop/items/randommoney.php): failed to open stream: No such file or directoryApply Filter: Only show the errors from this fileFile: /home/xxxxxx/public_html/xxxxxx/Sources/shop/ShopAdmin.php
Line: 277
Title: Re: SMFShop - Shop MOD
Post by: M45T3R5W4G3R on October 01, 2021, 05:01:44 AM
Hey all, this mod is quite old and I don't know if people check here regularly but firstly thanks a lot to the mod developers for an awesome mod. I have a forum RPG website launching in a few days and this mod helped a lot with many features that would be impossible to do otherwise.

Anyway, I am building a Turkish forum therefore translated the mod's user interface according to both the language and the RPG's universe yet I'm having a problem. The shop is named "Diagon Alley" in Turkish yet next to it, in the UI, the button says "Diagon Alley Home". I tried to look up everywhere but couldn't find where that "Home" text comes from and I need to remove or modify it to Turkish. The current layout looks like this:

(https://i.imgur.com/2VH0TRa.png)

I have changed line 81 in Shop.php which was the only instance I could find and it updated sitemap link however I cannot find the button text part.

Below, the code where it added "Home" to the shop name in sitemap link:
// Are we home?
if ($_GET['do'] == "home")
{
// Add this to the link tree
$context['linktree'][] = array(
'url' => $scripturl . '?action=shop',
'name' => $txt['shop'] . ' Home',
);

Does anyone know where else something like this is present? I'd be glad if someone could guide me.

EDIT: AFTER HOURS I FOUND OUT ONLY AFTER POSTING.
If someone else has the issue, the place where that "Home" is line 51 in Shop.template.php:
<td class="smalltext" style="line-height: 1.3; padding-bottom: 3ex;">
', ($context['shop_do'] == 'main' ? '<b>' : ''), '<a href="', $scripturl, '?action=shop">', $txt['shop'], ' Home</a>', ($context['shop_do'] == 'main' ? '</b>' : ''), '<br />';
// Allowed to buy stuff?
if (allowedTo('shop_buy'))
Title: Re: SMFShop - Shop MOD
Post by: M45T3R5W4G3R on October 12, 2021, 07:08:36 PM
Quote from: Shades. on March 04, 2021, 02:17:13 PM
Quote from: vbgamer45 on March 04, 2021, 02:14:22 PMAnything in forum error log or apache?

https://xxxxxx/index.php?action=admin;area=shop_items_add;step=1Apply Filter: Only show the errors with the same message2: require(/home/xxxxxx/public_html/xxxxxx/Sources/shop/items/randommoney.php): failed to open stream: No such file or directoryApply Filter: Only show the errors from this fileFile: /home/xxxxxx/public_html/xxxxxx/Sources/shop/ShopAdmin.php
Line: 277

I had the same issue and seeing this quite late but... Maybe it may help people later on. I had it too before and not sure why it happens but it is something with case sensitivity. If you rename any item's name in file system from "ItemName.php" to "itemname.php" things will be most likely fixed.
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on October 12, 2021, 07:34:04 PM
Yes that is a known issue.
Title: Re: SMFShop - Shop MOD
Post by: StarredSkies on December 22, 2023, 11:11:16 PM
Any plans to update this to 2.1?
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on December 22, 2023, 11:13:24 PM
Not currently I think this is a good successor https://custom.simplemachines.org/index.php?mod=1794
Title: Re: SMFShop - Shop MOD
Post by: StarredSkies on December 22, 2023, 11:30:56 PM
Yep. That's my next plan. Thank you!
Title: Re: SMFShop - Shop MOD
Post by: overdue on February 14, 2024, 08:08:21 PM
Will this be updated to 2.1.4?

Pretty sure this Shop mod was what I had installed before I had to reinstall due to php8.
Title: Re: SMFShop - Shop MOD
Post by: Diego Andrés on February 14, 2024, 11:04:09 PM
Don't think so.
ST Shop has an import for SMF Shop data.
Title: Re: SMFShop - Shop MOD
Post by: vbgamer45 on February 14, 2024, 11:07:20 PM
Yeah what Diego said, not planned by me as ST Shop has similar features.