Allow students to see phone # and mailing addresses

Allow students to see phone # and mailing addresses

George Kao -
Number of replies: 2

How do I allow students to see one another's phone numbers and addresses?

I suppose I can ask all students to put their phone number & addresses in the user "description" but it would be even better if they could just put it in the specified phone and address fields.

Even better: is it possible to then give the student the option of showing phone number to only those in their courses, vs. to everyone?

Thanks for any suggestions you can offer.

Ngā whakawākanga toharite: -
In reply to George Kao

Re: Allow students to see phone # and mailing addresses

Howard Miller -
Pikitia o Core developers Pikitia o Documentation writers Pikitia o Particularly helpful Moodlers Pikitia o Peer reviewers Pikitia o Plugin developers
It would require modification to the code in user/view.php. It all happens around line 190. You can see how the other details have been displayed, so it shouldn't be too difficult to display this additional information.

If you are stuck, let me know, and I'll see if I can come up with something when I get a minute.
Ngā whakawākanga toharite: -
In reply to Howard Miller

Re: Allow students to see phone # and mailing addresses

George Kao -

Thanks Howard! 

With your suggestion I was able to figure it out menemene

I also realized I needed to edit the file /user/edit.html ... I took out:

<?php p($teacheronly) ?>

from lines 211, 217, 223.  So that when a user is inputting that optional information, it longer says "(for the teacher only)".

Thanks again,

George

Ngā whakawākanga toharite: -