#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
How do we set chara...
 
Share:
Share
Tweet
Share
Notifications
Clear all

How do we set character limits for the Display Name Field and the Nickname fields?

    Last Post
RSS

CrisW
Posts: 281
 CrisW
Topic starter
October 6, 2020 6:42 am
(@crisw)
Reputable Member
Joined: 4 years ago

Hi Support Team! 🙂

We've been testing another new Forum and noticed that the character limits for the Display Name text field is quite big and if anyone inputs a Display Name at 70 characters, it can make the Forum look broken. Same with the Nickname, with maximum characters of 50.

I was able to put a CSS Code as a workaround,

- for the Nickname, it breaks and wraps

- for the Display Name, it gets hidden after about 20 characters, however, when such a user with a long display name clicks the "like" button, then the full long Display Name appears as well. (please see attached screenshot).

What file do I need to tweak so that I can set the character limits for the text fields for both the Display Name and the Nickname to 12 characters, on the My Profile Page, Account tab?

Thanks in advance!

 20201006_SetCharacterLimitsForDisplayNameAndNickname.jpg

I'm just a member here who used to be a newbie.

The case: When I actually put my keyboard where my forum is, and became #172. Can you imagine if you had to build this forum yourself? How kind and patient will you be? The best way to say thank you is say it, write it, and then head on over at Wordpress plugin page and rate wpForo 5 stars - by clicking here.

Topic Tags
Display Name Nickname
3 Replies
Alvina
Posts: 1873
Alvina - Facebook Alvina - Twitter
 Alvina
Moderator
October 6, 2020 10:55 am
(@alvina)
Member
Joined: 3 years ago

Hi @crisw,

I've just asked our developers about it and currently, I'm waiting for the response from them. I'll update the topic one I get some response from them.

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
CrisW
Posts: 281
 CrisW
Topic starter
October 8, 2020 7:42 am
(@crisw)
Reputable Member
Joined: 4 years ago
Posted by: @alvina

Hi @crisw,

I've just asked our developers about it and currently, I'm waiting for the response from them. I'll update the topic one I get some response from them.

Hi @alvina,  Thanks for responding and getting your developers to look into this. In the meantime, I have temporarily used the code below to hide the "Display Name" from the Account Profile.  I thought I would share it here, in case others might want to use it too.  

I was able to tweak the WP Core user file, so our WP site now has only 12 character limits for the Username (which on the forum, gets duplicated into the "Display Name" and the "Nickname" fields by default). 

The issue I see in the form at the Member's Account Profile, on the "Display Name" text field, it seems to not have a maxlength character limit on the field itself, so if anyone inputs extremely long Display Name, it will break the forum layout ("Profile", "Post" Box, and the "Likes"  as shown in above screenshot). 

So in the mean time, I put the codes below (Forum Settings > Styles > Custom CSS) 

/*Do not display Display Name Label & Text Field - PROFILE PAGE*/
div.wpf-field.wpf-field-type-text.wpf-field-name-display_name.wpf-field-required {
display: none;
}

 

And since the Nickname field also has a maxlength of 50 characters, it also protrudes through the comment box, and does not look good so, I also added this code below: 

/*Automatically adjust long Nicenames or Nicknames to responsively fit smaller screens - COMMENT BOX*/

div.wpf-author-nicename {
white-space: wrap !important;
max-width: 90% !important;
width: 90% !important;
overflow: hidden;
text-overflow: ellipsis;
word-wrap: break-word;
}

 

I hope that the Developers can look into the max-length of the field names for "Display Name" and "Nickname".  

Thanks!  God bless you! 🙂 

 

 

 

Related: 

How to hide some fields in the user's Account Profile  

https://wpforo.com/community/how-to-and-troubleshooting-2/trouble-when-removing-social-networks-fields-in-profile/#post-28480

 

 

I'm just a member here who used to be a newbie.

The case: When I actually put my keyboard where my forum is, and became #172. Can you imagine if you had to build this forum yourself? How kind and patient will you be? The best way to say thank you is say it, write it, and then head on over at Wordpress plugin page and rate wpForo 5 stars - by clicking here.

Reply
1 Reply
Alvina
 Alvina
Moderator
(@alvina)
Joined: 3 years ago

Member
Posts: 1873
Alvina - Facebook Alvina - Twitter
October 8, 2020 12:37 pm
Reply toCrisWCrisW

@crisw,

You can use the CSS solution provided by you, or you should customize each file and limit the characters.

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • How to hide the Username in user posts
    3 months ago
  • Tagging with username in forum is not giving notification at bell icon
    5 months ago
  • Display Name Issue
    6 months ago
  • Forum no longer tagging my ultimate members.
    7 months ago
  • Reply button automatically adds post author @nickname in editor
    8 months ago
Topic Tags:  Display Name (9), Nickname (13),

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • Suggestion How to make new user to get approve manually before creating post and profile.

    By Adhyansh21, 13 hours ago

  • Posts deleted in database still show up on front-end

    By nylex, 15 hours ago

  • Not all links are automatically added with the "nofollow" attribute

    By st7878, 18 hours ago

  • Editors assign users to groups

    By mike_netinfo, 20 hours ago

  • Set password link opens forum login page instead of set password page

    By JanJan, 20 hours ago

  • User banned for using icons?

    By JanJan, 21 hours ago

Topic Tags

  • css52
  • translation50
  • plugin conflict48
  • seo47
  • new features45
  • buddypress43
  • avatar41
  • moderation40
  • ultimate member40
  • login40
  • forum40
  • registration37
  • threaded layout35
  • cache34
  • editor33
  • menu33
  • spam32
  • shortcode32
  • forum accesses30
  • widget29
View all tags (2190)

Recent Posts

  • RE: recover deleted forum categories

    I didn't delete the categories on the forum, just did s...

    By Asmadi1, 5 hours ago

  • recover deleted forum categories

    hi I need help, I accidentally deleted categories and f...

    By Asmadi1, 6 hours ago

  • RE: Not all links are automatically added with the "nofollow" attribute

    I have no idea, i guess not.

    By dimalifragis, 7 hours ago

  • RE: How to make new user to get approve manually before creating post and profile.

    Thanks again

    By Adhyansh21, 10 hours ago

  • RE: Posts deleted in database still show up on front-end

    Ok then, wait until someone from wpForo support will he...

    By dimalifragis, 13 hours ago

  • RE: Set password link opens forum login page instead of set password page

    Hi @janjan, Go to Dashboard > Forums > Settings...

    By Chris, 17 hours ago

  • RE: Editors assign users to groups

    Hi @mike_netinfo, Only administrators can change user...

    By Chris, 18 hours ago

Share:
Share
Tweet
Share
  Forum Statistics
21 Forums
9,933 Topics
50.2 K Posts
3 Online
48 K Members

Latest Post: recover deleted forum categories Our newest member: christenweather Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation