vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   [How-To] Add entries to AdminCP Navigation Menu (https://vborg.vbsupport.ru/showthread.php?t=82698)

Allan 10-11-2005 10:42 PM

Thanks Kirby for important informations :)

KW802 10-18-2005 04:50 PM

Kirby,

Thanks for the info, I was able to make use of it. :)

Kevin

Swindont 10-23-2005 01:45 PM

can u set permissions so only certain admins can see them?

Nullifi3d 10-26-2005 02:23 PM

Quote:

Originally Posted by Swindont
can u set permissions so only certain admins can see them?

Yes, take a look at includes/xml/cpnav_vbulletin.xml for examples.
Take a look at the permissions parameter within the navgroup tags.

achtungbaby 11-07-2005 03:33 AM

Quote:

Originally Posted by Nullifi3d
Yes, take a look at includes/xml/cpnav_vbulletin.xml for examples.
Take a look at the permissions parameter within the navgroup tags.

Hello, thanks for the tip. Would "canrunqueries" be an acceptable permission?

HMBeaty 11-08-2005 01:47 AM

How can I make it so there are mutliple options in the menu? Like this.....

Links
-vBulletin
---vBulletin.org
---vBulletin.com
-Other
---Other.com

Any ideas? Or will that even work?

Andreas 11-08-2005 02:34 AM

You can't have sub-groups.

HMBeaty 11-08-2005 02:36 AM

Quote:

Originally Posted by Andreas
You can't have sub-groups.

Well that...........bites. lol :(

Nullifi3d 11-08-2005 08:40 PM

Quote:

Originally Posted by achtungbaby
Hello, thanks for the tip. Would "canrunqueries" be an acceptable permission?

Yes that's a permission.

waza 12-03-2005 01:52 PM

Hey,
Why doesn't the code below work? I just get a blank tab.
I tried it with displayoptions but didn't work either.
Code:

<?xml version="1.0" encoding="ISO-8859-1"?>
<navgroups product="emotions">
        <navgroup text="Moods" hr="true">
                <navoption>
                        <text>Mood manager</text>
                        <link>image.php?do=modify&table=mood</link>
                </navoption>
                <navoption>
                        <text>Add new mood</text>
                        <link>image.php?do=add&table=mood</link>
                </navoption>
                <navoption>
                        <text>Upload mood</text>
                        <link>image.php?do=upload&table=mood</link>
                </navoption>
        </navgroup>
</navgroups>


Andreas 12-04-2005 09:36 AM

What do you mean with "blank tab"?
Also, do you have a product emotions?

waza 12-04-2005 09:43 AM

1 Attachment(s)
Hey,
yes I have a product emotions, I also tried it with: product="vbulletin" but it didn't work either I always get a blank entry, like in the attached screen.

If I look to the src code I see this for the blank entry:

HTML Code:

<div style="margin-bottom:12px"></div>
        <a name="grpemotions_0"></a>
                <table cellpadding="0" cellspacing="0" border="0" width="100%" class="navtitle" ondblclick="toggle_group('emotions_0'); return false;">
                <tr>
                        <td><strong></strong></td>
                        <td align="right">
                                <a href="index.php?do=buildnavprefs&amp;nojs=0&amp;prefs=&amp;dowhat=expand&amp;id=emotions_0#grpemotions_0" target="_self"
                                        onclick="toggle_group('emotions_0'); return false;"
                                        oncontextmenu="toggle_group('emotions_0'); save_group_prefs('emotions_0'); return false"
                                >
<img src="../cpstyles/vBulletin_3_Silver/cp_expand.gif" title="Expand Group" id="button_emotions_0" alt="" border="0" /></a>
                        </td>

                </tr>
                </table>
                <div id="group_emotions_0" class="navgroup" style="display:none">
                <div class="navlink-normal" onclick="nav_goto('');" onmouseover="this.className='navlink-hover';" onmouseout="this.className='navlink-normal'"><a href=""></a></div>
                </div>


Andreas 12-04-2005 10:05 AM

Your XML is invalid ;)

Code:

<?xml version="1.0" encoding="ISO-8859-1"?>
<navgroups product="emotions">
        <navgroup text="Moods" hr="true">
                <navoption>
                        <text>Mood manager</text>
                        <link>image.php?do=modify&amp;table=mood</link>
                </navoption>
                <navoption>
                        <text>Add new mood</text>
                        <link>image.php?do=add&amp;table=mood</link>
                </navoption>
                <navoption>
                        <text>Upload mood</text>
                        <link>image.php?do=upload&amp;table=mood</link>
                </navoption>
        </navgroup>
</navgroups>


waza 12-04-2005 10:14 AM

Oww I see & should be &amp;

Thx man, I tried like everything, was almost getting crazy :p.

Grz

zendiver 12-18-2005 07:41 PM

Quote:

Originally Posted by Nullifi3d
Yes, take a look at includes/xml/cpnav_vbulletin.xml for examples.
Take a look at the permissions parameter within the navgroup tags.

I can see where it you would put 'permissions="canadminsettings"' but that doesn't allow you to choose which Admins have the accessibility.

If you go to Admin Permissions, you are able to choose which Admin has what permissions to access. How would one go about adding this functionality?

Thanks

cclaerhout 12-23-2005 08:02 PM

Quote:

Originally Posted by zendiver
I can see where it you would put 'permissions="canadminsettings"' but that doesn't allow you to choose which Admins have the accessibility.

If you go to Admin Permissions, you are able to choose which Admin has what permissions to access. How would one go about adding this functionality?

Thanks

I'm wondering the same thing...
Andreas ? ;)

Deviation 12-28-2005 10:42 PM

Just for reference, the vBulletin manual has a section on this.
http://www.vbulletin.com/docs/html/cpnav_xml

Very handy. :squareeyed:

Quote:

Originally Posted by Andreas
  • <navgroups>
    This indicates that this is a XML File containing navgroups.
    It has one parameter product that should be set to vbulletin

Actually this should be set to the name of your product. ;)

Andreas 12-28-2005 10:46 PM

Before RC ... don't know which RC it was that introduced product management, this was correct.

Deviation 12-28-2005 10:47 PM

Quote:

Originally Posted by zendiver
I can see where it you would put 'permissions="canadminsettings"' but that doesn't allow you to choose which Admins have the accessibility.

If you go to Admin Permissions, you are able to choose which Admin has what permissions to access. How would one go about adding this functionality?

Thanks

If you want to add your own permissions, you need to use bitfields.
See http://www.vbulletin.com/docs/html/bitfield_xml

^ Granted this is for 3.5.2..... Not sure about Beta.

Quote:

Originally Posted by Andreas
Before RC ... don't know which RC it was that introduced product management, this was correct.

Have you done one for release? If not, you ought to. Your tutorials are very handy to have around. :glasses:

jim6763nva 02-27-2006 10:35 AM

Andreas,

Thank you very much for taking the time to put this tutorial together! Tutorials like this one are a huge help to new vBulletin Hack developers.
Kudos to you! Hopefully you will be adding more to this.

Best wishes,
Jim

Blackhat 10-30-2008 11:04 AM

so if I want to add entries to the user cp, is this something similar to that ?

Lynne 10-30-2008 02:09 PM

Quote:

Originally Posted by Blackhat (Post 1655928)
so if I want to add entries to the user cp, is this something similar to that ?

No, this is for adding stuff in the admin cp. You are probably thinking of profile fields which usually show up in the users cp.

Blackhat 10-30-2008 02:31 PM

Im thinking of attaching a file to a custom menu entry in the user cp where I can run my custom code inside

ptmuldoon 11-03-2008 02:32 PM

Thanks for the great How To and tip. I'm learning to create a new mod, and was wondering exactly how to add new items to the Admin Menu. Quick question....

When adding a new xml file to add to the menu, it shows the new menu item in vbulletin with a * and [] brackets. Is that normal? It is showing it as

*[My New Mod]*


All times are GMT. The time now is 01:23 PM.

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.01533 seconds
  • Memory Usage 1,782KB
  • 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
  • (1)bbcode_html_printable
  • (10)bbcode_quote_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
  • (24)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