VIP 0 09/20/2018 08:41 PM Помогите обновить в 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>Видимо устарел и теперь при навидении на аватар не поевляется всплывающая информация о пользователе ну и при нажатии на аватар происходит ошибка Share this post Link to post Share on other sites
newbie 1,720 09/24/2018 06:08 AM <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 Share this post Link to post Share on other sites
VIP 0 09/25/2018 02:55 PM (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 Share this post Link to post Share on other sites
newbie 1,720 09/26/2018 05:40 AM Ваш форум не доступен, чтобы посмотреть. Share this post Link to post Share on other sites
newbie 1,720 09/26/2018 06:24 AM Нашел Ваш код в теме "Default Gamemag 4.2 (копия) wasder12"Картинка кота имеет размеры 144X144А Вы устанавливаетеmax-width: 160px;max-height: 200px; То есть условие выполняется. Share this post Link to post Share on other sites
VIP 0 09/26/2018 03:40 PM может это из за этого не отображаются нужные размеры.К примеру я загрузил аватарку Но после её нужно обрезать В итоге в темах квадрат 137х137 а хотелось что бы загружалась полная но при отображении были значения max-width: 160px; max-height: 200px; Share this post Link to post Share on other sites
newbie 1,720 09/27/2018 05:51 AM Размеры, каким будет фото, устанавливаются в настройках групп. Share this post Link to post Share on other sites
Eloim 0 09/29/2018 11:40 AM А есть подобные этой <redacted> инструкции для того, чтобы аватары на становились квадратными, а сохраняли свои пропорции? Share this post Link to post Share on other sites
newbie 1,720 09/30/2018 05:20 AM А есть подобные этой инструкции для того, чтобы аватары на становились квадратными, а сохраняли свои пропорции?Использовать не миниатюру, а оригинальное изображение + кастомный css Share this post Link to post Share on other sites
Eloim 0 09/30/2018 10:26 AM Использовать не миниатюру, а оригинальное изображение как это сделать? по какому принципу вообще сохраняются аватарки? На форуме одни обрезанные до квадрата... кастомный css это понятно... Share this post Link to post Share on other sites
newbie 1,720 10/01/2018 05:15 AM Вместо {$comment->author()->photo}использовать {$comment->author()->get_photo(false)} Share this post Link to post Share on other sites
Eloim 0 10/01/2018 07:35 PM А где это? Не могу найти Share this post Link to post Share on other sites
newbie 1,720 10/02/2018 06:07 AM А где это? Не могу найтиВторой пост темы Share this post Link to post Share on other sites