Announcement

Collapse
No announcement yet.

Adding A Second "Quick Links" Menu To The Navbar?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • House_of_Crazed
    replied
    Thank you, Aros lol

    I didn't want to have to explain it in detail. I like giving hints and let people figure things out for themselves. Afterall, that's how you can best learn how VB works

    Leave a comment:


  • Aros
    replied
    A popup menu consists out of 2 parts, the menu itself and the link to display it. Both have to be there;

    Link:
    HTML Code:
    <td id="usercptools" class="vbmenu_control"><a href="#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
    Menu:
    HTML Code:
    	<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=getnew">$vbphrase[new_posts_nav]</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]">$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]">$vbphrase[private_messages]</a></td></tr></if>
    		<tr><td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]">$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]">$vbphrase[whos_online]</a></td></tr></if>
    		
    		</table>
    	</div>
    Notice the ID's, the ID for the link is "usercptools" and the ID for the menu is "usercptools_menu". So, duplicate both codes and change the ID's for to example "usercptools2" and "usercptools2_menu".

    Leave a comment:


  • Guest's Avatar
    Guest replied
    What is the quick links cell?

    Leave a comment:


  • House_of_Crazed
    replied
    You need to set up a call for it in the NavBar itself.

    Look at the "Quick Links" cell and just duplicate it.

    But you'll want to change the div class to something else to distingush it from the other quick links.

    Leave a comment:


  • Guest's Avatar
    Guest started a topic Adding A Second "Quick Links" Menu To The Navbar?

    Adding A Second "Quick Links" Menu To The Navbar?

    So I duplicated this exact same code twice in the navbar template, in hopes of making a second Quick Links menu...


    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>

    Nope. Didn't happen. Nothing happened.

    Any ideas?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X