PDA

View Full Version : Forum Display Enhancements - Admin and Mod Toolbar in Navbar


nNJ
31 Mar 2009, 22:01
Description
(Please Note that Version 2.5 has been released!)
(Arabic Translation added! (Credits to Daniel_HBK!)

This is a template modification that will add an "Admin Toolbar" to the navbar if you are an administrator, and a "Mod Toolbar" to the navbar if you are a Mod/Super Mod.

Other usergroups Can Not! see these toolbars!

New! Administrators/Moderators only see links to tools they have permission to use!

Each Toolbar is a dropdown menu with shortcuts to the Admin/Mod panel, and frequently used tools within the Admin/Mod Panel.



By Default, these are the shortcut in each Toolbar:

Administrators


Admin Panel Home
Vbulletin Options
Style Manager
Usergroup Manager
Forum Manager
Infraction Manager
Search for User
Ban User
New Announcement



Moderators


Mod Panel Home
Search for User
Search for IP
Ban User
New Announcement



*Links can be customized [easily]! Please check the download for instructions.



Screenshots:

https://www.vbulletin.org/forum/external/2009/03/2.jpg

https://www.vbulletin.org/forum/external/2009/03/3.jpg

*Please note: In the screenshots above, the Administrator sees both the Admin and Moderator Panel. This glitch was fixed in v2.5, but I am unable to update the screenshots until I reopen my forum.

Tested and working perfetly in vBulletin 3.8.1, althought it should work in all versions of vBulletin newer than 3.5.

Please Click "Installed" if you have used this hack!

For Installation Instructions, Please Download and see the .txt

I welcome comments and feedback!

nNJ
31 Mar 2009, 22:28
Version 2.5 Released!

Please see the Above Post and Instructions in the .txt (download above) for new features and bug fixes!

Suggestions/Comments Welcome!
nNJ

ssslippy
31 Mar 2009, 22:46
The screenshot is um huge.

nNJ
31 Mar 2009, 22:54
Sorry.. I noticed that.

It was a mistake on my fault. The first screenshot was taken on my 13 (15?) inch monitor, and the second was taken on my 22" monitor.. My bad.

I'll take another screenshot on the 13 (15?) inch and reupload it to match.

(Daul Monitors ftw).

nNJ

*edit

New screenshot uploaded. Sorry about that.

nNJ

ragtek
31 Mar 2009, 22:58
You don't check for adminpermissions.;)

A admin without userpermissions(create,edit,ect) will see the entry in the menu. (ok he can't do anything, but thats not nice), the same with announcements

nNJ
31 Mar 2009, 23:04
Ahhh, good point.

On a side note - why wouldn't an administrator have full userpermissions?

ragtek
31 Mar 2009, 23:19
There are many reasons...

Don't know if you know this feature^^ http://www.vbulletin.com/docs/html/usergroup_admin_perms

nNJ
31 Mar 2009, 23:31
Alright, I see your point, and I appreciate the info.

How would I check their permissions?
(Sorry - I'm learning as I'm going)

Daniel_HBK
01 Apr 2009, 03:31
installed :)

nNJ
01 Apr 2009, 03:38
Great, Thanks. I hope you like it!

Next release I'd like to do two things :

1. Check Admin/Mod userpermissions
2. Display only the Admin Toolbar Rather than the Admin and Mod Toolbar to moderators.

EDIT- I found a small typo in the Admin Panel Link (Ban User) I have corrected this, reupploaded the Mod, and sent out an update.

I am very sorry any inconvenience this may have caused.

Jasem
01 Apr 2009, 05:18
Nice work, thank you! :up:

Installed

KevinL
01 Apr 2009, 14:34
This is a cool idea once the permissions thing gets worked out :)

Daniel_HBK
01 Apr 2009, 19:02
Great, Thanks. I hope you like it!

Next release I'd like to do two things :

1. Check Admin/Mod userpermissions
2. Display only the Admin Toolbar Rather than the Admin and Mod Toolbar to moderators.

EDIT- I found a small typo in the Admin Panel Link (Ban User) I have corrected this, reupploaded the Mod, and sent out an update.

I am very sorry any inconvenience this may have caused.
good work man :)

and never be depressed

in Egypt their is a phrase says :- Mile's journey starts with a step

:)

nNJ
05 Apr 2009, 04:14
VERSION 2.5 HAS BEEN RELEASED!

Please see the above Post and Instructions in the new .txt (Download Above)!

Please Remember To Click MARK AS INSTALLED if you have used this hack.

Comments and Suggestions Welcome!
------------------------------------------------------------

I'm stil working on a way to check permissions.

So far I've come up with
<if condition="$show['SOMETHING ']">

But I'm not exactly sure what I should Plug in for that something..

Andrew johnson
05 Apr 2009, 18:33
great - thanks for great hack

mrtroybaker
06 Apr 2009, 00:47
I would love to use this hack as its perfect but when searching for the code spacified I do not find it. Below is th ecode in my navbar template.
<br />

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td>&nbsp;</td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="" border="0" /><else /><a href="$navbar_reloadurl"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>
<if condition="$show['member']">
<td class="alt2" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>

<if condition="$show['notifications']">
<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
<if condition="$show['popups']">
<script type="text/javascript"> vBmenu.register("notifications"); </script>
<else />
<script type="text/javascript" src="clientscript/vbulletin_notifications_nopopups.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript"> vBulletin.register_control("vB_Notifications_NoPopups", "notifications"); </script>
</if>
<else /><if condition="$show['pmstats']">
<div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
</if></if>

<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
</div>
</td>
<else />
<td class="alt2" nowrap="nowrap" style="padding:0px">
<!-- login form -->
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont" style="white-space: nowrap;"><label for="navbar_username">$vbphrase[username]</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->
</td>
</if>
</tr>
</table>
<!-- / breadcrumb, login, pm info -->


<br />

<if condition="$show['notices']">
<form action="profile.php?do=dismissnotice" method="post" id="notices">
<input type="hidden" name="do" value="dismissnotice" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" />
<input type="hidden" name="url" value="$return_link" />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead">$vbphrase[notices]</td>
</tr>
<tr>
<td class="alt1">
$notices
</td>
</tr>
</table>
<br />
</form>
</if>

<if condition="$show['forumdesc']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
</tr>
</table>
<br />
</if>

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<if condition="$show['communitylink']">
<!-- community link menu -->
<div class="vbmenu_popup" id="community_menu" style="display:none;margin-top:3px" align="$stylevar[left]">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">$vbphrase[community_links]</td></tr>
$template_hook[navbar_community_menu_start]
<if condition="$show['quick_links_groups']">
<tr><td class="vbmenu_option"><a href="group.php$session[sessionurl_q]">$vbphrase[social_groups]</a></td></tr>
</if>
<if condition="$show['quick_links_albums']">
<tr><td class="vbmenu_option"><a href="album.php$session[sessionurl_q]">$vbphrase[pictures_and_albums]</a></td></tr>
</if>
<if condition="$bbuserinfo['userid']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=buddylist"><if condition="$show['friends_and_contacts']">$vbphrase[contacts_and_friends]<else />$vbphrase[contacts]</if></a></td></tr>
</if>
<if condition="$show['memberslist']">
<tr><td class="vbmenu_option"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td></tr>
</if>
$template_hook[navbar_community_menu_end]
</table>
</div>
<!-- / community link menu -->
</if>

<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none;margin-top:3px" align="$stylevar[left]">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="search.php?do=process" method="post">

<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="exactname" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
<div style="margin-top:$stylevar[cellpadding]px">
<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
&nbsp;
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
</div>
</form>
</td>
</tr>
<if condition="$vboptions[threadtagging]">
<tr>
<td class="vbmenu_option"><a href="tags.php$session[sessionurl_q]" rel="nofollow">$vbphrase[tag_search]</a></td>
</tr>
</if>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
$template_hook[navbar_search_menu]
</table>
</div>
<!-- / header quick search form -->
</if>

<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none;margin-top:3px" align="$stylevar[left]">
<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_contacts]</a></td></tr>
$template_hook[navbar_quick_links_menu_pos1]
$template_hook[navbar_quick_links_menu_pos2]

<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_your_details]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
$template_hook[navbar_quick_links_menu_pos3]

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmmainlink']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[your_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>
$template_hook[navbar_quick_links_menu_pos4]

</table>
</div>
<!-- / user cp tools menu -->

</if>
<!-- / NAVBAR POPUP MENUS -->

<!-- PAGENAV POPUP -->
<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>
<!-- / PAGENAV POPUP -->
</if>

<if condition="$show['member'] AND $notifications_total">
<!-- notifications menu -->
<div class="vbmenu_popup" id="notifications_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead" colspan="2">$vbphrase[your_notifications]</td></tr>
$notifications_menubits
</table>
</div>
<!-- / notifications menu -->
</if>

$ad_location[ad_navbar_below]

mrtroybaker
07 Apr 2009, 05:04
Great Mod and Support. Thank you nNJ for your help. Sorry to be so impatient. LOL Just got to excited I guess. Thank again

nNJ
08 Apr 2009, 03:43
I havent had a chance to do anything.. all day.

My webhost has been down, so I ahvent been able to test anything.
Im switching hosts, so It should be ready tomorow.

For the record, what version of vBulletin are you using?

mrtroybaker
09 Apr 2009, 20:42
Im using 3.8.2

Daniel_HBK
09 Apr 2009, 21:19
Arabic Version! :)

princeedward
10 Apr 2009, 11:35
great idea...just dunno can't make it work without that dropdown arrow....also the mod not working also to my site....

any idea? thanks a lot...

;)

ragtek
11 Apr 2009, 00:04
edit: sorry not working

nNJ
11 Apr 2009, 02:57
only if you don't know much PHP.

ragtek
11 Apr 2009, 14:04
sorry

my code will not work in the frontend!

BigBass
11 Apr 2009, 14:13
Just FYI,

The installation text, forgets to tell you to put the usergroup numbers in the text that you want to have the toolbars visible to.

nNJ
12 Apr 2009, 01:56
sorry

my code will not work in the frontend!

Oh No!
I didn't mean that you didn't know much PHP!

I had meant that I don't know much, I'm still learning the language.

I apologize if it seemed like I was insulting you, I really did not mean it that way.

nNJ

nNJ
12 Apr 2009, 01:59
Just FYI,

The installation text, forgets to tell you to put the usergroup numbers in the text that you want to have the toolbars visible to.

It was left out on purpose; I didn't want to confuse people with an extra step.

I think it would be easy to change the usergroup that it's visiable, but I didn't think many people would change the default Usergroups.

So, I left it visible to mod and supermod (usergroup id 5 and 7), and Admin (usergroup id 6).

If you require any help changing the usergroups the toolbars are visible to, please let me know.

Parker Clack
12 Apr 2009, 02:21
<td class="vbmenu_option"><a href="$modcpdir/user.php?do=find">Mod Panel Home</a></td>


should be

<td class="vbmenu_option"><a href="$modcpdir/index.php">Mod Panel Home</a></td>

Thanks for the great hack.

nNJ
12 Apr 2009, 17:34
Woops.

Thanks for pointing that out Parker Clack!

I will fix that and re upload now.

pesky little typos....

nNJ
12 Apr 2009, 17:35
Arabic Version! :)

Thank you very much for the translation!

I will upload that to the main release and add your name to the credits!

nNJ
12 Apr 2009, 17:39
great idea...just dunno can't make it work without that dropdown arrow....also the mod not working also to my site....

any idea? thanks a lot...

;)

Would you mind PM'ing me with some more information?
Please include:

Your navbar Template
a link to the style you are using
a link to your forum where you are having trouble
your vbulletin version

nNJ
12 Apr 2009, 18:29
I'm almost done with V3!

I've added a few more links, fixed a typo or two, added permission checks, and now I just need to test it.


Testers are needed!
I would very much appreciate if someone would help me test this hack. It makes my work so much easier if I don't have to test it myself.

These hack is completely safe and reversible in under 2 minutes for anyone that may want to test but is worried about "messing up" their forums.

Thanks,
nNJ

P.S. If you would like to help test, please PM me. If you are volunteering, you should know how to edit templates and know your way around the vBulletin Admin Panel, but you do not need to know PHP or any other programming language.

nNJ
17 Apr 2009, 22:26
V3 is finished, but untested. I will release a v3 beta in 24 hours if no one volunteers to test.

If someone volunteers to test, I will release v3 (non beta) with any bugs fixed during the testing process.

Either way, this tim tomorow there will be an update

nomoreturn
18 Apr 2009, 00:12
very good work. thanks

Daniel_HBK
19 Apr 2009, 23:37
Never mind :)

God bless you :)

nizzie
11 May 2009, 10:20
Sorry but how do I add another group to view the admin toolbar? because I have an owners group and a admin group (owners is 6 and admins is 13)??

Thanks!

skwestle
12 May 2009, 03:48
Where do I find the NAVBAR template in my Admin CP?
Sorry if its a stupid question but I like the Mod and never had to deal with code yet

odln018
14 May 2009, 19:46
Click on Style Manager, find the style you want to file, click on the drop down to select edit templates, find Navigation/breadcrumb templates, and choose "navbar".

troybtj
15 May 2009, 20:41
Is there a way to go directly to a specific setting in vBulletin Options?

e.g. vB Options | addon-name | addon settings page

Instead of going to the list of all vB options to find the add on that the setting is to be changed for?

nNJ
27 May 2009, 03:43
yes, just go to that addon in the admin panel, copy down the link, and follow the instructions for adding a new link on the dropdown menu included with the install instructions :).

If you need help just let me know ^^.

nNJ

P.S. - If you need help, just let me know and I'll be glad to give ya a hand!

Slaxi
28 May 2009, 07:38
Sorry but how do I add another group to view the admin toolbar? because I have an owners group and a admin group (owners is 6 and admins is 13)??

Thanks!

try this:

find in the navbar template:

<!-- ADMIN TOOLBAR -->

<if condition="$bbuserinfo[usergroupid] == 6">
<td id="3" class="vbmenu_control"><a href="#4">Admin Toolbar</a>
<script type="text/javascript"> vbmenu_register("3"); </script></td>
</if>

replace it with:

<!-- ADMIN TOOLBAR -->

<if condition="is_member_of($bbuserinfo, 6, 13">
<td id="3" class="vbmenu_control"><a href="#4">Admin Toolbar</a>
<script type="text/javascript"> vbmenu_register("3"); </script></td>
</if>

than search for:

<!-- ADMIN TOOLBAR -->

<if condition="$bbuserinfo[usergroupid] == 6">
<div class="vbmenu_popup" id="3_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">Admin Toolbar</td>

replace it with:

<!-- ADMIN TOOLBAR -->

<if condition="is_member_of($bbuserinfo, 6, 13">
<div class="vbmenu_popup" id="3_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">Admin Toolbar</td>

--------------------------------------------------------------------------------------------------------------------------

thanks for the mod, nNj.

I've translated the Install Guide to german.

| Admin and Mod Toolbars V2.5 |
--------------------------------
Installing (Upgrade Instructions below)

1. Im NAVBAR template folgendes suchen :
--------------------------------

<if condition="$show['member']">
<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
</if>

------------------------------
folgendes drunter einfügen:
------------------------------

<!-- ADMIN TOOLBAR -->

<if condition="$bbuserinfo[usergroupid] == 6">
<td id="3" class="vbmenu_control"><a href="#4">Admin Toolbar</a>
<script type="text/javascript"> vbmenu_register("3"); </script></td>
</if>

<!-- MOD TOOLBAR -->

<if condition="in_array($bbuserinfo[usergroupid], array(5,7))">
<td id="4" class="vbmenu_control"><a href="#4">Mod Toolbar</a>
<script type="text/javascript"> vbmenu_register("4"); </script></td>
</if>



------------------------------

2. Danach im NAVBAR template folgendes suchen :
------------------------------

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

------------------------------
folgendes drunter einfügen:
------------------------------

<!-- ADMIN TOOLBAR -->

<if condition="$bbuserinfo[usergroupid] == 6">
<div class="vbmenu_popup" id="3_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">Admin Toolbar</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$admincpdir/index.php">Admin Panel Startseite</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$admincpdir/options.php?null=0">vBulletin Optionen</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$admincpdir/template.php?do=modify">Styles verwalten</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$admincpdir/usergroup.php?do=modify">Benutzergruppen verwalten</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$admincpdir/forum.php?do=modify">Foren verwalten</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$admincpdir/user.php?do=find">Alle Benutzer anzeigen</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$admincpdir/user.php?do=modify">Benutzer suchen</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/banning.php?do=banuser">Benutzer sperren</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$admincpdir/options.php?do=options&dogroup=banning">Benutzer über IP sperren</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$admincpdir/announcement.php?do=add">Ankündigung hinzufügen</a></td>
</tr>
</table>
</div>
</if>

<!-- MOD TOOLBAR -->


<if condition="in_array($bbuserinfo[usergroupid], array(5,7))">
<div class="vbmenu_popup" id="4_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">Mod Toolbar</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/index.php">Mod Panel Startseite</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/user.php?do=find">Benutzer suchen</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/user.php?do=doips">IP suchen</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/banning.php?do=banuser">Benutzer sperren</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$modcpdir/announcement.php?do=add">Ankündigung hinzufügen</a></td>
</tr>
</table>
</div>
</if>

nNJ
28 May 2009, 20:01
Thanks for the Translation Slaxi! I'll upload it and add your name to the co authors ^^.

GeorgeB85
28 May 2009, 20:15
The one suggestion I would like to make is make a link to where if you click on "ban user" for instance, there will be a link to click on to go back to the forums.

VonDoom
10 Jul 2009, 20:55
Flawless! *Installed* Thanks..

s-p0k
19 Jul 2009, 08:10
have a prob with this one where to put it?
not seeing it
<if condition="$show['member']">
<td class="alt2" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>

<if condition="$show['notifications']">
<div><span id="notifications"><a

Strike-Force.ne
20 Jul 2009, 03:48
Installed on 3.8.3

Nice feature for the Mods to access these tools faster.

Mr_Devlin
20 Jul 2009, 19:58
I've added this to the quick links menue as additional options below the miscellaneous options. Works fine, thank you.

bluej
20 Aug 2009, 02:56
great mod, thanks :)

Sador
20 Aug 2009, 13:09
Installed, thank you. Looking forward for version 3.

jkcerda
20 Aug 2009, 17:36
cool, will try it:D

jfrenaye
24 Aug 2009, 00:44
I installed this on a brand new forum this afternoon and it worked like a charm. However another one I work on (3.82) does not seem to have the first code that I search for.

Here is my code in the NAVBAR. Any help is much appreciated. Great Hack!

<br />
<div class="tcorner"><div class="tcrn-c"><div class="tcrn-l"></div><div class="tcrn-r"></div></div></div>
<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td>&nbsp;</td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="" border="0" /><else /><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>

<if condition="$show['member']">

<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['notifications'] AND $show['popups']">
<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
<script type="text/javascript"> vBmenu.register("notifications"); </script>
<else /><if condition="$show['pmstats']">
<div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
</if></if>
<!-- clock hack--> <div id="clock">Loading...</div> <script type="text/javascript"> function refrClock() { var d=new Date(); var s=d.getSeconds(); var m=d.getMinutes(); var h=d.getHours(); var day=d.getDay(); var date=d.getDate(); var month=d.getMonth(); var year=d.getFullYear(); var days=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); var months=new Array("January","February","March","April","May","June","July","August","Septemb er","October","November","December"); var AM_PM; if (s<10) {s="0" + s} if (m<10) {m="0" + m} if (h>12) {h-=12;AM_PM = "PM"} else {AM_PM="AM"} if (h<10) {h="0" + h} document.getElementById("clock").innerHTML=days[day] + " :: " + months[month] + " " + date + "," + " " + year + " :: " + h + ":" + m + ":" + s + " " + AM_PM; setTimeout("refrClock()",1000); } refrClock(); </script> <!-- / clock hack -->
<if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>
</div>
</td>

<else />

<td class="alt2" nowrap="nowrap" style="padding:0px">

<!-- login form -->
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont"><label for="navbar_username">$vbphrase[username]</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->

</td>

</if>

</tr>
</table>
<div class="bcorner"><div class="bcrn-c"><div class="bcrn-l"></div><div class="bcrn-r"></div></div></div>
<!-- / breadcrumb, login, pm info -->

<br />
<if condition="$show['forumdesc']">
<div class="tcorner"><div class="tcrn-c"><div class="tcrn-l"></div><div class="tcrn-r"></div></div></div>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
</tr>
</table>
<div class="bcorner"><div class="bcrn-c"><div class="bcrn-l"></div><div class="bcrn-r"></div></div></div>
<br />
</if>

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="search.php?do=process" method="post">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="exactname" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<div><input type="text" class="search_input" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
<div style="margin-top:$stylevar[cellpadding]px">
<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
&nbsp;
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
</div>
</form>
</td>
</tr>
<if condition="$vboptions[threadtagging]">
<tr>
<td class="vbmenu_option"><a href="tags.php$session[sessionurl_q]" rel="nofollow">$vbphrase[tag_search]</a></td>
</tr>
</if>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
$template_hook[navbar_search_menu]
</table>
</div>
<!-- / header quick search form -->
</if>


<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><!-- Unanswered Posts --> <tr><td class="vbmenu_option"><a href="search.php?do=process&replyless=1&replylimit=0&exclude=30">Unanswered Posts</a></td></tr> <!-- /Unanswered Posts --></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_contacts]</a></td></tr>
$template_hook[navbar_quick_links_menu_pos1]
<tr><td class="thead">$vbphrase[networking]</td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=buddylist"><if condition="$show['friends_and_contacts']">$vbphrase[contacts_and_friends]<else />$vbphrase[contacts]</if></a></td></tr>
<if condition="$show['quick_links_groups']">
<tr><td class="vbmenu_option"><a href="group.php$session[sessionurl_q]">$vbphrase[social_groups]</a></td></tr>
</if>
<if condition="$show['quick_links_albums']">
<tr><td class="vbmenu_option"><a href="album.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[pictures_and_albums]</a></td></tr>
</if>
$template_hook[navbar_quick_links_menu_pos2]
<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_your_details]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
$template_hook[navbar_quick_links_menu_pos3]

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmmainlink']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[your_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>
$template_hook[navbar_quick_links_menu_pos3]

</table>
</div>
<!-- / user cp tools menu -->
<if condition="$notifications_total">
<!-- notifications menu -->
<div class="vbmenu_popup" id="notifications_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead" colspan="2">$vbphrase[your_notifications]</td></tr>
$notifications_menubits
</table>
</div>
<!-- / notifications menu -->
</if>
</if>
<!-- / NAVBAR POPUP MENUS -->

<!-- PAGENAV POPUP -->

<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>

<!-- / PAGENAV POPUP -->
</if>
$ad_location[ad_navbar_below]

HabboLan
20 Oct 2009, 04:30
I was wondering if there is any way to have a site owner and an admin to have the admin toolbar ? I have a site owner as an id of #10 and admin as #6 , i can get one number, didnt know if there was a way to have two different id number to have it. I tried with 6,10 but it didn't like it, error.
I'm using 3.8.4 version. If not that' s ok. Not really that important.
Other than that , great mod , thanks. Marked installed.

Trescom
23 Oct 2009, 20:22
Hey nNJ, great work! I really love it!
Why didn't i think about it earlier ^^

I've translated everything into polish language.
Attachement's below.

Hope to see new release soon! :)

nNJ
12 Nov 2009, 04:31
Hey guys.

Sorry about the HUUGE delay for V3. Honestly, I forgot about this mod. I'll pick it up tomorrow, look forward to v3 soon!

P.S. - Id love to hear your input on this!

nNJ
12 Nov 2009, 04:35
Update: I finished V3 tonight; added permission checking.
(An Admin/Mod will only see links to tools that he/she has permission to use).

It was actually a lot easier to do than expected.

I was thinking about a V4.. but what else could I add?.. This mod seems pretty complete. Any and all suggestions are welcome!

Brandon Sheley
12 Nov 2009, 05:45
This is a cool idea once the permissions thing gets worked out :)

agreed :up:

elwachiman
12 Nov 2009, 16:54
I'll try this mod is excellent q and then give my opinion thanks

dandanch
12 Nov 2009, 19:41
The only problem is what you wanted us to replace is now gone, you asked us to delete that code in the Upgrade?
or maybe i'm just not understanding what your asking us to do.

<if condition="in_array($bbuserinfo[userid], array(5,7))">

WebkinzCoast
15 Nov 2009, 00:18
I'm going to install this right now, hoping it all works out great :D

WebkinzCoast
15 Nov 2009, 01:04
Not working for me? I made the necessary changes and nothing news in the Navbar?

delfost
02 Dec 2009, 00:11
Not working for me? I made the necessary changes and nothing news in the Navbar?


what version of vbulletin do you use?

bc im using vbulletin 3.8.4 patch level 1 and don't work "only display in the menu "Admin Panel Home" and nothing more (ps: im admin)

giotis9
22 Jan 2010, 19:10
bc im using vbulletin 3.8.4 patch level 1 and don't work "only display in the menu "Admin Panel Home" and nothing more (ps: im admin)

I have solved that problem. Just delete

<if condition="$show['canbanusers']"> and </if> from the beginning and the end of each option. ;)

mgurain
02 Feb 2010, 19:54
We are looking to convert this useful mod to a simple xml product.

Thelonius Beck
12 Feb 2010, 01:09
Love this idea! Don't know why I've never thought to do it myself. Thanks.

=========================================================

Great Mod and Support. Thank you nNJ for your help. Sorry to be so impatient. LOL Just got to excited I guess. Thank again

I installed this on a brand new forum this afternoon and it worked like a charm. However another one I work on (3.82) does not seem to have the first code that I search for.

Here is my code in the NAVBAR. Any help is much appreciated. Great Hack!

You folks are using custom skins that have the navigation buttons outside the navbar template it appears. Perhaps they have been moved to your header template?

Just make the same edit (the first one in the instructions) to which ever template they are in.

Thelonius Beck
12 Feb 2010, 01:11
I have solved that problem. Just delete

<if condition="$show['canbanusers']"> and </if> from the beginning and the end of each option. ;)

Me too. Being the only admin, and having all of my Mods as full Super Moderators eliminates the need for conditionals anyway.

edward hamilton
24 Feb 2010, 15:35
Thanks for the great Mod. I recently made some changes to my forum and lost some Mod links but this is even better than what I had hacked together.

I did have to remove the if conditional statements as mentioned in the last posts.