vForums Support :: Programming & Coding :: Code Requests & Support :: [F] Info Center Fix - View Topic
 |  |
| 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: - <table align="center" cellpadding="0" cellspacing="0" class="border" width="100%" id="info_center">
- <tr>
- <td>
- <table cellpadding="0" cellspacing="0" border="0" width="100%">
- <tr>
- </td>
- </tr>
- <tr>
- <table cellpadding="0" cellspacing="0" border="1" width="100%">
- <td class="windowbg" valign="middle" align="center" width="21%">
-
- <center><font size="2"><b><u>Private Messages</u></b></font></center>
- <div align="left"><br><br>
- <font size="1"><b><a href="/action/pm/"><li>Your New PM's: </a> {new_pms}
- <a href="action/pm&view=1"><li>Your PM Inbox</a> {total_pms}
- <a href="action/pmprefs"><li>Your PM Preferences</a>
- </b></font></td>
- <td class="windowbg" valign="middle" width="58%"></div>
-
- <center><font size="3"><b><u>Forum Statistics</u></b></font>
-
- <br><br>
-
- <font size="1">
- *Last Post Is {last_post}, made by {last_post_user}, {last_post_date}.<br><br>
-
- *Welcome the newest members to the Forum: <br>
- {newest_members}</font><br></center>
-
- </td>
- <td class="windowbg" valign="center" align="center" width="21%">
-
- <center><font size="2"><b><u>Board Stats</u></b></font></center>
- <div align="left"><br>
- <font size="1"><b>
- *Registered Members: <a href="action/members">{total_members}</a><br/>
- *Number of Topics: {total_topics}<br/>
- *Number of Posts: {total_posts}<br />
- *Number of Boards: {total_boards}<br/>
- *Number of Categories: {total_categories}<br/>
- <a href="action/recent">*View Last 15 Posts*</a></b></font></div></td></tr></table>
- <tr>
- <td>
- <table cellpadding="0" cellspacing="0" border="0" width="100%">
- <tr>
- </td>
- </tr>
- <tr>
- <table cellpadding="1" cellspacing="0" border="1" width="100%">
- <td class="windowbg" valign="middle" align="left" width="19%">
-
- <center><font size="2"><b><u>Online Statistics</u></b></font></center>
- <br>
- <font size="1"><b>
- <li>Guests: {guest_on}
- <br/><li>Members: {member_on}
- <br/><li>Staff: {staff_on}
- </b></font><br></td></b></font>
- </td>
- <td class="windowbg" valign="middle" align="left" width="60%">
-
- <center><font size="3"><b><u>Currently Online</u></b></font></center>
- <br>
- <font size="1"><center><b>There is now {online_total} member(s) online.<b>Currently logged in are:</b>
- <br><br>
- <font size="1"><center>{online_str}</font></center>
- <br>
- </td>
- <td class="windowbg" width="19%" align="left">
-
- <style>img { border: 0px; }</style>
-
- <center><font size="2"><b><u>Links & Events</u></b></font></center>
- <br>
- <font size="1"><b>
- *Number Of Event{event_plural}: {event_total}<br/>
- *Number Of Birthday{birthday_plural}: {birthday_total}<br/>
- *MoM of January; Zain
- </b></font><br></td></tr></table>
- <tr>
- <td>
- <table cellpadding="0" cellspacing="0" border="1" width="100%">
- <td class="catbg" align="center" width="100%">
-
- <center><font size="3"><b><u>Affiliates</u></b></font></center>
-
- <br>
-
- <script type="text/javascript">
- /*Random Affiliate Display*/
-
- /*Only Edit Below*/
-
- var affiliates = Array();
- affiliates[1] = Array('http://heartwrrr.proboards82.com', 'http://i25.photobucket.com/albums/c51/dog199200/Digimon/untitled-1.gif', 'Digimon Shadows');
- affiliates[2] = Array('http://dog1992.proboards20.com', 'http://i25.photobucket.com/albums/c51/dog199200/Inuyasha%20Images/inuyashaye8.gif', 'Inuyasha World');
- affiliates[3] = Array('http://www.pheonixemerald.proboards83.com', 'http://i25.photobucket.com/albums/c51/dog199200/PE%20%20Images/EmeraldPhoenxaffilaite.gif', 'Phoenix Emerald');
- affiliates[4] = Array('http://itchigobleach.proboards59.com', 'http://i25.photobucket.com/albums/c51/dog199200/53a8hox.gif', 'Bleach Legend Of The Shadow Hollow');
- affiliates[5] = Array('http://fullmetalme.proboards49.com/', 'http://i25.photobucket.com/albums/c51/dog199200/FMA%20Images/FMAAJBanner.gif', 'FMA Advanced Journey');
- affiliates[6] = Array('http://rockleewashere.proboards58.com/index.cgi', 'http://i25.photobucket.com/albums/c51/dog199200/Naruto/403747650_31078d9dbf.gif', 'Naruto Demonic Illusions');
- affiliates[7] = Array('http://omegavampire.proboards57.com/index.cgi?', 'http://i25.photobucket.com/albums/c51/dog199200/Omega%20Blood%20Lust/omegabloodaffiliate.gif', 'Omega Blood Lust');
- affiliates[8] = Array('http://pokemondshelp.proboards62.com', 'http://i25.photobucket.com/albums/c51/dog199200/Pokemon/pokemonaffilaite.png', 'Pokemon DS Help');
-
- /*Only Edit Above*/
-
- var rand = Math.floor(Math.random() * affiliates.length);
-
- for(i=0; i<8; i++) {
- var rand = Math.floor(Math.random() * affiliates.length);
- document.write('<a href="'+ affiliates[rand][0] +'"><img src="'+ affiliates[rand][1] +'" alt="'+ affiliates[rand][2] +'" /></a>');
- }
- </script>
-
- <br>
-
- <div align="left"><a href="board/viewallafiliate">View All</a></div>
-
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </td></tr>
- </table>
| |
| Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | 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...
window1 = windowbg window1 = windowbg2
(kind of anyway)
also catbg doesn't exist. catbg = title2 titlebg = title1
try this code:
 Code: - <table align="center" cellpadding="0" cellspacing="0" class="border" width="100%" id="info_center">
- <tr>
- <td>
- <table cellpadding="0" cellspacing="0" border="0" width="100%">
- <tr>
- </td>
- </tr>
- <tr>
- <table cellpadding="0" cellspacing="0" border="1" width="100%">
- <td class="window1" valign="middle" align="center" width="21%">
-
- <center><font size="2"><b><u>Private Messages</u></b></font></center>
- <div align="left"><br><br>
- <font size="1"><b><a href="/action/pm/"><li>Your New PM's: </a> {new_pms}
- <a href="action/pm&view=1"><li>Your PM Inbox</a> {total_pms}
- <a href="action/pmprefs"><li>Your PM Preferences</a>
- </b></font></td>
- <td class="window1" valign="middle" width="58%"></div>
-
- <center><font size="3"><b><u>Forum Statistics</u></b></font>
-
- <br><br>
-
- <font size="1">
- *Last Post Is {last_post}, made by {last_post_user}, {last_post_date}.<br><br>
-
- *Welcome the newest members to the Forum: <br>
- {newest_members}</font><br></center>
-
- </td>
- <td class="window1" valign="center" align="center" width="21%">
-
- <center><font size="2"><b><u>Board Stats</u></b></font></center>
- <div align="left"><br>
- <font size="1"><b>
- *Registered Members: <a href="action/members">{total_members}</a><br/>
- *Number of Topics: {total_topics}<br/>
- *Number of Posts: {total_posts}<br />
- *Number of Boards: {total_boards}<br/>
- *Number of Categories: {total_categories}<br/>
- <a href="action/recent">*View Last 15 Posts*</a></b></font></div></td></tr></table>
- <tr>
- <td>
- <table cellpadding="0" cellspacing="0" border="0" width="100%">
- <tr>
- </td>
- </tr>
- <tr>
- <table cellpadding="1" cellspacing="0" border="1" width="100%">
- <td class="window1" valign="middle" align="left" width="19%">
-
- <center><font size="2"><b><u>Online Statistics</u></b></font></center>
- <br>
- <font size="1"><b>
- <li>Guests: {guest_on}
- <br/><li>Members: {member_on}
- <br/><li>Staff: {staff_on}
- </b></font><br></td></b></font>
- </td>
- <td class="window1" valign="middle" align="left" width="60%">
-
- <center><font size="3"><b><u>Currently Online</u></b></font></center>
- <br>
- <font size="1"><center><b>There is now {online_total} member{online_plural} online.<b>Currently logged in are:</b>
- <br><br>
- <font size="1"><center>{online_str}</font></center>
- <br>
- </td>
- <td class="window1" width="19%" align="left">
-
- <style>img { border: 0px; }</style>
-
- <center><font size="2"><b><u>Links & Events</u></b></font></center>
- <br>
- <font size="1"><b>
- {if:events}
- *Number Of Event{event_plural}: {event_total}<br/>{/if:events}
- {ifnot:events}*No Events To Display<br>{/ifnot:events}
- {if:birthdays}*Number Of Birthday{birthday_plural}: {birthday_total}<br/>{/if:birthdays}
- {ifnot:birthdays}*No Birthdays Today<br>{/ifnot:birthdays}
- *MoM of January; Zain
- </b></font><br></td></tr></table>
- <tr>
- <td>
- <table cellpadding="0" cellspacing="0" border="1" width="100%">
- <td class="title1" align="center" width="100%">
-
- <center><font size="3"><b><u>Affiliates</u></b></font></center>
-
- <br>
-
- <script type="text/javascript">
- /*Random Affiliate Display*/
-
- /*Only Edit Below*/
-
- var affiliates = Array();
- affiliates[1] = Array('http://heartwrrr.proboards82.com', 'http://i25.photobucket.com/albums/c51/dog199200/Digimon/untitled-1.gif', 'Digimon Shadows');
- affiliates[2] = Array('http://dog1992.proboards20.com', 'http://i25.photobucket.com/albums/c51/dog199200/Inuyasha%20Images/inuyashaye8.gif', 'Inuyasha World');
- affiliates[3] = Array('http://www.pheonixemerald.proboards83.com', 'http://i25.photobucket.com/albums/c51/dog199200/PE%20%20Images/EmeraldPhoenxaffilaite.gif', 'Phoenix Emerald');
- affiliates[4] = Array('http://itchigobleach.proboards59.com', 'http://i25.photobucket.com/albums/c51/dog199200/53a8hox.gif', 'Bleach Legend Of The Shadow Hollow');
- affiliates[5] = Array('http://fullmetalme.proboards49.com/', 'http://i25.photobucket.com/albums/c51/dog199200/FMA%20Images/FMAAJBanner.gif', 'FMA Advanced Journey');
- affiliates[6] = Array('http://rockleewashere.proboards58.com/index.cgi', 'http://i25.photobucket.com/albums/c51/dog199200/Naruto/403747650_31078d9dbf.gif', 'Naruto Demonic Illusions');
- affiliates[7] = Array('http://omegavampire.proboards57.com/index.cgi?', 'http://i25.photobucket.com/albums/c51/dog199200/Omega%20Blood%20Lust/omegabloodaffiliate.gif', 'Omega Blood Lust');
- affiliates[8] = Array('http://pokemondshelp.proboards62.com', 'http://i25.photobucket.com/albums/c51/dog199200/Pokemon/pokemonaffilaite.png', 'Pokemon DS Help');
-
- /*Only Edit Above*/
-
- var rand = Math.floor(Math.random() * affiliates.length);
-
- for(i=0; i<8; i++) {
- var rand = Math.floor(Math.random() * affiliates.length);
- document.write('<a href="'+ affiliates[rand][0] +'"><img src="'+ affiliates[rand][1] +'" alt="'+ affiliates[rand][2] +'" /></a>');
- }
- </script>
-
- <br>
-
- <div align="left"><a href="board/viewallafiliate">View All</a></div>
-
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </td></tr>
- </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! | |
| 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]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Info Center Fix (21st Jan 08 at 9:03pm UTC) | | No worries!
| |
| |
 |  |
|