Thread: Forum Display Enhancements - Easy Navbar Links
View Single Post
  #76  
Old 07-13-2009, 05:38 PM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yossie3660 View Post
Thanks a lot...i will wait about this...cause i need put many links in 2 dropdown button, the idea is simple...but....i try to modification by my self....its hard...so i need your help....thanks alot...i will wait...and maybe if u created new mods, please put the links so i can know from this thread oke?...thanks a lot once again...(",)

regards
yossie3660
Combining Two Mods Together For Perfection!

With this mod which easily makes a second navbar combined with the "Advanced Navbar Links" mod you can have the power to add in drop menus (with icons), full permission control, single links, etc.. all editable from inside the AdminCP without having to edit the navbar menu except to initially install both mods together.

If you look at my attached screen shot you will see I have two navbars. I also have a drop menu for my blogs in the top navbar which I have made where each sub-link has icons!

Instructions For Combining These Two Mods Together:

STEP-1: Install this mod into you navbar template as instructed.

STEP-2: You only need to paste the following combined code: (Note: I used the code from this mod which only shows the second navbar to members. You can use the standard code from this mod if you wish to have guests view the second navbar as well. I gave that code example at the end of this post.)

NOTE
: The BLUE code below is from this mod and the RED code below is from the "Advanced Navbar Links" mod.

Code:
<!-- Navbar Links -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:1px">
<tr align="center">
$custom_droplinks_cat
$custom_singlelinks
</table>
</div>
<!-- / Navbar Links -->
STEP-3: Now install the Advanced Navbar Links mod.

NOTE
: Ignore the step in that mod's instructions where it asks you to paste: $custom_droplinks_cat and $custom_singlelinks. You have already pasted these two codes into your navbar template in Step-2 above.

Step-4: Save your navbar template.

Step-5: You will now have a new AdminCP menu item for the Advanced Navbar Links mod. You can freely add in standalone or drop menu links with and without icons. This mod allows you to freely control all link permissions.

END EFFECT: With these two great mods combined together we now have full control over a second navbar that we can edit from inside the AdminCP without having to edit the navbar template directly each time we wish to add or update links.

FINAL NOTES: The Advanced Navbar Links mod does have one small bug which is discussed in their thread. It is no big deal. I now use this combo mod code and have complete navbar control the way we should have from the start in VB. Also, these hacks work perfect with vBadvanced as your homepage.

IMPORTANT: If you want your second navbar to be viewable to guests use the following code instead:
Code:
<!-- Navbar Links -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:1px">
<tr align="center">
$custom_droplinks_cat
$custom_singlelinks
</table>
</div>
<!-- / Navbar Links -->
See my attached screenshot!

ENJOY!
Attached Images
File Type: jpg Second Navbar Plus Advanced Links.jpg (72.2 KB, 0 views)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01212 seconds
  • Memory Usage 1,804KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_attachment
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete