The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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.... 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... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|