Follow vBSEO on Twitter
vBulletin Modifications
  • Forums
  • Add-Ons
  • Template Modifications
  • Styles
  • Graphics
  • Tutorials
  • Support Center
  • Register
  • vBulletin SEO

Member Log In

Site Navigation

  • Register
  • Members List
  • Social Groups
  • Search
  • Today's Posts
  • Mark Forums Read

Latest Modifications

  • [vB 3.6.x] StopSpam
    By: flappi282
  • [vB 3.8.x] vBulletin Chat Addon for...
    By: 123flashchat
  • [vB 3.5.x] 404 Page Redirect To...
    By: Ak Worm
  • [vB 3.8.x] 404 Page Redirect To...
    By: Ak Worm
  • [vB 4.0.x] 404 Page Redirect To...
    By: Ak Worm

Latest Template Mods

  • [vB 3.8.4] Images PassWordBox...
    By: cRs!MP
  • [vB 3.8.4] Footer Follow Ups
    By: Ak Worm
  • [vB 3.7.2] Worldofwarcraft blue...
    By: Mikeyodesigns
  • [vB 3.7.0] My Links
    By: blind-eddie
  • [vB 3.7.0] Pop-Up Warning Before...
    By: Thelonius Beck

Latest Styles

  • [vB 3.8.4] CompletevB - Skylight
    By: DreadKnight
  • [vB 3.8.3] [vB 3.8.4] Barcelona...
    By: hoiquantinhoc.com
  • [vB 3.8.3] Natures Walk by vBSkin...
    By: Chri5
  • [vB 3.8.3] Green Theme
    By: Robdog
  • [vB 3.8.2] Unreal T 3 - vB3.8.x
    By: Butcher

Latest Graphics

  • [vB ] [anim.]Team Ranks
    By: cRs!MP
  • [vB ] Abstract Circles (3...
    By: cRs!MP
  • [vB ] PlayStation Rank Images
    By: cRs!MP
  • [vB 3.6.12] Heavy Stroked Button...
    By: Shelley
  • [vB ] Minature Ranks.
    By: Shelley
vBulletin Modifications » General vBulletin Section » vBulletin Modification Tutorials » [How to] Add navigation groups to your admincp left panel
Reply
Page 1 of 2 1 2 >

 

  • Thread Tools
Old 05-10-2006, 08:56 PM   1 links from elsewhere to this Post. Click to view. #1
Ken Iovino
vBulletin Guru

Ken Iovino's Avatar

Activity Longevity
0/20 20/20
Today Posts
0/3 sssss2695
Location: Miami, Florida
Age: 26
Ken Iovino is on a distinguished road
Status: Offline Default [How to] Add navigation groups to your admincp left panel
This tutorial will teach how easy it is to add new groups to your admincp left panel. Have you ever installed a plugin, and refreshed the admincp to find some new group added under the vBulletin options, or a new link under a default option? Here is how to do that.

Adding a new group
This first think you will need to do is turn on debug mode. This isn't absolutely necessary but it's a good habit to get into when your making your products, and we're going to use some features that require debug on to be on.

To turn on debug mode add the following line anywhere in your config.php file.
PHP Code:
$config['Misc']['debug'] = true; 
Okay, now we're ready to add a new nav group. Here is the following code that will let you add a new group. This code is XML and should be pretty easy to understand.

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<navgroups product="">
        <navgroup phrase="" hr="" displayorder="" permissions="">
                <navoption displayorder="">
                        <phrase></phrase>
                        <link></link>
                </navoption>
        </navgroup>
</navgroups>
Code:
Here is a little guide that will help you understand alittle.
navgroups attributes
 product = The name of your product.
navgroup attributes
 phrase = The phrase to look for to print the groups title text
 hr = Whether or not to add a horizontal reference. (<hr />)
 displayorder = The display order for this group
 permissions = What permissions to look for. 
        Example: permissions="canadminsettings" will only let admins that have permissions to edit settings see this group 

navoption attributes
 displayorder = The display order of the link

 <phrase> = The phrase to look for to print the links title text
 <link> = The link location to send the user
 
Create the product
Nothing helps you understand better then doing it yourself! Lets start by starting our own product. Login to your admincp panel. Under the Plugin System you should click the Plugin Manager's link. From there you should see [Add/Import Product]. Click on that and under the Add New Product group add the following information.

Product ID: tutorial_test
Title: Tutorial Test
Version: 1.0
Description: This is a test

1.gif

After saving this, we can now add our XML code to display our custom nav group.

create a file called cpnav_tutorialtest.xml with the following code.
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<navgroups product="tutorial_test">
        <navgroup phrase="test_title" hr="true" displayorder="10">
                <navoption displayorder="10">
                        <phrase>my_test_link</phrase>
                        <link>mylink.php</link>
                </navoption>
        </navgroup>
</navgroups>
Notes:
+ Notice the product attribute is the same as the Product ID.
+ The
phrase attribute will look for that phrase. You will need to create this phrase in the phrase manager for this to show up.
+ Notice the
permissions attribute is missing. We won't be using it, since custom admin permissions will be a future tutorial of mine.

Upload that file to your /includes/xml/ directory. Now go ahead and refresh your admincp. If your seeing blank options. Like this:

2.gif

Then you need to add the phrases titled: test_title & my_test_link the phrase type called: Control Panel Global.

Adding the Phrases
Under Languages & Phrases look for Phrase Manager. Click the Add New Phrase button. You will need to do this twice. Here is the first set.

Phrase Type: Control Panel Global
Product: Tutorial Test
Varname: test_title
Text: Tutorial Test
3.gif
Phrase Type: Control Panel Global
Product: Tutorial Test
Varname: my_test_link
Text: My Test Link
4.gif

Now you should see this.

5.gif

Your Done!

Copyright ©2004-2006 vBHackers.com All Rights Reserved.
This tutorial may not be redistributed in whole or significant part.
Ken Iovino / Escalate Media
Reply With Quote
Old 05-10-2006, 10:45 PM   #2
Kiko
Junior Member

Kiko's Avatar

Activity Longevity
0/20 13/20
Today Posts
0/3 sssssss17
Kiko is on a distinguished road
Status: Offline Default
Greatly appreciated, I will post up a downloads hack once I have it ready.

I'd appreciate it if you didn't do it before me as this will be my first one. I already built a Merit system... but it's for clans and I don't know how useful it will be to others.

^.^
<3 Kiko
Reply With Quote
Old 05-11-2006, 02:24 AM   #3
Ken Iovino
vBulletin Guru

Ken Iovino's Avatar

Activity Longevity
0/20 20/20
Today Posts
0/3 sssss2695
Location: Miami, Florida
Age: 26
Ken Iovino is on a distinguished road
Status: Offline Default
Don't worry. I'm far to busy with my own work to release hacks right now.
Reply With Quote
Old 05-11-2006, 08:14 AM   #4
Arnoud
vBulletin Guru

Arnoud's Avatar

Activity Longevity
0/20 18/20
Today Posts
0/3 sssss3129
Location: Europe, Flanders
Arnoud is on a distinguished road
Send a message via MSN to Arnoud Send a message via Yahoo to Arnoud
Status: Offline Default
Thanks for this mate, certainly very useful.
Reply With Quote
Old 05-12-2006, 01:06 AM   #5
Michael Biddle
Staff
Michael Biddle's Avatar

Activity Longevity
4/20 17/20
Today Posts
0/3 sssss2823
Location: Anaheim
Age: 21
Michael Biddle is on a distinguished road
Status: Offline Default
muc happreciated. thanks bro
Support will only be offered through forums
Michael Biddle / vBHackers.com
vBSEO 3.3.0 Gold Released with New "Virtual HTML Display" Feature Available for download now

vBSEO Google Sitemap Generator - Version 2.5 Released

Crawlability Network: vBulletin SEO | vBulletin Hackers
Reply With Quote
Old 07-11-2006, 06:27 PM   #6
Colonel Ingus
vBulletin Guru

Colonel Ingus's Avatar

Activity Longevity
0/20 13/20
Today Posts
0/3 sssss1664
Location: ...in a van, down by the river.
Colonel Ingus is on a distinguished road
Thank you so very much for this. It's one of the best tutes on this subject that we've ever seen.

However there are two additional areas that you seem to have left out; Product URL and Version Check URL. Could you please post some information on how to best use those two areas? Thanks you so much LiveWire
Reply With Quote
Old 08-09-2006, 02:04 AM   #7
HDRebel88
vB User

HDRebel88's Avatar

Activity Longevity
0/20 13/20
Today Posts
0/3 sssssss98
Location: New Jersey, U.S.A.
Age: 21
HDRebel88 is on a distinguished road
Status: Offline Default
What exactly does Debug mode do? I just turned it on, and it confused me as to its purpose. So I turned it back it off.
Reply With Quote
Old 12-04-2006, 10:29 AM   #8
ninjamaster
vB User

ninjamaster's Avatar

Activity Longevity
0/20 11/20
Today Posts
0/3 sssssss71
ninjamaster is on a distinguished road
Status: Offline Default
thanks for the tut i willing to lean anything
Reply With Quote
Old 03-03-2007, 06:20 PM   #9
Michael Biddle
Staff
Michael Biddle's Avatar

Activity Longevity
4/20 17/20
Today Posts
0/3 sssss2823
Location: Anaheim
Age: 21
Michael Biddle is on a distinguished road
Status: Offline Default
wow long response, but debug is for developers, it enables cvertain features with vbulletin, that the general people would not use.
Support will only be offered through forums
Michael Biddle / vBHackers.com
vBSEO 3.3.0 Gold Released with New "Virtual HTML Display" Feature Available for download now

vBSEO Google Sitemap Generator - Version 2.5 Released

Crawlability Network: vBulletin SEO | vBulletin Hackers
Reply With Quote
Old 03-04-2007, 01:01 PM   #10
Magnumutz
Coder

Magnumutz's Avatar

Activity Longevity
0/20 12/20
Today Posts
0/3 ssssss137
Location: Romania
Age: 21
Magnumutz is on a distinguished road
Send a message via MSN to Magnumutz Send a message via Yahoo to Magnumutz Send a message via Skype™ to Magnumutz
Status: Offline Default
Thanks a lot, this works like a charm
Reply With Quote

Reply
Page 1 of 2 1 2 >

« [How To] Add Options per forum | [How-To] - Set username 'Colour/Font/Style' etc... Based on usergroup »

LinkBacks (?)
LinkBack to this Thread: http://www.vbhackers.com/f80/how-add-navigation-groups-your-admincp-left-panel-3297/
Posted By For Type Date
Getting Started Modding VBulletin? - vBulletin Setup Optimization This thread Pingback 03-13-2007 06:44 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
[How To] Run a Query Ken Iovino vBulletin Modification Tutorials 9 07-30-2008 05:29 AM
[How To] Add Options per forum Ken Iovino vBulletin Modification Tutorials 10 03-03-2007 06:25 PM



All times are GMT. The time now is 07:12 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Transverse Styles
  • Top
  • Archive
  • vBSEO
  • Contact Us
LinkBack
See LinkBacks See LinkBacks
LinkBack URL LinkBack URL
About LinkBacks About LinkBacks
Bookmark & Share
Digg this Thread! Digg this Thread!
Add Thread to del.icio.us Add Thread to del.icio.us
Bookmark in Technorati Bookmark in Technorati
Furl this Thread! Furl this Thread!