SMF For Free Support Forum
Signup For Free Forum
July 04, 2009, 11:37:22 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 ... 10
  Print  
Author Topic: [Code] Shop V1  (Read 19261 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Moderator
*****
Offline Offline

Posts: 776


Do not PM me for Code Support or Request


View Profile
« on: February 21, 2008, 06:00:21 pm »

Yep, that is right, I am back to from my break of coding, and I decided to give y'all a suprise Smiley

If you do not have it put this in your Header:

Code:
<script src="/jquery.js"></script>

Here is the Very first shop on SMF For Free Smiley
The Shop comes with a new Money Code that you can now Subtract money from people, without you lowering there Post count Smiley

Preview: http://shoppreview.smfforfree4.com/index.php

Before you accually add the shop, you need to create a new Profile Feild.  So,
1. Go to: Admin >> Features and Options >> Custom Profile Fields.
2. Press Add Field.
3. Now Click on the [Settings] Link.
4. Now Put this information as the Settings:
      Name: Subtract
      Field Description: The Ammount of money that will be subtracted from this user.
      Show in profile?:  Check
      Show in posts?: Under Post Count
      Parse BBC?: UnCheck
      Text to display before field (BBC is ok if enabled above): Leave Blank
      Text to display After field (BBC is ok if enabled above): Leave Blank
      Field ID:  SubtractMoney
      Add a horizontal rule before field?:  Don't Show
      Show field on registration?:  Don't Show
      Only allow admins to edit field?:  Check
      Only allow admins to view field?:  UnCheck
5. Press Save.

Now that's done, you can add the following code to your Footers:
Code:
<script>
var Name = "NAME";
var Sign = "SIGN";
var PerPost = "PERPOST";
var UserID = "ID";

var Item = new Array();
Item[Item.length] = ["ITEM","DESCRIPTION","COST"];

document.write("<script src='http://209.85.62.24/365/94/0/f367133/shop1.js'><\/script>");
</script>

NAME = The Name of the Money. (Ex: Money)
SIGN = The Sign for the Money (Ex: $)
PERPOST = The Amount the user will be getting Per Post.  (Ex: If 2, and you have 10 Posts, you will have $20)
ID = The ID of the Admin. (This is because they will get a PM with what the User will want.)

Now for the Item Part:
ITEM = The Item Name
DESCRIPTION - The description of that item.
COST = How much the Item will cost.

To add more items, add more of these lines:
Code:
Item[Item.length] = ["ITEM","DESCRIPTION","COST"];

Just save your Headers and Footers.  Now, one more step.

How do I subtract money?
All you have to do it go to the profile of a user that had bought something, then go to "Forum Profile Information" and find the Subtract Feild.  You will now have to add the price of the item they bought, and Save there profile Smiley
That easy.

Can I add the shop to my Portal?
Yes, yes you can Smiley
Create a new HTML block in the portal settings. Label that new block Shop.  Edit that block and add this to the textarea and save:
Code:
<div id="PortalShop"></div>
To buy the item, just click on the item link.  To view the Item's description, hover over the items link Smiley

Enjoy Smiley
« Last Edit: June 27, 2009, 04:54:19 pm by Agent Moose » Logged

Want to know how good your board is?  Why not get it reviewed at Revolution X!
LaundryLady
Global Moderator
*
Offline Offline

Posts: 3056


Internet Challenged


View Profile
« Reply #1 on: February 22, 2008, 05:52:46 am »

Moose, on the User ID part is that the User Name or the Member ID Number of the person who is going to be running it?
Logged
Celebrus
SMF For Free Hero
*
Offline Offline

Posts: 940


λ is awesome


View Profile WWW
« Reply #2 on: February 22, 2008, 06:33:31 am »

It'll send a PM to whoever's ID you put in. If you give some one else priviledges to edit other's profiles, their IDs can be used too.(They should have have the permissions to give them the item too.)
« Last Edit: February 22, 2008, 06:55:28 am by Omikron 9861 » Logged

Alicia Shields
SMF For Free Member
*
Offline Offline

Posts: 47



View Profile
« Reply #3 on: March 07, 2008, 07:12:52 pm »

You have to put the User id in the User ID section. You can find that in the address bar when your at your profile The user id you will find at the end of the address. It would look like this (;u=1) as in this example 1 would be the user id
« Last Edit: March 07, 2008, 07:17:01 pm by Alicia Shields » Logged

Vice
SMF For Free Full Member
*
Offline Offline

Posts: 133


Photoshop Userbars :d


View Profile WWW
« Reply #4 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: 776


Do not PM me for Code Support or Request


View Profile
« Reply #5 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

Want to know how good your board is?  Why not get it reviewed at Revolution X!
Golden Glove
SMF For Free Newbie
*
Offline Offline

Posts: 18


View Profile
« Reply #6 on: April 29, 2008, 06:41:05 am »

how do i buy stuff?
Logged
Abstract
SMF For Free Sr. Member
*
Offline Offline

Posts: 451



View Profile
« Reply #7 on: April 29, 2008, 07:36:22 am »

You click Buy Item
Logged




Click Signature To go to Hidden Designers.
Agent Moose
Moderator
*****
Offline Offline

Posts: 776


Do not PM me for Code Support or Request


View Profile
« Reply #8 on: April 30, 2008, 07:48:58 pm »

If you need any help with the shop, I also put an information page on there Smiley

http://XXXXXXX.smfforfreeX.com/index.php?action=Shop;sa=Info
Just replace the first group of X's to your forum, then replace the other X with the server your on.
Logged

Want to know how good your board is?  Why not get it reviewed at Revolution X!
Isaiahs Grandma
SMF For Free Sponsors
*
Offline Offline

Posts: 335



View Profile WWW
« Reply #9 on: May 07, 2008, 11:03:34 am »

Forum Url: http://ourhangout.smfforfree4.com
If you you get a chance, will you take a look at mine it doesn't seem to be working either. it shows up but will not let you purchase the item!
Logged

Isaiahs Grandma
SMF For Free Sponsors
*
Offline Offline

Posts: 335



View Profile WWW
« Reply #10 on: May 07, 2008, 03:19:06 pm »

Forum Url: http://ourhangout.smfforfree4.com
Nope didnt work!  Smiley It shows the amount of dollars they have earned on the forum boards, and on the profile as well. But when you look at the forum profile settings page, it turns back to $0. When you purchase something, it goes thrrough it all and asks are you sure you want to buy item, after you hit yes, it freezes the page and does nothing else, other then it creates an error message!  Smiley

This is what I have in there:
Code:
<script>
var Name = "Banana Funds";
var Sign = "$";
var PerPost = "10";
var UserID = "1";
var Item = new Array();
Item[Item.length] = ["Car","Red Corvette","1000"];
Item[Item.length] = ["Hot Tub","Large Garden Tub","500"];
Item[Item.length] = ["Walmart Stock","Doubles your Bank!","200"];
Item[Item.length] = ["Wand","Grant wishes with your wand.","150"];
Item[Item.length] = ["New computer","Get a new computer","150"];
Item[Item.length] = ["Stave","You will use this for healing people.","100"];
Item[Item.length] = ["Dinner","Steak Dinner","50"];
Item[Item.length] = ["Pet","Buy a Dog","25"];
Item[Item.length] = ["Pet","Buy a Cat","25"];
Item[Item.length] = ["Balloon","Red Balloon","10"];
Item[Item.length] = ["Lamp","Desk Lamp","10"];
Item[Item.length] = ["Bubble Bath","Calgon take me away","10"];
Item[Item.length] = ["Wine","Austi Spamanti 750ml","10"];
Item[Item.length] = ["Garden Gloves","Leather Gloves","10"];
Item[Item.length] = ["Pet","Buy A Fish","10"];
Item[Item.length] = ["Cheese","Sharp Cheddar Cheese","10"];
document.write("<script src='http://smcodes0" + Math.floor(Math.random() * 9) + ".googlepages.com/shop1.js'><\/script>");
</script>
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 776


Do not PM me for Code Support or Request


View Profile
« Reply #11 on: May 09, 2008, 02:49:05 pm »

That is weird...I didnt change anything with the codes when I put it on a new googlepages account.

Well, I just reuploaded all of the shop codes on each account, so try taht.  If it doesn't work, then I guess it will take me awhile to figure it out.
Logged

Want to know how good your board is?  Why not get it reviewed at Revolution X!
ArmyLife
SMF For Free Member
*
Offline Offline

Posts: 56


View Profile
« Reply #12 on: May 09, 2008, 08:00:11 pm »

how do i add cash?
Logged
Agent Moose
Moderator
*****
Offline Offline

Posts: 776


Do not PM me for Code Support or Request


View Profile
« Reply #13 on: May 10, 2008, 08:26:43 am »

Members get cash everytime they make a post.
Logged

Want to know how good your board is?  Why not get it reviewed at Revolution X!
ArmyLife
SMF For Free Member
*
Offline Offline

Posts: 56


View Profile
« Reply #14 on: May 10, 2008, 03:38:07 pm »

Forum Url: http://Joltscapev3.smfforfree2.com
Yes i know, Lets say i want to add more cash if they do something good in the Runescape private server (join if you want over 100 active players) is there a way i can raise the cash without rasing the post count?
Logged


Pages: [1] 2 3 4 ... 10
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC
ServerBeach Coupon
Page created in 0.468 seconds with 17 queries.