Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
MAU CP in navbar Details »»
MAU CP in navbar
Version: 1.00, by SuperFly SuperFly is offline
Developer Last Online: Apr 2008 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 01-14-2006 Last Update: Never Installs: 4
 
No support by the author.

What it does is lets you pick from User CP, Mod CP or Admin CP from your navbar.

In Navbar Find
Code:
<if condition="$show['member']">
			<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
		</if>
And Replace with
Code:
<script type="text/javascript">function goto_cp(){window.location=document.getElementById( "select_cp_link").options[document.getElementById("select_cp_link").selected Index].value;}</script><if condition="$show['admincplink']"><td class="vbmenu_control" style="position:relative;right:3px;"><select id="select_cp_link"><option selected="selected" value="/usercp.php">$vbphrase[user_cp]</option><option value="/modcp/index.php">Moderator CP</option><option value=/admincp/index.php>Administrator CP </option></select><input type="button" style="font-size:10pt;font-family:courier;position:relative;bottom:3px;" value="Go" onclick="goto_cp()" /></td><else /><if condition="$show['modcplink']"><td class="vbmenu_control" style="position:relative;right:3px;"><select id="select_cp_link"><option selected="selected" value="/usercp.php">$vbphrase[user_cp]</option><option value="/modcp/index.php">Moderator CP </option></select><input type="button" style="font-size:10pt;font-family:courier;position:relative;bottom:3px;" value="Go" onclick="goto_cp()" /></td></if><else /><if condition="$show['member']"><td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td></if></if>

Supporters / CoAuthors

    Show Your Support

    • This modification may not be copied, reproduced or published elsewhere without author's permission.

    Comments
      #2  
    Old 01-15-2006, 09:38 PM
    rb290's Avatar
    rb290 rb290 is offline
     
    Join Date: Oct 2005
    Posts: 333
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    thanks, but the "Go" button isnt aligned nice, how can i fix that ?
    Reply With Quote
      #3  
    Old 01-15-2006, 10:43 PM
    croportal's Avatar
    croportal croportal is offline
     
    Join Date: Oct 2005
    Posts: 270
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    position:relative;bottom:3px;" value="Go" i think here
    Reply With Quote
      #4  
    Old 01-16-2006, 06:03 AM
    Yorixz Yorixz is offline
     
    Join Date: Jun 2005
    Location: Netherlands
    Posts: 284
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    If you change the "3px" to "1px" it should be ok I guess.
    Reply With Quote
      #5  
    Old 01-16-2006, 01:01 PM
    Detomah's Avatar
    Detomah Detomah is offline
     
    Join Date: Sep 2003
    Location: South Shields UK
    Posts: 217
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    I don't want to sound ungreatful as this is such a good and simple addon with much practicality and one which I really hope I can make use of....

    But...

    Would it not have been better to get it to simply use the vb menu control instead of being a drop down menu? It would fit into the global scheme of the nav bar much better if it could.

    Something along the lines of:

    This for the navbar link bits

    Code:
    <if condition="$show['admincplink']">
    <td id="usercplistadmin" class="vbmenu_control"><a href="$show[nojs_link]#usercplistadmin">Control Panels</a><script type="text/javascript"> vbmenu_register("usercplistadmin"); </script></td>
    <else />
    <if condition="$show['modcplink']">
    <td id="usercplistmod" class="vbmenu_control"><a href="$show[nojs_link]#usercplistmod">Control Panels</a><script type="text/javascript"> vbmenu_register("usercplistmod"); </script></td>
    <else />
    <if condition="$show['member']">
    <td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
    </if>
    </if>
    and this for the popup menu bits:

    Code:
    <if condition="$show['admincplink']">
    <!-- user cp list admin menu -->
    <div class="vbmenu_popup" id="usercplistadmin_menu" style="display:none">
    <table cellpadding="4" cellspacing="1" border="0">
    <tr><td class="vbmenu_option"><a href="/forum/$admincpdir/index.php?$session[sessionurl]">$vbphrase[admin]</a></td></tr>
    <tr><td class="vbmenu_option"><a href="/forum/$modcpdir/index.php?$session[sessionurl]">$vbphrase[mod]</a></td></tr>
    <tr><td class="vbmenu_option"><a href="usercp.php$session[sessionurl_q]">Administrator CP</a></td></tr>
    </table>
    </div>
    <!-- / user cp list admin menu -->
    </if>
    <if condition="$show['modcplink']">
    <!-- user cp list mod menu -->
    <div class="vbmenu_popup" id="usercplistmod_menu" style="display:none">
    <table cellpadding="4" cellspacing="1" border="0">
    <td id="usercplistadmin" class="vbmenu_control"><a href="$show[nojs_link]#usercplistadmin">Control Panels</a><script type="text/javascript"> vbmenu_register("usercplistadmin"); </script></td>
    <tr><td class="vbmenu_option"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td></tr>
    <tr><td class="vbmenu_option"><a href="/forum/$modcpdir/index.php?$session[sessionurl]">$vbphrase[mod]</a></td></tr>
    </table>
    </div>
    <!-- / user cp list mod menu -->
    </if>
    That's only a really rough working of it though.

    I certainly don't mean to be stepping on toes here, so sorry if it wasn't wanted. If you can use it though, feel free.
    Reply With Quote
    Reply

    Thread Tools

    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 02:36 AM.


    Powered by vBulletin® Version 3.8.12 by vBS
    Copyright ©2000 - 2024, vBulletin Solutions Inc.
    X vBulletin 3.8.12 by vBS Debug Information
    • Page Generation 0.03754 seconds
    • Memory Usage 2,243KB
    • Queries Executed 21 (?)
    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
    • (4)bbcode_code
    • (1)footer
    • (1)forumjump
    • (1)forumrules
    • (1)gobutton
    • (1)header
    • (1)headinclude
    • (1)modsystem_post
    • (1)navbar
    • (6)navbar_link
    • (120)option
    • (5)post_thanks_box
    • (5)post_thanks_button
    • (1)post_thanks_javascript
    • (1)post_thanks_navbar_search
    • (5)post_thanks_postbit_info
    • (4)postbit
    • (5)postbit_onlinestatus
    • (5)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