Re: Profile Fields on Admin – No js link
I confirmed via javascript debugger that indeed the javascript ‘show_options’ function is not defined. This function is in the bp-xprofile/js/admin.js file used to create the drop down options for new fields.
So I had to add the following to the bp-xprofile/bp-xprofile-cssjs.php file in order for it to work. This may not be where it is suppose to go, but it works for me. I assuming this worked at some point, but somehow got removed???? Hopefully this gets added back in for next trunk. Its not in r577.
function xprofile_add_admin_js() {
if ( strpos( $_GET, ‘xprofile’ ) !== false ) {
echo ‘<script type=”text/javascript” src=”‘ . site_url() . ‘/wp-content/mu-plugins/bp-xprofile/js/admin.js”></script>’;
}
}
add_action( ‘admin_head’, ‘xprofile_add_admin_js’ );