Post by Bradley on Dec 20, 2005 13:21:23 GMT -5
Please don't just copy the code to your board. Actually read the thread. Thanks.
Notes: This is not the final release. It is only version 0.2. It is quite possible that there are bugs (some things may seem like bugs but they were/are intentional). Do not PM me for support unless I ask you to. This will work in Firefox without errors. Internet Explorer usually works. Some people still get the operation aborted error. As far as I can tell, it doesn't happen to people with the most recent version of IE.
Features:
Special Shop Items:
Previews:
Live Demo and More Information: yourshop.proboards79.com/
Not Compatible With (READ!):
Here's the actual code. It goes in the top of 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.2
Copyright 2005-2006 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.
*/
// staff that can mange shop settings
var shopAdmin = [
"admin"
];
// staff that can edit money
// Note: Users in shopAdmin do not need to be listed here too
var shopStaff = [
"ccworld"
];
var moneyName = "Dollars";
var moneySym = "$";
var moneyPP = 5;
var shopOn = 1;
var shopSig = 0;
var shopAvatar = 0;
var useButton = 1;
// can leave blank ""
var buttonUrl = "http://theccworld.com/programs/pbshop/menu/card_shop.gif";
/*ITMLSTSTRHRE*/
var addOnItems = [
[0,"Basic Axe","http://theccworld.com/programs/pbshop/items/axe.gif",500,"A basic battle axe."],
[1,"Bunch of Balloons","http://theccworld.com/programs/pbshop/items/balloonbunch.gif",250,"A bunch of brightly colored balloons."],
[2,"Blob","http://theccworld.com/programs/pbshop/items/blob.gif",800,"Buy your very own pet blob!"],
[3,"Bunny","http://theccworld.com/programs/pbshop/items/bunny.gif",900,"Buy your own pet bunny! Nice and fluffy..."],
[4,"Chain Mace","http://theccworld.com/programs/pbshop/items/chainmace.gif",750,"High quality iron chain mace."],
[5,"Cross","http://theccworld.com/programs/pbshop/items/cross.gif",650,"A solid stone cross."],
[6,"Cutlass","http://theccworld.com/programs/pbshop/items/cutlass.gif",800,"A well constructed cutlass."],
[7,"Dagger","http://theccworld.com/programs/pbshop/items/dagger.gif",300,"A short, easily concealible dagger."],
[8,"Dark Blue Balloon","http://theccworld.com/programs/pbshop/items/dbballoon.gif",75,"A dark blue balloon."],
[9,"Double Axe","http://theccworld.com/programs/pbshop/items/doubleaxe.gif",950,"A double sided battle axe."],
[10,"Fire Axe","http://theccworld.com/programs/pbshop/items/fireaxe.gif",850,"An axe enchanted with fire."],
[11,"Fire Sword","http://theccworld.com/programs/pbshop/items/firesword.gif",800,"A sword enchated with fire."],
[12,"Green Balloon","http://theccworld.com/programs/pbshop/items/gballoon.gif",75,"A green balloon."],
[13,"Hammer","http://theccworld.com/programs/pbshop/items/hammer.gif",300,"A strudy metal hammer."],
[14,"Hand Axe","http://theccworld.com/programs/pbshop/items/handaxe.gif",400,"A small, but nice hand axe."],
[15,"Harp","http://theccworld.com/programs/pbshop/items/harp.gif",650,"Make music (or at least noises) with this nice golden harp."],
[16,"Light Blue Balloon","http://theccworld.com/programs/pbshop/items/lbballoon.gif",75,"A light blue balloon."],
[17,"Bow","http://theccworld.com/programs/pbshop/items/makebow.gif",550,"A low quality make-shift bow."],
[18,"Mallet","http://theccworld.com/programs/pbshop/items/mallet.gif",150,"A cheap, wooden mallet."],
[19,"Minning Equipment","http://theccworld.com/programs/pbshop/items/mineeqp.gif",450,"A collection of minning equipment."],
[20,"Purple Balloon","http://theccworld.com/programs/pbshop/items/pballoon.gif",75,"A purple balloon."],
[21,"Penguin","http://theccworld.com/programs/pbshop/items/penguin.gif",1000,"Your very own pet penguin! Straight from the south pole."],
[22,"Red Balloon","http://theccworld.com/programs/pbshop/items/rballoon.gif",75,"A red balloon."],
[23,"Royal Bow","http://theccworld.com/programs/pbshop/items/royalbow.gif",1200,"A very high quality bow with all the accessories you could want."],
[24,"Shovel","http://theccworld.com/programs/pbshop/items/shovel.gif",150,"A simple shovel."],
[25,"Spiked Club","http://theccworld.com/programs/pbshop/items/spikedclub.gif",400,"A basic club covered in spikes."],
[26,"Sword","http://theccworld.com/programs/pbshop/items/sword.gif",650,"The basic sword."],
[27,"Water Sword","http://theccworld.com/programs/pbshop/items/watersword.gif",800,"A sword encahted with water."],
[28,"Wooden Club","http://theccworld.com/programs/pbshop/items/woodenclub.gif",150,"A thick club of wood."],
[29,"Yellow Balloon","http://theccworld.com/programs/pbshop/items/yballoon.gif",75,"A yellow balloon."]
];
var cMaxItems = 29;
/*ITMLSTENDHRE*/
/*SHPITMSTRHRE*/
var shopItems = {
title: {
available: 1,
amount: 250
},
sig: {
available: 1,
amount: 100
},
avatar: {
available: 1,
amount: 100
},
usernameBold: {
available: 1,
amount: 100
},
usernameItalic: {
available: 1,
amount: 100
},
usernameColor: {
available: 1,
amount: 100
},
usernameUline: {
available: 1,
amount: 100
},
rank: {
available: 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"]
]
}
};
/*SHPITMENDHRE*/
//-->
</script>
<script type="text/javascript" src="http://theccworld.com/programs/pbshop/0.2/main.js"></script>
There are 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.
The username of a staff member that can modify shop settings and edit money/items. This user must have the power to edit profiles and headers and footers.
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.
Edit on Decemeber 22, 2005: Amended "Not Compatible With" list
Edit on December 23, 2005: Added link to yourshop.proboards79.com/
Edit on Decemeber 26, 2005: Note on operation aborted error.
Edit on December 27, 2005: Added colors and size so people actaully read the not compatable with list (hopefully)
Edit on February 8, 2005: Amended "Not Compatible With" list
Notes: This is not the final release. It is only version 0.2. It is quite possible that there are bugs (some things may seem like bugs but they were/are intentional). Do not PM me for support unless I ask you to. This will work in Firefox without errors. Internet Explorer usually works. Some people still get the operation aborted error. As far as I can tell, it doesn't happen to people with the most recent version of IE.
Features:
- Shop prices editable
- You can select to "disable" an item from purchase in the shop (only for special items)
- 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
- Interactive admin panel
- Ability to add/remove/edit custom items
- Built in news system for news relating to the code
- Custom items listed in mini profile as image
- Custom items listed in profile as table with image and description
- 30 Default Custom Items
Special Shop Items:
- Custom Title
- Custom Stars
- Username Enhancements: Bold (it actually works now), Italic, Color, Underline
- Use of Signature, If Disabled
- Use of Avatar, If Disabled
Previews:
- Profile Before Anything Purchased
- Shop Before Buying Anything
- Staff Editing Area
- Profile After Buying Items
- Admin Area
- Admin - Add Item
- Admin - Shop's General Settings
- Admin - Help
- Admin - News
- Admin - Special Items
- Admin - View Custom Item
- Admin - Edit Custom Item
Live Demo and More Information: yourshop.proboards79.com/
Not Compatible With (READ!):
- CrossFury
- Google talk in profile
- Proboards shop v0.5
- HP - Put members into houses
- Money Hack any version
- Xfire Icon
- RPG Me V1.0
- Different Headers/Footers for Different Skins
- RPG Destiny v1.5
Here's the actual code. It goes in the top of 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.2
Copyright 2005-2006 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.
*/
// staff that can mange shop settings
var shopAdmin = [
"admin"
];
// staff that can edit money
// Note: Users in shopAdmin do not need to be listed here too
var shopStaff = [
"ccworld"
];
var moneyName = "Dollars";
var moneySym = "$";
var moneyPP = 5;
var shopOn = 1;
var shopSig = 0;
var shopAvatar = 0;
var useButton = 1;
// can leave blank ""
var buttonUrl = "http://theccworld.com/programs/pbshop/menu/card_shop.gif";
/*ITMLSTSTRHRE*/
var addOnItems = [
[0,"Basic Axe","http://theccworld.com/programs/pbshop/items/axe.gif",500,"A basic battle axe."],
[1,"Bunch of Balloons","http://theccworld.com/programs/pbshop/items/balloonbunch.gif",250,"A bunch of brightly colored balloons."],
[2,"Blob","http://theccworld.com/programs/pbshop/items/blob.gif",800,"Buy your very own pet blob!"],
[3,"Bunny","http://theccworld.com/programs/pbshop/items/bunny.gif",900,"Buy your own pet bunny! Nice and fluffy..."],
[4,"Chain Mace","http://theccworld.com/programs/pbshop/items/chainmace.gif",750,"High quality iron chain mace."],
[5,"Cross","http://theccworld.com/programs/pbshop/items/cross.gif",650,"A solid stone cross."],
[6,"Cutlass","http://theccworld.com/programs/pbshop/items/cutlass.gif",800,"A well constructed cutlass."],
[7,"Dagger","http://theccworld.com/programs/pbshop/items/dagger.gif",300,"A short, easily concealible dagger."],
[8,"Dark Blue Balloon","http://theccworld.com/programs/pbshop/items/dbballoon.gif",75,"A dark blue balloon."],
[9,"Double Axe","http://theccworld.com/programs/pbshop/items/doubleaxe.gif",950,"A double sided battle axe."],
[10,"Fire Axe","http://theccworld.com/programs/pbshop/items/fireaxe.gif",850,"An axe enchanted with fire."],
[11,"Fire Sword","http://theccworld.com/programs/pbshop/items/firesword.gif",800,"A sword enchated with fire."],
[12,"Green Balloon","http://theccworld.com/programs/pbshop/items/gballoon.gif",75,"A green balloon."],
[13,"Hammer","http://theccworld.com/programs/pbshop/items/hammer.gif",300,"A strudy metal hammer."],
[14,"Hand Axe","http://theccworld.com/programs/pbshop/items/handaxe.gif",400,"A small, but nice hand axe."],
[15,"Harp","http://theccworld.com/programs/pbshop/items/harp.gif",650,"Make music (or at least noises) with this nice golden harp."],
[16,"Light Blue Balloon","http://theccworld.com/programs/pbshop/items/lbballoon.gif",75,"A light blue balloon."],
[17,"Bow","http://theccworld.com/programs/pbshop/items/makebow.gif",550,"A low quality make-shift bow."],
[18,"Mallet","http://theccworld.com/programs/pbshop/items/mallet.gif",150,"A cheap, wooden mallet."],
[19,"Minning Equipment","http://theccworld.com/programs/pbshop/items/mineeqp.gif",450,"A collection of minning equipment."],
[20,"Purple Balloon","http://theccworld.com/programs/pbshop/items/pballoon.gif",75,"A purple balloon."],
[21,"Penguin","http://theccworld.com/programs/pbshop/items/penguin.gif",1000,"Your very own pet penguin! Straight from the south pole."],
[22,"Red Balloon","http://theccworld.com/programs/pbshop/items/rballoon.gif",75,"A red balloon."],
[23,"Royal Bow","http://theccworld.com/programs/pbshop/items/royalbow.gif",1200,"A very high quality bow with all the accessories you could want."],
[24,"Shovel","http://theccworld.com/programs/pbshop/items/shovel.gif",150,"A simple shovel."],
[25,"Spiked Club","http://theccworld.com/programs/pbshop/items/spikedclub.gif",400,"A basic club covered in spikes."],
[26,"Sword","http://theccworld.com/programs/pbshop/items/sword.gif",650,"The basic sword."],
[27,"Water Sword","http://theccworld.com/programs/pbshop/items/watersword.gif",800,"A sword encahted with water."],
[28,"Wooden Club","http://theccworld.com/programs/pbshop/items/woodenclub.gif",150,"A thick club of wood."],
[29,"Yellow Balloon","http://theccworld.com/programs/pbshop/items/yballoon.gif",75,"A yellow balloon."]
];
var cMaxItems = 29;
/*ITMLSTENDHRE*/
/*SHPITMSTRHRE*/
var shopItems = {
title: {
available: 1,
amount: 250
},
sig: {
available: 1,
amount: 100
},
avatar: {
available: 1,
amount: 100
},
usernameBold: {
available: 1,
amount: 100
},
usernameItalic: {
available: 1,
amount: 100
},
usernameColor: {
available: 1,
amount: 100
},
usernameUline: {
available: 1,
amount: 100
},
rank: {
available: 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"]
]
}
};
/*SHPITMENDHRE*/
//-->
</script>
<script type="text/javascript" src="http://theccworld.com/programs/pbshop/0.2/main.js"></script>
There are 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.
The username of a staff member that can modify shop settings and edit money/items. This user must have the power to edit profiles and headers and footers.
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.
Edit on Decemeber 22, 2005: Amended "Not Compatible With" list
Edit on December 23, 2005: Added link to yourshop.proboards79.com/
Edit on Decemeber 26, 2005: Note on operation aborted error.
Edit on December 27, 2005: Added colors and size so people actaully read the not compatable with list (hopefully)
Edit on February 8, 2005: Amended "Not Compatible With" list