The author of the post is displayed as the same of the login ID, in some cases the login ID is a number or anything that is not expressive, it's better to have a displayname...is that available in JForum?
If yes...can that name be mapped to LDAP property such as (displayname)?
The easiest way I found to do this is to modifying the templates to use the user.from property. This is generally set to the concatenation of the firstname and lastname properties.
As to LDAP... Without doing code modification, you are limited to the objects (like the user object) that jforum puts into the template context. These are populated from jForum's database tables.
So, if you are authenticating against LDAP, you will need to be sure that your SSO implimentation always sets the first and last name fields in the jforum_users table. [originally posted on jforum.net by monroe]
Thank you for replying...but I still need more help ...maybe you can explain more...
I'm using Jforum in iFrame portlet,and I'm using cookie SSO...I set the Login ID from the portlet and retrive it in Jforum SSO class....can you give me more detailed steps to change the display name?
Thank you in advance [originally posted on jforum.net by Silver33]
Just for the record... a shorter, no code change, but not as complete way is to just change .userName to .from in the templates Andowson lists. This may not work for all languages but it worked fine for my US/Western EU centric forums...
Also, it's generally better to make a copy of the default directory in the templates directory. Make your changes there. Then change the templates.directory config property to point to the modified version. Makes upgrading jForum and figuring out template differences easier.
I changed authenticator of JForum to LDAP, which works well and as expected. There is only one problem, username is e-mail address of user, because LDAP structure was designed for a e-mail service, so uid contains e-mail address, which was sufficient for many applications (e.g. WLAN access).
Obviously it is not really a good idea to use e-mail address as username. There are many fields in JForum which are not used in my application, so my intention is to use one of them as nick name which should be displayed instead of the username. Usage of LDAP attribute "displayName" would be also a sufficient solution. If displayName exists, it should be shown, otherwise uid (username) should be displayed. Is there an easy way to implement that while update path will not be broken ?
On the other hand patching of source code will yield into problems, if a new version of JForum should be installed.
Now I added aliases, so it is possible to find an entry with multiple different distinguished names.
now with search option -a search:
This LDAP server requires a login with a valid account for searching.
Conclusion: If JForum would be able to connect with a configurable account it can search for a specific entry like ldapsearch does. Now it read the returned dn and authenticates with that dn. What is your opinion regarding that way to solve that nasty "Display Name / Username" issue ?
[originally posted on jforum.net by taunusstein.net]
- Change my mysql_dbstruct so 2 extra columns in the jforum_users table were added (firstname and lastname)
- Change my generic_queries.sql. Add 2 parameters to the update statement
- Change the update method and the fillUserFromResultSet method in the GenericUserDao. Adding 2 parameters.
That's about it. Also change your template username to name ;) [originally posted on jforum.net by jeetn]
What templates need to be changed? How do they have to be changed? With the last question I mean you have several different ways the username is being used in the different templates. Do you need to change this to name everywhere?? [originally posted on jforum.net by jeetn]
Downloaded JForum source, made the modification according to the adowsons site.
Don't have those errors anymore.
What I do have are still some fields that are displayed as null null.
When you look at a post. Author is null null.
Member listing. Username is also null null.
When sending private message. And use the 'Find user'. Search still is needed on username. The name is shown as first and last name. But it's also null null.
I'll take a backup of this setup. And start modifying some stuff [originally posted on jforum.net by jeetn]