Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 10-14-2005, 08:45 PM
eNforce's Avatar
eNforce eNforce is offline
 
Join Date: Aug 2004
Location: Canada, AB
Posts: 341
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Navbar Drop down menu

Easy request and I'm positive there is a thread on it but I couldn't find it. Could someone code a drop down menu for the navbar? It should be similar to Quick Links with the categories and such.

I fiddled around for about 30 mins trying to copy code to make my own but it always broke the navbar.

Or could someone point me in the direction of the other thread on this? I belive the person who created it named the dropdown menu "Interactive"

?
Reply With Quote
  #2  
Old 10-16-2005, 08:24 PM
eNforce's Avatar
eNforce eNforce is offline
 
Join Date: Aug 2004
Location: Canada, AB
Posts: 341
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump? Anyone?

Just a simple drop down menu with categories :speechless:
Reply With Quote
  #3  
Old 10-16-2005, 09:11 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In template navbar,

FIND:

Code:
			<if condition="$bbuserinfo['userid']">
				<td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>		
			</if>
UNDER THAT, ADD:

Code:
			<if condition="$bbuserinfo['userid']">
				<td id="MYUNIQUEID" class="vbmenu_control"><a href="$show[nojs_link]#MYUNIQUEID">$vbphrase[MYPHRASE]</a> <script type="text/javascript"> vbmenu_register("MYUNIQUEID"); </script></td>		
			</if>
FIND:

Code:
	<if condition="$show['member']">
	<!-- user cp tools menu -->
	<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
		<table cellpadding="4" cellspacing="1" border="0">
		
		<tr><td class="thead">$vbphrase[quick_links]</td></tr>		
		<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
		<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
		<tr><td class="vbmenu_option"><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></td></tr>
				
		<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
		<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
		<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
		<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
		<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
		
		<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
		<if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]">$vbphrase[private_messages]</a></td></tr></if>
		<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]">$vbphrase[subscribed_threads]</a></td></tr>
		<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
		<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
		
		</table>
	</div>
	<!-- / user cp tools menu -->
	</if>
UNDER THAT ADD:

Code:
	<!-- MY CUSTOM MENU -->
	<div class="vbmenu_popup" id="MYUNIQUEID_menu" style="display:none">
		<table cellpadding="4" cellspacing="1" border="0">
		
		<tr><td class="thead">$vbphrase[PHRASE_CUSTOMMENU_TITLE1]</td></tr>		
		<tr><td class="vbmenu_option"><a href="MYCUSTOMLINK.php?$session[sessionurl]">$vbphrase[MYCUSTOMLINK_TITLE]</a></td></tr>

		</table>
	</div>
	<!-- / MY CUSTOM MENU -->
	</if>
Now, make sure to read through the HTML you just added and replace:
MYUNIQUEID - all instances - with the same custom value
EVERYTHING ELSE IN CAPS - with your custom content
And of course, create the phrases you need.

Done!

I might add this to my custom vB-powered pages manual later on...
Reply With Quote
  #4  
Old 10-16-2005, 11:37 PM
eNforce's Avatar
eNforce eNforce is offline
 
Join Date: Aug 2004
Location: Canada, AB
Posts: 341
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool, that worked

What would I have to do to insert this right after the UserCP link?
Reply With Quote
  #5  
Old 10-16-2005, 11:38 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then insert the first piece of code after the HTML for usercp
Reply With Quote
  #6  
Old 10-27-2005, 06:54 AM
ea_hockey ea_hockey is offline
 
Join Date: Jul 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I may ask another question related to this, I'd like to ask:

I wanted to add the drop down to a custom field on the postbit_legacy template. This is the code I have on postbit_legacy:
Code:
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="left">
   <tr>
      <if condition="$post['field6']"><td id="field6" class="vbmenu_control"><a href="$show[nojs_link]#field6">PS2 Gamertag</a><script type="text/javascript"> vbmenu_register("field6"); </script></td></if>
   </tr>
</table>
Using the method explained above for the drop down code I put down the following:
Code:
<!-- MY CUSTOM MENU -->
<div class="vbmenu_popup" id="field6_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
   <tr>
      <td class="thead"><div class="smallfont">PS2 Gamer Tag: $post[field6]</div></td>
   </tr>
</table>
</div>
<!-- / MY CUSTOM MENU -->
Now the problem is that the $post[field6] is not displaying on the dropdown menu. Is there a reason for this and possibly a way to fix that?

Here is an example of what I am trying to achieve(click the PS2 Gamertag link):
http://www.eahockey.com/forums/showt...=9907#post9907
(no registration necassary)

Thanks in advance
Reply With Quote
  #7  
Old 10-27-2005, 09:28 AM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try using $userinfo[field6] instead.
Reply With Quote
  #8  
Old 10-27-2005, 03:43 PM
ea_hockey ea_hockey is offline
 
Join Date: Jul 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No luck on that peterska2.

I might have done more wrong, as if I go to some other pages the dropdown does not function at all.
Reply With Quote
  #9  
Old 01-20-2006, 10:11 AM
drex drex is offline
 
Join Date: Feb 2005
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

help!

i did it on my own, didn't work.

looked at this, and duplicated it.

i get the link, but no drop down.

here's the code:

HTML Code:
<if condition="$show['member']">

<td id="techrefmenu" class="vbmenu_control"><a href="$show[nojs_link]#techrefmenu">$vbphrase[tech]</a> <script type="text/javascript"> vbmenu_register("techrefmenu"); </script></td>		

			</if>



and:


HTML Code:
<div class="vbmenu_popup" id="techrefmenu" style="display:none">
		<table cellpadding="4" cellspacing="1" border="0">
		<tr><td class="thead">$vbphrase[tech]</td></tr>		
		<tr><td class="vbmenu_option"><a href="e53wd.php">$vbphrase[tech_x5wds]</a></td></tr>
		<tr><td class="vbmenu_option"><a href="e83wd.php">$vbphrase[tech_x3wds]</a></td></tr>

		</table>
	</div>
what am i doing wrong?

please help! thanks in advance!
Reply With Quote
  #10  
Old 01-20-2006, 10:54 AM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Replace your second piece of code with
Code:
<div class="vbmenu_popup" id="techrefmenu_menu" style="display:none">
		<table cellpadding="4" cellspacing="1" border="0">
		<tr><td class="thead">$vbphrase[tech]</td></tr>		
		<tr><td class="vbmenu_option"><a href="e53wd.php">$vbphrase[tech_x5wds]</a></td></tr>
		<tr><td class="vbmenu_option"><a href="e83wd.php">$vbphrase[tech_x3wds]</a></td></tr>

		</table>
	</div>
Reply With Quote
Reply

Thread Tools
Display Modes

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 02:49 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.04652 seconds
  • Memory Usage 2,268KB
  • Queries Executed 13 (?)
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
  • (7)bbcode_code
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete