IPBDesign 1 Posted May 12, 2017 Report Share Posted May 12, 2017 Привет ..... как сделат в Category index page показат последная / новая тема с мой колега говорили и он сказал так: open applications\forums\sources\Forum\Forum.php search for public function lastPost category last topic and post is very similar to this one this: $result = array( 'author' => $lastAuthor, 'topic_url' => \IPS\Http\Url::internal( "app=forums&module=forums&controller=topic&id={$this->last_id}", 'front', 'forums_topic', array( $this->seo_last_title ) ), 'topic_title' => $this->last_title, 'date' => $this->last_post ); And search for children foreach Add new public function And then use this function in your category template $category->yourfunction Я попробувал ..... но не заработало ..... Обратиться Quote Link to comment Share on other sites More sharing options...
Павел 139 Posted May 12, 2017 Report Share Posted May 12, 2017 Привет, возможно мы напишем статью по этому поводу в наш раздел Лабораторий, в данный момент ответ решить задачу не можем. 1 Обратиться Quote Link to comment Share on other sites More sharing options...
IPBDesign 1 Posted May 12, 2017 Author Report Share Posted May 12, 2017 Спасибо ..... Обратиться Quote Link to comment Share on other sites More sharing options...
IPBDesign 1 Posted May 19, 2017 Author Report Share Posted May 19, 2017 Привет ..... если есть развитие в вопросе .. ? Обратиться Quote Link to comment Share on other sites More sharing options...
IPBDesign 1 Posted June 1, 2017 Author Report Share Posted June 1, 2017 В 12.05.2017 г. в 18:25, Павел сказал: Привет, возможно мы напишем статью по этому поводу в наш раздел Лабораторий, в данный момент ответ решить задачу не можем. Привет ..... будем ли мы в ближайшее время получить обещанную статью ... Заранее спасибо Обратиться Quote Link to comment Share on other sites More sharing options...
Павел 139 Posted June 2, 2017 Report Share Posted June 2, 2017 Привет, времени пока нет этим заняться. 1 Обратиться Quote Link to comment Share on other sites More sharing options...
IPBDesign 1 Posted June 2, 2017 Author Report Share Posted June 2, 2017 Спасибо .... я жду Обратиться Quote Link to comment Share on other sites More sharing options...
IPBDesign 1 Posted July 3, 2017 Author Report Share Posted July 3, 2017 (edited) Нашел решение ... : {{$tid = \IPS\DB::i()->select( 'tid', 'forums_topics', array(), 'start_date DESC' )->first();}} {{$topic = \IPS\forums\Topic::load($tid);}} <div class="ipsGrid_span4 ipsType_left ipsPhotoPanel ipsPhotoPanel_mini ipsCategory_line"> {template="userPhoto" app="core" group="global" params="$topic->author(), 'mini'"} <div> <span class="ipsType_minorHeading">{lang="new topic"}</span><br> <span class="ipsType_normal"> <a href="{$topic->url()}" class='ipsType_break' title='{$topic->title}'>{truncate="$topic->title" length="30"}</a> </span> <br> <i class="fa fa-clock-o"></i> <span title='{$topic->title}' class='ipsType_blendLinks'>{datetime="$topic->start_date"}</span> Остал один малинкий проблем ...... новая тема показвается в каждой категории а нет в определений Как ето разрешит .... Edited July 3, 2017 by IPBDesign Обратиться 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.