Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-27-2005, 11:51 PM
TruthElixirX's Avatar
TruthElixirX TruthElixirX is offline
 
Join Date: Sep 2004
Location: Oklahoma
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default JS Dropdown menu not working

I'm working on a hack. I was originally doing a direct port from the 3.0.x version but have since decided to do a complete re-write of it. I was creating a new template. The template is fully coded except the drop down menu won't work. I even tried using the drop down menu code from the old version of the hack but it doesn't work for some reason.

Code:
<table class="tborder" align="center">
    <thead>
        <tr>
            <td class="thead" align="left" valign="top">
		<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('stats')"><img id="collapseimg_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_stats].gif" alt="" border="0" /></a>		$vbphrase[statistiques] : <i>$foruminfo[title]</i>
            </td>
            <td class="vbmenu_control"><font class="smallfont">
<span id="menuchat" class="vbmenu_control" style="float:$stylevar[center]">$vbphrase[stats_autres]
<script type="text/javascript"> vbmenu_register("menuchat"); </script>
</span>
</td>
        </tr>
  </thead>
  
<tbody id="collapseobj_stats" style="$vbcollapse[collapseobj_stats]">
        <tr>
            <td class="thead" align="right" valign="top">
  $vbphrase[stats_sujets]: <b>$forum[threadcount]</b>
            </td>
            <td class="thead" align="left" valign="top">
  $vbphrase[stats_reponses] : <b>$forum[posts]</b>
            </td>
        </tr>

        <tr>
            <td class="thead">
  $vbphrase[stats_vues] : <b>$nb_vues</b>
            </td>
            <td class="thead">
  $vbphrase[stats_votes] : $moyenne[votes]
            </td>
        </tr>
        <tr>
            <td class="thead">
  $vbphrase[stats_dsujet] : <b>$sujets[postusername]</b>
            </td>
            <td class="thead">
$vbphrase[stats_sujets] locked : <b>$sujet[ferme]</b>
            </td>
        </tr>
        <tr>
            <td class="thead">
  $vbphrase[stats_mposteur] : <b>$meilleur[username] ($meilleur[postcount])</b>
            </td>
            <td class="thead">
$vbphrase[stats_total_posts] : <b>$forum[replycount]</b>
            </td>
        </tr>
        <tr>
            <td class="thead">
$vbphrase[stats_dposteur] : <b>$forum[lastposter]</b>
            </td>
            <td class="thead">
$vbphrase[stats_dsujet] : <b>$forum[lastthread]</b>
            </td>
        </tr>
</table>

The JS dropdown menu is foudn here:
Code:
            <td class="vbmenu_control"><font class="smallfont">
<span id="menuchat" class="vbmenu_control" style="float:$stylevar[center]">$vbphrase[stats_autres]
<script type="text/javascript"> vbmenu_register("menuchat"); </script>
</span>
</td>
I'm guessing a variable has changed in 3.5 or soemthing..so..forgive me..>.<
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:14 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07277 seconds
  • Memory Usage 2,158KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete