Jump to content
  • 0

come aggiungere la targhetta


Luca

Question

come faccio aggiungere la 2a targhetta del secondo gruppo ad un utente nella discussione ? grazie

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
  • Admin
Askancy

Intendi aggiungere una seconda immagine nel rank?

Link to post
Share on other sites
  • 0
  • Admin
Askancy

Come ti ho detto in privato, basta aggiungere questo in:

In Forums->front->topics->postContainer

			{{$otherGroups = array_filter(explode(',', $comment->author()->mgroup_others), function($v) use($comment) { return ($v != null and $v != $comment->author()->member_group_id);});}}
			{{if count($otherGroups)}}
				{{foreach $otherGroups as $grOther}}
					{{if $icon = \IPS\Member\Group::load( $grOther )->g_icon}}
						<li class='ipsResponsive_hidePhone ipsPad_bottom' data-ipsTooltip title='{expression="\IPS\Member\Group::load( $grOther )->name"}'><img src='{file="$icon" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'></li>
					{{endif}}
				{{endforeach}}
			{{endif}}

Questo permetterà di mostrare le targhette di tutti i gruppi di cui fa parte l'utente.

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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. to insert a cookie message.