Use real names instead of usernames
I know there's an option to do so whenever possible, however, this option doesn't really work. I collect, in addition to username, email, and password, via a user tracker also first and last name, as well as the country of the user at registration, so every user (except admin) does have a real name. I also configured a user's real name to be composed of his first and last name (there's an option for that).
However, in forums listings as well as when viewing forum posts, the author is always shown by their user name. I'd like usernames of other users to be completely invisible to other users. Is there an easy way to accomplish this?
Also, the user-to-user messaging system works by usernames only.
In particular, I want:
- User-to-user messages being sent to real names (possibly distinguished by the user id in addition, if the real name shouldn't be unique, but if necessary assume they are). This extends to the compose message page.
- Forum listings and forum threads to always show the real name of the poster, and possibly additional information from the user tracker such as the user's nationality or the city he lives in (collected at registration)
For starters, I looked at the forum listing issue. In the template, I found the author to be {$comments_comsix.userName|userlink}. Checking to what comments_coms is set to in the php revealed
$comments_coms = $commentslib->get_forum_topics($_REQUEST'forumId', $comments_offset, $_REQUEST'comments_per_page', $_REQUEST'thread_sort_mode', $view_archived_topics, $user_param, $type_param, $reply_state, $forum_info);
For my taste, hacking that gets a bit deep into the tiki functionality, and it would only serve the purpose of fixing forum listings, not fixing the thread view and user messaging system.
Is there any easier way to accomplish this, without rewriting half of tiki?
A plan B, of which I thought, of course, would be to use the user's full name as login, however, that would prevent me of collecting first and last name separately, wouldn't it? Also, it would require names to be unique (which could in the worst case be lived with, but I'm not too happy about it). I'd really prefer to see a way that maintains login names while making them virtually invisible for other users.