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)

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


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

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01326 seconds
  • Memory Usage 1,752KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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