Announcement

Collapse
No announcement yet.

Need Help with some coding

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need Help with some coding

    I've got a side bar hack installed that works fine, except for one problem.

    While everything works fine in IE when I collapse my forum boards on the forum home page. If I view my forum home using Firefox, I've noticed that when I load my forum home page, it's loading the forum boards in the center from "bottom to top", instead of "top to bottom" like it should do.

    It doesn't do this in IE!

    Then I noticed in Firefox, if I collapse my forum boards one by one. When you get to the 4rd from top (or any 4th catergory collapsed). It starts to move the all the boards sections down away from the navbar, further and further as you collapse more - which is totally wrong. I've attached 3 images so you can see what I mean better.

    EDIT:
    Problem is now fixed

    I've also attached my forumhome code for a coder to look at to try and spot were the error is that's causing this to happen in Firefox.

    Code:
    $stylevar[htmldoctype]
    <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
    <head>
    $headinclude
     <!-- no cache headers -->
     <meta http-equiv="Pragma" content="no-cache" />
     <meta http-equiv="Expires" content="-1" />
     <meta http-equiv="Cache-Control" content="no-cache" />
     <!-- end no cache headers -->
     <title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
    </head>
    <body>
    $header
    $navbar
    <!-- Sponsored Links Start -->
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <thead>
    <tr>
    <td class="tcat"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('sponsored_links')">
            <img id="collapseimg_sponsored_links" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_sponsored_links].gif" alt="" border="0" /></a>
    <!-- Title Start -->
    Sponsored Links
    <!-- Title End -->
    </td>
    </tr>
    </thead>
    <tbody id="collapseobj_sponsored_links" style="$vbcollapse[collapseobj_sponsored_links]">
    <tr>
    <td class="alt1">
    <!-- Text Start -->
    <center>
    <script type="text/javascript"><!--
    google_ad_client = "pub-5453542771580117";
    google_ad_width = 728;
    google_ad_height = 15;
    google_ad_format = "728x15_0ads_al_s";
    google_ad_channel ="4161498870";
    google_color_border = "F5F5F5";
    google_color_bg = "F5F5F5";
    google_color_link = "22229C";
    google_color_url = "008000";
    google_color_text = "000000";
    //--></script>
    <script type="text/javascript"
      src="[URL="http://pagead2.googlesyndication.com/pagead/show_ads.js"]http://pagead2.googlesyndication.com/pagead/show_ads.js[/URL]">
    </script>
    </center>
    <!-- Text End -->
    </td>
    </tr>
    </tbody>
    </table>
    <!-- Sponsored Links End -->
    <br />
    <!-- left side block start -->
    <table cellpadding="0" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
    <tr>
    <td width="20%" valign="top" >
    <div style="padding-right:15px;">
    <!-- what's going on box -->
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"  align="center">
    <thead>
            <tr>
      <td class="thead">Main Menu</td>
     </tr>
     <if condition="$show['guest']">
     <!-- guest welcome message -->
     <tr>
      <td class="tcat"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
     </tr>
     <tr>
      <td class="alt1">
       <phrase 1="faq.php?$session[sessionurl]" 2="register.php?$session[sessionurl]">$vbphrase[first_visit_message]</phrase>
      </td>
     </tr>
     <!-- / guest welcome message -->
     </if>
     <tr>
      <td class="tcat">
       <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a><phrase 1="$vboptions[bbtitle]">Forum Stats</phrase></td>
     </tr>
    </thead>
    <tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
     <tr>
      <td class="alt1" width="100%">
      <div class="smallfont">
       <div>$vbphrase[threads]: $totalthreads<br />     $vbphrase[posts]: $totalposts<br />
       $vbphrase[members]: $numbermembers</div>
       <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
      </div>
      </td>
     </tr>
    </tbody>
    <if condition="$show['birthdays']">
    <!-- today's birthdays start -->
    <tbody>
     <tr>
      <td class="thead">
       <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
       <a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1">$vbphrase[todays_birthdays]
      </td>
     </tr>
    </tbody>
    <tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
     <tr>
      <td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
     </tr>
    </tbody>
    <!-- today's birthdays end -->
    </if>
    <if condition="$show['upcomingevents']">
    <tbody>
     <tr>
      <td class="thead">
       <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
       <if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]"><a href="calendar.php?$session[sessionurl]">&nbsp;$vbphrase[upcoming_events_for_the_next_x_days]</a></if>
      </td>
     </tr>
    </tbody>
    <tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
     <tr>
      <td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
     </tr>
    </tbody>
    </if>
    <!-- bookmark site start -->
    <tbody>
     <tr>
      <td class="tcat">
       <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('bookmark_site')"><img id="collapseimg_bookmark_site" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_bookmark_site].gif" alt="" border="0" /></a>
    <!-- title start -->
    Bookmark Site
    <!-- title end -->
      </td>
     </tr>
    </tbody>
    <tbody id="collapseobj_bookmark_site" style="$vbcollapse[collapseobj_bookmark_site]">
     <tr>
      <td class="alt2" width="100%">
    <!-- text start -->
    <center> 
    <a href="#" onclick="if (window.sidebar) { window.sidebar.addPanel('$vboptions[hometitle]', '$vboptions[homeurl]',''); } else if( document.all ) { window.external.AddFavorite( '$vboptions[homeurl]', '$vboptions[hometitle]'); } else if( window.opera &amp; window.print ) { return true; }">Bookmark Site</a>
    </center>
    <!-- text end -->
    </td>
    </tr>
    </tbody>
    <!-- bookmark site end -->
    <!-- site menu start -->
    <tbody>
     <tr>
      <td class="tcat">
       <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('site_menu')"><img id="collapseimg_site_menu" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_site_menu].gif" alt="" border="0" /></a>
    <!-- title start -->
    Site Menu
    <!-- title end -->
      </td>
     </tr>
    </tbody>
    <tbody id="collapseobj_site_menu" style="$vbcollapse[collapseobj_site_menu]">
     <tr>
      <td class="alt1" width="100%">
    <!-- text start -->
    <img src="images/buttons/lastpost.gif" border="0" alt="" /> <a href="homepage.php">Homepage</a>
    <br />
    <img src="images/buttons/lastpost.gif" border="0" alt="" /> <a href="index.php">Community</a>
    <!-- text end -->
    </td>
    </tr>
    </tbody>
    <!-- site menu end -->
    <!-- search site start -->
    <tbody>
     <tr>
      <td class="tcat">
       <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('search_site')"><img id="collapseimg_search_site" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_search_site].gif" alt="" border="0" /></a>
    <!-- title start -->
    Search Site
    <!-- title end -->
      </td>
     </tr>
    </tbody>
    <tbody id="collapseobj_search_site" style="$vbcollapse[collapseobj_search_site]">
     <tr>
      <td class="alt2" width="100%">
    <!-- text start -->
    <center>
    $vboptions[bbtitle]
    <br />
    <form method="get" action="search.php">
    <input type="text" name="q" size="16"
    maxlength="255" value="" />
    <br/>
    <input type="submit" value="Search" />
    </form>
    <br />
    <div class="smallfont">
    <a href="search.php">Advanced Search</a>
    </div>
    </center>
    <!-- text end -->
    </td>
    </tr>
    </tbody>
    <!-- search site end -->
    <!-- search other sites start -->
    <tbody>
     <tr>
      <td class="tcat">
       <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('search_other_sites')"><img id="collapseimg_search_other_sites" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_search_other_sites].gif" alt="" border="0" /></a>
    <!-- title start -->
    Search Other Sites
    <!-- title end -->
      </td>
     </tr>
    </tbody>
    <tbody id="collapseobj_search_other_sites" style="$vbcollapse[collapseobj_search_other_sites]">
     <tr>
      <td class="alt1" width="100%">
    <!-- text start -->
    <center>
    Google Web
    <br />
    <form method="get" action="[URL="http://www.google.com/search"]http://www.google.com/search[/URL]" target="_blank">
    <input type="text" name="q" size="16"
    maxlength="255" value="" />
    <br />
    <input type="submit" value="Search" />
    </form>
    <br />
    <br />
    Google Images
    <br />
    <form method="get" action="[URL="http://images.google.co.uk/images?q"]http://images.google.co.uk/images?q[/URL]=" target="_blank">
    <input type="text" name="q" size="16"
    maxlength="255" value="" />
    <br />
    <input type="submit" value="Search" />
    </form>
    <br />
    <br />
    Amazon
    <br />
    <form action="[URL="http://www.amazon.com/exec/obidos/external-search"]http://www.amazon.com/exec/obidos/external-search[/URL]" target="_blank">
    <input type="hidden" name="mode" value="blended" />
    <input type="hidden" name="tag" value="insert associate tag here" />
    <input type="text" name="keyword" size="16" maxlength="255" value="" />
    <br />
    <input type="submit" value="Search" />
    </form>
    </center>
    <!-- text end -->
    </td>
    </tr>
    </tbody>
    <!-- search other sites end -->
    <!-- paypal donations start -->
    <tbody>
     <tr>
      <td class="tcat">
       <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('paypal_donations')"><img id="collapseimg_paypal_donations" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_paypal_donations].gif" alt="" border="0" /></a>
    <!-- title start -->
    PayPal Donations
    <!-- title end -->
      </td>
     </tr>
    </tbody>
    <tbody id="collapseobj_paypal_donations" style="$vbcollapse[collapseobj_paypal_donations]">
     <tr>
      <td class="alt2" width="100%">
    <!-- text start -->
    <center>
    <b>Support the site!</b>
    </center>
    <br />
    <form action="[URL="https://www.paypal.com/cgi-bin/webscr"]https://www.paypal.com/cgi-bin/webscr[/URL]" target="_blank" method="post">
      <div align="center">
      <input type="hidden" name="cmd" value="_xclick" />
      <input type="hidden" name="business" value="[EMAIL="[email protected]"][email protected][/EMAIL]" />
      <input type="hidden" name="item_name" value="Website Support Donation" />
      <input type="hidden" name="no_note" value="1" />
      <input type="hidden" name="currency_code" value="GBP" />
      <input type="hidden" name="tax" value="0" />
        £ 
      <select name="amount">
        <option value="1.00">1.00</option>
        <option value="2.00">2.00</option>
        <option value="3.00">3.00</option>
        <option value="4.00">4.00</option>
        <option value="5.00">5.00</option>
        <option value="10.00">10.00</option>
        <option value="20.00">20.00</option>
        <option value="25.00">25.00</option>
        <option value="50.00">50.00</option>
        <option value="100.00">100.00</option>
      </select>
      </div>
    <br />
    <center>
    <span class="smallfont">
    Select Your Donation Amount
    <br />
    Then Press The Donate Button.
    </span>
    <br />
    <br />
    <fieldset class="fieldset" style="margin:0px 0px 0px 0px">
    <br />
       <input type="image" src="[URL="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif"]https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif[/URL]" alt="Make payments with PayPal - it's fast, free and secure!" />
    <br />
    <br />
    </fieldset>
    </center>
       </form>
    <!-- text end -->
    </td>
    </tr>
    </tbody>
    <!-- paypal donations end -->
    <!-- useful links start -->
    <tbody>
     <tr>
      <td class="tcat">
       <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('useful_links')"><img id="collapseimg_useful_links" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_useful_links].gif" alt="" border="0" /></a>
    <!-- title start -->
    Useful Links
    <!-- title end -->
      </td>
     </tr>
    </tbody>
    <tbody id="collapseobj_useful_links" style="$vbcollapse[collapseobj_useful_links]">
     <tr>
      <td class="alt1" width="100%">
    <!-- text start -->
    <img src="images/buttons/lastpost.gif" border="0" alt="" /> <a href="[URL="http://www.emule-project.net/home/perl/general.cgi?rm=download"]http://www.emule-project.net/home/perl/general.cgi?rm=download[/URL]" target="_blank">eMule Client</a>
    <br />
    <img src="images/buttons/lastpost.gif" border="0" alt="" /> <a href="[URL="http://forum.emule-project.net/"]http://forum.emule-project.net/[/URL]" target="_blank">eMule Forum</a>
    <br />
    <img src="images/buttons/lastpost.gif" border="0" alt="" /> <a href="[URL="http://www.emuleplus.info/"]http://www.emuleplus.info/[/URL]" target="_blank">eMule Plus Client</a> 
    <br />
    <img src="images/buttons/lastpost.gif" border="0" alt="" /> <a href="[URL="http://www.emuleplus.info/forum/"]http://www.emuleplus.info/forum/[/URL]" target="_blank">eMule Plus Forum</a>
    <br />
    <img src="images/buttons/lastpost.gif" border="0" alt="" /> <a href="[URL="http://www.edonkey2000.com/downloads.php#basic"]http://www.edonkey2000.com/downloads.php#basic[/URL]" target="_blank">eDonkey Client</a>
    <br />
    <img src="images/buttons/lastpost.gif" border="0" alt="" /> <a href="[URL="http://forum.edonkey.com/"]http://forum.edonkey.com/[/URL]" target="_blank">eDonkey Forum</a>
    <br />
    <img src="images/buttons/lastpost.gif" border="0" alt="" /> <a href="[URL="http://shareaza.sourceforge.net/?id=download"]http://shareaza.sourceforge.net/?id=download[/URL]" target="_blank">Shareaza Client</a>
    <br />
    <img src="images/buttons/lastpost.gif" border="0" alt="" /> <a href="[URL="http://forums.shareaza.com/"]http://forums.shareaza.com/[/URL]" target="_blank">Shareaza Forum</a>
    <br />
    <img src="images/buttons/lastpost.gif" border="0" alt="" /> <a href="[URL="http://www.lphant.com/downloads_eng.php"]http://www.lphant.com/downloads_eng.php[/URL]" target="_blank">Lphant Client</a>
    <br />
    <img src="images/buttons/lastpost.gif" border="0" alt="" /> <a href="[URL="http://www.lphant.com/board/"]http://www.lphant.com/board/[/URL]" target="_blank">Lphant Forum</a>
    <br />
    <img src="images/buttons/lastpost.gif" border="0" alt="" /> <a href="[URL="http://ocbmaurice.dyndns.org/"]http://ocbmaurice.dyndns.org/[/URL]" target="_blank">Server List</a>
    <br />
    <img src="images/buttons/lastpost.gif" border="0" alt="" /> <a href="[URL="http://stats.razorback2.com/ed2khistory"]http://stats.razorback2.com/ed2khistory[/URL]" target="_blank">eD2K History</a>
    <br />
    <img src="images/buttons/lastpost.gif" border="0" alt="" /> <a href="[URL="http://www.thedonkeynetwork.com/connection_test/"]http://www.thedonkeynetwork.com/connection_test/[/URL]" target="_blank">Test Connection</a>
    <!-- text end -->
    </td>
    </tr>
    </tbody>
    <!-- useful links end -->
    </table>
    </div>
    </td>
    <td>
    <!-- left side block end -->
    <!-- main -->
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <thead>
       <tr align="center">
       <td class="thead">&nbsp;</td>
       <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
       <td class="thead" width="175">$vbphrase[last_post]</td>
       <td class="thead">$vbphrase[threads]</td>
       <td class="thead">$vbphrase[posts]</td>
       <if condition="$vboptions['showmoderatorcolumn']">
       <td class="thead">$vbphrase[moderator]</td>
       </if>
     </tr>
    </thead>
    $forumbits
    <tbody>
     <tr>
      <td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
       <a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a>
       &nbsp; &nbsp;
       <a href="showgroups.php?$session[sessionurl]">$vbphrase[view_forum_leaders]</a>
      </strong></div></td>
     </tr>
    </tbody>
    </table>
    <!-- /main -->
    <br />
    <br />
    <!-- what's going on box -->
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <thead>
     <tr>
      <td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
     </tr>
    </thead>
    <if condition="$show['loggedinusers']">
    <!-- logged-in users -->
    <tbody>
     <tr>
      <td class="thead" colspan="2">
       <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
       <a href="online.php?$session[sessionurl]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest" 3="$numberspiders">$vbphrase[x_members_and_y_guests]</phrase>)
      </td>
     </tr>
    </tbody>
    <tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
     <tr>
      <td class="alt2"><a href="online.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
      <td class="alt1" width="100%">
       <div class="smallfont">
        <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
        <div>$activeusers</div>
       </div>
      </td>
     </tr>
    </tbody>
    <!-- end logged-in users -->
    $todayloggedinusers
    </if>
    </table>
    <br />
    <!-- end what's going on box -->
    <!-- icons and login code -->
    <table cellpadding="0" cellspacing="2" border="0" width="100%">
    <tr valign="bottom">
     <td>
      <table cellpadding="2" cellspacing="0" border="0">
      <tr>
       <td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
       <td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>
      </tr>
      <tr>
       <td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
       <td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
      </tr>
      <tr>
       <td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
       <td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
      </tr>
      </table>
     </td>
     <if condition="!$show['guest']">
      <!-- member logout -->
      <td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]"  onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
      <!-- end member logout -->
     </if>
    </tr>
    </table>
    <!-- / icons and login code -->
    </td>
    </tr>
    </table>
    $footer
    </body>
    </html>
    Last edited by MRGTB; Thu 16 Feb '06, 8:48am.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X