vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Board Mod Problem - View Topic
Topic Rating: *****
Printable View
VeaZna
Junior Member
**

[Avatar]
"Pickle Weasil"

Posts: 78
Status: Offline
Location: Guess...
Joined:  
Reputation: 1%  


pmwww
Board Mod Problem (26th Oct 08 at 8:03pm UTC)
This is what it looks like:
http://wimg.co.uk/8amdf5.jpg

u can see what the problem is {Tongue Out}

ImageImage
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:
 
  1. <script>
  2. /*Board Mod Fixed
  3. To be used with HTML Templating
  4. Created By Wrighty*/
  5.  
  6. var fix = {
  7. d: get('td','tag'),
  8. init: function(){
  9. for(a = 0; a < this.d.length - 1; a++){
  10. if(this.d[a].className.match(/categorytitle/) || (this.d[a].className == "title1" && this.d[a].innerHTML.match(/<b>Sub-Board\sName<\/b>/i))) {
  11. var x = document.createElement('tr');
  12. var y = document.createElement('td');
  13. y.innerHTML = ' ';
  14. y.className = 'title1';
  15. x.appendChild(y);
  16. var y = document.createElement('td');
  17. y.innerHTML = '';
  18. y.className = 'title1';
  19. x.appendChild(y);
  20. var y = document.createElement('td');
  21. y.innerHTML = ' ';
  22. y.className = 'title1';
  23. x.appendChild(y);
  24. var y = document.createElement('td');
  25. y.innerHTML = ' ';
  26. y.className = 'title1';
  27. x.appendChild(y);
  28. var y = document.createElement('td');
  29. y.innerHTML = ' ';
  30. y.className = 'title1';
  31. x.appendChild(y);
  32. this.d[a].parentNode.parentNode.insertBefore(x, this.d[a].parentNode.nextSibling);
  33. this.d[a].colSpan = '5';
  34. if(this.d[a].className == "title1") {
  35. this.d[a].parentNode.style.display = "none";
  36. break;
  37. }
  38. }
  39. }
  40. }
  41. };
  42. fix.init();
  43. </script>
 


it might not work but without the code you are using I cant be for sure.
VeaZna
Junior Member
**

[Avatar]
"Pickle Weasil"

Posts: 78
Status: Offline
Location: Guess...
Joined:  
Reputation: 1%  


pmwww
Re: Board Mod Problem (27th Oct 08 at 12:36am UTC)
the code! {Smile}

and the code you posted doesn't work


Code:
 
  1. <tr id="board_{board_id}">
  2.  
  3. <td class="window1 boardstatus" width="6%" align="center">
  4. {new_posts}
  5. </td>
  6.  
  7. <td class="window2 boardlisting" width="55%" valign="top">
  8. <span style="position: relative;">
  9. <span style="float: left; position: relative;  height: 14px; font-size: 12px;" class="boardtitle">
  10. {board_name}
  11. </span>
  12. <span style="float: right; position: relative;" class="boardmoderators">
  13. <font size="1">
  14. {if:moderators}
  15. Led By: {moderators}
  16. {/if:moderators}
  17. </font>
  18. </span>
  19. <br style="clear: both;" />
  20. <span style="float: left; position: relative; width: 75%;" class="boarddescription">
  21. {board_description}
  22. {if:sub_boards}
  23. <br /><font size="1">Sub-Boards: {sub_boards}</font>
  24. {/if:sub_boards}
  25. </span>
  26. </span>
  27. </td>
  28.  
  29. <td class="window1" width="7%" align="center">
  30. <font size="2">
  31. {total_topics}
  32. <br />
  33. Topics
  34. </font>
  35.  
  36.  
  37. <td class="window1" width="7%" align="center">
  38. <font size="2">
  39. {total_posts}
  40. <br />
  41. Posts
  42. </font>
  43.  
  44. <td class="window2 lastpost" align="center" width="25%"{tip}>
  45. <font size="2">
  46. {ifnot:access}
  47. {if:member}
  48. Staff Only!
  49. {/if:member}
  50. {if:guest}
  51. <a href="/action/login/">Login</a> or <a href="/action/register/">Register</a>
  52. {/if:guest}
  53. {/ifnot:access}
  54. {if:access}
  55. {if:last_post}
  56. {last_post_time}
  57. by {last_post_user}<br />
  58. in {last_post_topic}
  59. {/if:last_post}
  60. {ifnot:last_post}
  61. No recent Posts
  62. {/ifnot:last_post}
  63. {/if:access}
  64. </font>
  65. </td>
  66.  
  67. </tr>
 

ImageImage
dog199200
Guest
Re: Board Mod Problem (27th Oct 08 at 3:05am UTC)
ok this will ok just fine, Global header:

Code:
 
  1. <script>
  2. /*Board Mod Fix
  3. To be used with HTML Templating Part #1*/
  4.  
  5. var fix = {
  6. d: get('td','tag'),
  7. init: function(){
  8. for(a = 0; a < this.d.length - 1; a++){
  9. if(this.d[a].className.match(/categorytitle/) || (this.d[a].className == "title1" && this.d[a].innerHTML.match(/<b>Sub-Board\sName<\/b>/i))) {
  10. var x = document.createElement('tr');
  11. var y = document.createElement('td');
  12. this.d[a].parentNode.parentNode.insertBefore(x, this.d[a].parentNode.nextSibling);
  13. this.d[a].colSpan = '5';
  14. if(this.d[a].className == "title1") {
  15. this.d[a].parentNode.style.display = "none";
  16. break;
  17. }
  18. }
  19. }
  20. }
  21. };
  22. fix.init();
  23. </script>
 
VeaZna
Junior Member
**

[Avatar]
"Pickle Weasil"

Posts: 78
Status: Offline
Location: Guess...
Joined:  
Reputation: 1%  


pmwww
Re: Board Mod Problem (27th Oct 08 at 4:12pm UTC)
yeah it works, but in the global footers {Tongue Out}

ImageImage
dog199200
Guest
Re: Board Mod Problem (27th Oct 08 at 8:01pm UTC)
oops, i said the wrong one, sorry about that
 Printable View

All times are GMT+0 :: The current time is 1:54pm
Page generated in 0.7539 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums