vForums Support Banner


Visit Base Classics - Gaming Chairs

 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [F] Info Center Fix - View Topic
Topic Rating: *****
Printable View
dog199200
Guest
[F] Info Center Fix (21st Jan 08 at 11:23am UTC)
URL: http://bloodplussb.virtualforums.co.uk/

Um can someone help me out, for some reason my information center is grayed out and i was wondering if someone could help me fix that because i've tried and for some reason i can't seem to, um also can someone fix the Total Events and Total Birthdays parts because for some reason it just shows the code.

Code:
 
  1. <table align="center" cellpadding="0" cellspacing="0" class="border" width="100%" id="info_center">
  2. <tr>
  3. <td>
  4. <table cellpadding="0" cellspacing="0" border="0" width="100%">
  5. <tr>
  6. </td>
  7. </tr>
  8. <tr>
  9. <table cellpadding="0" cellspacing="0" border="1" width="100%">
  10. <td class="windowbg" valign="middle" align="center" width="21%">
  11.  
  12. <center><font size="2"><b><u>Private Messages</u></b></font></center>
  13. <div align="left"><br><br>
  14. <font size="1"><b><a href="/action/pm/"><li>Your New PM's: </a> {new_pms}
  15. <a href="action/pm&view=1"><li>Your PM Inbox</a> {total_pms}
  16. <a href="action/pmprefs"><li>Your PM Preferences</a>
  17. </b></font></td>
  18. <td class="windowbg" valign="middle" width="58%"></div>
  19.  
  20. <center><font size="3"><b><u>Forum Statistics</u></b></font>
  21.  
  22. <br><br>
  23.  
  24. <font size="1">
  25. *Last Post Is {last_post}, made by  {last_post_user}, {last_post_date}.<br><br>
  26.  
  27. *Welcome the newest members to the Forum: <br>
  28. {newest_members}</font><br></center>
  29.  
  30. </td>
  31. <td class="windowbg" valign="center" align="center" width="21%">
  32.  
  33. <center><font size="2"><b><u>Board Stats</u></b></font></center>
  34. <div align="left"><br>
  35. <font size="1"><b>
  36. *Registered Members: <a href="action/members">{total_members}</a><br/>
  37. *Number of Topics: {total_topics}<br/>
  38. *Number of Posts: {total_posts}<br />
  39. *Number of Boards: {total_boards}<br/>
  40. *Number of Categories: {total_categories}<br/>
  41. <a href="action/recent">*View Last 15 Posts*</a></b></font></div></td></tr></table>
  42. <tr>
  43. <td>
  44. <table cellpadding="0" cellspacing="0" border="0" width="100%">
  45. <tr>
  46. </td>
  47. </tr>
  48. <tr>
  49. <table cellpadding="1" cellspacing="0" border="1" width="100%">
  50. <td class="windowbg" valign="middle" align="left" width="19%">
  51.  
  52. <center><font size="2"><b><u>Online Statistics</u></b></font></center>
  53. <br>
  54. <font size="1"><b>
  55. <li>Guests: {guest_on}
  56. <br/><li>Members: {member_on}
  57. <br/><li>Staff:  {staff_on}
  58. </b></font><br></td></b></font>
  59. </td>
  60. <td class="windowbg" valign="middle" align="left" width="60%">
  61.  
  62. <center><font size="3"><b><u>Currently Online</u></b></font></center>
  63. <br>
  64. <font size="1"><center><b>There is now {online_total} member(s) online.<b>Currently logged in are:</b>
  65. <br><br>
  66. <font size="1"><center>{online_str}</font></center>
  67. <br>
  68. </td>
  69. <td class="windowbg" width="19%" align="left">
  70.  
  71. <style>img { border: 0px; }</style>
  72.  
  73. <center><font size="2"><b><u>Links & Events</u></b></font></center>
  74. <br>
  75. <font size="1"><b>
  76. *Number Of Event{event_plural}: {event_total}<br/>
  77. *Number Of Birthday{birthday_plural}: {birthday_total}<br/>
  78. *MoM of January; Zain
  79. </b></font><br></td></tr></table>
  80. <tr>
  81. <td>
  82. <table cellpadding="0" cellspacing="0" border="1" width="100%">
  83. <td class="catbg" align="center" width="100%">
  84.  
  85. <center><font size="3"><b><u>Affiliates</u></b></font></center>
  86.  
  87. <br>
  88.  
  89. <script type="text/javascript">
  90. /*Random Affiliate Display*/
  91.  
  92. /*Only Edit Below*/
  93.  
  94. var affiliates = Array();
  95. affiliates[1] = Array('http://heartwrrr.proboards82.com', 'http://i25.photobucket.com/albums/c51/dog199200/Digimon/untitled-1.gif', 'Digimon Shadows');
  96. affiliates[2] = Array('http://dog1992.proboards20.com', 'http://i25.photobucket.com/albums/c51/dog199200/Inuyasha%20Images/inuyashaye8.gif', 'Inuyasha World');
  97. affiliates[3] = Array('http://www.pheonixemerald.proboards83.com', 'http://i25.photobucket.com/albums/c51/dog199200/PE%20%20Images/EmeraldPhoenxaffilaite.gif', 'Phoenix Emerald');
  98. affiliates[4] = Array('http://itchigobleach.proboards59.com', 'http://i25.photobucket.com/albums/c51/dog199200/53a8hox.gif', 'Bleach Legend Of The Shadow Hollow');
  99. affiliates[5] = Array('http://fullmetalme.proboards49.com/', 'http://i25.photobucket.com/albums/c51/dog199200/FMA%20Images/FMAAJBanner.gif', 'FMA Advanced Journey');
  100. affiliates[6] = Array('http://rockleewashere.proboards58.com/index.cgi', 'http://i25.photobucket.com/albums/c51/dog199200/Naruto/403747650_31078d9dbf.gif', 'Naruto Demonic Illusions');
  101. affiliates[7] = Array('http://omegavampire.proboards57.com/index.cgi?', 'http://i25.photobucket.com/albums/c51/dog199200/Omega%20Blood%20Lust/omegabloodaffiliate.gif', 'Omega Blood Lust');
  102. affiliates[8] = Array('http://pokemondshelp.proboards62.com', 'http://i25.photobucket.com/albums/c51/dog199200/Pokemon/pokemonaffilaite.png', 'Pokemon DS Help');
  103.  
  104. /*Only Edit Above*/
  105.  
  106. var rand = Math.floor(Math.random() * affiliates.length);
  107.  
  108. for(i=0; i<8; i++) {
  109. var rand = Math.floor(Math.random() * affiliates.length);
  110. document.write('<a href="'+ affiliates[rand][0] +'"><img src="'+ affiliates[rand][1] +'" alt="'+ affiliates[rand][2] +'" /></a>');
  111. }
  112. </script>
  113.  
  114. <br>
  115.  
  116. <div align="left"><a href="board/viewallafiliate">View All</a></div>
  117.  
  118. </td>
  119. </tr>
  120. </table>
  121. </td>
  122. </tr>
  123. </td></tr>
  124. </table>
 
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Info Center Fix (21st Jan 08 at 4:29pm UTC)
what you have done is used Windowbg which isn't actually a valid class with vF

we use window1 or window2... {Smile}

window1 = windowbg
window1 = windowbg2

(kind of anyway) {Tongue Out}

also catbg doesn't exist.
catbg = title2
titlebg = title1


try this code:

Code:
 
  1. <table align="center" cellpadding="0" cellspacing="0" class="border" width="100%" id="info_center">
  2. <tr>
  3. <td>
  4. <table cellpadding="0" cellspacing="0" border="0" width="100%">
  5. <tr>
  6. </td>
  7. </tr>
  8. <tr>
  9. <table cellpadding="0" cellspacing="0" border="1" width="100%">
  10. <td class="window1" valign="middle" align="center" width="21%">
  11.  
  12. <center><font size="2"><b><u>Private Messages</u></b></font></center>
  13. <div align="left"><br><br>
  14. <font size="1"><b><a href="/action/pm/"><li>Your New PM's: </a> {new_pms}
  15. <a href="action/pm&view=1"><li>Your PM Inbox</a> {total_pms}
  16. <a href="action/pmprefs"><li>Your PM Preferences</a>
  17. </b></font></td>
  18. <td class="window1" valign="middle" width="58%"></div>
  19.  
  20. <center><font size="3"><b><u>Forum Statistics</u></b></font>
  21.  
  22. <br><br>
  23.  
  24. <font size="1">
  25. *Last Post Is {last_post}, made by  {last_post_user}, {last_post_date}.<br><br>
  26.  
  27. *Welcome the newest members to the Forum: <br>
  28. {newest_members}</font><br></center>
  29.  
  30. </td>
  31. <td class="window1" valign="center" align="center" width="21%">
  32.  
  33. <center><font size="2"><b><u>Board Stats</u></b></font></center>
  34. <div align="left"><br>
  35. <font size="1"><b>
  36. *Registered Members: <a href="action/members">{total_members}</a><br/>
  37. *Number of Topics: {total_topics}<br/>
  38. *Number of Posts: {total_posts}<br />
  39. *Number of Boards: {total_boards}<br/>
  40. *Number of Categories: {total_categories}<br/>
  41. <a href="action/recent">*View Last 15 Posts*</a></b></font></div></td></tr></table>
  42. <tr>
  43. <td>
  44. <table cellpadding="0" cellspacing="0" border="0" width="100%">
  45. <tr>
  46. </td>
  47. </tr>
  48. <tr>
  49. <table cellpadding="1" cellspacing="0" border="1" width="100%">
  50. <td class="window1" valign="middle" align="left" width="19%">
  51.  
  52. <center><font size="2"><b><u>Online Statistics</u></b></font></center>
  53. <br>
  54. <font size="1"><b>
  55. <li>Guests: {guest_on}
  56. <br/><li>Members: {member_on}
  57. <br/><li>Staff:  {staff_on}
  58. </b></font><br></td></b></font>
  59. </td>
  60. <td class="window1" valign="middle" align="left" width="60%">
  61.  
  62. <center><font size="3"><b><u>Currently Online</u></b></font></center>
  63. <br>
  64. <font size="1"><center><b>There is now {online_total} member{online_plural} online.<b>Currently logged in are:</b>
  65. <br><br>
  66. <font size="1"><center>{online_str}</font></center>
  67. <br>
  68. </td>
  69. <td class="window1" width="19%" align="left">
  70.  
  71. <style>img { border: 0px; }</style>
  72.  
  73. <center><font size="2"><b><u>Links & Events</u></b></font></center>
  74. <br>
  75. <font size="1"><b>
  76. {if:events}
  77. *Number Of Event{event_plural}: {event_total}<br/>{/if:events}
  78. {ifnot:events}*No Events To Display<br>{/ifnot:events}
  79. {if:birthdays}*Number Of Birthday{birthday_plural}: {birthday_total}<br/>{/if:birthdays}
  80. {ifnot:birthdays}*No Birthdays Today<br>{/ifnot:birthdays}
  81. *MoM of January; Zain
  82. </b></font><br></td></tr></table>
  83. <tr>
  84. <td>
  85. <table cellpadding="0" cellspacing="0" border="1" width="100%">
  86. <td class="title1" align="center" width="100%">
  87.  
  88. <center><font size="3"><b><u>Affiliates</u></b></font></center>
  89.  
  90. <br>
  91.  
  92. <script type="text/javascript">
  93. /*Random Affiliate Display*/
  94.  
  95. /*Only Edit Below*/
  96.  
  97. var affiliates = Array();
  98. affiliates[1] = Array('http://heartwrrr.proboards82.com', 'http://i25.photobucket.com/albums/c51/dog199200/Digimon/untitled-1.gif', 'Digimon Shadows');
  99. affiliates[2] = Array('http://dog1992.proboards20.com', 'http://i25.photobucket.com/albums/c51/dog199200/Inuyasha%20Images/inuyashaye8.gif', 'Inuyasha World');
  100. affiliates[3] = Array('http://www.pheonixemerald.proboards83.com', 'http://i25.photobucket.com/albums/c51/dog199200/PE%20%20Images/EmeraldPhoenxaffilaite.gif', 'Phoenix Emerald');
  101. affiliates[4] = Array('http://itchigobleach.proboards59.com', 'http://i25.photobucket.com/albums/c51/dog199200/53a8hox.gif', 'Bleach Legend Of The Shadow Hollow');
  102. affiliates[5] = Array('http://fullmetalme.proboards49.com/', 'http://i25.photobucket.com/albums/c51/dog199200/FMA%20Images/FMAAJBanner.gif', 'FMA Advanced Journey');
  103. affiliates[6] = Array('http://rockleewashere.proboards58.com/index.cgi', 'http://i25.photobucket.com/albums/c51/dog199200/Naruto/403747650_31078d9dbf.gif', 'Naruto Demonic Illusions');
  104. affiliates[7] = Array('http://omegavampire.proboards57.com/index.cgi?', 'http://i25.photobucket.com/albums/c51/dog199200/Omega%20Blood%20Lust/omegabloodaffiliate.gif', 'Omega Blood Lust');
  105. affiliates[8] = Array('http://pokemondshelp.proboards62.com', 'http://i25.photobucket.com/albums/c51/dog199200/Pokemon/pokemonaffilaite.png', 'Pokemon DS Help');
  106.  
  107. /*Only Edit Above*/
  108.  
  109. var rand = Math.floor(Math.random() * affiliates.length);
  110.  
  111. for(i=0; i<8; i++) {
  112. var rand = Math.floor(Math.random() * affiliates.length);
  113. document.write('<a href="'+ affiliates[rand][0] +'"><img src="'+ affiliates[rand][1] +'" alt="'+ affiliates[rand][2] +'" /></a>');
  114. }
  115. </script>
  116.  
  117. <br>
  118.  
  119. <div align="left"><a href="board/viewallafiliate">View All</a></div>
  120.  
  121. </td>
  122. </tr>
  123. </table>
  124. </td>
  125. </tr>
  126. </td></tr>
  127. </table>
 


What you needed to do was use the {if:event} and {ifnot:event} (same for birthday) to hide the stuff when there isn't a birthday.

I have fixed it! {Smile}
dog199200
Guest
Re: Info Center Fix (21st Jan 08 at 8:51pm UTC)
hey thank and i'll keep that in mind
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Info Center Fix (21st Jan 08 at 9:03pm UTC)
No worries! {Smile}
 Printable View

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