vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   custom drop down menu bar crashing IE (https://vborg.vbsupport.ru/showthread.php?t=107858)

sabret00the 02-13-2006 10:45 AM

custom drop down menu bar crashing IE
 
HTML Code:

<div class="tborder" style="padding: 1px">
        <table align="center" border="0" cellpadding="2" cellspacing="0" class="thead" width="100%">
                <tr align="center">
                        <if condition="$show['member']">
                                <td id="ratio" nowrap="nowrap" width="$navbarwidth"><span class="smallfont"><a href="misc.php?$session[sessionurl]do=stats">Ratio: $ratio[ratio]</a></span> <script type="text/javascript"> vbmenu_register("ratio"); </script></td>
                                <td id="mystuff" nowrap="nowrap" width="$navbarwidth"><span class="smallfont"><a href="browse.php?$session[sessionurl]do=mystuff">My Stuff</a></span> <script type="text/javascript"> vbmenu_register("mystuff"); </script></td>
                        </if>
                        <td id="whatsnew" nowrap="nowrap" width="$navbarwidth"><span class="smallfont"><a href="browse.php?$session[sessionurl]do=newpieces">What's New?</a></span> <script type="text/javascript"> vbmenu_register("whatsnew"); </script></td>
                        <td id="whatspopular" nowrap="nowrap" width="$navbarwidth"><span class="smallfont"><a href="browse.php?$session[sessionurl]do=poppieces">What's Popular?</a></span> <script type="text/javascript"> vbmenu_register("whatspopular"); </script></td>
                        <td width="$navbarwidth"><span class="smallfont"><a href="browse.php?$session[sessionurl]">Browse</a></span></td>
                        <td width="$navbarwidth"><span class="smallfont"><a href="submit.php?$session[sessionurl]">Submit</a></span></td>
                        <td id="creativeglobalsearch" nowrap="nowrap" width="$navbarwidth"><span class="smallfont"><a href="search.php?$session[sessionurl]">Search</a> <script type="text/javascript"> vbmenu_register("creativeglobalsearch"); </script></span></td>
                </tr>
        </table>
</div>

<if condition="$show['popups']">
        <if condition="$show['member']">
                <div class="vbmenu_popup" id="ratio_menu" style="display: none;">
                        <table cellpadding="4" cellspacing="1">
                                <tr>
                                        <td class="vbmenu_option"><a href="misc.php?$session[sessionurl]do=mystats">Pieces Posted: $ratio[pieces]</a></td>
                                </tr>
                                <tr>
                                        <td class="vbmenu_option"><a href="misc.php?$session[sessionurl]do=mystats">Reviews Posted: $ratio[reviews]</a></td>
                                </tr>
                        </table>
                </div>

                <div class="vbmenu_popup" id="mystuff_menu" style="display: none;">
                        <table cellpadding="4" cellspacing="1">
                                <tr>
                                        <td class="vbmenu_option"><a href="browse.php?$session[sessionurl]do=favourites">My Favourites</a></td>
                                </tr>
                                <tr>
                                        <td class="vbmenu_option"><a href="browse.php?$session[sessionurl]do=subscriptions">My Subscriptions</a> &nbsp; &nbsp; &nbsp; </td>
                                </tr>
                                <tr>
                                        <td class="vbmenu_option"><a href="browse.php?do=member&user=$bbuserinfo[userid]">My Gallery</a> &nbsp; &nbsp; &nbsp; </td>
                                </tr>
                        </table>
                </div>
        </if>

        <div class="vbmenu_popup" id="whatsnew_menu" style="display:none">
                <table cellpadding="4" cellspacing="1" border="0">
                        <tr>
                                <td class="vbmenu_option"><a href="browse.php?$session[sessionurl]do=newpieces">Newest Pieces</a></td>
                        </tr>
                        <tr>
                                <td class="vbmenu_option"><a href="browse.php?$session[sessionurl]do=newreviews">Newest Reviews</a></td>
                        </tr>
                </table>
        </div>

        <div class="vbmenu_popup" id="whatspopular_menu" style="display:none">
                <table cellpadding="4" cellspacing="1" border="0">
                        <tr>
                                <td class="vbmenu_option"><a href="browse.php?$session[sessionurl]do=pop&amp;orderby=views">Top Viewed</a></td>
                        </tr>
                        <tr>
                                <td class="vbmenu_option"><a href="browse.php?$session[sessionurl]do=pop&amp;orderby=rating">Top Rated</a></td>
                        </tr>
                        <tr>
                                <td class="vbmenu_option"><a href="browse.php?$session[sessionurl]do=pop&amp;orderby=posts">Top Reviewed</a></td>
                        </tr>
                </table>
        </div>

        <div class="vbmenu_popup" id="creativeglobalsearch_menu" style="display:none">
                <form action="find.php" method="post">
                        <table cellpadding="4" cellspacing="1">
                                <tr>
                                        <td class="thead" colspan="2">Search</td>
                                </tr>
                                <tr>
                                        <td class="vbmenu_option" title="nohilite">
                                                <select name="searchfield">
                                                        <option value="title" $searchfield[title]>Title</option>
                                                        <option value="author" $searchfield[author]>Author</option>
                                                        <option value="text" $searchfield[text]>Text</option>
                                                </select>
                                        </td>
                                        <td>
                                                <input type="text" class="bginput" name="query" size="20" style="width:175px" />
                                        </td>
                                </tr>
                                <tr>
                                        <td class="vbmenu_option" title="nohilite" align="center" colspan="2">
                                                <input type="hidden" name="s" value="$session[sessionhash]" />
                                                <input type="hidden" name="do" value="process" />
                                                <input type="hidden" name="formuserid" value="$bbuserinfo[userid]" />
                                                $gobutton
                                        </td>
                                </tr>
                        </table>
                </form>
        </div>
</if>

any idea why?

Princeton 02-13-2006 10:54 PM

it's probably something else ... can you post the page that is causing this problem?

sabret00the 02-13-2006 10:59 PM

it's on my localhost, if i comment out the above in the php then it loads fine, but the second i re-include it, i get IE problems.

Princeton 02-13-2006 11:03 PM

something is probably missing (or wrong) locally ... I recommend testing it online and see what happens.

sabret00the 03-15-2006 07:34 PM

i still can't get this to work :|

PitchouneN64ngc 03-15-2006 08:56 PM

And with this code? (I've put a template conditional around the first table) :

HTML Code:

<div class="tborder" style="padding: 1px">
<table align="center" border="0" cellpadding="2" cellspacing="0" class="thead" width="100%">
<tr align="center">
<if condition="$show['popups']">
<if condition="$show['member']">
<td id="ratio" nowrap="nowrap" width="$navbarwidth"><span class="smallfont"><a href="misc.php?$session[sessionurl]do=stats">Ratio: $ratio[ratio]</a></span> <script type="text/javascript"> vbmenu_register("ratio"); </script></td>
<td id="mystuff" nowrap="nowrap" width="$navbarwidth"><span class="smallfont"><a href="browse.php?$session[sessionurl]do=mystuff">My Stuff</a></span> <script type="text/javascript"> vbmenu_register("mystuff"); </script></td>
</if>
<td id="whatsnew" nowrap="nowrap" width="$navbarwidth"><span class="smallfont"><a href="browse.php?$session[sessionurl]do=newpieces">What's New?</a></span> <script type="text/javascript"> vbmenu_register("whatsnew"); </script></td>
<td id="whatspopular" nowrap="nowrap" width="$navbarwidth"><span class="smallfont"><a href="browse.php?$session[sessionurl]do=poppieces">What's Popular?</a></span> <script type="text/javascript"> vbmenu_register("whatspopular"); </script></td>
<td width="$navbarwidth"><span class="smallfont"><a href="browse.php?$session[sessionurl]">Browse</a></span></td>
<td width="$navbarwidth"><span class="smallfont"><a href="submit.php?$session[sessionurl]">Submit</a></span></td>
<td id="creativeglobalsearch" nowrap="nowrap" width="$navbarwidth"><span class="smallfont"><a href="search.php?$session[sessionurl]">Search</a> <script type="text/javascript"> vbmenu_register("creativeglobalsearch"); </script></span></td>
</if>
</tr>
</table>
</div>
<if condition="$show['popups']">
<if condition="$show['member']">
<div class="vbmenu_popup" id="ratio_menu" style="display: none;">
<table cellpadding="4" cellspacing="1">
<tr>
<td class="vbmenu_option"><a href="misc.php?$session[sessionurl]do=mystats">Pieces Posted: $ratio[pieces]</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="misc.php?$session[sessionurl]do=mystats">Reviews Posted: $ratio[reviews]</a></td>
</tr>
</table>
</div>
<div class="vbmenu_popup" id="mystuff_menu" style="display: none;">
<table cellpadding="4" cellspacing="1">
<tr>
<td class="vbmenu_option"><a href="browse.php?$session[sessionurl]do=favourites">My Favourites</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="browse.php?$session[sessionurl]do=subscriptions">My Subscriptions</a> &nbsp; &nbsp; &nbsp; </td>
</tr>
<tr>
<td class="vbmenu_option"><a href="browse.php?do=member&user=$bbuserinfo[userid]">My Gallery</a> &nbsp; &nbsp; &nbsp; </td>
</tr>
</table>
</div>
</if>
<div class="vbmenu_popup" id="whatsnew_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="vbmenu_option"><a href="browse.php?$session[sessionurl]do=newpieces">Newest Pieces</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="browse.php?$session[sessionurl]do=newreviews">Newest Reviews</a></td>
</tr>
</table>
</div>
<div class="vbmenu_popup" id="whatspopular_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="vbmenu_option"><a href="browse.php?$session[sessionurl]do=pop&amp;orderby=views">Top Viewed</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="browse.php?$session[sessionurl]do=pop&amp;orderby=rating">Top Rated</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="browse.php?$session[sessionurl]do=pop&amp;orderby=posts">Top Reviewed</a></td>
</tr>
</table>
</div>
<div class="vbmenu_popup" id="creativeglobalsearch_menu" style="display:none">
<form action="find.php" method="post">
<table cellpadding="4" cellspacing="1">
<tr>
<td class="thead" colspan="2">Search</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<select name="searchfield">
<option value="title" $searchfield[title]>Title</option>
<option value="author" $searchfield[author]>Author</option>
<option value="text" $searchfield[text]>Text</option>
</select>
</td>
<td>
<input type="text" class="bginput" name="query" size="20" style="width:175px" />
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite" align="center" colspan="2">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="formuserid" value="$bbuserinfo[userid]" />
$gobutton
</td>
</tr>
</table>
</form>
</div>
</if>


sabret00the 03-15-2006 09:49 PM

nope that still causes problems.

Princeton 03-16-2006 04:47 PM

can you post the error?

sabret00the 03-16-2006 05:21 PM

sure thing: http://img110.imageshack.us/my.php?i...message4zz.jpg

if i remove that navbar then it works fine, the second i put it back it messes up again.

sabret00the 03-18-2006 03:03 PM

*bumb*


All times are GMT. The time now is 03:08 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02882 seconds
  • Memory Usage 1,847KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete