Modifications (v9.x)
- Latest Topics
- Multi Media Functions
- Multiskin Selection
- Permissions Listing
- SideBar Navigation
- Who Visited Today
- Who's Viewing This Topic
Obsolete
Related Links
Adding New Skins
Guide To Adding New Skins:
This guide has been set up for Non Programmers and ASP Beginners, to help them in adding new skins to there forum using the S2H Multiskin Selection mod.
Updating The Array:
When you add new skins you will need to tell the array how many skins you have for it to function correctly. To edit this, you will need to open up the file 'includes/s2h_skinfile.asp' and on line 29 it will look like the following example below:
Dim sarySiteSkins(4,6)
Now, The only part you need to be concerned with is the part in red, this tells the array how many skins are in the array, and you will need to change this to the number of skins have in the array.
The part in green tells the array how many values each record will have, in this case we have 5: The Skin Name, Path to Images, Path to the CSS files, Breadcrumb Separator and Skin Author. But you do not need to touch this part.
Adding a Skin:
To add a skin you will need to add records to the Array, Here is an example of a record in the array:
sarySiteSkins(1,1) = "Default" sarySiteSkins(1,2) = "forum_images/" sarySiteSkins(1,3) = "css_styles/default/" sarySiteSkins(1,4) = " > " sarySiteSkins(1,5) = "Web Wiz Guide" sarySiteSkins(1,6) = ""
The part in red, is the Records ID, this allows the mod to select different skins and link to the correct one. it also corispons with the red part of the Array example above, but this time instead of the record count, it is the record number.
As with the Record Number (ID), the green part corespons with the green part of the Array Example, and is the Value number, this allows the mod to select the correct part of the skins data so that the skin will display properly. Please do not tamper with this as it will course your skin to work incorrectly.
To add a skin, all you do is increase the Red part so that it has a unique number. these numbers should go up 1, 2, 3, etc and not be random numbers.
The following Example shows two skins:
sarySiteSkins(1,1) = "Default" sarySiteSkins(1,2) = "forum_images/" sarySiteSkins(1,3) = "css_styles/default/" sarySiteSkins(1,4) = " > " sarySiteSkins(1,5) = "Web Wiz Guide" sarySiteSkins(1,6) = "" sarySiteSkins(2,1) = "Classic" sarySiteSkins(2,2) = "forum_images/" sarySiteSkins(2,3) = "css_styles/classic/" sarySiteSkins(2,4) = " > " sarySiteSkins(2,5) = "Web Wiz Guide" sarySiteSkins(2,6) = ""
As you can see we have increased the Red number so that the first skin has the number 1 in the read spot and the second has 2
You will also notice that the values have changed, when changing values make sure that the value is incased in quotation marks (e.g. "Concrete").
