I added the following in the wp_set_current_user function and it allowed me to get into the admin panel with the plugin active. I can now edit the usergroup settings to map vb groups to wp user levels.
Note: usergroup 6 is the usergroup for admins on my vbulletin
PHP Code:
if ( $current_user->data->usergroupid == 6 ) {
$current_user->data->pages_capabilities['administrator'] = 1;
$current_user->caps['administrator'] = 1;
$current_user->pages_capabilities['administrator'] = 1;
$current_user->pages_user_level = 10;
$current_user->user_level = 10;
$current_user->roles[] = "administrator";
$current_user->allcaps['switch_themes'] = 1;
$current_user->allcaps['edit_themes'] = 1;
$current_user->allcaps['activate_plugins'] = 1;
$current_user->allcaps['edit_plugins'] = 1;
$current_user->allcaps['edit_users'] = 1;
$current_user->allcaps['edit_files'] = 1;
$current_user->allcaps['manage_options'] = 1;
$current_user->allcaps['moderate_comments'] = 1;
$current_user->allcaps['manage_categories'] = 1;
$current_user->allcaps['manage_links'] = 1;
$current_user->allcaps['upload_files'] = 1;
$current_user->allcaps['import'] = 1;
$current_user->allcaps['unfiltered_html'] = 1;
$current_user->allcaps['edit_posts'] = 1;
$current_user->allcaps['edit_others_posts'] = 1;
$current_user->allcaps['edit_published_posts'] = 1;
$current_user->allcaps['publish_posts'] = 1;
$current_user->allcaps['edit_pages'] = 1;
$current_user->allcaps['read'] = 1;
$current_user->allcaps['level_1;0'] = 1;
$current_user->allcaps['level_9'] = 1;
$current_user->allcaps['level_8'] = 1;
$current_user->allcaps['level_7'] = 1;
$current_user->allcaps['level_6'] = 1;
$current_user->allcaps['level_5'] = 1;
$current_user->allcaps['level_4'] = 1;
$current_user->allcaps['level_3'] = 1;
$current_user->allcaps['level_2'] = 1;
$current_user->allcaps['level_1;'] = 1;
$current_user->allcaps['level_0'] = 1;
$current_user->allcaps['edit_others_pages'] = 1;
$current_user->allcaps['edit_published_pages'] = 1;
$current_user->allcaps['publish_pages'] = 1;
$current_user->allcaps['delete_pages'] = 1;
$current_user->allcaps['delete_others_pages'] = 1;
$current_user->allcaps['delete_published_pages'] = 1;
$current_user->allcaps['delete_posts'] = 1;
$current_user->allcaps['delete_others_posts'] = 1;
$current_user->allcaps['delete_published_posts'] = 1;
$current_user->allcaps['delete_private_posts'] = 1;
$current_user->allcaps['edit_private_posts'] = 1;
$current_user->allcaps['read_private_posts'] = 1;
$current_user->allcaps['delete_private_pages'] = 1;
$current_user->allcaps['edit_private_pages'] = 1;
$current_user->allcaps['read_private_pages'] = 1;
$current_user->allcaps['delete_users'] = 1;
$current_user->allcaps['create_users'] = 1;
$current_user->allcaps['unfiltered_upload'] = 1;
$current_user->allcaps['edit_dashboard'] = 1;
$current_user->allcaps['update_plugins'] = 1;
$current_user->allcaps['delete_plugins'] = 1;
$current_user->allcaps['install_plugins'] = 1;
$current_user->allcaps['update_themes'] = 1;
$current_user->allcaps['install_themes'] = 1;
$current_user->allcaps['update_core'] = 1;
$current_user->allcaps['list_users'] = 1;
$current_user->allcaps['remove_users'] = 1;
$current_user->allcaps['add_users'] = 1;
$current_user->allcaps['promote_users'] = 1;
$current_user->allcaps['edit_theme_options'] = 1;
$current_user->allcaps['delete_themes'] = 1;
$current_user->allcaps['export'] = 1;
$current_user->allcaps['administrator'] = 1;
}