vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [F] Info Center Code Fix... - View Topic
Topic Rating: *****
Printable View
This topic was locked 10th Jul 08 at 7:16pm by Michael
dog199200
Guest
[F] Info Center Code Fix... (8th Jul 08 at 8:50pm UTC)
Can someone find out where this code is broken....It works, but it seems as if its not closed right or something and I can not see where.

Code:
 
  1. <table align="center" cellpadding="0" cellspacing="1" class="border" width="100%" id="info_center">
  2. <tr>
  3. <td class="title1" valign="middle" align="center" width="21%">
  4.  
  5. <center><font size="2"><b><u>Private Messages</u></b></font></center>
  6.  
  7. </td>
  8. <td class="title1" valign="middle" width="58%">
  9.  
  10. <center><font size="2"><b><u>Forum Statistics</u></b></font></center>
  11.  
  12. </td>
  13. <td class="title1" valign="center" align="center" width="21%">
  14.  
  15. <center><font size="2"><b><u>Online Statistics</u></b></font></center>
  16.  
  17. </td>
  18. </tr>
  19. <tr>
  20. <td class="window1" valign="middle" align="center" width="21%">
  21.  
  22.  
  23. {if:guest}<a href="action/login">Sign In</a> Or <a href="action/register">Register</a> <br>To View{/if:guest}
  24.  
  25. {if:member}
  26. <div align="left">
  27. <font size="1"><b>
  28.   *Your New PM's:
  29. <a href="/action/pm/">{new_pms}</a><br/>
  30.   *Your PM Inbox
  31. <a href="action/pm&view=1">{total_pms}</a>  <br/>
  32.   *<a href="action/pmprefs">Set PM Preference</a>
  33. </b></font>{/if:member}
  34.  
  35. </td>
  36. <td class="window1" valign="left" align=center width="58%">
  37.  
  38. <font size="1">
  39. *Last Post Is {last_post}, made by  {last_post_user}, {last_post_date}.<br/><br/>
  40.  
  41. *Welcome the newest member to the Forum:
  42. {newest_members:1}</font><br/>
  43.  
  44. </td>
  45. <td class="window1" valign="center" align="left" width="21%">
  46.  
  47. <font size="1">
  48.   *Guests: {guest_on}
  49. <br/>  *Members: {member_on}
  50. <br/>  *Staff:  {staff_on}
  51. </b></font><br/></td></b></font>
  52.  
  53. </td>
  54. </tr>
  55. <tr>
  56. <td class="title1" valign="middle" align="middle" width="19%">
  57.  
  58. <center><font size="2"><b><u>Links & Events</u></b></font></center>
  59.  
  60. </td>
  61. <td class="title1" valign="middle" align="middle" width="60%">
  62.  
  63. <center><font size="2"><b><u>Currently Online</u></b></font></center>
  64.  
  65. </td>
  66. <td class="title1" width="19%" align="middle">
  67.  
  68. <center><font size="2"><b><u>Board Stats</u></b></font></center>
  69.  
  70. </td>
  71. </tr>
  72. <tr>
  73. <td class="window1" valign="middle" align="left" width="19%">
  74.  
  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 May; <font color=orange><a href="http://fmaadvanced.virtualforums.co.uk/action/view_profile/user/zain/">zain</a></font>
  82. </b></font>
  83.  
  84. </td>
  85. <td class="window1" valign="middle" align="left" width="60%">
  86.  
  87. <font size="1"><center><b>There is now {online_total} member{online_plural} online.<b> Currently logged in are:</b>
  88. <br/>
  89. <font size="1"><center>{online_str}
  90. <br/>
  91. <br/>
  92. Users Online Today:<br>{today_str}
  93. </font></center>
  94. <br/>
  95.  
  96. </td>
  97. <td class="window1" width="19%" align="left">
  98.  
  99.  
  100. <font size="1"><b>
  101.   *Total Members: <a href="action/members">{total_members}</a><br/>
  102.   *# Of  Topics: {total_topics}<br/>
  103.   *# Of  Posts: {total_posts}<br />
  104.   *# Of Boards: {total_boards}<br/>
  105.   *# Of Categories: {total_categories}<br/>
  106. </b></font>
  107.  
  108. </td></tr></table>
  109. <table align="center" cellpadding="0" cellspacing="1" class="border" width="100%" id="info_center">
  110. <tr>
  111. <td class="title1" align="center" width="100%">
  112.  
  113. <center><font size="3"><b><u>Affiliates</u></b></font></center></td>
  114.  
  115. </tr>
  116. <tr>
  117. <td class="window1" align="center" width="100%">
  118.  
  119. <script type="text/javascript">
  120. /*Random Affiliate Display*/
  121.  
  122. /*Only Edit Below*/
  123.  
  124. var affiliates = Array();
  125. affiliates[0] = Array('http://pokemondshelp.proboards62.com', 'http://i25.photobucket.com/albums/c51/dog199200/Pokemon/pokemonaffilaite.png', 'Pokemon DS Help');
  126. affiliates[1] = Array('http://keiraalchemist.proboards82.com', 'http://h1.ripway.com/webmasterjesse/Affiliate/FAW.png', 'Fullmetal Alchemist World');
  127. affiliates[2] = Array('http://trinityforsaken.proboards79.com/', 'http://h1.ripway.com/jasjitk/TBF/affiliate.jpg', 'Trinity Blood Forsaken');
  128. affiliates[3] = Array('http://hogwartz4.proboards85.com/index.cgi?', 'http://www.geocities.com/phoenixrayne4/hogaffil.png', 'Us Against The World');
  129. affiliates[4] = Array('http://101support.proboards43.com', 'http://img171.imageshack.us/img171/1794/e3ke7.gif', 'eCreations');
  130. affiliates[5] = Array('http://fma.vforums.co.uk', 'http://i185.photobucket.com/albums/x20/magedesigns/fmaaffiliate.gif', 'Fullmetal Alchemist RPG V3');
  131. affiliates[5] = Array('http://ffnation.vforums.co.uk', 'http://i185.photobucket.com/albums/x20/magedesigns/ffn/affiliate/FFN_affiliate.gif', 'FF Nation');
  132. affiliates[6] = Array('http://freunion.vforums.co.uk', 'http://i185.photobucket.com/albums/x20/magedesigns/ffn/affiliate/frsephaffiliate.gif', 'FF Reunion');
  133. affiliates[7] = Array('http://magedesigns.virtualforums.co.uk', 'http://i185.photobucket.com/albums/x20/magedesigns/vfmdskin/vfmdaffiliate.gif', 'Mage Designs');
  134.  
  135. affiliates[8] = Array('http://zainbruger.proboards50.com/index.cgi', 'http://i231.photobucket.com/albums/ee218/shaadownut/abbutton23.jpg', 'Alchamists Blood');
  136.  
  137.  
  138. /*Only Edit Above*/
  139.  
  140. for(i=0; i<7; i++) {
  141. var rand = Math.floor(Math.random() * affiliates.length);
  142. document.write('<a href="'+ affiliates[rand][0] +'"><img src="'+ affiliates[rand][1] +'" alt="'+ affiliates[rand][2] +'" /></a>');
  143. affiliates.splice(rand, 1);
  144. }
  145. </script>
  146. <br/>
  147.  
  148. <div align="left"><a href="board/viewallafiliate">View All</a> ~ <script>
  149. function affPopup(){ prompt("Press CTRL + C to copy.","<a href='http://fmaadvanced.virtualforums.co.uk'><img src='http://i25.photobucket.com/albums/c51/dog199200/FMA%20Images/FMAAJBanner.gif' border='0' alt='Fullmetal Alchemist Advanced Journey' title='Fullmetal Alchemist Advanced Journey' /></a>"); }
  150. </script>
  151. <a href="javascript: affPopup();">Get Affiliate Code</a>
  152. </div>
  153.  
  154. </td>
  155. </tr>
  156. </table>
  157. </td>
  158. </tr>
  159. </table>
 
Graham
Support Administrator
*****

[Avatar]

Posts: 1,642
Status: Offline
Gender: Male
Location: Sussex, UK
Age: 40
Joined:  

Additional Groups:
Support Team
***


Reputation: 57%  


pmwww
Re: Info Center Code Fix... (8th Jul 08 at 8:57pm UTC)
I could be wrong, but i think it's the spare </font> tag on line 93. Remove that and see if it works {Smile}
dog199200
Guest
Re: Info Center Code Fix... (8th Jul 08 at 9:15pm UTC)
if anything i'd be removing the <font size="1"> from line 89 and using that </font> to expand the feild instead of multiple font tags for the same size, but that doesn't work

if you look here, http://www.fmaadvanced.vforums.co.uk, if you cant tell its a little off, the skin changer is pushed to the side because of the info center and the quick login is extremely stretched accost the screen as well.
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 Code Fix... (8th Jul 08 at 9:47pm UTC)
1 x </div>

Missing

1 x </b>
1 x </font>
2 x </td>
1 x <font size="1">
1 x <center>
1 x </tr>
1 x </table>
Extra

If that's the COMPLETE code then the code below is the altered version with unclosed, or unopened tags removed.

Code:
 
  1. <table align="center" cellpadding="0" cellspacing="1" class="border" width="100%" id="info_center">
  2.     <tr>
  3.         <td class="title1" valign="middle" align="center" width="21%">
  4.             <center><font size="2"><b><u>Private Messages</u></b></font></center>
  5.         </td>
  6.         <td class="title1" valign="middle" width="58%">
  7.             <center><font size="2"><b><u>Forum Statistics</u></b></font></center>
  8.         </td>
  9.         <td class="title1" valign="center" align="center" width="21%">
  10.             <center><font size="2"><b><u>Online Statistics</u></b></font></center>
  11.         </td>
  12.     </tr>
  13.     <tr>
  14.         <td class="window1" valign="middle" align="center" width="21%">
  15.         {if:guest}<a href="action/login">Sign In</a> Or <a href="action/register">Register</a> <br>To View{/if:guest}
  16.         {if:member}
  17.         <div align="left">
  18.         <font size="1"><b>
  19.           *Your New PM's:
  20.         <a href="/action/pm/">{new_pms}</a><br/>
  21.           *Your PM Inbox
  22.         <a href="action/pm&view=1">{total_pms}</a>  <br/>
  23.           *<a href="action/pmprefs">Set PM Preference</a>
  24.         </b></font></div>{/if:member}
  25.  
  26.     </td>
  27.     <td class="window1" valign="left" align=center width="58%">
  28.         <font size="1">
  29.         *Last Post Is {last_post}, made by  {last_post_user}, {last_post_date}.<br/><br/>
  30.  
  31.         *Welcome the newest member to the Forum:
  32.         {newest_members:1}</font><br/>
  33.  
  34.     </td>
  35.     <td class="window1" valign="center" align="left" width="21%">
  36.  
  37.         <font size="1">
  38.           *Guests: {guest_on}
  39.         <br/>  *Members: {member_on}
  40.         <br/>  *Staff:  {staff_on}
  41.         </b></font><br/>
  42.     </td>
  43.         
  44.  
  45.     </tr>
  46.     <tr>
  47.         <td class="title1" valign="middle" align="middle" width="19%">
  48.  
  49.             <center><font size="2"><b><u>Links & Events</u></b></font></center>
  50.  
  51.         </td>
  52.         <td class="title1" valign="middle" align="middle" width="60%">
  53.  
  54.             <center><font size="2"><b><u>Currently Online</u></b></font></center>
  55.  
  56.         </td>
  57.         <td class="title1" width="19%" align="middle">
  58.  
  59.             <center><font size="2"><b><u>Board Stats</u></b></font></center>
  60.  
  61.         </td>
  62.     </tr>
  63.     <tr>
  64.         <td class="window1" valign="middle" align="left" width="19%">
  65.  
  66.             <font size="1"><b>
  67.             {if:events}
  68.               *Number Of Event{event_plural}: {event_total}<br/>{/if:events}
  69.             {ifnot:events}  *No Events To Display<br>{/ifnot:events}
  70.             {if:birthdays}  *Number Of Birthday{birthday_plural}: {birthday_total}<br/>{/if:birthdays}
  71.             {ifnot:birthdays}  *No Birthdays Today<br>{/ifnot:birthdays}
  72.               *MoM of May; <font color=orange><a href="http://fmaadvanced.virtualforums.co.uk/action/view_profile/user/zain/">zain</a></font>
  73.             </b></font>
  74.  
  75.         </td>
  76.         <td class="window1" valign="middle" align="left" width="60%">
  77.  
  78.             <font size="1"><center><b>There is now {online_total} member{online_plural} online.<b> Currently logged in are:</b>
  79.             <br/>
  80.             {online_str}
  81.             <br/>
  82.             <br/>
  83.             Users Online Today:<br>{today_str}
  84.             </font></center>
  85.             <br/>
  86.  
  87.         </td>
  88.         <td class="window1" width="19%" align="left">
  89.  
  90.  
  91.             <font size="1"><b>
  92.               *Total Members: <a href="action/members">{total_members}</a><br/>
  93.               *# Of  Topics: {total_topics}<br/>
  94.               *# Of  Posts: {total_posts}<br />
  95.               *# Of Boards: {total_boards}<br/>
  96.               *# Of Categories: {total_categories}<br/>
  97.             </b></font>
  98.  
  99.         </td>
  100.     </tr>
  101. </table>
  102. <table align="center" cellpadding="0" cellspacing="1" class="border" width="100%" id="info_center">
  103.     <tr>
  104.         <td class="title1" align="center" width="100%">
  105.             <center><font size="3"><b><u>Affiliates</u></b></font></center>
  106.         </td>
  107.     </tr>
  108.     <tr>
  109.         <td class="window1" align="center" width="100%">
  110.             <script type="text/javascript">
  111.             /*Random Affiliate Display*/
  112.  
  113.             /*Only Edit Below*/
  114.  
  115.             var affiliates = Array();
  116.             affiliates[0] = Array('http://pokemondshelp.proboards62.com', 'http://i25.photobucket.com/albums/c51/dog199200/Pokemon/pokemonaffilaite.png', 'Pokemon DS Help');
  117.             affiliates[1] = Array('http://keiraalchemist.proboards82.com', 'http://h1.ripway.com/webmasterjesse/Affiliate/FAW.png', 'Fullmetal Alchemist World');
  118.             affiliates[2] = Array('http://trinityforsaken.proboards79.com/', 'http://h1.ripway.com/jasjitk/TBF/affiliate.jpg', 'Trinity Blood Forsaken');
  119.             affiliates[3] = Array('http://hogwartz4.proboards85.com/index.cgi?', 'http://www.geocities.com/phoenixrayne4/hogaffil.png', 'Us Against The World');
  120.             affiliates[4] = Array('http://101support.proboards43.com', 'http://img171.imageshack.us/img171/1794/e3ke7.gif', 'eCreations');
  121.             affiliates[5] = Array('http://fma.vforums.co.uk', 'http://i185.photobucket.com/albums/x20/magedesigns/fmaaffiliate.gif', 'Fullmetal Alchemist RPG V3');
  122.             affiliates[5] = Array('http://ffnation.vforums.co.uk', 'http://i185.photobucket.com/albums/x20/magedesigns/ffn/affiliate/FFN_affiliate.gif', 'FF Nation');
  123.             affiliates[6] = Array('http://freunion.vforums.co.uk', 'http://i185.photobucket.com/albums/x20/magedesigns/ffn/affiliate/frsephaffiliate.gif', 'FF Reunion');
  124.             affiliates[7] = Array('http://magedesigns.virtualforums.co.uk', 'http://i185.photobucket.com/albums/x20/magedesigns/vfmdskin/vfmdaffiliate.gif', 'Mage Designs');
  125.  
  126.             affiliates[8] = Array('http://zainbruger.proboards50.com/index.cgi', 'http://i231.photobucket.com/albums/ee218/shaadownut/abbutton23.jpg', 'Alchamists Blood');
  127.  
  128.  
  129.             /*Only Edit Above*/
  130.  
  131.             for(i=0; i<7; i++) {
  132.             var rand = Math.floor(Math.random() * affiliates.length);
  133.             document.write('<a href="'+ affiliates[rand][0] +'"><img src="'+ affiliates[rand][1] +'" alt="'+ affiliates[rand][2] +'" /></a>');
  134.             affiliates.splice(rand, 1);
  135.             }
  136.             </script>
  137.             <br/>
  138.  
  139.             <div align="left"><a href="board/viewallafiliate">View All</a> ~ <script>
  140.             function affPopup(){ prompt("Press CTRL + C to copy.","<a href='http://fmaadvanced.virtualforums.co.uk'><img src='http://i25.photobucket.com/albums/c51/dog199200/FMA%20Images/FMAAJBanner.gif' border='0' alt='Fullmetal Alchemist Advanced Journey' title='Fullmetal Alchemist Advanced Journey' /></a>"); }
  141.             </script>
  142.             <a href="javascript: affPopup();">Get Affiliate Code</a>
  143.             </div>
  144.         </td>
  145.     </tr>
  146. </table>
  147.     </td>
  148.     </tr>
  149.     </table>
 


if it isn't the complete code, please repost the complete code! {Smile}
dog199200
Guest
Re: Info Center Code Fix... (8th Jul 08 at 11:26pm UTC)
ok taht works, but the login is still stretched out and the skin choose still is pushed to teh side
dog199200
Guest
Re: Info Center Code Fix... (10th Jul 08 at 7:01pm UTC)
bump
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 Code Fix... (10th Jul 08 at 7:11pm UTC)
Fixed! {Smile}
 Printable View

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