Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues
Author Message
draxx
Involved
Involved



Joined: Nov 19, 2003
Posts: 282

PostPosted: Sun Aug 02, 2009 11:59 am Reply with quote

When logged in as a regular user if I look at the file

userinfo-patrick.html

it does not show me his email address.

But if I look at

userinfo-Patrick.html

It shows the email address.

This holds true for all accounts being viewed by a normal user.
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Aug 02, 2009 5:08 pm Reply with quote

Do you see that same behavior at http://www.ravennuke.com ?
 
View user's profile Send private message
draxx







PostPosted: Sun Aug 02, 2009 5:33 pm Reply with quote

Dunno - can't create an account.


Notice: Array to string conversion in /includes/nukesentinel.php on line 347

Notice: Array to string conversion in /includes/nukesentinel.php on line 348

Notice: Array to string conversion in /includes/nukesentinel.php on line 349

Notice: Array to string conversion in /includes/nukesentinel.php on line 350

Notice: Array to string conversion in /includes/nukesentinel.php on line 351

Notice: Array to string conversion in /includes/nukesentinel.php on line 352

Notice: Array to string conversion in /includes/nukesentinel.php on line 353

Notice: Array to string conversion in /includes/nukesentinel.php on line 354

-------------------------------------
You MUST be logged in to access this option.
-------------------------------------
The option I was trying to access was clicking submit on the email activation form.
 
Raven







PostPosted: Sun Aug 02, 2009 6:42 pm Reply with quote

I activated your account. Please try again
 
draxx







PostPosted: Sun Aug 02, 2009 7:11 pm Reply with quote

Ok yes it does it there too.

http://www.ravennuke.com/userinfo-raven.html

http://www.ravennuke.com/userinfo-Raven.html
 
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sun Aug 02, 2009 8:24 pm Reply with quote

Well that is interesting.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
Palbin







PostPosted: Sun Aug 02, 2009 9:32 pm Reply with quote

draxx, Try this and let me know.

Find these lines they should be around line 86 of index.php:
Code:


      if (is_admin($admin) OR (is_user($user) AND $usrinfo['username'] == $username)) {
         if ($ya_config['useviewemail'] >= '1') {
            echo '<tr><td width="30%" align="left">' . _EMAIL . '</td><td width="70%" align="left"><strong>' . $user_email . '</strong></td></tr>';
         }
      }


Change them to this:
Code:


      if (is_admin($admin) || (is_user($user) AND ($usrinfo['user_viewemail'] == 1 || $usrinfo['username'] == $userinfo['username']))) {
         if ($ya_config['useviewemail'] >= '1') {
            echo '<tr><td width="30%" align="left">' . _EMAIL . '</td><td width="70%" align="left"><strong>' . $user_email . '</strong></td></tr>';
         }
      }


Last edited by Palbin on Sun Aug 02, 2009 9:45 pm; edited 1 time in total 
Palbin







PostPosted: Sun Aug 02, 2009 9:40 pm Reply with quote

Made a correction to the above.
 
draxx







PostPosted: Mon Aug 03, 2009 3:54 pm Reply with quote

do you mean userinfo.php ?
 
draxx







PostPosted: Mon Aug 03, 2009 4:01 pm Reply with quote

okay assuming you ment userinfo.php and not index.php then yes the changes still produce the same results. Now if you ment a different file then ??
 
Palbin







PostPosted: Mon Aug 03, 2009 4:36 pm Reply with quote

You certain this produces the same result? Are you logged in as an admin while checking?

If it is still happening we should have 2.4 out in a few weeks. I have it working on the latest build.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©