Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
VIP

Обновить код

Recommended Posts

Помогите обновить в 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
<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>

  • Upvote 1

Share this post


Link to post

Почему то не срабатывает 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 by VIP

Share this post


Link to post

Ваш форум не доступен, чтобы посмотреть.

Share this post


Link to post

в лс отправил демо

Share this post


Link to post

Последий стиль в списке

Share this post


Link to post

Нашел Ваш код в теме "Default Gamemag 4.2 (копия) wasder12"

Картинка кота имеет размеры 144X144

А Вы устанавливаете

max-width: 160px;

max-height: 200px;

 

То есть условие выполняется.

Share this post


Link to post

может это из за этого не отображаются нужные размеры.

К примеру я загрузил аватарку

post-53141-0-20456700-1537976228_thumb.jpg

 

Но после её нужно обрезать

post-53141-0-89684500-1537976288_thumb.png

 

В итоге в темах квадрат 137х137 а хотелось что бы загружалась полная но при отображении были значения

max-width: 160px;

max-height: 200px;

Share this post


Link to post

Размеры, каким будет фото, устанавливаются в настройках групп.

Share this post


Link to post

А есть подобные этой <redacted> инструкции для того, чтобы аватары на становились квадратными, а сохраняли свои пропорции?

Share this post


Link to post
А есть подобные этой инструкции для того, чтобы аватары на становились квадратными, а сохраняли свои пропорции?

Использовать не миниатюру, а оригинальное изображение + кастомный css

Share this post


Link to post

Использовать не миниатюру, а оригинальное изображение

 

как это сделать? по какому принципу вообще сохраняются аватарки? На форуме одни обрезанные до квадрата...

 

кастомный css

 

это понятно...

Share this post


Link to post

Вместо

{$comment->author()->photo}

использовать

{$comment->author()->get_photo(false)}

Share this post


Link to post

А где это? Не могу найти

Share this post


Link to post
А где это? Не могу найти
Второй пост темы

Share this post


Link to post

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...