Jump to content

Question

5 answers to this question

Recommended Posts

  • 0
Posted

Intră în editorul de temă și mergi în „global - plugins - gni” și schimbă tot codul de acolo cu următorul :
 

{{$groups = \IPS\Member::loggedIn()->groupNameIndicator();}}
{{if count( $groups )}}
	<hr class="ipsHr">
	{{if $orientation == 'vertical'}}
		<ul class='ipsList_inline'>
			{{foreach $groups as $group}}
				<li><a href='{url="app=core&module=search&controller=search&type=core_members&group[$group->g_id]=1" seoTemplate="search"}'>{$group->formattedName|raw}</a></li>
			{{endforeach}}
		</ul>
	{{else}}
		<ul class='ipsList_inline'>
			{{foreach $groups as $group}}
				<li><a href='{url="app=core&module=search&controller=search&type=core_members&group[$group->g_id]=1" seoTemplate="search"}'>{$group->formattedName|raw}</a></li>
			{{endforeach}}
		</ul>
	{{endif}}
{{endif}}

 

  • 0
Posted
1 hour ago, Sebastian C. said:

Intră în editorul de temă și mergi în „global - plugins - gni” și schimbă tot codul de acolo cu următorul :
 


{{$groups = \IPS\Member::loggedIn()->groupNameIndicator();}}
{{if count( $groups )}}
	<hr class="ipsHr">
	{{if $orientation == 'vertical'}}
		<ul class='ipsList_inline'>
			{{foreach $groups as $group}}
				<li><a href='{url="app=core&module=search&controller=search&type=core_members&group[$group->g_id]=1" seoTemplate="search"}'>{$group->formattedName|raw}</a></li>
			{{endforeach}}
		</ul>
	{{else}}
		<ul class='ipsList_inline'>
			{{foreach $groups as $group}}
				<li><a href='{url="app=core&module=search&controller=search&type=core_members&group[$group->g_id]=1" seoTemplate="search"}'>{$group->formattedName|raw}</a></li>
			{{endforeach}}
		</ul>
	{{endif}}
{{endif}}

 

La mine nu gni se numeste ci  bdGroupLegend si am inlocuit acel cod cu ce mi-ai dat tu si mi-a dat white screen pe forum

Acesta este codul :

<h3 class="ipsType_reset ipsWidget_title">{lang='block_bdGroupLegend_title'}</h3>
<div class='ipsWidget_inner {{if $orientation == 'vertical'}}ipsPad{{endif}}'>
    <ul class="ipsList_inline ipsList_csv ipsList_noSpacing"> 
        {{foreach $groups as $group}}
            {{if is_object($group)}}
                <li><a href="{{if settings.bd_gl_linkSearch}}{url='app=core&module=search&controller=search&type=core_members&group[$group->g_id]=1' csrf='true'}{{else}}#{{endif}}">{setting="bd_gl_globalPrefix"}{{if settings.bd_gl_formatName==true}}$group->formattedName{{else}}{$group->name}{{endif}}{setting="bd_gl_globalSuffix"}</a></li>
            {{endif}}
        {{endforeach}}
    </ul>
    <div class='ipsType_richText ipsType_contained'>{setting='bd_gl_text'}</div>
</div>

 

          76561198331386503.pngAddFriend.png

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.