Kauman Posted January 11, 2015 Share Posted January 11, 2015 Здравствуйте.Подскажите пожалуйста как убрать дату коментария и дату создания поста в IPB 3.4.6На скриншоте видно, что я уже пытался что-то сделать, удалив в phpmyadmin дату в ручную и удалив из файлов языка текст "Отправлено" но хочу удалить эти полоски и удалить дату создания поста, какая переменная отвечает за дату на всем форуме, как убрать это, помогите пожалуйста. Скриншот Link to comment Share on other sites More sharing options...
newbie Posted January 12, 2015 Share Posted January 12, 2015 что я уже пытался что-то сделать, удалив в phpmyadmin дату в ручную и удалив из файлов языка текст "Отправлено"То, что выше, ищите в шаблоне topicViewTemplate , <span itemprop="dateCreated" datetime="{parse date="$topic['start_date']" format="YMD" relative="false"}">{parse date="$topic['start_date']" format="SHORT"}</span>То, что ниже, ищите в шаблоне post {$this->lang->words['posted']} <abbr class="published" itemprop="commentTime" title="{parse expression="date( 'c', $post['post']['post_date'] )"}">{parse date="$post['post']['post_date']" format="long"}</abbr> 1 Link to comment Share on other sites More sharing options...
siv1987 Posted January 12, 2015 Share Posted January 12, 2015 В бд ничего удалять не нужно, особенно даты которые могут учавствовать в запросах. Все элементы внешнего вида удаляются из шаблона. Конкретно дата поста newbie подсказал выше. Link to comment Share on other sites More sharing options...
Kauman Posted January 12, 2015 Author Share Posted January 12, 2015 Спасибо вам большое, все работает. Ваш форум прекрасен как никогда.Скажите еще пожалуйста как убрать время вот тут Link to comment Share on other sites More sharing options...
newbie Posted January 12, 2015 Share Posted January 12, 2015 Скажите еще пожалуйста как убрать время вот тутШаблон boardIndexTemplateИщите код, похожий на <if test="hideDateUrl:|:$forum_data['_hide_last_date']"> <li class='desc lighter blend_links'>{parse date="$forum_data['last_post']" format="DATE"}</li> <else /> <li class='desc lighter blend_links'><a href='{parse url="showtopic={$forum_data['last_id']}&view=getlastpost" base="public" template="showtopic" seotitle="{$forum_data['seo_last_title']}"}' title='{$this->lang->words['view_last_post']}'>{parse date="$forum_data['last_post']" format="DATE"}</a></li> </if> Link to comment Share on other sites More sharing options...
Kauman Posted January 12, 2015 Author Share Posted January 12, 2015 Спасибо большое, вы мне очень помогли. Ваш форум лучший ! Можете закрывать. Link to comment Share on other sites More sharing options...
tunofak Posted March 11, 2016 Share Posted March 11, 2016 Где убрать время, вот здесь, пометил красным, всё что хочу убрать! Link to comment Share on other sites More sharing options...
tunofak Posted March 11, 2016 Share Posted March 11, 2016 Чтобы убрать время на 1ом скриншоте, нужно удалить этот код из Список форумов > boardIndexTemplate : <span class='desc lighter blend_links'> <if test="hideDateUrl:|:$forum_data['_hide_last_date']"> {parse date="$forum_data['last_post']" format="DATE"} <else /> <a href='{parse url="showtopic={$forum_data['last_id']}&view=getlastpost" base="public" template="showtopic" seotitle="{$forum_data['seo_last_title']}"}' title='{$this->lang->words['view_last_post']}'>{parse date="$forum_data['last_post']" format="DATE"}</a> </if></span> Link to comment Share on other sites More sharing options...
tunofak Posted March 12, 2016 Share Posted March 12, 2016 Нужно убрать время создания темы, там где показано на скриншоте красным! Link to comment Share on other sites More sharing options...
newbie Posted March 12, 2016 Share Posted March 12, 2016 Нужно убрать время создания темы, там где показано на скриншоте красным! Еще меньше скриншот не могли сделать?Шаблон topic Link to comment Share on other sites More sharing options...
tunofak Posted March 12, 2016 Share Posted March 12, 2016 Извините, ВК сжал скриншот.. Спасибо! Link to comment Share on other sites More sharing options...
tunofak Posted March 15, 2016 Share Posted March 15, 2016 Чтобы убрать время, удалите всё что связанно с датой после этого кода до закрытия: <span class='desc lighter blend_links topic_desc'> {parse expression="sprintf( $this->lang->words['topic_started_by'], $data['starter'] ) "} Link to comment Share on other sites More sharing options...
tunofak Posted March 15, 2016 Share Posted March 15, 2016 Кто хочет убрать время последнего сообщения, в списке Тём, вам нужно будет удалить код из Список тем форума > topic <if test="hasPollBump:|:$data['last_real_post']"> {parse date="$data['last_real_post']" format="DATE"} <else /> {parse date="$data['last_post']" format="DATE"} </if> 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