Jump to content

Как вывести вторичные названия групп (не иконки!)


ANDROS
 Share

Recommended Posts

  • Administrator

Как вывести название второстепенных имен групп, а не иконок в (NB40) Secondary Group Icons 1.0.6?

Обращался к инструкции от разработчика плагина на форуме ips, но ничего не вышло.

Изменить шаблон:

- Перейти в profiles. core - global - plugins - nbSecGroupIconsProfile

Найти 

 
<img src='{file="$icon" extension="core_Theme"}' alt=''>


Заменить на

 
{expression="\IPS\Member\Group::load( $grOther )->name"}


- Перейти в posts. core - global - plugins - nbSecGroupIconsPost

Найти  

 
<img src='{file="$icon" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'>

Заменить на

 
{expression="\IPS\Member\Group::load( $grOther )->name"}


Для того, чтобы было отформатированный вид вторичной группы, нужно вставить ЭТо вместо того, что выше

 
{expression="\IPS\Member\Group::load( $grOther )->formattedName" raw="true"}

 

  • Thanks 1

Правила форума       Правила оформления контента       Приватный форум и чат

youtube-gaming2.jpg

 

Link to comment
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
 Share

×
×
  • Create New...

Important Information

Privacy Policy