Перейти к публикации
View in the app

A better way to browse. Learn more.

Дизайн и модификация 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.

Добавляем вставку ника в shoutbox 1.2.5 нажатием на картинку

Опубликовано:

Делал для себя, все желающие могут переделать.

открываем public\js\shoutbox.js

спускаемся в самый низ видим там такие строчки:

//Event.stop(); } });

заменяем все это действо на:

//Event.stop(); }, /* * Insert Nickname to editor */ addTextToEditor: function(text) { var val = ''; if (text == null) { return false; } if ( ipshoutbox.global_on ) { $('shoutbox-global-shout').focus(); ipshoutbox.insertAtCursor(text); } else { ipb.textEditor.getEditor().insert(text, false); } } });

сохраняем заливаем, дальше идем

admin\applications_addon\other\shoutbox\xml\shoutbox_root_templates.xml

открываем. и топаем в строку 496

в той строчке видим:

<if test="$this->settings['shoutbox_show_photos']"><td style='width: 1%; white-space: nowrap;'>{$d['photo']}</td></if> 

заменяем на:

<if test="$this->settings['shoutbox_show_photos']"><td style='width: 1%; white-space: nowrap;'><a onclick='return ipshoutbox.addTextToEditor("[b]{$d['members_display_name']}, [/b]");'>{$d['photo']}</a></td></if>

перекешируем шаблоны и бинго!

проделано было в 3.2.3

версия shoutbox 1.2.5

Изменено пользователем Fil

Рекомендованные сообщения

Опубликовано:

Запакуйте в архив.

Ага,спасибо.

shoutbox.zip

  • 3 недели спустя...
Опубликовано:

на 1.2.7 кнопка появилась, но при нажатии на неё ничего не происходит

  • 7 месяцев спустя...
Опубликовано:

А для версии ipb 3.1.4 Чат 1.1.3 ?

Создайте аккаунт или войдите в него для комментирования

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу.

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.