|
vForums Support :: Programming & Coding :: Code Requests & Support :: View Topic: [F] Board Code Mod Merge |  |
| Dwight Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Naruto/RockLeeAvi.gif) I'm an evil turkey!!! Posts: 854 Status: Offline Gender: Male Location: Behind You Age: 16 Joined: 21st Jan 2008
| | [F] Board Code Mod Merge (18th Apr 08 at 8:50pm) | | Can i get these two codes merged together, they dont work seperate
so i need this code:
| Code:Select All | <script>/*Seperate Boards By GradientCoded By WrightyDo Not: Rip, Repost or Claim*/ var g = { grad: 'http://i25.photobucket.com/albums/c51/dog199200/Deluxeanime/galbule.png', r: get('tr','tag'), init: function(){ for(i=0; i<this.r.length; i++){ if(this.r[i].id.match(/board_(\w)/) && this.r[i].innerHTML.match(/new posts/i) && this.r[i+1].id.match(/board_(\w)/)){ var d = document.createElement('tr'); var c = document.createElement('td'); c.colSpan='3'; c.style.cssText = 'height: 10px; background-image: url('+this.grad+');'; d.appendChild(c); this.r[i].parentNode.insertBefore(d, this.r[i].nextSibling); i = i+1; } } }};g.init();</script>
|
added into this:
| Code:Select All | <style>.boardtotals{ display: none;}</style><script>/*Board ModCreated By Wrighty*/ for(i=0; i<get('td','tag').length; i++){ if(get('td','tag')[i].innerHTML.match(/New Posts/) && get('td','tag')[i].className== "window1 boardstatus"){ get('td','tag')[i+1].width = '55%'; var a = get('td','tag')[i].parentNode.insertCell(3); with(a){ className = 'window1'; width= '50px'; align= 'center'; innerHTML = (get('td','tag')[i+1].innerHTML.match(/\s(\d+)\sPosts/))? RegExp.$1 : '0'; } var b = get('td','tag')[i].parentNode.insertCell(3); with(b){ className = 'window1'; width= '50px'; align= 'center'; innerHTML = (get('td','tag')[i+1].innerHTML.match(/(\d+)\sTopics\s/))? RegExp.$1 : '0'; } } if(get('td','tag')[i].colSpan == '3'){ if(get('td','tag')[i].width == '100%' && get('td','tag')[i].className.match(/title1/)){ get('td','tag')[i].colSpan = '5'; } if(get('td','tag')[i].className.match(/categorytitle/)){ get('td','tag')[i].colSpan = '5'; var r = document.createElement('tr'); var a = document.createElement('td'); var b = document.createElement('td'); var c = document.createElement('td'); var d = document.createElement('td'); var e = document.createElement('td'); a.className = b.className = c.className = d.className = e.className = 'title1' a.appendChild(document.createTextNode(' ')); b.appendChild(document.createTextNode('Forum')); c.appendChild(document.createTextNode('Last Post')); d.appendChild(document.createTextNode('Topics')); e.appendChild(document.createTextNode('Posts')); r.appendChild(a); r.appendChild(b); r.appendChild(c); r.appendChild(d); r.appendChild(e); get('td','tag')[i].parentNode.parentNode.insertBefore(r,get('td','tag')[i].parentNode.nextSibling); } }}</script>
|
and by not working i mean that the Gradient doesn't run under the topic and post cells, also they dont load at the same time so it look really tacky | | Back to Top - Link to Post - Last edit: 18th May 08 at 5:49pm by Dwight | Just Testing For Errors, If there is a problem caused by my sig let me know.
|
| Wrighty Very Senior Member
    
![[Avatar]](http://av.wrighty.info/av.png) Posts: 3,264 Status: Offline Gender: Male Joined: 16th Dec 2007
| | Re: Board Code Mod Merge (19th Apr 08 at 3:34am) | | | Have you tried swapping their position? (Which is above the other I mean!) | | Back to Top - Link to Post |
 |
| Dwight Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Naruto/RockLeeAvi.gif) I'm an evil turkey!!! Posts: 854 Status: Offline Gender: Male Location: Behind You Age: 16 Joined: 21st Jan 2008
| | Dwight Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Naruto/RockLeeAvi.gif) I'm an evil turkey!!! Posts: 854 Status: Offline Gender: Male Location: Behind You Age: 16 Joined: 21st Jan 2008
| | cout << "Marc"; vChat Developer
     I <3 Ross
![[Avatar]](http://3.wimg.co.uk/Sb4rca.jpg) Posts: 2,916 Status: Offline Gender: Male Location: Ontario, Canada Age: 16 Joined: 9th Dec 2007
Additional Groups: Coding Team
| | Re: Board Code Mod Merge (21st Apr 08 at 3:48am) | | 19th Apr 08 at 5:53am, Dwight said:| there not in the same place, thats why they need to be combined to work. |
Wrighty is suggesting that you switch their positions as code conflicts are quite often due to placement issues.  | | Back to Top - Link to Post |

 |
| Dwight Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Naruto/RockLeeAvi.gif) I'm an evil turkey!!! Posts: 854 Status: Offline Gender: Male Location: Behind You Age: 16 Joined: 21st Jan 2008
| | cout << "Marc"; vChat Developer
     I <3 Ross
![[Avatar]](http://3.wimg.co.uk/Sb4rca.jpg) Posts: 2,916 Status: Offline Gender: Male Location: Ontario, Canada Age: 16 Joined: 9th Dec 2007
Additional Groups: Coding Team
| | Dwight Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Naruto/RockLeeAvi.gif) I'm an evil turkey!!! Posts: 854 Status: Offline Gender: Male Location: Behind You Age: 16 Joined: 21st Jan 2008
| | Wrighty Very Senior Member
    
![[Avatar]](http://av.wrighty.info/av.png) Posts: 3,264 Status: Offline Gender: Male Joined: 16th Dec 2007
| | Re: Board Code Mod Merge (22nd Apr 08 at 7:22pm) | | try changing: c.colSpan='3'; to: c.colSpan='5';
In the first code!  | | Back to Top - Link to Post |
 |
| Dwight Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Naruto/RockLeeAvi.gif) I'm an evil turkey!!! Posts: 854 Status: Offline Gender: Male Location: Behind You Age: 16 Joined: 21st Jan 2008
| | Wrighty Very Senior Member
    
![[Avatar]](http://av.wrighty.info/av.png) Posts: 3,264 Status: Offline Gender: Male Joined: 16th Dec 2007
| | Re: Board Code Mod Merge (23rd Apr 08 at 7:47am) | | can you post the category code that you're using please?  | | Back to Top - Link to Post |
 |
| Dwight Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Naruto/RockLeeAvi.gif) I'm an evil turkey!!! Posts: 854 Status: Offline Gender: Male Location: Behind You Age: 16 Joined: 21st Jan 2008
| | Re: Board Code Mod Merge (23rd Apr 08 at 2:36pm) | | lol, ok
Board Head
Board Foot
| Code:Select All | <script type="text/javascript"><!--/*Categorized Sub-Boards by Cr0wCopyright 2008Do not repost*/var sp = []; var brds = new Array(); var cts = new Array(); //Do Not Edit This Line // Categoriescts[0] = "Information Boards";cts[1] = "Guilds";cts[2] = "Jobs";cts[3] = "Altheron (Roleplay Boards)"; // Board Organizationsp[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 Editsif(!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>';for(q=0;q<brds.length;q++){if(sp[q][1]==x){nt += '<tr>' + brds[q].innerHTML + '</tr>';}}nt += '</table><br><br>';}sb.innerHTML = nt;}//--></script>
|
Edit: also i hate to keep asking things, but could you make it so that the sub board category mod will show head/base image please? | | Back to Top - Link to Post - Last edit: 23rd Apr 08 at 2:39pm by Dwight | Just Testing For Errors, If there is a problem caused by my sig let me know. http://youtube.com/watch?v=5hLIa_mm_8Ihttp://youtube.com/watch?v=9_5zltDXEA4http://youtube.com/watch?v=8mweIc6ufrk |
| Dwight Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Naruto/RockLeeAvi.gif) I'm an evil turkey!!! Posts: 854 Status: Offline Gender: Male Location: Behind You Age: 16 Joined: 21st Jan 2008
| | Wrighty Very Senior Member
    
![[Avatar]](http://av.wrighty.info/av.png) Posts: 3,264 Status: Offline Gender: Male Joined: 16th Dec 2007
| | Re: Board Code Mod Merge (27th Apr 08 at 7:42pm) | | try chaning this line: brds[n] = tr[t].cloneNode(true); n++ to: brds[n] = tr[t].cloneNode(true); brds[n+1] = tr[t+1].cloneNode(true); n = parseInt(n+2);
That might work!  | | Back to Top - Link to Post |
 |
| Dwight Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Naruto/RockLeeAvi.gif) I'm an evil turkey!!! Posts: 854 Status: Offline Gender: Male Location: Behind You Age: 16 Joined: 21st Jan 2008
| | Re: Board Code Mod Merge (27th Apr 08 at 7:48pm) | | like this?
| Code:Select All | <script type="text/javascript"><!--/*Categorized Sub-Boards by Cr0wCopyright 2008Do not repost*/var sp = []; var brds = new Array(); var cts = new Array(); //Do Not Edit This Line // Categoriescts[0] = "Information Boards";cts[1] = "Guilds";cts[2] = "Jobs";cts[3] = "Altheron (Roleplay Boards)"; // Board Organizationsp[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 Editsif(!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);brds[n+1] = tr[t+1].cloneNode(true);n = parseInt(n+2);}}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>';for(q=0;q<brds.length;q++){if(sp[q][1]==x){nt += '<tr>' + brds[q].innerHTML + '</tr>';}}nt += '</table><br><br>';}sb.innerHTML = nt;}//--></script>
|
if so, the code breaks and doesn't show my boards | | Back to Top - Link to Post | Just Testing For Errors, If there is a problem caused by my sig let me know. http://youtube.com/watch?v=5hLIa_mm_8Ihttp://youtube.com/watch?v=9_5zltDXEA4http://youtube.com/watch?v=8mweIc6ufrk |
| |
 |  |
|
|