turk Posted January 2 Report Share Posted January 2 hi everybody how can I show the number of all topics and all posts for each forum? Spoiler for example I want to show number of all topics and all posts for ipbmafia.ru forum In front of the title Quote Link to comment Share on other sites More sharing options...
turk Posted January 3 Author Report Share Posted January 3 help!!! Quote Link to comment Share on other sites More sharing options...
Zero108 Posted January 3 Report Share Posted January 3 1 час назад, turk сказал: help https://ipbskins.ru/files/file/360-global-statistics/ SlawkA 1 Quote Link to comment Share on other sites More sharing options...
Donjuan Posted January 3 Report Share Posted January 3 1 час назад, turk сказал: help!!! forums-front-index-forumRow {$forum->topics|raw} {lang="topic_pl_lc"} Quote Link to comment Share on other sites More sharing options...
by_ix Posted January 3 Report Share Posted January 3 turk шаблон forums > front > index > index после <a href='{$category->url()}'>{$category->_title}</a> вставить: {{$all = \IPS\Db::i()->select( 'SUM(topics) as t, SUM(posts) as p', 'forums_forums', array( 'parent_id = ?', $category->_id ) )->first();}} Topics: {$all['t']} Posts: {$all['p']} по желанию: {{$all = \IPS\Db::i()->select( 'SUM(topics) as t, SUM(posts) as p', 'forums_forums', array( 'parent_id = ?', $category->_id ) )->first();}} {{if $all['t'] > 0}} Topics: {$all['t']} Posts: {$all['p']} {{else}} {{endif}} SlawkA and turk 2 Quote Link to comment Share on other sites More sharing options...
turk Posted January 13 Author Report Share Posted January 13 by_ix thanks! how can I add user follow button in comment controller section? Spoiler if user is not followed "fa-user-plus" anf if user in followed "fa-user-times" with regards! Quote Link to comment Share on other sites More sharing options...
alexis Posted January 13 Report Share Posted January 13 4 часа назад, turk сказал: by_ix thanks! how can I add user follow button in comment controller section? Скрыть контент if user is not followed "fa-user-plus" anf if user in followed "fa-user-times" with regards! There is a free plugin on the Marketplace regarding your request: https://invisioncommunity.com/files/file/10178-follow-post-author/ Quote Link to comment Share on other sites More sharing options...
turk Posted February 13 Author Report Share Posted February 13 On 1/3/2023 at 7:44 PM, by_ix said: шаблон forums > front > index > index after <a href='{$category->url()}'>{$category->_title}</a> insert: @by_ix thanks. everything good work. but this code doesn't show real status. below image is one of my forums that shows 42 posts and 17 topics but your code shows 38 posts and 16 topics. Spoiler Quote Link to comment Share on other sites More sharing options...
Zero108 Posted February 13 Report Share Posted February 13 Может удаленные или скрытые не считает. Quote Link to comment Share on other sites More sharing options...
avangcom Posted February 13 Report Share Posted February 13 https://ipbmafia.ru/topic/25271-how-to-add-this-section-to-the-default-template/ Quote Link to comment Share on other sites More sharing options...
turk Posted February 13 Author Report Share Posted February 13 4 hours ago, Zero108 said: Может удаленные или скрытые не считает. no I haven't hidden topic or post Quote Link to comment Share on other sites More sharing options...
Zero108 Posted February 13 Report Share Posted February 13 (edited) Посчитай, сколько там на самом деле постов и топиков. Потом поймешь, что где неправильно. Например, удаленные посты и топики никуда из базы данных определенное администратором время не пропадают. Про удаленные данные в своем последнем сообщении ты не написал. Или невнимательно отвечал на мое сообщение, или скрываешь. Edited February 13 by Zero108 turk 1 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.
Note: Your post will require moderator approval before it will be visible.