VIP Posted September 20, 2018 Share Posted September 20, 2018 Помогите обновить в postContainer код под 4.3Нужен полностью этот код ну только что бы работал на 4.3 <li class='cAuthorPane_photo'> {{if $comment->author()->pp_main_photo}}<a href='{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}-{$comment->author()->name}" seoTemplate="profile" seoTitle="$seoName"}' data-ipsHover data-ipsHover-target='{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}-{$comment->author()->name}&do=hovercard" seoTemplate="profile" seoTitle="$seoName"}' title="{lang="view_user_profile" sprintf="$name"}"><span class='ipsUserPhoto ipsUserPhoto_variable_{$comment->author()->member_group_id}'><img src="{setting="base_url"}uploads/{$comment->author()->pp_main_photo}" /></span></a>{{else}}<a href='{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}-{$comment->author()->name}" seoTemplate="profile" seoTitle="$seoName"}' data-ipsHover data-ipsHover-target='{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}-{$comment->author()->name}&do=hovercard" seoTemplate="profile" seoTitle="$seoName"}' title="{lang="view_user_profile" sprintf="$name"}"><img src="/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png" /></a>{{endif}} </li>Видимо устарел и теперь при навидении на аватар не поевляется всплывающая информация о пользователе ну и при нажатии на аватар происходит ошибка Link to comment Share on other sites More sharing options...
newbie Posted September 24, 2018 Share Posted September 24, 2018 <li class='cAuthorPane_photo'> <a href="{$comment->author()->url()}" data-ipsHover data-ipsHover-target="{$comment->author()->url()->setQueryString('do', 'hovercard')}" title="{lang="view_user_profile" sprintf="$comment->author()->name"}"> {{if $comment->author()->pp_main_photo}} <span class='ipsUserPhoto ipsUserPhoto_variable_{$comment->author()->member_group_id}'> <img src="{$comment->author()->photo}" /> </span> {{else}} <img src="{$comment->author()->photo}" /> {{endif}} </a> </li> 1 Link to comment Share on other sites More sharing options...
VIP Posted September 25, 2018 Author Share Posted September 25, 2018 (edited) Почему то не срабатывает css с различными размерами аватарок для групп .ipsUserPhoto_variable_4 img, img.ipsUserPhoto_variable_4, .ipsUserPhoto_variable_4:after, .ipsUserPhoto_variable_8 img, img.ipsUserPhoto_variable_8, .ipsUserPhoto_variable_8:after, .ipsUserPhoto_variable_19 img, img.ipsUserPhoto_variable_19, .ipsUserPhoto_variable_19:after, .ipsUserPhoto_variable_10 img, img.ipsUserPhoto_variable_10, .ipsUserPhoto_variable_10:after, .ipsUserPhoto_variable_12 img, img.ipsUserPhoto_variable_12, .ipsUserPhoto_variable_12:after, .ipsUserPhoto_variable_11 img, img.ipsUserPhoto_variable_11, .ipsUserPhoto_variable_11:after, .ipsUserPhoto_variable_9 img, img.ipsUserPhoto_variable_9, .ipsUserPhoto_variable_9:after, .ipsUserPhoto_variable_21 img, img.ipsUserPhoto_variable_21, .ipsUserPhoto_variable_21:after, .ipsUserPhoto_variable_7 img, img.ipsUserPhoto_variable_7, .ipsUserPhoto_variable_7:after, .ipsUserPhoto_variable_13 img, img.ipsUserPhoto_variable_13, .ipsUserPhoto_variable_13:after, .ipsUserPhoto_variable_6 img, img.ipsUserPhoto_variable_6, .ipsUserPhoto_variable_6:after, .ipsUserPhoto_variable_20 img, img.ipsUserPhoto_variable_20, .ipsUserPhoto_variable_20:after, .ipsUserPhoto_variable_23 img, img.ipsUserPhoto_variable_23, .ipsUserPhoto_variable_23:after, .ipsUserPhoto_variable_17 img, img.ipsUserPhoto_variable_17, .ipsUserPhoto_variable_17:after{ max-width: 160px; max-height: 200px; } .ipsUserPhoto_variable_3 img, img.ipsUserPhoto_variable_3, .ipsUserPhoto_variable_3:after, .ipsUserPhoto_variable_16 img, img.ipsUserPhoto_variable_16, .ipsUserPhoto_variable_16:after, .ipsUserPhoto_variable_15 img, img.ipsUserPhoto_variable_15, .ipsUserPhoto_variable_15:after, .ipsUserPhoto_variable_14 img, img.ipsUserPhoto_variable_14, .ipsUserPhoto_variable_14:after{ max-width: 160px; max-height: 160px; } Edited September 25, 2018 by VIP Link to comment Share on other sites More sharing options...
newbie Posted September 26, 2018 Share Posted September 26, 2018 Ваш форум не доступен, чтобы посмотреть. Link to comment Share on other sites More sharing options...
VIP Posted September 26, 2018 Author Share Posted September 26, 2018 в лс отправил демо Link to comment Share on other sites More sharing options...
VIP Posted September 26, 2018 Author Share Posted September 26, 2018 Последий стиль в списке Link to comment Share on other sites More sharing options...
newbie Posted September 26, 2018 Share Posted September 26, 2018 Нашел Ваш код в теме "Default Gamemag 4.2 (копия) wasder12"Картинка кота имеет размеры 144X144А Вы устанавливаетеmax-width: 160px;max-height: 200px; То есть условие выполняется. Link to comment Share on other sites More sharing options...
VIP Posted September 26, 2018 Author Share Posted September 26, 2018 может это из за этого не отображаются нужные размеры.К примеру я загрузил аватарку Но после её нужно обрезать В итоге в темах квадрат 137х137 а хотелось что бы загружалась полная но при отображении были значения max-width: 160px; max-height: 200px; Link to comment Share on other sites More sharing options...
newbie Posted September 27, 2018 Share Posted September 27, 2018 Размеры, каким будет фото, устанавливаются в настройках групп. Link to comment Share on other sites More sharing options...
Eloim Posted September 29, 2018 Share Posted September 29, 2018 А есть подобные этой <redacted> инструкции для того, чтобы аватары на становились квадратными, а сохраняли свои пропорции? Link to comment Share on other sites More sharing options...
newbie Posted September 30, 2018 Share Posted September 30, 2018 А есть подобные этой инструкции для того, чтобы аватары на становились квадратными, а сохраняли свои пропорции?Использовать не миниатюру, а оригинальное изображение + кастомный css Link to comment Share on other sites More sharing options...
Eloim Posted September 30, 2018 Share Posted September 30, 2018 Использовать не миниатюру, а оригинальное изображение как это сделать? по какому принципу вообще сохраняются аватарки? На форуме одни обрезанные до квадрата... кастомный css это понятно... Link to comment Share on other sites More sharing options...
newbie Posted October 1, 2018 Share Posted October 1, 2018 Вместо {$comment->author()->photo}использовать {$comment->author()->get_photo(false)} Link to comment Share on other sites More sharing options...
Eloim Posted October 1, 2018 Share Posted October 1, 2018 А где это? Не могу найти Link to comment Share on other sites More sharing options...
newbie Posted October 2, 2018 Share Posted October 2, 2018 А где это? Не могу найтиВторой пост темы 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