Loading...
 
Features / Usability

Features / Usability


"Changing username" or "Displaying real names"

posts: 84 Singapore

Hi!

Can the user change username OR display real name?

I have a little problem. Using TikiWiki for a school exercise. Registered a class of 16 students with their student numbers as usernames. Now, the students get online and see numbers instead of names. What can I do here, other than re-register all these students with their names as usernames?

posts: 957

Don't know howto do it keeping the same internal records of that students.
But through users.csv file (it's worth a lot registering them trhough csv file for registering the first time and or re-assigning them to work groups later on, etc., from my own expeience in the class)

Instead of numbers, if you get their names and surnames, for instance, you can play a bit with basic Spreadsheet functions (for instance, OpenOffice Calc) to "concatenate" Name and Surname (i.e.: users as NameSurname ).

I did first with Name.Surname (dot in the midle), but with 1.8.x I had problems later on to have Tiki recognize UserPageName.Surname as a WikiWord (no trouble at all with any version if using UserPageNameSurname )

If you need help with concatenate funtion or others at the spreadsheet, ask here (or at edu.tw.o! wink)
(you'll be wellcome there, and I'd love to read your experience using tiki in educational scenarios)

xavi



posts: 8 Belgium

I had a similar problem. I changed templates/modules/mod-who_is_there.tpl to display $online_users[ix].realName instead of $online_users[ix].user.

For this to work, I also changed the get_online_users() function in lib/tikilib.php to include the following:

Copy to clipboard
while ($res = $result->fetchRow()) { $res['user_information'] = $this->get_user_preference($res['user'], 'user_information', 'public'); $res['realName'] = $this->get_user_preference($res['user'],"realName", $res['user']); $ret[] = $res; }

posts: 84 Singapore

Thanks, all, for your suggested solutions. biggrin

Let me check them out.


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting