Gravatar does not work in the online module 865 15 июня 2020 NoVak Клиенты 1 2 0 4 июня 2021 Hello, in the online user module does not display me avatars from the gravatar website, below I give the code responsible for displaying avatars in this module, maybe someone will find an error if (count(explode("@", $row['foto'])) == 2) { $tpl->set('{gravatar}', $row['foto']); $tpl->set('{foto}', '//www.gravatar.com/avatar/' . md5(trim($row['foto'])) . '?s=' . intval($user_group[$row['user_group']]['max_foto'])); } else { if ( $this->user_foto && file_exists( ROOT_DIR."uploads/fotos/".$this->user_foto ) ) { $foto = $this->config['http_home_url']."uploads/fotos/".$this->user_foto; } elseif ( $this->user_foto ) { $foto = $this->user_foto; } else { $foto = $this->config['http_home_url']."templates/".$this->config['skin']."/images/noavatar.png"; } } Подписаться на решение
Клиенты
1 2 0
4 июня 2021