Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

К первому непрочитанному сообщению

Featured Replies

Posted

Доброго времени суток! 

Подскажите хук, который при клике на тему открывает первое непрочитанное сообщение в этой теме. Я так понимаю, ссылка должна быть идентична той, что и у значка перед названием темы.

ПС. Поиском не нашёл.

Я просто подставил код <a href ="....> от значка вместо кода темы.. и теперь кидает всегда к последнему не прочтенному ) Не знаю правильно или нет это все) но работает замечательно )

Тоже голову ломал сначала с этим вопросом, пока не увидел что по значку кидает куда нужно)

Вообщем вместо 

<a href='{$objectUrl}' data-searchable>

вставил

 <a href='{$objectUrl->stripQueryString( array( 'comment' => 'comment', 'review' => 'review' ) )->setQueryString( 'do', 'getNewComment' )}' title='{lang="first_unread_post"}' data-ipsTooltip>

И все гуд)

1 час назад, kosmax сказал:

Спасибо! Но я так и не разобрался. Не нашёл где сделать замену. Все шаблоны перебрал.

Пардон я перепутал раздел.. это для ips4

  • Author

Сделал сам.

Шаблон "Поиск -> asForumTopics" 

Заменил это

<h4><a href='{parse url="showtopic={$data['tid']}<if test="isNewPostTR:|:$this->request['do']=='new_posts' OR $this->request['do']=='active'">&amp;view=getnewpost<else /><if test="resultIsPostTR:|:$data['pid'] AND $data['pid'] != $data['topic_firstpost']">&amp;view=findpost&amp;p={$data['pid']}</if></if>&amp;hl={$data['cleanSearchTerm']}" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['view_result']}'>{$data['_shortTitle']}</a></h4>
		

На это

<h4><a href='{parse url="showtopic={$data['tid']}<if test="isNewPostTR:|:$this->request['do']=='new_posts' OR $this->request['do']=='active'">&amp;view=getnewpost<else /><if test="resultIsPostTR:|:$data['pid'] AND $data['pid'] != $data['topic_firstpost']">&amp;view=findpost&amp;p={$data['pid']}</if></if>&amp;view=getnewpost&amp;hl={$data['cleanSearchTerm']}" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['view_result']}'>{$data['_shortTitle']}</a></h4>

 

Версия = 3.4.6

  • 1 year later...
В 07.11.2015 в 01:22, kosmax сказал:

 

 

Спойлер

Сделал сам.

Шаблон "Поиск -> asForumTopics" 

Заменил это


<h4><a href='{parse url="showtopic={$data['tid']}<if test="isNewPostTR:|:$this->request['do']=='new_posts' OR $this->request['do']=='active'">&amp;view=getnewpost<else /><if test="resultIsPostTR:|:$data['pid'] AND $data['pid'] != $data['topic_firstpost']">&amp;view=findpost&amp;p={$data['pid']}</if></if>&amp;hl={$data['cleanSearchTerm']}" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['view_result']}'>{$data['_shortTitle']}</a></h4>
		

На это


<h4><a href='{parse url="showtopic={$data['tid']}<if test="isNewPostTR:|:$this->request['do']=='new_posts' OR $this->request['do']=='active'">&amp;view=getnewpost<else /><if test="resultIsPostTR:|:$data['pid'] AND $data['pid'] != $data['topic_firstpost']">&amp;view=findpost&amp;p={$data['pid']}</if></if>&amp;view=getnewpost&amp;hl={$data['cleanSearchTerm']}" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['view_result']}'>{$data['_shortTitle']}</a></h4>

 

Версия = 3.4.6

Привет,сделал всё так,но не работает почему то.IPB 3.4.6

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.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.