UserName900 Posted April 21, 2014 Share Posted April 21, 2014 Если мы выставляем аватару не 100х100, а например 150 на 200, то на форуме она подгоняется и не растягивается. т.е. отображается некая середина.Я заменил default_large.png на более подходящую форуму картинку размером 150х200 и на форумных страницах она растягивается и сжимается до квадрата. Как это устранить? Link to comment Share on other sites More sharing options...
Zero108 Posted April 21, 2014 Share Posted April 21, 2014 При добавлении фото, там есть фоторедактор, который позволяет вырезать квадрат. Аватаров в 3.4.6 нет. Есть фотографии. Link to comment Share on other sites More sharing options...
UserName900 Posted April 21, 2014 Author Share Posted April 21, 2014 Да, это я понимаю. Но если я просто заменяю png то никто меня не спросит про квадрат, потому что картинка изначально квадратная и не подразумевает изменения. Link to comment Share on other sites More sharing options...
siv1987 Posted April 21, 2014 Share Posted April 21, 2014 Внешний вид -> %шаблон% -> CSS -> ipb_styles.cssНайти ipsUserPhoto_large и отредактировать значения для max-width и max-height 1 Link to comment Share on other sites More sharing options...
UserName900 Posted April 21, 2014 Author Share Posted April 21, 2014 .ipsUserPhoto_large { max-width: 150px; max-height: 220px; }Изменил, но к сожалению так и растягивает/сжимает... Link to comment Share on other sites More sharing options...
siv1987 Posted April 21, 2014 Share Posted April 21, 2014 Адрес форума укажите согласно правилам форума, здесь телепатов нет. Link to comment Share on other sites More sharing options...
newbie Posted April 21, 2014 Share Posted April 21, 2014 Изменил, но к сожалению так и растягивает/сжимает... Покажите на скриншоте, о чем идет речь. К тому же для фотографий есть ряд классов: .ipsUserPhoto_variable { max-width: 155px; } .ipsUserPhoto_large { max-width: 90px; max-height: 90px; } .ipsUserPhoto_medium { width: 50px; height: 50px; } .ipsUserPhoto_mini { width: 30px; height: 30px; } .ipsUserPhoto_tiny { width: 20px; height: 20px; } .ipsUserPhoto_icon { width: 16px; height: 16px; }Возможно, фото, которое вы хотите изменить имеет иной класс, чем указал siv1987 Link to comment Share on other sites More sharing options...
UserName900 Posted April 21, 2014 Author Share Posted April 21, 2014 (edited) На форуме увидите аватары юзеров норм, а заменённая базовая фотография растянута.Речь идёт о фото девушки с красивыми носками. :D Edited April 21, 2014 by UserName900 Link to comment Share on other sites More sharing options...
siv1987 Posted April 21, 2014 Share Posted April 21, 2014 @UserName900, в профиле указываем. Link to comment Share on other sites More sharing options...
siv1987 Posted April 21, 2014 Share Posted April 21, 2014 селектор .ipsUserPhoto_variable Link to comment Share on other sites More sharing options...
UserName900 Posted April 21, 2014 Author Share Posted April 21, 2014 селектор .ipsUserPhoto_variableЗначение 155 по умолчанию стоит у меня. На какое бы я не изменил именно на форуме где маленькое превью аватары всё по прежнему сжато. :( Link to comment Share on other sites More sharing options...
siv1987 Posted April 21, 2014 Share Posted April 21, 2014 Маленькое превью имеет другие классы. Мы сейчас говорим о большом аватаре. Link to comment Share on other sites More sharing options...
UserName900 Posted April 21, 2014 Author Share Posted April 21, 2014 С большим всё путём. Проблемы именно с маленьким. Видимо большой сразу вмещался в параметр 150. Извиняюсь если ввёл в заблуждение. Link to comment Share on other sites More sharing options...
UserName900 Posted April 21, 2014 Author Share Posted April 21, 2014 Видимо mini tiny надо редактировать? Link to comment Share on other sites More sharing options...
siv1987 Posted April 21, 2014 Share Posted April 21, 2014 .ipsUserPhoto_mini 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now