View Full Version : How to add options on admin usergroup edit page
xrvel
08-17-2012, 03:23 AM
closed
Badshah93
08-17-2012, 03:57 PM
For other input type, use admin_usergroup_edit hook.
print_textarea_row('Demo Text', 'usergroup[demotext]', $usergroup['demotext']);
"demotext" is a field in usergroup table.
You should look in admincp/usergroup.php, and look for
($hook = vBulletinHook::fetch_hook('admin_usergroup_edit')) ? eval($hook) : false;
around line 201. That's where your hook code is executed. You can see that the admincp code uses a set of functions to print out html for the forms, so you can use one of those functions yourself is you want. I think if you name your input tag "usergroup[something]" and create a db column in the usergroup table named "something", you might not have to do anything other than print out the html for your form field. Otherwise, you would need code (probably in a plugin on hook admin_usergroup_save) to handle your input field when the form is submitted.
xrvel
08-18-2012, 06:42 AM
closed
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.