Post by Bradley (CCWorld) on Dec 22, 2005 19:33:28 GMT -5
There are some non-standard features I've added. I'll document them here so I don't forget and you learn about them.
You should also read this thread on JS varibles
Full Line Break After Items
To make a full line break after each item in the mini profile add this JS varible into the code:
var fullBreak = 1;
Item CSS Class
The items in the mini profile have a CSS class on them: shopProImage. You can add CSS effects to them. Example, padding:
<style type="text/css">
.shopProImage { padding: 4px; }
</style>
Set Custom/Fixed Sale Rate
To set a constant, custom rate at which items should be sold add this JS varible into the code. You will have to pick a percent.
var salePercentOverride = 0.65;
Limit Items Shown in Mini Profile
If you want to limit the amount of items that will show up in a user's mini profile (thing to the left of every post) add this JS varible. The number can be anything you want. The default text of the link shown is More...
var miniProItemLimitNum = 5;
Change Text of Limit Items Link Shown in Mini Profile
If you want to chagne the text of the link shown in mini profiles when you limit the amount of items shown add this JS varible. Put the text inside the quotes.
var miniProItemLimitText = "View More";
Set Custom Width for Shop
If the shop has a width greater (or less) than that of your forum you can use this to make it the same. By default the shop attempts to auto detect the correct width.
var widthOverRide = "88%";
or
var widthOverRide = "550";
Additonal Line Break
If for some reason the money is on the same line as something else add this to the code.
var miniProExtraBreak = 1;
You should also read this thread on JS varibles
Full Line Break After Items
To make a full line break after each item in the mini profile add this JS varible into the code:
var fullBreak = 1;
Item CSS Class
The items in the mini profile have a CSS class on them: shopProImage. You can add CSS effects to them. Example, padding:
<style type="text/css">
.shopProImage { padding: 4px; }
</style>
Set Custom/Fixed Sale Rate
To set a constant, custom rate at which items should be sold add this JS varible into the code. You will have to pick a percent.
var salePercentOverride = 0.65;
Limit Items Shown in Mini Profile
If you want to limit the amount of items that will show up in a user's mini profile (thing to the left of every post) add this JS varible. The number can be anything you want. The default text of the link shown is More...
var miniProItemLimitNum = 5;
Change Text of Limit Items Link Shown in Mini Profile
If you want to chagne the text of the link shown in mini profiles when you limit the amount of items shown add this JS varible. Put the text inside the quotes.
var miniProItemLimitText = "View More";
Set Custom Width for Shop
If the shop has a width greater (or less) than that of your forum you can use this to make it the same. By default the shop attempts to auto detect the correct width.
var widthOverRide = "88%";
or
var widthOverRide = "550";
Additonal Line Break
If for some reason the money is on the same line as something else add this to the code.
var miniProExtraBreak = 1;