Allow students to see phone # and mailing addresses

Allow students to see phone # and mailing addresses

by 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.

Average of ratings: -
In reply to George Kao

Re: Allow students to see phone # and mailing addresses

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of 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.
In reply to Howard Miller

Re: Allow students to see phone # and mailing addresses

by George Kao -

Thanks Howard! 

With your suggestion I was able to figure it out smile

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