Post by Marc on Apr 3, 2006 16:55:30 GMT -8
Isn't this against TOS? Click
Preview: Here
OK, after over 2 months of planning & coding, & finding out what works and what doesn't, i finally completed the "BETA" version.
This code, unfortunately does NOT display "Topics | Posts | Last Post", but it WILL in v0.5/v1.0. It also does not update the on/off icons. I have a code that will successfully display this information, but i just can't get it compatible with this code YET.
It is completely customizable, and you can have up to 5 sub-sub-boards in each board.
I have been working on this code since February 2nd, so i hope you enjoy it!
Below are the upgrades that will happen in the following 3 versions:
v0.5/v1.0 - Topics | Posts | Last Post, On/Off Icon Updates, Cell Highlight, Sub-Sub-Boards will have forum classes(catbg, titlebg, etc.)
v2.0 - Admin Editable
v2.5 - No Manual Board Creation
Now, unfortunately, there are 2 steps involved with this code.
Step 1:
Create A New Board(make sure it is hidden) - this will be your sub-sub-board. Create this board as a sub-board in the same place where the code will be displayed. Example: If you have the code in General Sub-Board(the sub-board in the board "General"), then create your sub-sub-board as a sub-board to General. Otherwise, your Nav Tree will not display correctly on the sub-sub-boards. Repeat this step for each sub-sub-board you would like.
Step 2:
The Code.
Placement: Sub-board headers
Note 2: If you want posting to be disabled on the board that the sub-sub-boards are displayed, add this to bottom of headers:
And this to top of footers:
Preview: Here
OK, after over 2 months of planning & coding, & finding out what works and what doesn't, i finally completed the "BETA" version.
This code, unfortunately does NOT display "Topics | Posts | Last Post", but it WILL in v0.5/v1.0. It also does not update the on/off icons. I have a code that will successfully display this information, but i just can't get it compatible with this code YET.
It is completely customizable, and you can have up to 5 sub-sub-boards in each board.
I have been working on this code since February 2nd, so i hope you enjoy it!
Below are the upgrades that will happen in the following 3 versions:
v0.5/v1.0 - Topics | Posts | Last Post, On/Off Icon Updates, Cell Highlight, Sub-Sub-Boards will have forum classes(catbg, titlebg, etc.)
v2.0 - Admin Editable
v2.5 - No Manual Board Creation
Now, unfortunately, there are 2 steps involved with this code.
Step 1:
Create A New Board(make sure it is hidden) - this will be your sub-sub-board. Create this board as a sub-board in the same place where the code will be displayed. Example: If you have the code in General Sub-Board(the sub-board in the board "General"), then create your sub-sub-board as a sub-board to General. Otherwise, your Nav Tree will not display correctly on the sub-sub-boards. Repeat this step for each sub-sub-board you would like.
Step 2:
The Code.
Placement: Sub-board headers
<script type="text/javascript">
<!--
/*
Faux Sub-Sub-Boards by Cr0w ©2006
This code may not be reposted without permission
http://www.cr0wonline.com
Keep This Header Intact
*/
//Variables
//Names
var subname1 = "Sub-Sub-Board 1" //Change to sub-sub-board names
var subname2 = "Sub-Sub-Board 2" //Will match description #'s
var subname3 = "Sub-Sub-Board 3" //Up to 5 sub-sub-boards allowed
var subname4 = "Sub-Sub-Board 4"
var subname5 = "Sub-Sub-Board 5"
// Descriptions
var description1 = "Description 1" //Change these to descriptions of the boards
var description2 = "Description 2" //description of board with same #
var description3 = "Description 3" //Up to 5 sub-sub-boards allowed
var description4 = "Description 4"
var description5 = "Description 5"
//Board ID's
var boardid1 = "Board Id 1" //Change these to the id's of the boards
var boardid2 = "Board Id 2" //id MUST be id for board with same #
var boardid3 = "Board Id 3" //Up to 5 sub-sub-boards are allowed
var boardid4 = "Board Id 4"
var boardid5 = "Board Id 5"
//Table Properties
var outlinecolor = "#000000" //Table Border Color
var pixelsize = "1" //Border Width
var onimg = "http://www.proboards.com/v4images/on.gif" //New Posts Image
var subboards = "5" //Number Of Sub-Sub-Boards(5 max)
var tablebg = "#FFFFFF" //Table Background Color
var tblwidth = "82%" //Table Width
var tdbg = "#000000" //Header background color
var linkbg = "#FFFFFF" //Background behind links color
var fontclr = "#FFFFFF" //Font Color
var textPos = "left" //Alignment of Sub-Boards text - center, left, right
//DO NOT EDIT BELOW
if (subboards == "1") document.write('<table width="'+tblwidth+'" cellspacing="0" cellpadding="0" align="center"><tr></tr><tr><td valign="top" width="100%"><table border="'+pixelsize+'" bordercolor="'+outlinecolor+'" width="100%" cellspacing="0" cellpadding="4" bgcolor="'+tablebg+'" class="bordercolor"><tr><td colspan="2" bgcolor="'+tdbg+'" height="27"><font size="2" color="'+fontclr+'"><b><div align="'+textPos+'">Sub-Boards</div></b></font></td></tr><tr><td bgcolor="'+linkbg+'" height="35" width="6%"><center><img src="'+onimg+'"></center></td><td bgcolor="'+linkbg+'" height="35" width="90%"><a name="'+subname1+'" href="/index.cgi?board='+boardid1+'"><font size="2"><strong>'+subname1+'</strong></font></a><br><small>'+description1+'</small></td></tr></table>');
else if (subboards == "2") document.write('<table width="'+tblwidth+'" cellspacing="0" cellpadding="0" align="center"><tr></tr><tr><td valign="top" width="100%"><table border="'+pixelsize+'" bordercolor="'+outlinecolor+'" width="100%" cellspacing="0" cellpadding="4" bgcolor="'+tablebg+'" class="bordercolor"><tr><td colspan="2" bgcolor="'+tdbg+'" height="27"><font size="2" color="'+fontclr+'"><b><div align="'+textPos+'">Sub-Boards</div></b></font></td></tr><tr><td bgcolor="'+linkbg+'" height="35" width="6%"><center><img src="'+onimg+'"></center></td><td bgcolor="'+linkbg+'" height="35" width="95%"><a name="'+subname1+'" href="/index.cgi?board='+boardid1+'"><font size="2"><strong>'+subname1+'</strong></font></a><br><small>'+description1+'</small></td></tr><tr><td bgcolor="'+linkbg+'" height="35" width="6%"><center><img src="'+onimg+'"></center></td><td bgcolor="'+linkbg+'" height="35" width="95%"><a name="'+subname2+'" href="/index.cgi?board='+boardid2+'"><font size="2"><strong>'+subname2+'</strong></font></a><br><small>'+description2+'</small></td></tr></table>');
else if (subboards == "3") document.write('<table width="'+tblwidth+'" cellspacing="0" cellpadding="0" align="center"><tr></tr><tr><td valign="top" width="100%"><table border="'+pixelsize+'" bordercolor="'+outlinecolor+'" width="100%" cellspacing="0" cellpadding="4" bgcolor="'+tablebg+'" class="bordercolor"><tr><td colspan="2" bgcolor="'+tdbg+'" height="27"><font size="2" color="'+fontclr+'"><b><div align="'+textPos+'">Sub-Boards</div></b></font></td></tr><tr><td bgcolor="'+linkbg+'" height="35" width="6%"><center><img src="'+onimg+'"></center></td><td bgcolor="'+linkbg+'" height="35" width="95%"><a name="'+subname1+'" href="/index.cgi?board='+boardid1+'"><font size="2"><strong>'+subname1+'</strong></font></a><br><small>'+description1+'</small></td></tr><tr><td bgcolor="'+linkbg+'" height="35" width="6%"><center><img src="'+onimg+'"></center></td><td bgcolor="'+linkbg+'" height="35" width="95%"><a name="'+subname2+'" href="/index.cgi?board='+boardid2+'"><font size="2"><strong>'+subname2+'</strong></font></a><br><small>'+description2+'</small></td></tr><tr><td bgcolor="'+linkbg+'" height="35" width="6%"><center><img src="'+onimg+'"></center></td><td bgcolor="'+linkbg+'" height="35" width="95%"><a name="'+subname3+'" href="/index.cgi?board='+boardid3+'"><font size="2"><strong>'+subname3+'</strong></font></a><br><small>'+description3+'</small></td></tr></table>');
else if (subboards == "4") document.write('<table width="'+tblwidth+'" cellspacing="0" cellpadding="0" align="center"><tr></tr><tr><td valign="top" width="100%"><table border="'+pixelsize+'" bordercolor="'+outlinecolor+'" width="100%" cellspacing="0" cellpadding="4" bgcolor="'+tablebg+'" class="bordercolor"><tr><td colspan="2" bgcolor="'+tdbg+'" height="27"><font size="2" color="'+fontclr+'"><b><div align="'+textPos+'">Sub-Boards</div></b></font></td></tr><tr><td bgcolor="'+linkbg+'" height="35" width="6%"><center><img src="'+onimg+'"></center></td><td bgcolor="'+linkbg+'" height="35" width="95%"><a name="'+subname1+'" href="/index.cgi?board='+boardid1+'"><font size="2"><strong>'+subname1+'</strong></font></a><br><small>'+description1+'</small></td></tr><tr><td bgcolor="'+linkbg+'" height="35" width="6%"><center><img src="'+onimg+'"></center></td><td bgcolor="'+linkbg+'" height="35" width="95%"><a name="'+subname2+'" href="/index.cgi?board='+boardid2+'"><font size="2"><strong>'+subname2+'</strong></font></a><br><small>'+description2+'</small></td></tr><tr><td bgcolor="'+linkbg+'" height="35" width="6%"><center><img src="'+onimg+'"></center></td><td bgcolor="'+linkbg+'" height="35" width="95%"><a name="'+subname3+'" href="/index.cgi?board='+boardid3+'"><font size="2"><strong>'+subname3+'</strong></font></a><br><small>'+description3+'</small></td></tr><tr><td bgcolor="'+linkbg+'" height="35" width="6%"><center><img src="'+onimg+'"></center></td><td bgcolor="'+linkbg+'" height="35" width="95%"><a name="'+subname4+'" href="/index.cgi?board='+boardid4+'"><font size="2"><strong>'+subname4+'</strong></font></a><br><small>'+description4+'</small></td></tr></table>');
else if (subboards == "5") document.write('<table width="'+tblwidth+'" cellspacing="0" cellpadding="0" align="center"><tr></tr><tr><td valign="top" width="100%"><table border="'+pixelsize+'" bordercolor="'+outlinecolor+'" width="100%" cellspacing="0" cellpadding="4" bgcolor="'+tablebg+'" class="bordercolor"><tr><td colspan="2" bgcolor="'+tdbg+'" height="27"><font size="2" color="'+fontclr+'"><b><div align="'+textPos+'">Sub-Boards</div></b></font></td></tr><tr><td bgcolor="'+linkbg+'" height="35" width="6%"><center><img src="'+onimg+'"></center></td><td bgcolor="'+linkbg+'" height="35" width="95%"><a name="'+subname1+'" href="/index.cgi?board='+boardid1+'"><font size="2"><strong>'+subname1+'</strong></font></a><br><small>'+description1+'</small></td></tr><tr><td bgcolor="'+linkbg+'" height="35" width="6%"><center><img src="'+onimg+'"></center></td><td bgcolor="'+linkbg+'" height="35" width="95%"><a name="'+subname2+'" href="/index.cgi?board='+boardid2+'"><font size="2"><strong>'+subname2+'</strong></font></a><br><small>'+description2+'</small></td></tr><tr><td bgcolor="'+linkbg+'" height="35" width="6%"><center><img src="'+onimg+'"></center></td><td bgcolor="'+linkbg+'" height="35" width="95%"><a name="'+subname3+'" href="/index.cgi?board='+boardid3+'"><font size="2"><strong>'+subname3+'</strong></font></a><br><small>'+description3+'</small></td></tr><tr><td bgcolor="'+linkbg+'" height="35" width="6%"><center><img src="'+onimg+'"></center></td><td bgcolor="'+linkbg+'" height="35" width="95%"><a name="'+subname4+'" href="/index.cgi?board='+boardid4+'"><font size="2"><strong>'+subname4+'</strong></font></a><br><small>'+description4+'</small></td></tr><tr><td bgcolor="'+linkbg+'" height="35" width="6%"><center><img src="'+onimg+'"></center></td><td bgcolor="'+linkbg+'" height="35" width="95%"><a name="'+subname5+'" href="/index.cgi?board='+boardid5+'"><font size="2"><strong>'+subname5+'</strong></font></a><br><small>'+description5+'</small></td></tr></table>');
else document.write("Too Many Sub-Boards!");
// -->
</script>
Note 2: If you want posting to be disabled on the board that the sub-sub-boards are displayed, add this to bottom of headers:
<div style="display: none">
And this to top of footers:
</div>