vForums Support :: Programming & Coding :: Code Requests & Support :: [Site Needed for Deleted] Categorized SubBoard Mod - View Topic
 |  |
| This topic was locked 24th May 08 at 10:01am by Michael | dog199200 Guest | [Site Needed for Deleted] Categorized SubBoard Mod (18th May 08 at 4:58pm UTC) Resolved | | Can i get a mod to this code so that it will add head/base images around the categories please?
 Code: - <script type="text/javascript">
- <!--
- /*
- Categorized Sub-Boards by Cr0w
- Copyright 2008
- Do not repost
- */
- var sp = []; var brds = new Array(); var cts = new Array(); //Do Not Edit This Line
-
- // Categories
- cts[0] = "Information Boards";
- cts[1] = "Guilds";
- cts[2] = "Jobs";
- cts[3] = "Altheron (Roleplay Boards)";
-
- // Board Organization
- sp[0] = ["Roleplayinfo2",0];
- sp[1] = ["Guilds",1];
- sp[2] = ["Jobs",2];
- sp[3] = ["PhoenixCave",3];
- sp[4] = ["Lunior",3];
- sp[5] = ["Shadowforest",3];
- sp[6] = ["RycoCity",3];
- sp[7] = ["LaconiumCity",3];
- sp[8] = ["Zuler",3];
- sp[9] = ["Falidor",3];
- sp[10] = ["Cirvil",3];
- sp[11] = ["Belveon",3];
- sp[12] = ["Zenreone",3];
- sp[13] = ["ShelbyMountains",3];
- sp[14] = ["AlfronCity",3];
-
-
-
- // No More Edits
- if(!location.href.match(/topic/)){
- var tr = get('tr','tag');
- var td = get('td','tag');
- var sb = get('subboards','id');
- var n = 0;
- var nt = "";
- var ntree = get('nav_tree','id');
-
- for(t=0;t<tr.length;t++){
- if(tr[t].id.match(/^board_(.+?)$/i)){
- for(i=0;i<sp.length;i++){
- if(RegExp.$1==sp[i][0]){
- brds[n] = tr[t].cloneNode(true);
- n++;
- }
- }
- tr[t].style.display = "none";
- }
- }
- for(s=0;s<td.length;s++){
- if(td[s].width=="70%" && td[s].innerHTML.match(/Sub\-Board Name/) && td[s+1].width=="22%"){
- td[s].parentNode.parentNode.parentNode.parentNode.style.display = "none";
- }
- }
-
- ntree.style.display = "none";
- nt = '<table align="center" width="' + vf_width + '"><tr><td id="nav_tree">' + ntree.innerHTML + '</td></tr></table>';
- for(x=0;x<cts.length;x++){
- nt += '<table align="center" class="border" cellpadding="2" cellspacing="1" width="' + vf_width + '">';
- nt += '<tr><td align="center" class="title1" colspan="5">' + cts[x] + '</td></tr>';
- var num = 0;
- for(q=0;q<brds.length;q++){
- if(sp[q][1]==x){
- if(num >0){
- nt += '<tr><td colspan = "5" style="height: 10px; background-image: url(http://i25.photobucket.com/albums/c51/dog199200/Deluxeanime/galbule.png);"></td></tr>';
- }
- nt += '<tr>' + brds[q].innerHTML + '</tr>';
- num++
- }}
- nt += '</table><br><br>';
- }
- sb.innerHTML = nt;
- }
- //-->
- </script>
| |
| Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Categorized Sub-Boards Mod (18th May 08 at 5:20pm UTC) | | try this:
 Code: - <script type="text/javascript">
- <!--
- /*
- Categorized Sub-Boards by Cr0w
- Copyright 2008
- Do not repost
- */
- var sp = []; var brds = new Array(); var cts = new Array(); //Do Not Edit This Line
-
- // Categories
- cts[0] = "Information Boards";
- cts[1] = "Guilds";
- cts[2] = "Jobs";
- cts[3] = "Altheron (Roleplay Boards)";
-
- // Board Organization
- sp[0] = ["Roleplayinfo2",0];
- sp[1] = ["Guilds",1];
- sp[2] = ["Jobs",2];
- sp[3] = ["PhoenixCave",3];
- sp[4] = ["Lunior",3];
- sp[5] = ["Shadowforest",3];
- sp[6] = ["RycoCity",3];
- sp[7] = ["LaconiumCity",3];
- sp[8] = ["Zuler",3];
- sp[9] = ["Falidor",3];
- sp[10] = ["Cirvil",3];
- sp[11] = ["Belveon",3];
- sp[12] = ["Zenreone",3];
- sp[13] = ["ShelbyMountains",3];
- sp[14] = ["AlfronCity",3];
-
-
-
- // No More Edits
- if(!location.href.match(/topic/)){
- var tr = get('tr','tag');
- var td = get('td','tag');
- var sb = get('subboards','id');
- var n = 0;
- var nt = "";
- var ntree = get('nav_tree','id');
-
- for(t=0;t<tr.length;t++){
- if(tr[t].id.match(/^board_(.+?)$/i)){
- for(i=0;i<sp.length;i++){
- if(RegExp.$1==sp[i][0]){
- brds[n] = tr[t].cloneNode(true);
- n++;
- }
- }
- tr[t].style.display = "none";
- }
- }
- for(s=0;s<td.length;s++){
- if(td[s].width=="70%" && td[s].innerHTML.match(/Sub\-Board Name/) && td[s+1].width=="22%"){
- td[s].parentNode.parentNode.parentNode.parentNode.style.display = "none";
- }
- }
-
- ntree.style.display = "none";
- nt = '<table align="center" width="' + vf_width + '"><tr><td id="nav_tree">' + ntree.innerHTML + '</td></tr></table>';
- for(x=0;x<cts.length;x++){
- nt += get('table','tag')[0].cloneNode(true) + '<table align="center" class="border" cellpadding="2" cellspacing="1" width="' + vf_width + '">';
- nt += '<tr><td align="center" class="title1" colspan="5">' + cts[x] + '</td></tr>';
- var num = 0;
- for(q=0;q<brds.length;q++){
- if(sp[q][1]==x){
- if(num >0){
- nt += '<tr><td colspan = "5" style="height: 10px; background-image: url(http://i25.photobucket.com/albums/c51/dog199200/Deluxeanime/galbule.png);"></td></tr>';
- }
- nt += '<tr>' + brds[q].innerHTML + '</tr>';
- num++
- }}
- nt += '</table>'+get('table','tag')[3].cloneNode(true)+'<br><br>';
- }
- sb.innerHTML = nt;
- }
- //-->
- </script>
| |
| dog199200 Guest | Re: Categorized Sub-Boards Mod (19th May 08 at 1:23am UTC) | | i dont know what you did but you broke the code | |
| dog199200 Guest | Re: Categorized Sub-Boards Mod (22nd May 08 at 1:29pm UTC) | | bump | |
| Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Categorized Sub-Boards Mod (22nd May 08 at 3:03pm UTC) | | Get to these tonight, or tomorrow during the day. Today's exam is done, so got a few days to code up! | |
| dog199200 Guest | Re: Categorized Sub-Boards Mod (24th May 08 at 2:31am UTC) | | hey you can ignore this, i deleted the site because it was going no where, | |
| |
 |  |
|