I have an OSQA platform running privately and I would like to expose email address in the user profiles for everyone to see.

I am not concerned about privacy since the web site is not accessible to general public.

asked 09 Nov '11, 20:19

dlavoie's gravatar image

dlavoie
12
accept rate: 0%

edited 18 Nov '11, 04:55

rickross's gravatar image

rickross ♦♦
12.5k2814972


forum/skins/default/templates/users/info.html is responsible to display user info. You can create your own template file, where lines

{% if can_view_private %} <tr> <td>{% trans "email" %}</td> <td> <a href="mailto:{{ view_user.email }}">{{ view_user.email }}</a> {% if not view_user.email_isvalid %} ({% trans "not validated" %}) {% ifequal request.user view_user %} </td></tr><tr><td></td><td><a href="{% url send_validation_email %}">{% trans "Send me a validation link." %}</a> {% endifequal %} {% endif %} </td> </tr> {% endif %}

are replaced with

<tr> <td>{% trans "email" %}</td> <td> <a href="mailto:{{ view_user.email }}">{{ view_user.email }}</a> {% if not view_user.email_isvalid %} ({% trans "not validated" %}) {% ifequal request.user view_user %} </td></tr><tr><td></td><td><a href="{% url send_validation_email %}">{% trans "Send me a validation link." %}</a> {% endifequal %} {% endif %} </td> </tr>

link
This answer is marked "community wiki".

answered 18 Nov '11, 02:26

dpantele's gravatar image

dpantele
2629
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×101
×18

Asked: 09 Nov '11, 20:19

Seen: 284 times

Last updated: 18 Nov '11, 04:55

powered by OSQA