lexavits Posted January 16, 2018 Share Posted January 16, 2018 Как вывести статус пользователя("о чём ты сейчас думаешь?") в теме под ником пользователя.Как указано на скриншоте Заранее спасибо. Link to comment Share on other sites More sharing options...
newbie Posted January 16, 2018 Share Posted January 16, 2018 Нет данных для этого.Тащить данные из БД - дополнительный запрос на каждый пост. Можно присоединиться в \admin\applications\forums\modules_public\forums\topics.phpДо //----------------------------------------- // Get posts добавить /* Statuses */ if ($this->settings['su_enabled']) { $_post_joins[] = array( 'select' => 's.status_content', 'from' => array('member_status_updates' => 's'), 'where' => 'm.member_id=s.status_author_id', 'type' => 'left' ); } Далее в шаблоне userInfoPane использовать <if test="$author['status_content']"> <p class='desc'>{$author['status_content']}</p> </if> 2 Link to comment Share on other sites More sharing options...
lexavits Posted January 16, 2018 Author Share Posted January 16, 2018 Спасибо, всё получилось :) 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