Cześć,
Niestety nie mogę od kilku dni uporać się z problemem, żeby zamienić zdjęcie na avatar w tym miejscu:
Próbowałem taki kod:
<a href="{parse url="showuser={$this->memberData['member_id']}" seotitle="{$this->memberData['members_seo_name']}" template="showuser" base="public"}" title='{$this->lang->words['your_profile']}'>
<if test="$this->memberData['pp_thumb_photo'] == 'public/style_images/pcfoster/profile/default_large.png' && $this->memberData['avatar_location'] != '' ">
<if test="$this->memberData['avatar_type'] == 'upload'">
<img src='{$this->settings['board_url']}/uploads/{$this->memberData['avatar_location']}' alt="{$this->memberData['members_display_name']}{$this->lang->words['users_photo']}" width='{$this->memberData['pp_thumb_width']}' height='{$this->memberData['pp_thumb_width']}' class='photo' />
<else />
<img src='{$this->settings['board_url']}/uploads/{$this->memberData['avatar_location']}' alt="{$this->memberData['members_display_name']}{$this->lang->words['users_photo']}" width='{$this->memberData['pp_thumb_width']}' height='{$this->memberData['pp_thumb_width']}' class='photo' />
</if>
<else /><img src='{$this->settings['board_url']}/uploads/{$this->memberData['avatar_location']}' alt="{$this->memberData['members_display_name']}{$this->lang->words['users_photo']}" width='{$this->memberData['pp_thumb_width']}' height='{$this->memberData['pp_thumb_width']}' class='photo' /></if></a>
Jednak on pomimo zmiany zdjęcia na avatar działał tylko w przypadku, gdy user miał wybrany avatar. Osoba tuż po rejestracji miała puste miejsce.
Spróbowałem również taki kod:
<a href="{parse url="showuser={$this->memberData['member_id']}" seotitle="{$this->memberData['members_seo_name']}" template="showuser" base="public"}" title='{$this->lang->words['your_profile']}'>
<if test="$this->memberData['pp_thumb_photo'] == 'public/style_images/pcfoster/profile/default_large.png' && $this->memberData['avatar_location'] != '' ">
<if test="$this->memberData['avatar_type'] == 'upload'">
<img src='{$this->settings['board_url']}/uploads/{$this->memberData['avatar_location']}' alt="{$this->memberData['members_display_name']}{$this->lang->words['users_photo']}" width='{$this->memberData['pp_thumb_width']}' height='{$this->memberData['pp_thumb_width']}' class='photo' />
<else />
<img src='{$this->memberData['avatar_location']}' alt="{$this->memberData['members_display_name']}{$this->lang->words['users_photo']}" width='{$this->memberData['pp_thumb_width']}' height='{$this->memberData['pp_thumb_height']}' class='photo' />
</if>
<else /><img src='{$this->memberData['pp_thumb_photo']}' alt="{$this->memberData['members_display_name']}{$this->lang->words['users_photo']}" width='{$this->memberData['pp_thumb_width']}' height='{$this->memberData['pp_thumb_height']}' class='photo' /></if></a>
Jednak on ustawił na stałe domyślny avatar, nie można było go zmienić.
Czy mógłby ktoś spróbować poprawić, powiedzieć co zmienić, żeby wyświetlać w tym miejscu prawidłowy avatar. Czyli jak user go nie zmieni to jakąś domyślną grafikę (może być ta co teraz), a po zmianie avatar (a nie zdjęcie, jak dotychczas).
Pozdrawiam