SMF For Free Support Forum
Signup For Free Forum
December 04, 2008, 09:04:48 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: 1 2 [3] 4 5 6 ... 11
  Print  
Author Topic: [Code] Shop V1  (Read 11055 times)
0 Members and 1 Guest are viewing this topic.
73lue73oy
SMF For Free Member
*
Offline Offline

Posts: 66


View Profile WWW
« Reply #30 on: March 14, 2008, 09:52:58 pm »

ya i know this is a stupid question uglystupid2 uglystupid2  but what is your footers and where is it located
Logged


------doLphiN~
SMF For Free Member
*
Offline Offline

Posts: 82


Fire Emblem Fan


View Profile
« Reply #31 on: March 15, 2008, 01:17:27 am »

its not stupid, before i dunno where it is located... go to the admin center then click manage styles then click edit headers and footers

hmm.. people the code is not working to me!! EDITED!!
« Last Edit: March 19, 2008, 11:58:14 am by ragnarokgurl » Logged
sweet_candygirl23
SMF For Free Full Member
*
Offline Offline

Posts: 118



View Profile WWW
« Reply #32 on: March 30, 2008, 02:27:11 am »

Moose, can you make a code where when they click buy it will automatically check the user's money if the buyer has enough money the buyer will recieve it auto and if thewy have no enough money buying will be denied. and it will automatically subtract the money. just asking. Grin
Logged


Click the graphic above and join my forum!
BUDSTERS ONLINE COMMUNITY FORUM Smiley
RedNight
SMF For Free Sr. Member
*
Offline Offline

Posts: 289



View Profile WWW
« Reply #33 on: April 02, 2008, 10:43:01 pm »

Forum Url: http://pogoinslowmo.smfforfree3.com


Hey Moosey....welcome back hun, you have been missed.  anyway, I got two questions, hope you won't charge me for the second one.  lol

Ok,  No.1  I tried putting the member number in ID = The ID of the Admin. (This is because they will get a PM with what the User will want.) and I also tried the member name, and when I buy something, which I am playing on our test forum, it brings up a PM, but there is no name in the PM.  I am using my member number so I know that is a good number.  This is what I have, I believe it is correct, but please check it for me Moose.

Code:
<script>
var Name = "PF Funds";
var Sign = "$";
var PerPost = "50";
var UserID = "RedNightStalker";

var Item = new Array();
Item[Item.length] = ["Balloon","Red Balloon","10"];
Item[Item.length] = ["Car","Silver Corvette","100"];
Item[Item.length] = ["Dinner","Steak Dinner","50"];

document.write("<script src='http://yort124.googlepages.com/shop1.js'><\/script>")
</script>


My second question is, is there a way to add money to a person profile so they have more cash?  Say like if we have a contest and they get a prize and $5,000 PF Funds...is there a way to add that to that person?

Would it just be another Custom Field and have Addition in it?
Logged

Spift
SMF For Free Newbie
*
Offline Offline

Posts: 8


View Profile WWW
« Reply #34 on: April 03, 2008, 11:51:20 pm »

I need help.

I followed your instructions but some users turn out like this


Forum url:
http://teamasianandfriends.smfforfree4.com/index.php/

Code I am using
Code:
<script>
var Name = "Azn-Cash";
var Sign = "$";
var PerPost = "1";
var UserID = "1";

var Item = new Array();
Item[Item.length] = ["Name change","Request a name change","1"];
Item[Item.length] = ["Custom Member group","Custom membergroup for yourself","2"];
Item[Item.length] = ["Name change","Request a name change","1"];

document.write("<script src='http://yort124.googlepages.com/shop1.js'><\/script>")
</script>
Logged

http://www.asianandfriends.com
Awesome non-racist community
Agent Moose
Moderator
*****
Offline Offline

Posts: 669


Do not PM me for Code Support or Request


View Profile
« Reply #35 on: April 04, 2008, 10:30:47 am »

RedNight, try this:
Code:
<script>
var Name = "PF Funds";
var Sign = "$";
var PerPost = "50";
var UserID = "1";

var Item = new Array();
Item[Item.length] = ["Balloon","Red Balloon","10"];
Item[Item.length] = ["Car","Silver Corvette","100"];
Item[Item.length] = ["Dinner","Steak Dinner","50"];

document.write("<script src='http://yort124.googlepages.com/shop1.js'><\/script>")
</script>

The UserID should be the member number of the admin.  So, if you number one, the user id would be one.

Spift, I have fixed that problem before, but I can't remember how.  Try putting 0 in the Subtract Feild of that user.
Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen
RedNight
SMF For Free Sr. Member
*
Offline Offline

Posts: 289



View Profile WWW
« Reply #36 on: April 04, 2008, 04:17:24 pm »

Forum Url: http://pogoinslowmo.smfforfree.com

Thanks Moosey, that did the trick. 

Next question....Is there a way to add money to a member?  Like say for extra bonus for contest or things.
Logged

+JwD.Sharp
SMF For Free Hero
*
Offline Offline

Posts: 912


Winning isn't everything, but wanting to win is.


View Profile WWW
« Reply #37 on: April 04, 2008, 04:28:10 pm »

I just want to thank you moose, this code truly rocks!
Logged


Spift
SMF For Free Newbie
*
Offline Offline

Posts: 8


View Profile WWW
« Reply #38 on: April 04, 2008, 07:41:46 pm »

Sorry to bother you but that didn't work.
Logged

http://www.asianandfriends.com
Awesome non-racist community
EyeSpyDesigns
SMF For Free Member
*
Offline Offline

Posts: 51



View Profile
« Reply #39 on: April 05, 2008, 03:26:10 am »

Never mind I got it working
and Do we also have a spot to put pictures of the item instead of just the name? And do we have a bank?

I dunno about the bank, but I was messing around with it trying to find a way to add a picture and this worked for me.

Code:
var Item = new Array();
Item[Item.length] = ["NAME","<img src='IMAGE URL HERE' /> <br>ITEM DESCRIPTION WILL APPEAR UNDER IMAGE","PRICE"];

If you take out the <br> then the item description you post will appear besides the image instead of underneath it. Hope this helps. I'm off to go see what else this will do. Thanks for the Mod Moose!
Logged

RedNight
SMF For Free Sr. Member
*
Offline Offline

Posts: 289



View Profile WWW
« Reply #40 on: April 11, 2008, 10:56:45 pm »

Forum Url: http://pogoinslowmo.smfforfree.com


Moosey, I got the Shop part working great, but the problem now is in the funds.  I did the Custom Profile Field like you have.  But when a member buys something and I go to their profile to use the Subtract, it doesn't take it out of the funds that a member has, in fact it shows it in a different place.  Here is what I am talking about, they 2 circled in red.  The Subtract is above my avatar and my PF Funds is at the bottom, and it did not take out of the PF Funds at the bottom the $100 it is showing in the Subtract.  Help Moosey Help!!!
What am I doing wrong?

Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 669


Do not PM me for Code Support or Request


View Profile
« Reply #41 on: April 12, 2008, 12:29:03 am »

All you need to do is take out my Money Code that you have in the headers Tongue
Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen
Vice
SMF For Free Full Member
*
Offline Offline

Posts: 134


Photoshop Userbars :d


View Profile WWW
« Reply #42 on: April 12, 2008, 03:36:32 am »

how do you give them the items cause all im getting is pms to myself about this:

Item: Cheese
Description: Its Cheesy
Price: £10
Other Info:

how do they recive these items or what?
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 669


Do not PM me for Code Support or Request


View Profile
« Reply #43 on: April 12, 2008, 09:18:14 am »

Thats waht your suposed to do.  Give them the item by Creating a new Profile feild that only Admins can edit for that kind of stuff, or by using some of my codes.
Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen
RedNight
SMF For Free Sr. Member
*
Offline Offline

Posts: 289



View Profile WWW
« Reply #44 on: April 12, 2008, 09:28:43 am »

Forum Url: http://pogoinslowmo.smfforfree.com
All you need to do is take out my Money Code that you have in the headers Tongue

Moose, I am so sorry to be a pain and such a dummy.  But, when I took out the original money code in my headers, it also took away all the money that the members had earned.

Is there a way to incorporate the Shop Code in with my original Money Code, so it doesn't do that and then will subtract when I subtract a purchase?
Logged



Pages: 1 2 [3] 4 5 6 ... 11
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.28 seconds with 17 queries.