Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
kindermix Posted October 10, 2018 Posted October 10, 2018 My primary groups have no Group Formatting (so they use default colors), I have subscription, and this subscription assign secondary group with have new rules and Group Formatting. Is there are any way to make something like this: IF $member NO $groupIdForFormatting THEN FOR EACH $group IN $member DO IF $groupId HAVE $groupIdForFormatting BREAK END END I spend a few hours trying to edit core>front>global>userLinkFromData {{if $id AND \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'members', 'front' ) ) }}<a href='{url="app=core&module=members&controller=profile&id={$id}" seoTemplate="profile" seoTitle="$seoName ?: \IPS\Http\Url::seoTitle( $name )"}' data-ipsHover data-ipsHover-target='{url="app=core&module=members&controller=profile&id={$id}&do=hovercard" seoTemplate="profile" seoTitle="$seoName ?: \IPS\Http\Url::seoTitle( $name )"}' title="{lang="view_user_profile" sprintf="$name"}" class="ipsType_break">{{if $groupIdForFormatting}}{expression="\IPS\Member\Group::load( $groupIdForFormatting )->formatName( $name )" raw="true"}{{else}}{$name}{{endif}}</a>{{else}}{{if $groupIdForFormatting}}{expression="\IPS\Member\Group::load( $groupIdForFormatting )->formatName( $name )" raw="true"}{{else}}{$name}{{endif}}{{endif}} But didn't get any closer, I can't even understand how to trigger all member ids to make my online users display from this: <li> <a href="" data-ipshover="" data-ipshover-target="" title="" class="ipsType_break" id="ips_uid_1532_7"> User </a> </li> To at least this IF they have SecondaryGroup number 37 for example: <li> <a data-membergroup="37" href="" data-ipshover="" data-ipshover-target="" title="" class="ipsType_break" id="ips_uid_1532_7"> User </a> </li> Will appreciate any help.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.