Перейти к публикации
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.

От: IP.Gallery 3.1.0 и BB код для вставки картинки.

(0 отзывов)

Файл: admin\applications_addon\ips\gallery\modules_public\images\viewimage.php

 

Ищем 2 раза!:

$this->data['image_url'] 	= $this->settings['gallery_images_url'] . '/' . $dir . $this->data['masked_file_name'];

 

Ниже вставляем

$this->data['tn_image_url'] 	= $this->settings['gallery_images_url'] . '/' . $dir .tn_ . $this->data['masked_file_name'];

 

 

Затем

Look & Feel > Manage Skin Sets & Templates > Manage Skin Sets & Templates

Внешний вид > Управление стилями

 

Выбираем нужный скин. Дальше: skin_gallery_img -> show_image

 

Ищем.

<input onclick="this.select();" type='text' size='40' readonly='readonly' name='bbcode1' value='[url={$this->settings['board_url']}/index.php?app=gallery&module=images&img={$info['id']}][img={$info['image_url']}][/url]' class='input_text' />

Теперь выбираем, что нам с этим кодом, надо делать.

 

Теперь если нам надо:

URL=адрес картинки полноразмерной][img=адрес превьюшки][/url]

 

То тот кусок который нашли, меняем на

<input onClick="this.select();" type='text' size='40' readonly='readonly' name='bbcode1' value='[url={$info['image_url']}][img={$info['tn_image_url']}][/url]' class='input_text' />

 

Что имхо не очень удобно. Как вариант, удобнее.

 

[url=адрес этой страницы ][img=адрес превьюшки][/url]

 

То тогда, тот кусок, который нашли, сменить на

<input onClick="this.select();" type='text' size='40' readonly='readonly' name='bbcode1' value='[url={$this->settings['board_url']}/index.php?app=gallery&module=images&img={$info['id']}][img={$info['tn_image_url']}][/url]' class='input_text' />

 

 

Или открывать большую картинку с помощью Lightbox ... Но это уже третий вариант решения. :D

 

Источник: IP,Gallery 3.1.0 и BB код для вставки картинки.

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.