Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Latest Addons
AD Gallery 12
SyntaxHighlighte... 41
Newsletters v4.03 102
Facebook Like Box 114
Newsletters v4.02 55
Metro 143
Facebook Connect 161
Shoutbox Panel 122
Redactor for PHP... 102
MI Floating Side... 105
Facebook Login/R... 146
Avatar Studio v2.03 174
Relationship Sta... 92
Sexual Orientati... 111
Fisherman 138
Popular Addons
iTheme2 5789
Arise 5778
User Control v1.23 4608
Event Calendar 4036
Photowidget panel 3878
Radio-Theme red2... 3342
Highslide Gallery 3306
CSS/JavaScript D... 3218
Facebook Connect... 2972
Dynamic Menu 2885
Slideshow Lightb... 2712
L-AMANT 2654
Enigma 2627
2Dark 2601
Black 2565
View Thread
Official Home of PHP-Fusion » General Addon and Modification Support » Code Snippet and functions
Who is here? 1 guest(s)
 Print Thread
Some code need to be fixed.
Sprunkas
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:
Download source  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";
      }


 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Help with Register form for Ajax Caht Code Ideas for Modifications and Requests 1 10-04-2013 11:22
Just an idea for someone- User ID BB Code Ideas for Modifications and Requests 3 31-03-2013 19:21
HTML code in New topic / post Suspected Bugs and Errors 6 26-03-2013 17:54
Sanitized HTML Code System Administration 5 27-02-2013 22:15
Code help Ideas for Modifications and Requests 3 16-02-2013 23:40
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.
Cookiebar Panel byVenue