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)
-   -   Administrative Tools Dropdown (https://vborg.vbsupport.ru/showthread.php?t=106658)

Trana 01-30-2006 02:40 PM

The last one looks the cleanest.

Thanks again!

Guest210212002 01-30-2006 04:23 PM

Anytime. :)

[high]* Guest210212002 eyes the install button[/high]

Snake 01-30-2006 07:10 PM

Oh lovely!

GatorV 01-31-2006 11:53 PM

Code:

<!-- Admin Tools Menu Element -->
        <div class="vbmenu_popup" id="AdminMenu_menu" style="display:none">
                <table cellpadding="4" cellspacing="1" border="0">
                <tr><td class="thead">Admin Tools</span></td></tr>
                <tr><td class="vbmenu_option"><a href="http://option1">First Option</a></td></tr>
                <tr><td class="vbmenu_option"><a href="http://option2">Second Option</a></td></tr>
                <tr><td class="vbmenu_option"><a href="http://option3">Third Option</a></td></tr>
                </table>
        </div>
<!-- /Admin Tools Menu Element -->

Won't this enable too see the links if they view source code, no matter what usergroup are no?

I ask this because I installed this to put a dropdown to some special search tools, and if anyone does right click and view source can get the links...

Guest210212002 02-01-2006 01:59 AM

That's a great point, and wrapping the bottome code in a conditional is something I overlooked, thank you! This is a better way to do it.

Original post is updated with the new code.

To fix your existing navbar template:

Find:
Code:

<if condition="in_array($bbuserinfo['usergroupid'], array(7))">
Replace with:
Code:

<if condition="$show['admincplink']">
Find:
Code:

<!-- Admin Tools Menu Element -->
Add Below:

Code:

<if condition="$show['admincplink']">
Find:
Code:

<!-- /Admin Tools Menu Element -->
Add above:
Code:

</if>

Luggruff 02-06-2006 08:34 AM

hmm, now that the <if condition="in_array($bbuserinfo['usergroupid'], array(7))"> and such is gone, and I suck at coding.. how can I set more than the admin usergroup?
Like if I want it to show for moderators too.. (6 and 7)?
Or if I want a seperate menu for mods and one for admins?

Edit: Fixed.

Just replaced the <if condition="$show['admincplink']"> with <if condition="in_array($bbuserinfo['usergroupid'], array(7))"> again. No one can see the code anyways now. Just the <!-- Admin content menu --> but nothing in between.

Omranic 02-07-2006 10:40 AM

nice


All times are GMT. The time now is 10:38 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.01020 seconds
  • Memory Usage 1,731KB
  • 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
  • (7)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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