Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 02-24-2006, 03:37 AM
AlchemyX AlchemyX is offline
 
Join Date: Jan 2006
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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...
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 07:49 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.07171 seconds
  • Memory Usage 2,190KB
  • Queries Executed 11 (?)
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)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)showthread_list
  • (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_threadedmode.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete