I have two concerns I am hoping someone can lend assistance, or may even a guess at!
- Upon editing your profile, there are 6 fields for social media accounts. AOL, MSN, skype, etc. Regardless, can those be edited somehow through the code and either removed or disabled by an option? I have no need for my users to edit this information and it is no where near relevant. (Although it's very nice and would be better if left customizable for us gamers.)
- Another concern is with the WordPress Discord app. I currently use the WP discord app, and it worked perfectly fine using the built in Forums app. What would happen is that every time a new post was made, a notification would be sent via Discord. Now that I have these new awesome forums installed, the widget no longer works. WP Discord: https://wordpress.org/plugins/wp-discord/
Thank in advance for all your troubleshooting and curiosities to get me the answers I need!
Hi -GG-LastChance,
Upon editing your profile, there are 6 fields for social media accounts. AOL, MSN, skype, etc. Regardless, can those be edited somehow through the code and either removed or disabled by an option? I have no need for my users to edit this information and it is no where near relevant. (Although it's very nice and would be better if left customizable for us gamers.)
You can disable Social Network fields using this script:
function my_custom_account_fields( $fields ){
$remove_fields = array('facebook', 'gtalk', 'aim', 'msn', 'twitter', 'yahoo', 'icq', 'skype');
if( !empty($fields) ){
foreach( $fields as $r => $rows ){
foreach( $rows as $c => $cols ){
foreach( $cols as $f => $field ){
if( $field && in_array($field, $remove_fields) ){
unset($fields[$r][$c][$f]);
}
}
}
}
}
return $fields;
}
add_filter( 'wpforo_get_account_fields', 'my_custom_account_fields');
If the code above doesn't work, change it to this one:
function my_custom_account_fields( $fields ){
$remove_fields = array('facebook', 'gtalk', 'aim', 'msn', 'twitter', 'yahoo', 'icq', 'skype');
if( !empty($fields) ){
foreach( $fields as $r => $rows ){
foreach( $rows as $c => $cols ){
foreach( $cols as $f => $field ){
if( wpfval($field, 'name') && in_array($field['name'], $remove_fields) ){
unset($fields[$r][$c][$f]);
}
}
}
}
}
return $fields;
}
add_filter( 'wpforo_get_account_fields', 'my_custom_account_fields');
Put this code in current active WordPress theme functions.php file.
How to Easily Add Custom Code in WordPress (without Breaking Your Site)
Another concern is with the WordPress Discord app. I currently use the WP discord app, and it worked perfectly fine using the built in Forums app. What would happen is that every time a new post was made, a notification would be sent via Discord. Now that I have these new awesome forums installed, the widget no longer works. WP Discord: https://wordpress.org/plugins/wp-discord/
I'm sorry but I'm not familiar with this plugin, I can't help you with this issue.