Notifications
Clear all

wpForo 1.x.x How can I block the change of user names and Nicknames in the Account Page?

8 Posts
2 Users
0 Likes
1,347 Views
Latzo
Posts: 4
Topic starter
(@latzo)
New Member
Joined: 4 years ago
I do not want members to be able to rename themselves in my forum. How do I turn this off?
 
7 Replies
Sofy
Posts: 4057
 Sofy
Admin
(@sofy)
Support Team
Joined: 5 years ago

Hi Latzo,

I suggest you hide the fields using CSS code. You need to put the code in Dashboard > Forums > Settings > Styles > "Custom CSS Code:" textarea. 

.wpf-field.wpf-field-type-text.wpf-field-name-display_name.wpf-field-required, .wpf-field.wpf-field-type-text.wpf-field-name-user_nicename.wpf-field-required {
display: none;
}
Reply
1 Reply
Latzo
(@latzo)
Joined: 4 years ago

New Member
Posts: 4

Thx for the answer.. but when i put this Code in Dashboard > Forums > Settings > Styles > "Custom CSS Code:" nothing happens in the Account Page

 

Reply
Sofy
Posts: 4057
 Sofy
Admin
(@sofy)
Support Team
Joined: 5 years ago

Hi Latzo,

Please Navigate to Dashboard > Forums > Dashboard admin page click on [Delete User Cache] then [Delete All Caches] buttons and do CTRL+F5 on the frontend. 

If you use some other cache plugins, please delete the plugins caches too.

Reply
1 Reply
Latzo
(@latzo)
Joined: 4 years ago

New Member
Posts: 4

Thank you very much, it worked..

Can you tell me where to find the names in CSS for Example 

.wpf-field-name-display_name

What would be the CSS Name for the secondary usergroup and so on?
Reply
Sofy
Posts: 4057
 Sofy
Admin
(@sofy)
Support Team
Joined: 5 years ago

Hi Latzo,

You can find all classes by pressing F12 on the browser and opening Chrome or Firefox Console:

Reply
1 Reply
Latzo
(@latzo)
Joined: 4 years ago

New Member
Posts: 4

@Sofy

Thanks for the instruction screenshot.. i managed to remove the field "Title" at my own.. but i think because the secondary group is a chackbox, i cant hide it with your code.. do you have another hint for me?

Reply
Sofy
Posts: 4057
 Sofy
Admin
(@sofy)
Support Team
Joined: 5 years ago

Hi Latzo,

Please note: only admins are allowed to change Usergroups. these fields are not available for regular users. 

Also please let us know have you used the "wpForo – User Custom Fields"? 

Reply
Share: