AI Search
Classic Search
Notifications
Clear all
Search result for: Adding fields to registration form
hey.. i just bought and installed the user custom fields addon on my wpforo plugin for wordpress..i got several problem here and i really need help :
1. it says there is a feature for custom registration and profile field.. so i made some field for registration and profile form.. i got problem with the " file upload " field, i put that field on my profile and account form.. its called " sertifikat " with jpg,jpeg,png images for certificate in hope that the account owner will be able to upload a certificate image and shows in profile,
the problem is.. that field wont showing
even if i have already upload the image in edit account
The other field are working just fine but why my "upload file" field wont show any image?what is the purpose of " upload file " field if i can't see what ive just uploaded?
so i really apreciate any help for this, i want to make a certificate image to be shown in their profile
2. the next problem is.... i have already made my custom registration field form.. its done... and i dont want to make email as requirements because some of my user might have no email. so i make it like this
and i already set the registration one step by disabling the "Enable User registration email confirmation" option in Dashboard> Forums > Settings > Features admin page. so the email field will not be removed but the registration will not require email confirmation and password reset steps
BUT THE PROBLEM IS .. I STILL NEED to FILL EMAIL FOR registration.. even if ive done all like the image above... also The password field, i already make that field minimum text to 3 characters .. its still says that i need to fill password above 6 characters
3. The last problem is.. I ALREADY CHECK THE " ENABLE USER MANUALLY APPROVAL SYSTEM " in the wpforo setting.. but why when i try to make a test account and fill all forms including email even if i make it non requirements, then what happen is my new test account is AUTOMATICALLY APPROVED.. ?? usually i will have to go to dashboard > user > all users and then approve any account here..
any solutions for me? please guide
... Page URL to Forum Reset Password Page URL
It looks like there are multiple independent wpForo code paths for setting or changing a password and it doesn't seems that there is a unifying way to control password min and max pass length.
Example 1) -- User Account Change Password form:- The controlling code in this use case appears to be classes/Members.php public function init_fields():
...
$this->fields['user_pass'] = [
...
'description' => wpforo_phrase( 'Must be minimum 6 characters.', false ),
'minLength' => 6,
'maxLength' ...
Is there a way to add additional fields to the registration form and then have the member who is registering decide if they will be viewable or not (hidden/public).
These extra fields will then appear in the profiles and be searchable.
The only place on my site where a person has to be a member to participate is on the forums.
If I use a plugin to add add extra fields is that reflected in the wpforo forms as well?
Fix those issues and try again (after clearing your browser cache).
Uncaught ReferenceError: acf is not defined
<anonymous> :947
mctoolkit.net:947:1
Uncaught ReferenceError: acf is not defined
<anonymous> :950
mctoolkit.net:950:1
Uncaught ReferenceError: tinymce is not defined
<anonymous> :966
mctoolkit.net:966:1
Uncaught TypeError: wp.oldEditor is undefined
onReady :3
u :1
n :1
doAction :1
<anonymous> :1
jQuery 2
Hi Robert, I tried to do what you described and it worked for one icon (I changed Skype to Instagram succesfully).
HOWEVER: I'm trying to do the same thing for the Google+ icon to convert it to Youtube icon, but it when I write the code twice in the functions.php , it doesn't work for the second icon change. I still see the Google+ icon there. What I did is: I wrote the code you provided two times in the functions.php, by changing the approriate places as you described, but it doesn't change the second icon. Can't I use this code twice in the functions.php for changing more than one icons?
Here is what I wrote: (What am I doing wrong?)
-------------------------------------------------------------
function wpforo_change_social_field_icon( $fields ){
//Field name
$field = 'skype';
//Font-Awesome icon class
$icon = 'fab fa-instagram';
if( !empty($fields) && isset($fields[$field])) $fields[$field]['faIcon'] = $icon;
return $fields;
}
add_filter( 'wpforo_member_after_init_fields', 'wpforo_change_social_field_icon' );
function wpforo_change_social_field_icon( $fields ){
//Field name
$field = 'gtalk';
//Font-Awesome icon class
$icon = 'fab fa-youtube-square';
if( !empty($fields) && isset($fields[$field])) $fields[$field]['faIcon'] = $icon;
return $fields;
}
add_filter( 'wpforo_member_after_init_fields', 'wpforo_change_social_field_icon' );
--------------------------------------------------------
When I write like this, functions.php gives error when saving, saying:
"Cannot redeclare wpforo_change_social_field_icon() (previously declared in wp-content/themes/Avada/functions.php:12)"
How can I change both of the icons?
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:
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:
We've just released wpForo 1.9.6 version.
This version is released for WordPress 5.7 compatibility. And some important changes were made in the wpForo topic Custom fields and wpForo Private Messages addons which required many changes in wpForo core. So, it's released to support new versions of the addons as well.
Important update notes
After the update, please delete all caches.
If you have a Minifier/Optimizer plugins please delete all caches.
If you use CDN and found some issues please purge it.
Some JS and CSS files are changed, please refresh (press Ctrl+F5) on forum front-end twice to reset browser cache, otherwise you'll see crashed design.
Main Changes
Supports new features of wpForo topic Custom fields addon
Addon Page:
We've just released the 2.0.0 major version of wpForo topic Custom fields addon. The new version allows you to create custom forms with different set of custom fields for different forums and usergroups. Now, having different custom fields in a topic form of different forums you can use each of your forums for different purposes.
Supports new features of wpForo Private Messages addon
Addon Page:
We've also released the 1.4.0 middle version of wpForo Private Messages addon. Now you can send PMs to all users of a certain usergroup as an admin notification. We've added usergroup selector to the [Add new conversation] form, so you can select one or multiple usergroups and send your message to all at the same time.
Changelog:
Added: WordPress 5.7 compatibility
Fixed Bug: Problem with the filter 'not replied posts' in recent posts page
Fixed Bug: Inactive user is shown in the footer latest member section
Fixed Bug: Wrong link to font-awesome icons
Fixed Bug: Threaded layout avatars size issue on high resolution screens
Core Update: Important changes for wpForo Private Message addon
Core Update: Important changes for wpForo topic Custom fields addon
Hi @alfred. Users can self-register (via email confirmation with a link to set a password) - if the setting is enabled. Or users can also be manually registered, in case the self registration is disabled.
You can find these settings on:
Forum Dashboard
Settings
Features
then scroll down to find the settings for
Enable User registration (that you can set to either YES or NO)
Enable User registration email confirmation (that you can set to either YES or NO)
Click UPDATE OPTIONS at the bottom of the page.
This is from wpForo Documentation on User registration:
User registrationEnable User registrationThis option is not synced with WordPress “Anyone can register” option in Dashboard > Settings > General admin page. If this option is enabled new users will always be able to register. If this option is disabled the default WordPress User registration form will still be available. But wpForo Register Menu and Register Page will be hidden.
Enable User registration email confirmationThis option switches wpForo user registration function to WordPress Email confirmation mode. Users only enter Username and Email on registration form. After clicking on submit button they receive Email with Password Generation link. Using this link users set a password thus confirm and finish registration process.
Hope this helps. Good luck and God bless you! 🙂
@ianb,
No necessary for Adding a custom code. Please follow the steps below:
1. Edit the custom field in the Dashboard > Forums > Member fields admin page
2. Copy the value of the "Field name in form" filed, for example, field_bbc8ef9
3. Navigate to Dashboard > Forums > Settings > Emails admin page
4. Find the "New User registration Email for admins" section
5. Add the shortcode like the following one in the Message Body:
[fields_field_bbc8ef9]
The red marked part is the value of the "Field name in form" in the Step 2.
The same ...
Hello wpForo team,
I am using wpForo + User Custom fields plugin and I’m experiencing an inconsistent behavior with profile fields.
Some custom fields display correctly for certain users, but not for others who belong to the same user group.
Example:
User Marie-France → custom fields appear correctly in the profile tab.User Yorgos → no custom fields appear in the profile tab.
Configuration checks:
• The fields are enabled• "Who can view" includes all groups (Moderator, Members, Équipage Pleines Voiles, etc.)• The user belongs to the correct wpForo group (Équipage Pleines Voiles)• The field is editable and visible• The same field configuration works for another user
However, the fields still do not display for this user’s profile.
Interestingly, the value does appear under the avatar in forum posts, which suggests the field value exists but the profile template does not display it.
Could this be related to:
• user meta not initialized for older accounts?• a cache issue?• a known issue with the User Custom fields plugin?
Screenshots attached showing the field configuration and the affected user profile.
Thank you for your help.
Best regards
Hi @aaroncrhak,
If you've got the wpForo User Custom fields addon, you should navigate to Dashboard > Forums > Member fields > Manage Tabs, then edit the Profile and Account tabs and remove the social network fields from each tab.
All options related to Share Buttons are located in Dashboard > Forums > Settings > API's admin page. Please find the Active Share Buttons section and uncheck Share Buttons. More info here:
Hi Nemo,
I just tested my own wpForo Installation (because I always receive a "New User registration" email notification). I just registered a test user once again just to double check.
I agree with Sofy, that "User registration is being processed through the default WordPress registration system and it is handled by Wordpress, not the wpForo side."
And to add further to that .. 🙂
Because the "from email address" for new registration comes from "wordpress @ YOUR WEBSITE . COM "(without spaces)
On the other hand, the "from email address" for FORUM topics and posts and replies, come from "YOUR FORUM NAME - Forum < YourForumAdminEmail @ YOUR WEBSITE . COM > "
I will share my settings below, and then maybe you can also double check it with yours, and then you can test it too. (And let me know if it works for you too! 🙂 )
On the "WP Dashboard"
Go to "Settings"
"General"
Under "Membership", I unchecked "Anyone can register" box.
Then on "wpForo"
Go to "Forum Dashboard"
Select "Features" tab
"Enable User registration" - set to YES(This option is not synced with WordPress "Anyone can register" option in Dashboard > Settings > General admin page. If this option is enabled new users will always be able to register.)
"Enable User registration email confirmation" - set to YES
"Replace registration Page URL to Forum registration Page URL" - set to YES
I think the #5 step of setting the "Replace registration Page URL to Forum registration Page URL" - set to YES would help trigger the email notification for new Registered Users, since they are registering using the Forum registration page and NOT the WP registration page.
I hope this helps. Good luck and God bless you! 🙂
Hmm. I see wpForo asks in reg form for name and for 'display name publicly as' which is correctly present in system/plugin email.
If you see that on wpForo form it doesn't mean this is wpForo fields. wpForo registration form is the WordPress form a little bit re designed. This form has tons of functions which allows other plugins and codes insert own fields in this form. And the result you see. This is the WordPress theme fields or inserted by other plugins. PLEASE DEACTIVATE ALL PLUGINS AND CHECK IT AGAIN. If it doesn't removed field, then change the theme and check. This maybe theme code.
I'm using the User Custom fields AddOn for wpForo and with it, you have complete control over which fields you want to use. You can customize the Register form; the Account form; the Profile Page, and even the Member Search form.
You can add and remove fields (such as first name, last name, etc.) as needed.
I do recommend this AddOn!