wdvipers Posted April 27, 2019 Share Posted April 27, 2019 Есть код от счётчика тем и сообщений но он работает на 4.4.2 некорректноСам код<dl> {{$count = \IPS\forums\Topic::contentCount( $forum, TRUE );}} <span class="stats-post" data-ipstooltip="" _title='{number="$count"} {lang="posts_no_number" pluralize="$count"} / {number="$forum->topics"} {lang="{!# [1:тема][2:темы][3:темы][4:темы][?:тем]}" pluralize="$forum->topics"}'>{number="$count"} / {number="$forum->topics"}</span> <span class="stats-post2"><i class="fa fa-comment-o" aria-hidden="true"></i></span> </dl>Подскажите как исправить, он не считает то что в под категориях Link to comment Share on other sites More sharing options...
siv1987 Posted April 27, 2019 Share Posted April 27, 2019 Наверное и не будет - слишком накладная операция считать у подкатегорий. Да и то эта функция скорее всего генерирует по sql запросу для каждого форума. Link to comment Share on other sites More sharing options...
wdvipers Posted April 27, 2019 Author Share Posted April 27, 2019 Не знаю на рабочем форуме во всех разделах отображает а к примеру во 2м разделе отображает 0 Link to comment Share on other sites More sharing options...
newbie Posted April 30, 2019 Share Posted April 30, 2019 а к примеру во 2м разделе отображает 0У Вас в коде{number="$forum->topics"}Кол-во тем для текущего форума (Криминальные фракции). Видимо там нет ни одной темы. Link to comment Share on other sites More sharing options...
wdvipers Posted April 30, 2019 Author Share Posted April 30, 2019 Там всё есть, он считает 3 темы а те что в под категориях не считает. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now