Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Аватар для Border Цвет в зависимости от группы

Аватар для Border Цвет в зависимости от группы

ад.png

Untitled.pngсфафд.pngвв.png

Идём в свой шаблон и переходим по пути: Шаблоны --> core --> front --> global --> userPhoto и заменить все содержание с ето:

{{if $member->member_id and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'members' ) )}}
{{$memberURL = ( $warningRef ) ? $member->url()->setQueryString( 'wr', $warningRef ) : $member->url();}}
<a href="{$memberURL}" data-group_id='{$member->member_group_id}' {{if $hovercard}}data-ipsHover data-ipsHover-target="{$memberURL->setQueryString( 'do', 'hovercard' )}"{{endif}} class="ipsUserPhoto ipsUserPhoto_{$size}{{if $classes}} {$classes}{{endif}}" title="{lang="view_user_profile" sprintf="$member->name"}">
		<img src='{$member->photo}' alt='{$member->name}' itemprop="image">
	</a>
{{else}}
	<span class='ipsUserPhoto ipsUserPhoto_{$size} {{if $classes}}{$classes}{{endif}}'>
		<img src='{$member->photo}' data-groupID='{$member->member_group_id}' alt='{$member->name}' itemprop="image">
	</span>
{{endif}}

Перейти к вашем custom.css и поставите ето код:

.ipsUserPhoto[data-group_id="4"] { border: solid 3px #e74c3c; }
.ipsUserPhoto[data-group_id="3"] { border: solid 3px #2c3e50; }

Изменит 4 и 3 с id вашем груп

Id вашем група может увидет в АКП - Members - Group инажмите груп который вы хотите увидеть. В адресной строке вы увидите id ваша група:

ид.png

User Feedback

Recommended Comments

Silence

Актив

Дополнение

после выполнения вышеуказанных шагов , перейти:

Шаблоны --> core --> front --> profile --> profileHeader и найти:

{{if $member->pp_main_photo and ( mb_substr( $member->pp_photo_type, 0, 5 ) === 'sync-' or $member->pp_photo_type === 'custom' )}}
					<a href="{file="$member->pp_main_photo" extension="core_Profile"}" data-ipsLightbox class='ipsUserPhoto ipsUserPhoto_xlarge'>					
						<img src='{$member->photo}'  alt=''>
					</a>
				{{else}}
					<span class='ipsUserPhoto ipsUserPhoto_xlarge'>					
						<img src='{$member->photo}' alt=''>
					</span>
				{{endif}}

Изменит на :

{{if $member->pp_main_photo and ( mb_substr( $member->pp_photo_type, 0, 5 ) === 'sync-' or $member->pp_photo_type === 'custom' )}}
					<a href="{file="$member->pp_main_photo" extension="core_Profile"}" data-ipsLightbox class='ipsUserPhoto ipsUserPhoto_xlarge'>					
						<img src='{$member->photo}' data-groupID='{$member->member_group_id}' alt=''>
					</a>
				{{else}}
					<span class='ipsUserPhoto ipsUserPhoto_xlarge'>					
						<img src='{$member->photo}' data-groupID='{$member->member_group_id}' alt=''>
					</span>
				{{endif}}

В custom.css добавит:

.ipsUserPhoto_xlarge img, img.ipsUserPhoto_xlarge, .ipsUserPhoto_xlarge[data-group_id="4"] { border: solid 3px #e74c3c; padding:2px;}

1.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Добавить комментарий...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.