VeaZna Junior Member
 
![[Avatar]](http://a.deviantart.com/avatars/v/e/veazna.gif) "Pickle Weasil" Posts: 78 Status: Offline Location: Guess... Joined:
pmwww | |
dog199200 Guest | | Re: Board Mod Problem (27th Oct 08 at 12:26am UTC) | | umm can you post the code please, i'd like to make sure about something before I go ahead and post something that may or may not fix the problem
edit: ok if anythign try this first:
 Code: - <script>
- /*Board Mod Fixed
- To be used with HTML Templating
- Created By Wrighty*/
-
- var fix = {
- d: get('td','tag'),
- init: function(){
- for(a = 0; a < this.d.length - 1; a++){
- if(this.d[a].className.match(/categorytitle/) || (this.d[a].className == "title1" && this.d[a].innerHTML.match(/<b>Sub-Board\sName<\/b>/i))) {
- var x = document.createElement('tr');
- var y = document.createElement('td');
- y.innerHTML = ' ';
- y.className = 'title1';
- x.appendChild(y);
- var y = document.createElement('td');
- y.innerHTML = '';
- y.className = 'title1';
- x.appendChild(y);
- var y = document.createElement('td');
- y.innerHTML = ' ';
- y.className = 'title1';
- x.appendChild(y);
- var y = document.createElement('td');
- y.innerHTML = ' ';
- y.className = 'title1';
- x.appendChild(y);
- var y = document.createElement('td');
- y.innerHTML = ' ';
- y.className = 'title1';
- x.appendChild(y);
- this.d[a].parentNode.parentNode.insertBefore(x, this.d[a].parentNode.nextSibling);
- this.d[a].colSpan = '5';
- if(this.d[a].className == "title1") {
- this.d[a].parentNode.style.display = "none";
- break;
- }
- }
- }
- }
- };
- fix.init();
- </script>
it might not work but without the code you are using I cant be for sure. | |
|
VeaZna Junior Member
 
![[Avatar]](http://a.deviantart.com/avatars/v/e/veazna.gif) "Pickle Weasil" Posts: 78 Status: Offline Location: Guess... Joined:
pmwww | | Re: Board Mod Problem (27th Oct 08 at 12:36am UTC) | | the code!
and the code you posted doesn't work
 Code: - <tr id="board_{board_id}">
-
- <td class="window1 boardstatus" width="6%" align="center">
- {new_posts}
- </td>
-
- <td class="window2 boardlisting" width="55%" valign="top">
- <span style="position: relative;">
- <span style="float: left; position: relative; height: 14px; font-size: 12px;" class="boardtitle">
- {board_name}
- </span>
- <span style="float: right; position: relative;" class="boardmoderators">
- <font size="1">
- {if:moderators}
- Led By: {moderators}
- {/if:moderators}
- </font>
- </span>
- <br style="clear: both;" />
- <span style="float: left; position: relative; width: 75%;" class="boarddescription">
- {board_description}
- {if:sub_boards}
- <br /><font size="1">Sub-Boards: {sub_boards}</font>
- {/if:sub_boards}
- </span>
- </span>
- </td>
-
- <td class="window1" width="7%" align="center">
- <font size="2">
- {total_topics}
- <br />
- Topics
- </font>
-
-
- <td class="window1" width="7%" align="center">
- <font size="2">
- {total_posts}
- <br />
- Posts
- </font>
-
- <td class="window2 lastpost" align="center" width="25%"{tip}>
- <font size="2">
- {ifnot:access}
- {if:member}
- Staff Only!
- {/if:member}
- {if:guest}
- <a href="/action/login/">Login</a> or <a href="/action/register/">Register</a>
- {/if:guest}
- {/ifnot:access}
- {if:access}
- {if:last_post}
- {last_post_time}
- by {last_post_user}<br />
- in {last_post_topic}
- {/if:last_post}
- {ifnot:last_post}
- No recent Posts
- {/ifnot:last_post}
- {/if:access}
- </font>
- </td>
-
- </tr>
| |
|
|
dog199200 Guest | | Re: Board Mod Problem (27th Oct 08 at 3:05am UTC) | | ok this will ok just fine, Global header:
 Code: - <script>
- /*Board Mod Fix
- To be used with HTML Templating Part #1*/
-
- var fix = {
- d: get('td','tag'),
- init: function(){
- for(a = 0; a < this.d.length - 1; a++){
- if(this.d[a].className.match(/categorytitle/) || (this.d[a].className == "title1" && this.d[a].innerHTML.match(/<b>Sub-Board\sName<\/b>/i))) {
- var x = document.createElement('tr');
- var y = document.createElement('td');
- this.d[a].parentNode.parentNode.insertBefore(x, this.d[a].parentNode.nextSibling);
- this.d[a].colSpan = '5';
- if(this.d[a].className == "title1") {
- this.d[a].parentNode.style.display = "none";
- break;
- }
- }
- }
- }
- };
- fix.init();
- </script>
| |
|
VeaZna Junior Member
 
![[Avatar]](http://a.deviantart.com/avatars/v/e/veazna.gif) "Pickle Weasil" Posts: 78 Status: Offline Location: Guess... Joined:
pmwww | | Re: Board Mod Problem (27th Oct 08 at 4:12pm UTC) | | yeah it works, but in the global footers | |
|
|
dog199200 Guest | | Re: Board Mod Problem (27th Oct 08 at 8:01pm UTC) | | | oops, i said the wrong one, sorry about that | |
|