Post by Game on Aug 20, 2012 23:02:30 GMT -5
I have seen this requested a lot and haven't seen it anywhere;
Read instructions thoroughly before using.
Placement: Main Footer
Edit the Category Name and the Category ID
The Category Name being the Category that you wish to edit and the Category ID being the desired ID that you wish to give the corrosponing Category.
To add more Categorys add more [''Category Name'',''Category ID"],
Be sure to add a comma at the end. No comma for the last one.
var catEdit=[//Enter [''Category Name'',''Category ID"] below.
["Category Name","Category ID"],
["Category Name","Category ID"]
];
The id is so that you can apply styles to the category through CSS.
Therefore you will need to create a <style> sheet for the id's that you create.
The best thing would be to name the id the same as the category.
If the category is named "cats", name the id "cats"
IMPORTANT
You can not use white spaces while assigning an id.
if you want to space words you can use the underscore_ . ex. (GENERAL_DISCUSSIONS)
Or you can just make it one word. ex. (GENERALDISCUSSIONS)
Remember: You need to add a <style> sheet to your Main Header.
Main Footer
Enjoy!
Read instructions thoroughly before using.
Placement: Main Footer
Edit the Category Name and the Category ID
The Category Name being the Category that you wish to edit and the Category ID being the desired ID that you wish to give the corrosponing Category.
To add more Categorys add more [''Category Name'',''Category ID"],
Be sure to add a comma at the end. No comma for the last one.
var catEdit=[//Enter [''Category Name'',''Category ID"] below.
["Category Name","Category ID"],
["Category Name","Category ID"]
];
The id is so that you can apply styles to the category through CSS.
Therefore you will need to create a <style> sheet for the id's that you create.
The best thing would be to name the id the same as the category.
If the category is named "cats", name the id "cats"
IMPORTANT
You can not use white spaces while assigning an id.
if you want to space words you can use the underscore_ . ex. (GENERAL_DISCUSSIONS)
Or you can just make it one word. ex. (GENERALDISCUSSIONS)
Remember: You need to add a <style> sheet to your Main Header.
<style type= "text/css">
#Category ID{apply: styles;}
</style>
Main Footer
<script type= "text/javascript">
//Individual Category Styles
//PLacement: Footers
//Coded By Game
var catEdit=[//Enter [''Category Name'',''Category ID"] below.
["Category Name","Category ID"],
["Category Name","Category ID"]
];
//Editing Not Required Below
var td= document.getElementsByTagName("td"),i,x;for(i=0; i<catEdit.length;i++){for(x=0;x<td.length;x++){if(td[x].className=="catbg" && td[x].innerHTML.match(catEdit[i][0])){
td[x].id=catEdit[i][1];}}}
</script>
Enjoy!