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 10-12-2005, 05:06 PM
gael11 gael11 is offline
 
Join Date: Oct 2005
Location: South of France
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to add links into the top menu ?

Hello,

how can I add links into the top menu ?


And how can I do a listing menu like quick links ?

Thanks for your answers
Reply With Quote
  #2  
Old 10-12-2005, 05:15 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Gael11

For vB 3.5 or 3.0.9 ?
Reply With Quote
  #3  
Old 10-12-2005, 05:32 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For normal linkls like calendar, FAQ, userCP, etc use

Code:
<td class="vbmenu_control"><a href="URL to point to">Name Of Link</a></td>
Add this either before or after

Code:
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
and it will work correctly.


For drop down menu's you need two sections of code.

PART ONE

Code:
				<td id="whatever you wanna call it" class="vbmenu_control"><a href="$show[nojs_link]#whatever you wanna call it">Link Title</a> <script type="text/javascript"> vbmenu_register("whatever you wanna call it"); </script></td>
Add this around

Code:
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
PART TWO

Code:
	<div class="vbmenu_popup" id="whatever you wanna call it_menu" style="display:none">
		<table cellpadding="4" cellspacing="1" border="0">
		
		<tr><td class="thead">Menu Title</td></tr>		
		<tr><td class="vbmenu_option"><a href="link to page">Link Title</a></td></tr>
Repeat bottom two lines as required. The top one is a header and the bottom one is an item.

Add this AFTER

Code:
<!-- / NAVBAR POPUP MENUS -->
NOTE: Where I have used identical text, it is essential that you use identical text otherwise this will NOT work.
Reply With Quote
  #4  
Old 10-12-2005, 05:41 PM
gael11 gael11 is offline
 
Join Date: Oct 2005
Location: South of France
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Allan
Hello Gael11

For vB 3.5 or 3.0.9 ?
Hello allan

Ooops I have forgot to give my version.
It's for v3.5.

Quote:
For normal linkls like calendar, FAQ, userCP, etc use

Code:

<td class="vbmenu_control"><a href="URL to point to">Name Of Link</a></td>



Add this either before or after

Code:

<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>



and it will work correctly.


For drop down menu's you need two sections of code.

PART ONE

Code:

<td id="whatever you wanna call it" class="vbmenu_control"><a href="$show[nojs_link]#whatever you wanna call it">Link Title</a> <script type="text/javascript"> vbmenu_register("whatever you wanna call it"); </script></td>



Add this around

Code:

<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>



PART TWO

Code:

<div class="vbmenu_popup" id="whatever you wanna call it_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">Menu Title</td></tr>
<tr><td class="vbmenu_option"><a href="link to page">Link Title</a></td></tr>



Repeat bottom two lines as required. The top one is a header and the bottom one is an item.

Add this AFTER

Code:

<!-- / NAVBAR POPUP MENUS -->



NOTE: Where I have used identical text, it is essential that you use identical text otherwise this will NOT work.
Thanks for your answer. But another question, that's in the template navbar ?
Reply With Quote
  #5  
Old 10-12-2005, 05:43 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oooops. My turn to cock up!

Yes it's the navbar.
Reply With Quote
  #6  
Old 10-12-2005, 05:53 PM
gael11 gael11 is offline
 
Join Date: Oct 2005
Location: South of France
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK big thanks !!!
Reply With Quote
  #7  
Old 12-31-2005, 07:56 PM
MrEdit MrEdit is offline
 
Join Date: Oct 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for that - exactly what I was looking for!
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:16 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.03700 seconds
  • Memory Usage 2,226KB
  • 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
  • (6)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete