1
yeziha
Help: option "Allow other users to view my email address" not working!
  • 2005/4/24 18:27

  • yeziha

  • Just popping in

  • Posts: 39

  • Since: 2005/2/22


I just started a new site and I there is a problem with
newly registered users.
When a user upon registering leaves the option "Allow other users to view my email address" unchecked, the email is still displayed to other users in the profile. I registered myself as a new user to make sure I also noticed that only registered users can see
the emails of other users.

I am almost desperate. What could be reason of this???
Many thanks in advance!

2
yeziha
Re: Help: option "Allow other users to view my email address" not working!
  • 2005/4/25 0:04

  • yeziha

  • Just popping in

  • Posts: 39

  • Since: 2005/2/22


Perhaps something's wrong in this piece of the code
(myself's not too good in coding)
Quote:

if ($thisUser->getVar('user_viewemail') == 1) {
$xoopsTpl->assign('user_email', $thisUser->getVar('email', 'E'));
} else {
if (is_object($xoopsUser)) {
// All admins will be allowed to see emails, even those that are not allowed to edit users (I think it's ok like this)
if ($xoopsUserIsAdmin || ($xoopsUser->getVar("uid") == $thisUser->getVar("uid"))) {
$xoopsTpl->assign('user_email', $thisUser->getVar('email', 'E'));
} else {
$xoopsTpl->assign('user_email', ' ');
}
}
}

Of course, I could leave of it all only
Quote:
$xoopsTpl->assign('user_email', ' ');

or just drop it and the emails would not be displayed at all
(majority of users wish not to show emails).
But I think it's a really bad and vulgar way out

Login

Who's Online

363 user(s) are online (301 user(s) are browsing Support Forums)


Members: 0


Guests: 363


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits