Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Sort and Add First and Last Names to User List

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to display first name and last name in the user list, with a sort option? I'm implementing this for an internal company forum.

Thanks in advance for your help.
[originally posted on jforum.net by lynwall]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JForum does not have First and Last name fields. If you want to add it, you must change the table jforum_users, the User.java entity, as well the UserModel.* queries in generic_queries.sql and the class GenericUserDAO.java

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rafael,

is something like this planned for the future, i.e. adding additional admin defined fields like full name, org unit etc.
Since JForum fits in enterprise infrastructures quite well (Java, excellent LDAP integration!), it'd be nice to have this ability.
Especially for the LDAP integration, it'd be nice to have an additional field for names, since username for us is the quite cryptic ADS login. Ideally, the fullname could be pulled from LDAP, too.

We're now pointing users to set their signature. Manual changes would certainly make jforum upgrades harder.

Kind regards,
Michael
[originally posted on jforum.net by michaeltk]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FWIW, there are ways to use the existing structure to get part of what you want. For example, there is no first name / last name field, but there is a from field that can be used for the person's full name.

If your SSO method populates this, you can modify the templates to use this field instead of the user name. I did it on our install.

Also, many of the other user object fields don't have meaning in an enterprise setting, e.g. AIM info and the like. The templates can easily be changed to label these field differently. So, as far as the user is concerned, the template variable, $user.aim, will look like/contain Division or Unit or Title or other enterprise info.

Sorting by first and last name you'll have to code...
[originally posted on jforum.net by monroe]
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!