The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Greetings,
I need to add two fields to the usergroup table that are going to be referenced by external applications (a jabber server) but I'd like these fields to be editable by my admins via the admincp. The fields are simple yes/no toggles, nothing fancy. Can somebody direct me to documentation on the proper 'vB way' to do this? I'm familiar with creating/importing products and plugins, I've made several modifications that hook into various parts of vB but I can't find any reference on how to add things to admincp sections. Any help would be greatly appreciated. (Note, I don't need to add a separate admincp menu or anything like that, just extend the existing usergroup edit page). --------------- Added [DATE]1239141102[/DATE] at [TIME]1239141102[/TIME] --------------- So I discovered it myself poking around but I thought I'd document it here so others can learn from it (or tell me if this isn't the proper way). Looking through the usergroup.php file in admincp I noticed a hook just below the public usergroup code called "admin_usergroup_edit". I also noticed that the form values matched the DB colum names. This made it simple. I simply created a plugin on that hook and inserted the code I need which was; Code:
print_table_header( $vbphrase['jabber_group_settings'] ); print_yes_no_row($vbphrase['jabber_publish_group'], ''usergroup[jabber_publish]', $usergroup['jabber_publish'] ); print_yes_no_row($vbphrase['jabber_publish_global'], 'usergroup[jabber_global]', $usergroup['jabber_global'] ); print_table_break(); print_column_style_code(array('width: 70%', 'width: 30%')); |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|