Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Some code need to be fixed.

Asked Modified Viewed 1,523 times
S
Sprunkas
S
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
asked
Junior Member

Hello, i long time can't fix that when member is banned and he have avatar on forum he's avatar doesn't changed. Here is my code:
      if ($data['user_avatar'] && file_exists(IMAGES."avatars/".$data['user_avatar']) && $data['user_status']!=6 && $data['user_status']!=5) {
         echo "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."' /><br /><br />\n";
      }else if($data['user_avatar'] && $data['user_status']==1) {
         echo "<img src='".IMAGES."avatars/Banned_Rsbot.png' alt='".$locale['567']."' /><br /><br />\n";
      } else if($data['user_status']==0) {
         echo "<img src='".IMAGES."avatars/Ntr_avataro.png' alt='".$locale['567']."' /><br /><br />\n";
      }
0 replies
There are no post found.

Labels

None yet

Statistics

  • Views 0 views
  • Posts 0 posts
  • Votes 0 votes
  • Topic users 1 member

1 participant

S
S
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet