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

Reply
 
Thread Tools Display Modes
  #1  
Old 11-20-2007, 12:13 AM
powerful_rogue powerful_rogue is offline
 
Join Date: Jan 2007
Location: Kent
Posts: 603
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Drop down boxes on navbar?

Hi,

On my site I have a drop down bar for "Quick Links". Ive added an attatchment. Does anyone know how I would go about recreating this for "Entertainment" with a variety of links dropping down?

Ive had a search through the code to try and find the bit I need, but to no avail.

PHP Code:
<!-- top nav buttons bar -->
<
div style="text-align:center;padding:15px 0 0 0">
    <
table class="tborder" cellpadding="6px" cellspacing="0" border="0" width="100%" align="center" style="border:1px 0 0 0">
    <
tr>
        <
td class="vbmenu_control"><img class="inlineimg" src="/images/vbevolution/misc/nav_home.gif" alt="Dover Locals" border="0" />&nbsp;<a href="http://www.doverlocals.co.uk">Home</a></td>

                <
td class="vbmenu_control"><img class="inlineimg" src="/images/vbevolution/misc/nav_quicklinks.gif" alt="Forum" border="0" />&nbsp;<a href="/forum.php">Forum</a></td>

                <
td class="vbmenu_control"><img class="inlineimg" src="/images/vbevolution/misc/nav_faq.gif" alt="Frequently Asked Questions" border="0" />&nbsp;<a href="faq.php" accesskey="5">FAQ</a></td>

                <
td class="vbmenu_control"><img class="inlineimg" src="/images/vbevolution/misc/music.gif"/>&nbsp;<a href="javascript:openRadioAndTV()">Radio and TV</a></td>

                <
td class="vbmenu_control"><img class="inlineimg" src="/images/vbevolution/misc/nav_forums.gif" alt="Quiz" border="0" />&nbsp;<a href="quiz.php?">Quiz</a></td>

                <
td class="vbmenu_control"><img class="inlineimg" src="/images/vbevolution/misc/nav_purchase.gif" alt="Gallery" border="0" />&nbsp;<a href="photoplog/index.php?">Gallery</a></td>

                <
td class="vbmenu_control"><img class="inlineimg" src="/images/vbevolution/misc/nav_download.gif" alt="Arcade" border="0" />&nbsp;<a href="arcade.php?">Arcade</a></td>

                <
td class="vbmenu_control"><img class="inlineimg" src="/images/vbevolution/misc/nav_calendar.gif" alt="Dover Events" border="0" />&nbsp;<a href="calendar.php?">Dover Events</a></td>
        </
tr>
        </
table>
</
div>

<!-- 
nav buttons bar -->
<
div align="center">
    <
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
    <
tr align="center">
        <if 
condition="$show['member']">
            <
td class="vbmenu_control"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_usercp.gif" alt="Your Account" border="0" />&nbsp;<a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
        </if>
        <if 
condition="$show['registerbutton']">
            <
td class="vbmenu_control"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_register.gif" alt="Join $vboptions[bbtitle]border="0" />&nbsp;<a href="register.php$session[sessionurl_q]rel="nofollow">$vbphrase[register]</a></td>
        </if>
        
    
        <if 
condition="$show['popups']">        
            <if 
condition="$show['searchbuttons']">
                <if 
condition="$show['member']">
                <
td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_new.gif" alt="Forums Start Page" border="0" />&nbsp;$vbphrase[new_posts_nav]</a></td>
                <else />
                <
td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_new.gif" alt="Today's Posts" border="0" />&nbsp;$vbphrase[todays_posts]</a></td>
                </if>
                <
td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]accesskey="4" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_search.gif" alt="Search" border="0" />&nbsp;$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"vbmenu_register("navbar_search"); </script></if></td>
<
td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_memberlist.gif" alt="Member List" border="0" />&nbsp;$vbphrase[members_list]</a></td>
            </if>
<
td class="vbmenu_control"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_forums.gif" alt="Forums Rules" border="0" />&nbsp;<a href="rules.php$session[sessionurl_q]">$vbphrase[vbrules_rules]</a></td>
            <if 
condition="$show['member']">
                <
td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_quicklinks.gif" alt="Quick Links" border="0" />&nbsp;$vbphrase[quick_links]</a> <script type="text/javascript"vbmenu_register("usercptools"); </script></td>        
            </if>
        <else />        
            <if 
condition="$show['searchbuttons']">
                <
td class="vbmenu_control"><a href="search.php$session[sessionurl_q]accesskey="4"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_search.gif" alt="Search" border="0" />&nbsp;$vbphrase[search]</a></td>
                <if 
condition="$show['member']">
                <
td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_new.gif" alt="New Posts" border="0" />&nbsp;$vbphrase[new_posts_nav]</a></td>
                <else />
                <
td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_new.gif" alt="$vbphrase[todays_posts]border="0" />&nbsp;$vbphrase[todays_posts]</a></td>
                </if>
            </if>
            <
td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
            <if 
condition="$show['member']">            
                <
td class="vbmenu_control"><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>            
            </if>            
        </if>
        <if 
condition="$show['member']">
            <
td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]onclick="return log_out()"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_logout.gif" alt="$vbphrase[log_out]border="0" />&nbsp;$vbphrase[log_out]</a></td>
        </if>
    </
tr>
    </
table>
</
div>

<!-- / 
nav buttons bar -->

<if 
condition="$bbuserinfo[userid] != '0' AND $vboptions[enhancedinfobar]">
<
div class="topinfo-center" align="center"
<
div id="fscroller" class="fader" style="border:1px inset $stylevar[tborder_bgcolor]; background-color: $stylevar[alt1_bgcolor] width: 50%;"

<
script type="text/javascript">
/* <![CDATA[ */
/***********************************************
* Fading Scroller- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var delay 2000//set delay between message change (in miliseconds)
var maxsteps=30// number of steps to take to change from start color to endcolor
var stepdelay=40// time in miliseconds of a single step
//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect
var startcolor= new Array(155,155,155); // start color (red, green, blue)
var endcolor=new Array(0,0,0); // end color (red, green, blue)

var fcontent=new Array();
begintag='<div class="smallfont" style="color: black; margin-left:5px; margin-top:2px;">'//set opening tag, such as font declarations
fcontent[0]='Most Recent Topic: <a style="color: black;" href="$vboptions[bburl]/showthread.php?t=$enhthread[threadid]">$enhthread[title]</a> posted by <a style="color: black;"   href="$vboptions[bburl]/member.php?u=$enhthread[postuserid]">$enhthread[postusername]</a>, $enhthread[dateline] ago.';
fcontent[1]='Welcome to our newest community member, <a style="color: black;" href="$vboptions[bburl]/member.php?u=$enhuser[userid]">$enhuser[username]</a>.';
fcontent[2]='Most Recent Post: <a style="color: black;" href="$vboptions[bburl]/showthread.php?t=$enhpost[threadid]">$enhpost[title]</a> posted by <a style="color: black;" href="$vboptions[bburl]/member.php?u=$enhpost[userid]">$enhpost[username]</a>, $enhpost[dateline] ago.';
fcontent[3]='<strong>Your Message Here!</strong>';
closetag='</div> ';



var 
fadelinks=0;  //should links inside scroller content also fade like text? 0 for no, 1 for yes.

///No need to edit below this line/////////////////


var ie4=document.all&&!document.getElementById;
var 
DOM2=document.getElementById;
var 
faderdelay=0;
var 
index=0;


/*Rafael Raposo edited function*/
//function to change content
function changecontent(){
  if (
index>=fcontent.length)
    
index=0
  
if (DOM2){
    
document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"
    
document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
    
if (fadelinks)
      
linkcolorchange(1);
    
colorfade(115);
  }
  else if (
ie4)
    
document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag;
  
index++
}

// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

function linkcolorchange(step){
  var 
obj=document.getElementById("fscroller").getElementsByTagName("A");
  if (
obj.length>0){
    for (
i=0;i<obj.length;i++)
      
obj[i].style.color=getstepcolor(step);
  }
}

/*Rafael Raposo edited function*/
var fadecounter;
function 
colorfade(step) {
  if(
step<=maxsteps) {    
    
document.getElementById("fscroller").style.color=getstepcolor(step);
    if (
fadelinks)
      
linkcolorchange(step);
    
step++;
    
fadecounter=setTimeout("colorfade("+step+")",stepdelay);
  }else{


    
clearTimeout(fadecounter);
    
document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";
    
setTimeout("changecontent()"delay);
    
  }   
}

/*Rafael Raposo's new function*/
function getstepcolor(step) {
  var 
diff
  
var newcolor=new Array(3);
  for(var 
i=0;i<3;i++) {
    
diff = (startcolor[i]-endcolor[i]);
    if(
diff 0) {
      
newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step);
    } else {
      
newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step);
    }
  }
  return (
"rgb(" newcolor[0] + ", " newcolor[1] + ", " newcolor[2] + ")");
}

if (
ie4||DOM2)

  
document.write('<div class="smallfont" style="color: black; margin-left:5px; margin-top:2px;">Welcome to our newest community member, <a href="$vboptions[bburl]/member.php?u=$enhuser[userid]">$enhuser[username]</a>.</div>');

if (
window.addEventListener)
window.addEventListener("load"changecontentfalse)
else if (
window.attachEvent)
window.attachEvent("onload"changecontent)
else if (
document.getElementById)
window.onload=changecontent
/* ]]> */
</script>
</
div></div></if>

<
br />
<if 
condition="$show['forumdesc']">
    <
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
    <
tr>
        <
td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
    </
tr>
    </
table>
    <
br />
</if>

<if 
condition="$show['popups']">
<!-- 
NAVBAR POPUP MENUS -->
    
    <if 
condition="$show['searchbuttons']">
    <!-- 
header quick search form -->
    <
div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
        <
table cellpadding="4" cellspacing="1" border="0">
        <
tr>
            <
form action="search.php?do=process" method="post">
            <
td class="thead">$vbphrase[search_forums]</td>
        </
tr>
        <
tr>
            <
td class="vbmenu_option" title="nohilite">
                <
input type="hidden" name="do" value="process" />
                <
input type="hidden" name="quicksearch" value="1" />
                <
input type="hidden" name="childforums" value="1" />
                <
input type="hidden" name="exactname" value="1" />
                <
input type="hidden" name="s" value="$session[sessionhash]/>
                <
div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]tabindex="1004" /></div>
            </
td>
        </
tr>
        <
tr>
            <
td class="vbmenu_option" title="nohilite">
                <
label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
                &
nbsp;
                <
label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
            </
td>

        </
tr>
        <
tr>
            <
td class="vbmenu_option"><a href="search.php$session[sessionurl_q]accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
        </
form>
        </
tr>
$google_navadsearch
$template_hook
[navbar_search_menu]
$zointstags_searchform
        
</table>
    </
div>
    <!-- / 
header quick search form -->

    </if>

    <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>
            <!-- [
START HACK='vB Pager' AUTHOR='UAEWEB.COM' VERSION='3.0.3' CHANGEID] -->
        <
tr><td class="vbmenu_option"><a href="#" onclick="window.open('$vboptions[bburl]/pager.php?$session[sessionurl]do=buddylist','pagerbuddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=$vboptions[vbpager_width],height=$vboptions[vbpager_height]'); return false;">$vbphrase[pager_open_vbpager]</a></td></tr>
<!-- [
END HACK='vB Pager' AUTHOR='UAEWEB.COM' VERSION='3.0.3' CHANGEID] -->    
        <
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="vbmenu_option"><a href="mysmiliesvb.php?$session[sessionurl]">$vbphrase[mysmiliesvb_mysmilies]</a></td></tr>

        
        <
tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
        <if 
condition="$show['pmmainlink']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
        <
tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]rel="nofollow">$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>
<!-- / 
NAVBAR POPUP MENUS -->

<!-- 
PAGENAV POPUP -->

    <
div class="vbmenu_popup" id="pagenav_menu" style="display:none">
        <
table cellpadding="4" cellspacing="1" border="0">
        <
tr>
            <
td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
        </
tr>
        <
tr>
            <
td class="vbmenu_option" title="nohilite">
            <
form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
                <
input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
                <
input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]/>
            </
form>
            </
td>
        </
tr>
        </
table>
    </
div>

<!-- / 
PAGENAV POPUP -->
$globalannounce
</if> 
Anyhelp will be greatly appreciated.
Attached Images
File Type: jpg quick.JPG (19.1 KB, 0 views)
Reply With Quote
  #2  
Old 11-20-2007, 12:20 AM
powerful_rogue powerful_rogue is offline
 
Join Date: Jan 2007
Location: Kent
Posts: 603
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Aha!

Found it!

https://vborg.vbsupport.ru/showthread.php?t=122523
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 01:42 PM.


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.12802 seconds
  • Memory Usage 2,423KB
  • Queries Executed 14 (?)
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_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (1)postbit_attachment
  • (2)postbit_onlinestatus
  • (2)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete