vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I add an option to the AdminCP? (https://vborg.vbsupport.ru/showthread.php?t=104435)

gizmo4321 01-04-2006 03:31 PM

How do I add an option to the AdminCP?
 
e.g. the 'phpAdsNew Banner Ads Integration'. It adds the 'Location of phpAdsNew' and 'Banner Dupe Check' configuration settings under the 'Server Settings and Optimizaton Options' of the 'vBulletin Options' in the Admin Control Panel.

How was this achieved? I mean, I've looked at the XML file, so I know WHAT was done, but not the how. I'm working on a product/plugin for my board, and I'd like to have the configuration information accessible from within the ACP, rather than having to have my admins modify the PHP code in the plugin.

Can anyone help me here?

harmor19 01-04-2006 03:54 PM

Here's something that may help
https://vborg.vbsupport.ru/showthread.php?t=82698

gizmo4321 01-04-2006 04:31 PM

Thanks, I think that is exactly what I need.

gizmo4321 01-06-2006 09:01 PM

Well, further research reveals that either it wasn't exactly what I needed, or I didn't fully understand it.

So, here's what I'm doing:

There are certain directories containing graphics (images/ranks, images/icons, to name two) that I need to be able to change according to the style the user has selected, because I want them to be anti-aliased into the background color. I've written a set of plugins that handle this for me, so all is good there. But I have to set the variables containing the style-specific paths by editing the plugin code.

What I'd like to be able to do is to make these settings part of the stylevar array by adding some options to the Main Styles settings of the AdminCP Styles Editor. Is there a way for me to do this?

gizmo4321 01-11-2006 08:18 PM

Hello?

Is this thing on?


HELLO!


Oh. Yeah. I guess it is. :D

So, any ideas on my problem, or should I just quietly skulk off into a corner? :D


All times are GMT. The time now is 08:50 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.00961 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
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete