vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Permissions Page (https://vborg.vbsupport.ru/showthread.php?t=170080)

Opserty 02-18-2008 05:15 PM

I don't know actually, I just guess and set it to No (or sometimes randomly Yes, depending on my mood) not sure how much difference it makes. Wait till someone else replies they might be able to shed some light on it. ;)

RobDog888 02-18-2008 05:41 PM

<font color="darkgreen">I think it looks like it should be set to No as my settings are separate from vB.

This is cool but it adds to the vbulletin settings dropdown. i just want to create/use my own settings and display thenm in my own admincp page. Hmm, maybe I just shouldnt use the vb setting table but then it wont be cached like all the other settings and that will require another db call and code etc.

When I export what I have (setting group and one setting) nothing but the settinggroup appears in the xml file.</font>

Opserty 02-18-2008 06:47 PM

Make sure the individual settings are associated with the product as well and also make sure that "Blacklist" is set to "No" for each setting.

Nullifi3d 02-19-2008 08:07 AM

For setting groups (not ugp):
Code:

<options>
        <settinggroup name="productpermissions" displayorder="0">
                <setting varname="productpermissions_settingname" displayorder="1">
                        <datatype>free</datatype>
                        <optioncode>yesno</optioncode>
                        <defaultvalue>1</defaultvalue>
                </setting>
        </settingroup>
</options>

displayorder="0" will hide the setting group from view in the vbulletin options setting groups display (unless debug mode is turned on).

For display of settings at the bottom of the ACP's links (cpnav_product.xml):
Code:

<?xml version="1.0" encoding="ISO-8859-1"?>
<navgroups product="yourproduct" master="true">
        <navgroup phrase="yourproduct_options" permissions="canadminsettings" hr="true" displayorder="10">
                <navoption displayorder="10">
                        <phrase>vbulletin_options</phrase>
                        <link>options.php?null=0</link>
                </navoption>
        </navgroup>
</navgroups>

For display of settings at the top of the ACP's links (admin_index_navigation plugin):
PHP Code:

if ($yourcondition) {
    
construct_nav_option($vbphrase['productpermissionsphrase'], '../' $vbulletin->config[Misc][admincpdir] . '/options.php?dogroup=productpermissions');
    
construct_nav_group($vbphrase['productsettings']);
    
construct_nav_spacer();



RobDog888 02-19-2008 08:23 AM

Thanks for the code Nullifi3d. I have the admin nav group navigation menu and pages already done but the option/settings is what I mainly needed. :)


But where is the "admin_index_navigation plugin" yor talking about? Is that in place of using the cpnav_product.xml which I am using?
Btw, does anyone know how to import the help topics created in debug mode? I tried and it looks correct but they wont show on my test board. Seems like I need to insert a record or two into the adminhelp table?


All times are GMT. The time now is 09:47 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.01148 seconds
  • Memory Usage 1,726KB
  • 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_php_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
  • (5)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