Notifications
Clear all

wpForo 1.x.x [Closed] New Install....a few Questions

2 Posts
2 Users
0 Reactions
2,696 Views
Cotty
Posts: 23
Topic starter
(@cotty)
Eminent Member
Joined: 8 years ago

Something basic queries guys, 

We've installed the plugin as we're looking to migrate so setting up brand new install.

I've noticed that should you delete a forum / category, the Forum ID increases each time, is there a way of resetting this?

Forum Profile

Is there a way of reducing the features here? For e.g. we don't need the option of "Occupation" as its not relevant to our site.

If the password was updated within the forum profile, would that also update in Wordpress (we're using UltimateMember for e.g.)

Thanks for any assistance!

Topic Tags
1 Reply
Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 9 years ago

Hi @cotty,

I've noticed that should you delete a forum / category, the Forum ID increases each time, is there a way of resetting this?

This should be done in your WordPress database, using Hosting Service cPanel > phpMyAdmin Tool. Just find the wp_wpforo_forums table and reset the AUTO_INCREMENT of 'forumid' Primary Key.

More information: https://www.google.com/search?q=reset+mysql+table+auto_increment

Is there a way of reducing the features here? For e.g. we don't need the option of "Occupation" as its not relevant to our site.

There is no option to disable profile fields, but you can disable using custom code. This code may work. Please try it:

 

function my_custom_account_fields( $fields ){
$remove_fields = array('occupation', 'aim', 'msn', 'yahoo', 'icq');
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. As you see on the second line of code I added some field names to remove. Currently it removes 'occupation', 'aim', 'msn', 'yahoo', 'icq' fields.

How to Easily Add Custom Code in WordPress (without Breaking Your Site)

The best way to manage fields is using wpForo User Custom Fields addon. You can find more information about this addon here: https://gvectors.com/product/wpforo-user-custom-fields/