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.

Инструкция по добавлению кнопки "Вниз" для 3.4.x

Featured Replies

Posted

Возможно кому нибудь пригодится...

 

Все манипуляция проводил на стандартном шаблоне...

 

Данная инструкция добавит кнопку справа от ника автора в каждом сообщении темы. Скриншот можете посмотреть в конце сообщения.

 

1. заходим: АЦ -> Внешний вид -> IP.Board -> Темы -> post

2. ищем строчку: <if test="postIp:|:$post['post']['_show_ip']">

3. перед ней вставляем наш код:

<a href="#topic_stats" id='gotobottom' title='Вниз'><img src='{$this->settings['img_url']}/bottom.png' style='margin-bottom:6px;' alt='' /></a>
4. редактируем стиль ipb_style.css (он находиться здесь: publicstyle_csscss_1)

5. добавляем следующий код:

#gotobottom {
width: 24px;
height: 24px;
padding-top: 5px;
line-height: 20px;
display: inline-block;
background: #bdbdbd;
text-align: center;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
opacity: 0.4;
outline: 0;
}

#gotobottom:hover { 
background: #f9aa55;
color: #fff;
opacity: 1;
}
 

Вот и все!

Не забывайте сохранять все свои оригинальные файлы, чтобы в случае чего быстренько все восстановить...

я походу поторопился и разместил тему не в том разделе  :(

перенесите пожалуйста ее, а эти строчки удалите, спасибо!

post-10238-0-86586100-1378499290.jpg

Edited by HooLIGUN


6. добавляем название нашей кнопочке... нужно отредактировать этот файл: forums_public_topic.php (он находиться здесь: cachelang_cache1)

Зачем вы редактрируте файл кэша? Все изменения пропадут,если кэш будет обновлен через АЦ.

К тому же редактирование файлов кэша может "сломать" весь стиль

Тема перемещена.

В 3 пунке вместо:


<a href="#topic_stats" id='gotobottom' title='{$this->lang->words['go_to_bottom']}'><img src='{$this->settings['img_url']}/bottom.png' style='margin-bottom:6px;' alt='' /></a>
Вставляем

<a href="#topic_stats" id='gotobottom' title='Вниз'><img src='{$this->settings['img_url']}/bottom.png' style='margin-bottom:6px;' alt='' /></a>
И тогда пункты 6 и 7 станут не актуальными

такую бы инструкцию, но только для кнопочки "Вверх" как на мафии  :good:

и было бы неплохо объединить 2 таких кнопки и настроить появление на определённых этапах прокрутки форума.

Edited by Lordbl4

кто же спорит то? обсуждать - обсуждалось, а вот аналогичной человеческой инструкции я так и не нашел.

Ну не знаю,я вроде все понял,и сделал себе такую кнопочку

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.