Jump to content
IPS Invision Community
Sign in to follow this  

Большие аватары на форуме


Description

Как сделать большие аватары на форуме

Откройте ACP - Внешний вид --> Ваш шаблон --> Редактировать HTML и CSS --> postContainer

Найти:

<li class='cAuthorPane_photo'>
	{template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
</li>

Заменить на:

<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'><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="Default Image Url" /></a>{{endif}}
</li>

Где не забудьте заменить 

<img src="Default Image Url" />

На ссылку с аватаром по умолчанию, который будет отображаться всем пользователям, у которых нет аватара.

Далее пройдите во вкладку CSS и найдите misc.css

Найти:

.ipsUserPhoto_xlarge img, img.ipsUserPhoto_xlarge, .ipsUserPhoto_xlarge:after {
	width: 120px;
	height: 120px;
	{{if theme.rounded_photos}}
		border-radius: 60px;
	{{endif}}
}

Добавить после:

.ipsUserPhoto_variable img, img.ipsUserPhoto_variable, .ipsUserPhoto_variable:after {
	width: 150px;
	{{if theme.rounded_photos}}
		border-radius: 0px;
	{{endif}}
}

 



Recommended Comments

Shamisen

Posted

После вставки этого когда 

<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'><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="Default Image Url" /></a>{{endif}}
</li>

Отваливается линк профиля и всплывающее окошко при наведении на аватар профиля в теме, при наведении было:

chrome_EptrbP6HrM.png.6439db57439609f843d5af084531cc35.png

Стало:

chrome_SrWn9jfKPi.png.07f7b313a74fd8f7e01ed0585b757d95.png

:058:

Share this comment


Link to comment
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
×
×
  • Create New...
Вверх