Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

How to change what is shown in User Management under CB User Manager

11 years 3 months ago - 11 years 3 months ago #231560 by turbowebguy
In the administrative area, under Community Builder > User Management I see these fields:

# CHECKBOX Name Username Logged In Group E-Mail Registered Last Visit Enabled Confirmed Approved ID

Is there a way to add a field in this layout/display?

For example I want to add say "COMPANY" and an "ACCOUNT BALANCE" or to replace an existing one, is there a way to do this? I want co-workers to be able to login and see clients by their company and how much they have in their account. Thanks.

---FURTHER...I'm talking about this page view
/index.php?option=com_comprofiler&task=showusers

I'm sure I can edit the code, if that's the only thing to do, let me know, but was wondering if there was a way to do this in community builder. Thanks.
Last edit: 11 years 3 months ago by turbowebguy. Reason: Show the link of actual page, I know I can edit PHP but would rather not

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 2 months ago - 11 years 2 months ago #231581 by krileon

Is there a way to add a field in this layout/display?

Only through API or by modifying the source. CBSubs for example does this using the onAfterBackendUsersList trigger. I'm not sure if CB Auto Actions can do this, but you can try with a Code action that's set to return the results of your PHP as "return". Your usage needs to return an array. Example usage as follows.

Code:
public function onAfterBackendUsersList( $listId, &$rows, &$pageNav, &$search, &$lists, $option, $select_tag_attribs ) { $columns = array(); foreach ( $rows as $row ) { $columns[$row->id] = $row->cb_company; } return array( CBPTXT::T( 'Company' ) => $columns ); }

Please see the below tutorial for further trigger usage information.

www.joomlapolis.com/support/tutorials/120-api-usage/18358-using-cb-triggers


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.
Last edit: 11 years 2 months ago by krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum