Help
Ask questions about how to do or fix things in Arrowchat
User avatar
djeavons
Customer
 
Posts: 6
Joined: 05 May 2012, 10:25

 

by djeavons 04 Jun 2012, 04:15

Can someone please help me get avatars working.. i have a table avatar in users table.. i have images folder in my main site.. i just can't get avatars to work... anyone help me?

Code: Select all
function get_avatar($image, $user_id) 
   {
      global $base_url;
      
      if (is_file(dirname(dirname(dirname(__FILE__))) . '/images/' . $image . '.gif'))
      {
         return $base_url . '../images/' . $image . '.gif';
      }
      else
      {
         return $base_url . AC_FOLDER_ADMIN . "/images/img-no-avatar.gif";
      }
   }
User avatar
djeavons
Customer
 
Posts: 6
Joined: 05 May 2012, 10:25

 

by djeavons 06 Jun 2012, 18:00

Fixed by the guys at Arrowchat.. Thanks :)
User avatar
Staff Bot
ArrowChat Team
 
Posts: 8996
Joined: 07 Nov 2012, 13:41

 

by Staff Bot 16 Dec 2014, 00:26

[b]This thread has been locked because the last post is greater than six months old. There is a good chance that the information in this thread is outdated. Please open a new topic if you wish to discuss this further.[/b]