Post by Bradley on Sept 19, 2005 20:29:25 GMT -5
Notes: This is not the final release. It is only version 0.1. It is quite possible that there are bugs (some things may seem like bugs but they were/are intentional). If you find a bug, please PM me. Do not PM me for support unless I ask you to.
Features:
Shop Items:
Previews:
Here's the actual code. It goes in the Global Footers. I recommend that if you use any other mini-profile or profile modification codes this comes before them.
<script type="text/javascript">
<!--
/*
YourShop
Version 0.1
Copyright 2005 Bradley Nelson a.k.a CCWorld
All Rights Reserved
For use on Proboards Boards only.
This Header must remain intact at all times.
Do not re-post without permission.
*/
// the name of the money to be used
var moneyName = "Dollars";
// the symbol for the money
var moneySym = "$";
// the amount of money to earn per post
var moneyPP = 5;
// should the shop be enabled? 1 = yes; 0 = no
var shopOn = 1;
// use of signature free? 1 = yes; 0 = no
var shopSig = 0;
// use of avatar free? 1 = yes; 0 = no
var shopAvatar = 0;
// staff that can edit money
var shopStaff = [
"admin",
"user1"
];
// shop items
var shopItems = {
title: {
avalible: 1,
amount: 250
},
sig: {
avalible: 1,
amount: 100
},
avatar: {
avalible: 1,
amount: 100
},
usernameBold: {
avalible: 1,
amount: 100
},
usernameItalic: {
avalible: 1,
amount: 100
},
usernameColor: {
avalible: 1,
amount: 100
},
rank: {
avalible: 1,
amount: 500,
max: 5,
urls: [
["Blue Star", "http://www.proboards8.com/v4images/starblue.gif"],
["Red Star", "http://www.proboards8.com/v4images/starred.gif"],
["Green Star", "http://www.proboards8.com/v4images/stargreen.gif"],
["Yellow Star", "http://www.proboards8.com/v4images/star.gif"]
]
}
};
//-->
</script>
<script type="text/javascript" src="http://theccworld.com/programs/pbshop/main.js"></script>
There are six items not color coded. Them come first and are explained immediately before them in a comment.
The username of a staff member that can edit money/items. This user must have the power to edit profiles.
Weather this item can be purchased in the shop. 1 = yes; 0 = no
The amount of money this item should cost
The Maximum amount of stars a person can buy
The name of the star or a brief (2 or 3 word) description of it
Full URL to the star
For more stars or staff that can edit repeat the underlined line. There should be a comma after each of the lines for the stars/staff except the last.
Features:
- Shop prices editable
- You can select to "disable" an item from purchase in the shop
- Customizable money name/symbol
- The amount of money earned per post can be set
- You can sell back an item for part of it's original value
- Money editable by staff
- Staff can add/remove/edit items purchased by a user
Shop Items:
- Custom Title
- Custom Stars
- Username Enhancements (Bold, Italic, Color)
- Use of Signature (If Disabled)
- Use of Avatar (If Disabled)
Previews:
- Profile Before Anything Purchased
- Shop before Buying Anything
- Shop after Buying Somethings and While Buying Custom Title
- Shop after Buying Somethings and While Editing Custom Title
- Staff Editing Area
- Profile After Buying Items
Here's the actual code. It goes in the Global Footers. I recommend that if you use any other mini-profile or profile modification codes this comes before them.
<script type="text/javascript">
<!--
/*
YourShop
Version 0.1
Copyright 2005 Bradley Nelson a.k.a CCWorld
All Rights Reserved
For use on Proboards Boards only.
This Header must remain intact at all times.
Do not re-post without permission.
*/
// the name of the money to be used
var moneyName = "Dollars";
// the symbol for the money
var moneySym = "$";
// the amount of money to earn per post
var moneyPP = 5;
// should the shop be enabled? 1 = yes; 0 = no
var shopOn = 1;
// use of signature free? 1 = yes; 0 = no
var shopSig = 0;
// use of avatar free? 1 = yes; 0 = no
var shopAvatar = 0;
// staff that can edit money
var shopStaff = [
"admin",
"user1"
];
// shop items
var shopItems = {
title: {
avalible: 1,
amount: 250
},
sig: {
avalible: 1,
amount: 100
},
avatar: {
avalible: 1,
amount: 100
},
usernameBold: {
avalible: 1,
amount: 100
},
usernameItalic: {
avalible: 1,
amount: 100
},
usernameColor: {
avalible: 1,
amount: 100
},
rank: {
avalible: 1,
amount: 500,
max: 5,
urls: [
["Blue Star", "http://www.proboards8.com/v4images/starblue.gif"],
["Red Star", "http://www.proboards8.com/v4images/starred.gif"],
["Green Star", "http://www.proboards8.com/v4images/stargreen.gif"],
["Yellow Star", "http://www.proboards8.com/v4images/star.gif"]
]
}
};
//-->
</script>
<script type="text/javascript" src="http://theccworld.com/programs/pbshop/main.js"></script>
There are six items not color coded. Them come first and are explained immediately before them in a comment.
The username of a staff member that can edit money/items. This user must have the power to edit profiles.
Weather this item can be purchased in the shop. 1 = yes; 0 = no
The amount of money this item should cost
The Maximum amount of stars a person can buy
The name of the star or a brief (2 or 3 word) description of it
Full URL to the star
For more stars or staff that can edit repeat the underlined line. There should be a comma after each of the lines for the stars/staff except the last.