vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   [Mini hack] Add Admin, Mod dropdown on Navbar (https://vborg.vbsupport.ru/showthread.php?t=94835)

Fj?rgyn 08-25-2005 11:23 PM

Quote:

Originally Posted by KuRi
Cus that should then only show for mods and super mods????

Yes :)

KuRi 08-25-2005 11:52 PM

Heres the fix

Attachment has been updated

Tony G 08-26-2005 03:25 AM

Please attach the fix to your first post too, thanks. :)

Fj?rgyn 08-26-2005 10:17 AM

Thank you, you're the best :D

KuRi 08-26-2005 12:36 PM

Quote:

Originally Posted by Tony G
Please attach the fix to your first post too, thanks. :)

Done

Quote:

Originally Posted by Fj?rgyn
Thank you, you're the best :D

Thankyou :)

Huijting 09-14-2005 11:19 AM

Got it working thnx

But is there a way to get it working with cmps ?

thnx for any reply

KuRi 09-14-2005 07:47 PM

Add the following to 'Portal Output Global Variables' in vBaCmps admin:
admincpdir
modcpdir

Huijting 09-14-2005 08:19 PM

Don't know quite where to find : 'Portal Output Global Variables' :nervous:

ehmmm.....help :nervous:

Huijting 09-14-2005 08:26 PM

oops found it , almost got it working now :-)

Now i got the problem that the link goes to www.huijting.nl/admincp/ and it should be going to www.huijting.nl/vbul/admincp/

When i'm in my forums it woarks great, only at my front page (and gallery) i got this problem.

Rob

KuRi 09-14-2005 11:01 PM

ok in the navbar template find:
Code:

        <!-- staff menu -->
        <div class="vbmenu_popup" id="staff_menu" style="display:none">
                <table cellpadding="4" cellspacing="1" border="0">

        <tr><td class="thead">Staff Menu</td></tr>               
        <if condition="$show['admincplink']">
<tr><td class="vbmenu_option"><a href="$admincpdir/" target="blank_">Admin CP</a></td></tr>
        </if>
        <if condition="$show['modcplink'] OR $bbuserinfo['usergroupid'] == '5' OR $bbuserinfo['usergroupid'] == '7'">
<tr><td class="vbmenu_option"><a href="$modcpdir/" target="blank_">Moderator CP</a></td></tr>
        </if>       
                </table>
        </div>
        <!-- / staff menu -->

replace with

Code:

        <!-- staff menu -->
        <div class="vbmenu_popup" id="staff_menu" style="display:none">
                <table cellpadding="4" cellspacing="1" border="0">

        <tr><td class="thead">Staff Menu</td></tr>               
        <if condition="$show['admincplink']">
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/$admincpdir" target="blank_">Admin CP</a></td></tr>
        </if>
        <if condition="$show['modcplink'] OR $bbuserinfo['usergroupid'] == '5' OR $bbuserinfo['usergroupid'] == '7'">
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/$modcpdir" target="blank_">Moderator CP</a></td></tr>
        </if>       
                </table>
        </div>
        <!-- / staff menu -->



All times are GMT. The time now is 07:30 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.01221 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete