Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 02-18-2008, 05:15 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #12  
Old 02-18-2008, 05:41 PM
RobDog888's Avatar
RobDog888 RobDog888 is offline
 
Join Date: Apr 2007
Location: Degabah Swamp
Posts: 293
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<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>
Reply With Quote
  #13  
Old 02-18-2008, 06:47 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 02-19-2008, 08:07 AM
Nullifi3d Nullifi3d is offline
 
Join Date: Apr 2004
Location: FL, USA
Posts: 215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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();

Reply With Quote
  #15  
Old 02-19-2008, 08:23 AM
RobDog888's Avatar
RobDog888 RobDog888 is offline
 
Join Date: Apr 2007
Location: Degabah Swamp
Posts: 293
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump


All times are GMT. The time now is 03:34 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.13888 seconds
  • Memory Usage 2,202KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete