vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Add settings and setting group to the vboptions settings panel (https://vborg.vbsupport.ru/showthread.php?t=83469)

Michael Morris 06-21-2005 04:17 AM

Add settings and setting group to the vboptions settings panel
 
I'm working on porting a hack that has multiple settings within a couple setting groups and I'd like to have them be part of the normal vb Options and not have their own navpanel since they'll be used so rarely once set and it would be wasting real estate on the nav panel.

Dream 06-21-2005 04:38 AM

edit includes/xml/cpnav_vbulletin.xml , if I understood the question.

edit: nvm

Michael Morris 06-21-2005 07:37 PM

No, I don't want to (and don't think I need to) edit the cpnav xml file to add additional settings to the options file.

Christine 06-21-2005 10:32 PM

Do you want them to be settings in vB Options or options in the nav groups?

If the latter, you need to either edit the cpnav_vbulletin.xml or add your own custom cpnav_mycustom.xml. If you do your own, it will create new navgroups.

Michael Morris 06-22-2005 02:33 AM

I figured it out. It isn't easy, but I figured it out..

To add new settings you have to insert them manually using a program like phpmyadmin. Each setting goes to the setting table, and you should create a setting group on the settinggroup table. Then create phrases for each setting in the phrase manager. Takes a LONG time, but it works. I'll need to write an installer to automate this - it takes too long to do otherwise.

With this in place I'm probably a few days from releasing my next big hack - vSpamscan, a system to block comment and trackback spam from vbulletin powered messageboards.

Paul M 06-22-2005 02:55 AM

Just enable debug mode on the board - the ability to add new options is built in, but only active when debug mode is on.

Adult SEO 06-02-2006 12:02 PM

How do you see if debug mode is on

I added $debug=1; to the configfile but nothing happens


All times are GMT. The time now is 08:03 AM.

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.01061 seconds
  • Memory Usage 1,714KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete