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

Reply
 
Thread Tools Display Modes
  #1  
Old 07-19-2009, 07:29 PM
DiageoLiam DiageoLiam is offline
 
Join Date: Mar 2008
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Javascript menu's don't work in a theme.

Hi there,
I have recently finished installing and customizing a new theme for my Vbulletin, however, after testing I have discovered that none of my javascript menus (for example the 'Quick Links'/'New Notifications' menus) simply don't work in that theme. Whenever they are clicked, nothing happens. However, when I change the theme, the desired menu will appear.

As shown below:



Below is code for the 'Header' template in my broken theme; this includes code for the notifications and quick links menus.

HTML Code:
<!-- logo -->
<a name="top"></a>
<div id="container" style="width:$stylevar[outertablewidth]">
	<div id="header">
		<div id="logo"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></div>
		<if condition="$show['guest']"><div id="forms">
			<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
		<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
				<input name="vb_login_username" id="navbar_username" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" type="text" class="form" /><input name="vb_login_password" id="navbar_password" tabindex="102" type="password" class="form" /><input name="" type="submit" class="login" value="" />
			<input type="hidden" name="s" value="$session[sessionhash]" />
		<input type="hidden" name="do" value="login" />		
		<input type="hidden" name="vb_login_md5password" />
		<input type="hidden" name="vb_login_md5password_utf" />
		</form>
			<a href="register.php$session[sessionurl_q]" rel="nofollow">Register</a> or have you <a href="login.php?do=lostpw">forgotten your password</a>?
		</div><else />
			<div id="userbox"><strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
			<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>

<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
</div></if>






	<if condition="$notifications_total">
	<!-- notifications menu -->
	<div class="vbmenu_popup" id="notifications_menu" style="display:none">
		<table cellpadding="4" cellspacing="1" border="0">
		<tr><td class="thead" colspan="2">$vbphrase[your_notifications]</td></tr>
		$notifications_menubits
		</table>
	</div></if>








	</div>
	<div id="nav">
		<ul>
<li><a href="$vboptions[homeurl]">Home</a></li>
<if condition="$show['member']">
			<li><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></li>
		</if>
		<if condition="$show['registerbutton']">
			<li><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></li>
		</if>
		$template_hook[navbar_buttons_left]
		<li><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></li>
		<li><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></li>
		<li><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></li>
		<if condition="$show['popups']">		
			<if condition="$show['searchbuttons']">
				<if condition="$show['member']">
				<li><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></li>
				<else />
				<li><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></li>
				</if>
				<li<if condition="$show['guest']"> id="last"</if>><a id="navbar_search" href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search",true); </script></if></li>
			</if>
			<if condition="$show['member']">
				<li><a id="usercptools" href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools",true); </script></li>		
			</if>
		<else />		
			<if condition="$show['searchbuttons']">
				<li><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></li>
				<if condition="$show['member']">
				<li><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></li>
				<else />
				<li><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></li>
				</if>
			</if>
			<li><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></li>
			<if condition="$show['member']">			
				<li><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></li>			
			</if>			
		</if>
		$template_hook[navbar_buttons_right]
		<if condition="$show['member']">
			<li id="last"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></li>
		</if>
		</ul>
	</div>
	<div id="headlines">
	<img src="$stylevar[imgdir_misc]/icon.gif" alt="icon" width="8" height="8" />$vbphrase[all_times_are_gmt_x_time_now_is_y] <if condition="$show['guest']"><span>|</span> Welcome to Ditch the Label, please <a href="register.php$session[sessionurl_q]" rel="nofollow">register</a> to access all of our features.</if>
	</div>
<!-- content table -->
<script type="text/javascript" src="$vboptions[bburl]/clientscript/rainbow.js"></script>
$spacer_open
$_phpinclude_output
Any help would really be appreciated! Thanks

PS. I have tried copying working code from one theme to the broken one, but it still doesn't work.

--------------- Added [DATE]1248035904[/DATE] at [TIME]1248035904[/TIME] ---------------

Oh, never mind... it was something to do with the footer!
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 03:15 PM.


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.03356 seconds
  • Memory Usage 2,187KB
  • 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
  • (1)bbcode_html
  • (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