Jump to content

Recommended Posts

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×