vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   New options in usergroup manager? (https://vborg.vbsupport.ru/showthread.php?t=108756)

AlchemyX 02-24-2006 03:37 AM

New options in usergroup manager?
 
OK, to clear something up... Basically, I would simply like to figure out how to use the tutorial for making an options panel in the admin section that will allow me to wrap text and code around a text input BEFORE it gets run by sql...
like...

when sql runs "form1.color" I'd like to be able to add <font color=\"#".form1.color."\"> to it so the entire line I write, including the input, gets put to sql...
--------------------------------------
Hello, I'm writing a Usergroup Display suite for vb 3.5.4, and I don't know how to add options in the usergroup manager...
I'm new to vBulletin, I only got it... I think a month ago... maybe a little earlier, and I'm a javascript junkie, know a fair amount of PHP, and I'm nix, nothing, nada, on xml and vB right now...
I'll give you the basics of what I need to do... and I wonder if someone might be able to get me started with a few bits of help.

3 different areas, selected by a radio button, and only the selected area of the 3 can be edited, the rest is... um... uneditable... if that's possible... the n in each of the areas, 3 options consisting of 2 text areas and a drop down menu with 10 options...

then, upon submit, I need to do something a little different... I need to do an SQL insert into the usergroup table that does something like this...
Code:

if (radio_option_selected == 1) {
$SQL = 'UPDATE '.TABLE_PREFIX.'usergroup SET opentag="<font color=\"#'.**radio1_option_1**.'\"><SCRIPT language=\"JavaScript\"> var scolor=\'#'.**radio1_option_2**.'\'; var shimmercount=shimmercount+1; eval(\'var shimmercolor\' +shimmercount+ \'=\"\' +scolor+ \'\"\'); eval(\'var shimmerspeed\' +shimmercount+ \'=\"\''.**radio1_option_3**.'\'\"\'); document.write(\"<span id=\'\" + shimmercount + \"animate\'><b>\"); </SCRIPT>" WHERE usergroupid="'.current_usergroup.'"';
$vbulletin->db->query($SQL);
$SQL = 'UPDATE '.TABLE_PREFIX.'usergroup SET closetag="</b></span></font>" WHERE usergroupid="'.current_usergroup.'"';
$vbulletin->db->query($SQL);
} elseif (radio_option_selected == 2) {
$SQL = 'UPDATE '.TABLE_PREFIX.'usergroup SET opentag="<font color=\"#'.**radio1_option_1**.'\">....
etc, and so on....

Can anyone help me figure out how to do this...? Just... anything to get started...

I'm very new to vBulletin... but I'd really like to finish this modification to release it to the community, updating this mod of mine https://vborg.vbsupport.ru/showthread.php?t=108512 to a whole new level...

If this isn't possible in the usergroup manager, can someone help me figure out how to write a seperate peice to it, so that it can have a seperate control panel from usergroup management?

EDIT:
I'm reading this
https://vborg.vbsupport.ru/showthread.php?t=83122

but I'm still having trouble...

EDIT2: and I'm also looking over the vB manual, and looking at the .xml product file for the vBShout modification for how they make settings using the <settings> option...

Still lost though...


All times are GMT. The time now is 07:51 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.00970 seconds
  • Memory Usage 1,723KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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