Vitaliy 2 Posted September 14, 2017 Author Report Share Posted September 14, 2017 Установил приложение Points Economy и потребовалось добавить отображение поинтов у пользователях в темах. Насколько я понял, за вывод баланса отвечает шаблон currencyUserbit Как-то нужно добавить в postContainer Обратиться Quote Link to comment Share on other sites More sharing options...
Павел 139 Posted September 18, 2017 Report Share Posted September 18, 2017 Здравствуйте. Укажите версию Invision Community Обратиться Quote Link to comment Share on other sites More sharing options...
Vitaliy 2 Posted October 2, 2017 Author Report Share Posted October 2, 2017 Здравствуйте. Уже добавил. Версия 4.2.4. Правда не знаю, правильно или нет. По Крайней мере у меня работает. {{$currency = \IPS\points\Currency::load( 1 );}} {{$member = \IPS\Member::load( $comment->author()->member_id );}} {{$worth = $currency->netWorthAsOf( new \IPS\DateTime( 'now' ), $member );}} <li class="uip hint hint--right" data-hint="Обычный"> <span class="leftinfo"><i class="fa fa-jpy" data-ipstooltip="" _title="Форумная валюта"></i></span> <span class="rightinfo ipsBadge_style4 ipsBadge vcny"><a _title="Points" data-ipstooltip href="{url="app=points&module=points&controller=economy&do=statistics¤cy={$currency->id}"}">{$currency->display( $worth )} {$currency->pluralized( $worth )}</a></span> </li> 1 Обратиться Quote Link to comment Share on other sites More sharing options...
Vitaliy 2 Posted October 2, 2017 Author Report Share Posted October 2, 2017 Кстати, хочу заметить, что на стандартном postContainer работает всё изначально при установке Points Economy. Это у меня просто переделки и из за этого приходится искать другие решения. Обратиться Quote Link to comment Share on other sites More sharing options...
Павел 139 Posted October 2, 2017 Report Share Posted October 2, 2017 @Vitaliy, спасибо за инструкцию, может быть кому-то ещё понадобится. Обратиться Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.