Help
Ask questions about how to do or fix things in Arrowchat
User avatar
JJablonski
Customer
 
Posts: 4
Joined: 10 Nov 2013, 21:44

 

by JJablonski 16 Nov 2013, 00:19

ok so you guys fixed the config file location.. but you left out the avatars..

is integration file the only place to alter for the avatars? i took out the $ from userfiles -- but still doesn't seem to be loading images?? any ideas.

Code: Select all
function get_avatar($image, $user_id) 
   {
      global $base_url;
      
      if (is_file(dirname(dirname(dirname(__FILE__))) . '/userfiles/view_' . $image . '.jpg'))
      {
         return $base_url . '../userfiles/view_' . $image . '.jpg';
      }
      else
      {
         return $base_url . AC_FOLDER_ADMIN . "/images/img-no-avatar.gif";
      }
   }
User avatar
Jason
Customer
 
Posts: 2356
Joined: 12 Dec 2009, 16:06

 

by Jason 16 Nov 2013, 00:44

I believe avatars were tested, but maybe this was overlooked. Open up a support ticket and we'll take a look.
User avatar
JJablonski
Customer
 
Posts: 4
Joined: 10 Nov 2013, 21:44

 

by JJablonski 16 Nov 2013, 00:52

avatars could not have been tested... because it was even pointing to the wrong directory.
User avatar
JJablonski
Customer
 
Posts: 4
Joined: 10 Nov 2013, 21:44

 

by JJablonski 18 Nov 2013, 10:32

any word on this?? not sure why i would need a support ticket this is the support forms right?
User avatar
instadating
Customer
 
Posts: 10
Joined: 01 Dec 2013, 11:37

 

by instadating 09 Dec 2013, 01:22

This works on skadate chance view to thumb.




function get_avatar($image, $user_id)
{
global $base_url;

if (is_file(dirname(dirname(dirname(__FILE__))) . '/userfiles/thumb_' . $image . '.jpg'))
{
return $base_url . '../userfiles/thumb_' . $image . '.jpg';
}
else
{
return $base_url . AC_FOLDER_ADMIN . "/images/img-no-avatar.gif";
User avatar
ALedermueller
Customer
 
Posts: 1
Joined: 01 Mar 2014, 06:23

 

by ALedermueller 20 Mar 2014, 15:08

is there a fix for this issue available?
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]