News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMFShop - Shop MOD

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

Previous topic - Next topic

Daniel15

PREVIEW OF 1.0 AVAILABLE! Visit http://stickboarder.info and click on 'Forum'
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

trenchteam

eh? cant use it. Need password and username for test?

Daniel15

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...................
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Senkusha

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.
--Senkusha
The Anime Brigade
Anime-style Role Playing Games and Discussion.
(SMF v. 2.1.4, PHP v. 8.0)

Alisha

#84
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.


babylonking

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

Alisha

#86
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! :)

Senkusha

I would still like to see the abitly to use items on other members.  ;)
--Senkusha
The Anime Brigade
Anime-style Role Playing Games and Discussion.
(SMF v. 2.1.4, PHP v. 8.0)

Daniel15

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!
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Alisha

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.

[Unknown]

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]

russ

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?

Squeakypants

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.

Alisha

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

umiya

i cant get my link to appear on the index, in the admin panel it shows up fine, wonder whats causing that?

Alisha

#95
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.

umiya

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'])
{

Alisha

#97
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'];

LordAnki

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
[nofollow]

Daniel15

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!!!!!!!
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Advertisement: