• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sort and Add First and Last Names to User List

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic