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

Дополнительные поля

Recommended Posts

Доброй ночи. Хочу сделать такую тему в дополнительных полях но не получается. Форум ips 4.4.10

profile.png.7c402c3f45206ed1e949056e56d8ef59.png

Share this post


Link to post
Share on other sites

Я думаю нужно сверстать в шаблоне минипрофиля.

Share this post


Link to post
Share on other sites

Текст могу делать а картинки не вставляются(

Share this post


Link to post
Share on other sites

Вы напишите, на прямую на проект, они вам может помогут

Share this post


Link to post
Share on other sites

Если кратко, то, настройки поля:

Скрытый текст

image.png

 

Код для кастомного форматирования:

{{if $content == 'Солдат'}}
	{{$rank = 'solder';}}
{{elseif  $content == 'Лейтенант'}}
	{{$rank = 'lieutenant';}}
{{elseif  $content == 'Капитан'}}
	{{$rank = 'capitan';}}
{{elseif  $content == 'Ранг 4'}}
	{{$rank = 'rank4';}}
{{endif}}

<span class='user-rank rank-{$rank}'></span>

 

В style.css:

.user-rank {
	background-repeat: no-repeat;
  	background-position: center center;
  	width: 100px;
  	height: 40px;
  	display: inline-block;
  	margin: 0 auto;
}

.rank-solder {
	background-image: url("{resource="ranks/solder.png" app="core" location="global"}");
}

.rank-lieutenant {
	background-image: url("{resource="ranks/lieutenant.png" app="core" location="global"}");
}

 

  • Upvote 1

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...