vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to add links into the top menu ? (https://vborg.vbsupport.ru/showthread.php?t=98230)

gael11 10-12-2005 05:06 PM

How to add links into the top menu ?
 
Hello,

how can I add links into the top menu ?
http://www.image-dream.com/up/112914...anstitre-2.jpg

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

Thanks for your answers ;)

Allan 10-12-2005 05:15 PM

Hello Gael11 ;)

For vB 3.5 or 3.0.9 ?

peterska2 10-12-2005 05:32 PM

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.

gael11 10-12-2005 05:41 PM

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 ?

peterska2 10-12-2005 05:43 PM

Oooops. My turn to cock up!

Yes it's the navbar.

gael11 10-12-2005 05:53 PM

OK big thanks !!!

MrEdit 12-31-2005 07:56 PM

Thanks for that - exactly what I was looking for!


All times are GMT. The time now is 01: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.01011 seconds
  • Memory Usage 1,733KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete