Sign in to follow this  
Flosstradamus

Modificare dimensiune avatar

1 post in this topic

Salutare.Acest tutorial va ajuta pentru a redimensiona avatarele in interiorul topicului.

Ne logam in ACP > alegem Customization > Themes > alegem tema careia dorim sa ii facem modificarea apasand pe   </> 

In Templates cautam ,,forums'' > ,,topics'' > postContainer

Cautam urmatorul cod : 

<li class='cAuthorPane_photo'>
{template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
</li>

Codul de mai sus trebuie de inlocuit cu urmatorul cod : 

<li class='cAuthorPane_photo'>
                  {{if $comment->author()->pp_main_photo}}
              		<span class='ipsUserPhoto ipsUserPhoto_variable'>
              			<img src="{setting='base_url'}uploads/{$comment->author()->pp_main_photo}" />
                    </span>
              {{else}}
              			<img src='{resource="default_photo.png" app="core" location="global"}' />
              {{endif}}
            </li>

Salvam modificare prin butonul ,,Save''.

Urmatorul pas este sa mergem la ,,CSS'' > cautam ,,core'' > ,,front'' > ,,custom'' > custom.css

La sfarsit adaugam urmatorul cod : 

.cAuthorPane_photo img {
    max-width: 170px;
    width: auto;
}

Rezultatul final ar trebui sa arate astfel: https://imgur.com/9lMAiuv

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this