Skip to Content Skip to Menu

[SOLVED] Change profile page title with custom field

  • jabba84
  • jabba84
  • OFFLINE
  • Posts: 91
  • Thanks: 5
  • Karma: 0
2 years 5 months ago - 2 years 5 months ago #329295 by jabba84
Hello, in the profile page the title is the Username, how can i change ti with a custom field (without moving that custom field to a new tab)?



Second question: the page URL now shows the username of the user. How can i customize it to show the custom field or the raw id instead? That's because username can be chosen by user and can be anything... the custom field would be optimal.

Last question: i've added a field which is a checkbox and turned it to a button in the display parameter. How can i change the defautl text (Yes/no) to custom ones? Like Open/Close?

Thanks!

WebMaster & JoomlaLover @ www.pixed.it
Last edit: 2 years 5 months ago by krileon. Reason: Added [SOLVED] tag to subject

Please Log in or Create an account to join the conversation.

  • jabba84
  • jabba84
  • OFFLINE
  • Posts: 91
  • Thanks: 5
  • Karma: 0
2 years 5 months ago #329296 by jabba84
Replied by jabba84 on topic Change profile page title with custom field
Sorry, about the first question i've found the answer myself: General Configuration -> Custom Name Format.

WebMaster & JoomlaLover @ www.pixed.it

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48424
  • Thanks: 8274
  • Karma: 1443
2 years 5 months ago #329297 by krileon
Replied by krileon on topic Change profile page title with custom field

Sorry, about the first question i've found the answer myself: General Configuration -> Custom Name Format.

That will apply the name change everywhere. If you just want to adjust profile page title you can edit the "User Profile Page Title" tab in CB > Tab Management then substitute in whatever field you like to "User Profile Title text" under the parameters tab. By default it's the _UE_PROFILE_TITLE_TEXT language key. So for example it could be changed to [FIELD_NAME] to substitute in your custom field.

Second question: the page URL now shows the username of the user. How can i customize it to show the custom field or the raw id instead? That's because username can be chosen by user and can be anything... the custom field would be optimal.

Set the "Your Profile URL" (alias) field in CB > Field Management to be displayed on registration and profile edit then mark it required. This will force users to supply a custom profile URL. If you don't want to do that then leave it hidden on registration and profile edit then use the below in CB Auto Actions to force set it to whatever you like.

Global
Triggers: onAfterUserRegistration, onAfterNewUser, onAfterUpdateUser, onAfterUserUpdate
Type: Field
User: Automatic
Access: Everybody
Action
Field: Profile URL
Operator: Set
Value: [FIELD_NAME]

That should automatically set it for them for a custom profile URL.

Last question: i've added a field which is a checkbox and turned it to a button in the display parameter. How can i change the defautl text (Yes/no) to custom ones? Like Open/Close?

Use the following language keys in language overrides to customize the text per-field.

YESNO_SELECTLIST_YES_FIELD_{FIELD NAME HERE}
YESNO_SELECTLIST_NO_FIELD_{FIELD NAME HERE}

Be sure to replace {FIELD NAME HERE} with the actual name of your field. It should be in uppercase as well. For example if the fields name is cb_myfield then set {FIELD NAME HERE} to CB_MYFIELD. See the below on how to use language overrides.

www.joomlapolis.com/blog/kyle/18701-language-overrides-have-arrived

We'll provide parameters to more easily set this in a later release, but for now language overrides can do it.


In the future please open separate topics per issue. It helps avoid mega topics where things can be lost or confused.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: jabba84

Please Log in or Create an account to join the conversation.

  • jabba84
  • jabba84
  • OFFLINE
  • Posts: 91
  • Thanks: 5
  • Karma: 0
2 years 5 months ago #329298 by jabba84
Replied by jabba84 on topic Change profile page title with custom field
Hi and thanks for quick answer! Everything is fine but language override, maybe i'm missing something.
My checkbox field i called [cb_lunedi]. This is the override:



But on frontend still have Yes/No...



This is the field:



what am i doing wrong?

Thanks!

WebMaster & JoomlaLover @ www.pixed.it

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48424
  • Thanks: 8274
  • Karma: 1443
2 years 5 months ago #329299 by krileon
Replied by krileon on topic Change profile page title with custom field
Don't include brackets in the language string. Sorry for the confusion. You need to replace {FIELD NAME HERE} entirely. Example as follows.

YESNO_SELECTLIST_YES_FIELD_CB_LUNEDI
YESNO_SELECTLIST_NO_FIELD_CB_LUNEDI


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • jabba84
  • jabba84
  • OFFLINE
  • Posts: 91
  • Thanks: 5
  • Karma: 0
2 years 5 months ago - 2 years 5 months ago #329300 by jabba84
Replied by jabba84 on topic Change profile page title with custom field
EDIT: i've seen it works on registration page:



but not on profile page:



need to activate it somewhere?

Last question about the alias (i promise i will split threads next time! :lol: ): instead of Value: [FIELD_NAME] can i set it with the user ID? So i can avoid duplicates if two users have the same identical [FIELD_NAME] (or the alias field automatically check this and add some sort of random digit?)

Thanks again!

WebMaster & JoomlaLover @ www.pixed.it
Last edit: 2 years 5 months ago by jabba84.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum