SMFShop - Shop MOD

Started by SMFHacks.com Team, December 27, 2004, 06:46:17 AM

Previous topic - Next topic

INIC

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
WANTED - - will split atoms in exchange for ride back to home planet.

tentronik

#521
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

azuregenesis

^^ 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 ;)

mennou

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??

INIC

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.
WANTED - - will split atoms in exchange for ride back to home planet.

azuregenesis

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

INIC

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.


WANTED - - will split atoms in exchange for ride back to home planet.

Gerico

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.

AlexHobbs

Either use the Package Manager or do it manually, sometimes package manager dosent work

scrawl

#529
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

desibhupi

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......   ??? ??? ???

ViV

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.

ryansdistricyt

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 


tentronik

#533

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.

ryansdistricyt

i am using defualt theme and am still facing that problem

tentronik

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.

scrawl

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

ryansdistricyt


J. Williams

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
Joshua Jon Williams
Back in Action.

SmackDaddy

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.

Advertisement: