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

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

Добрый вечер!

Я заметил что для IP.Content и форума используется одинаковый стиль (шаблоны и сss). Но если для IP.Content мне необходим индивидуальный стиль со своими шаблонами и css файлами, как мне этого добиться ?

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

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

IP.Content это то же самое приложение. Для приложений можно задать свой кастомный скин.

https://www.invisionpower.com/support/guides/_/advanced-and-developers/application/forcing-a-skin-r193

 

/admin/applications_addon/ips/ccs/extensions/coreExtensions.php

 

В самом конце (или перед ?>) добавить класс который будет возвращать ID скина:

 

class fetchSkin__ccs
{  
public function __construct( $registry )
{
	$this->registry     =  ipsRegistry::instance();
	$this->DB           =  $this->registry->DB();
	$this->settings     =& $this->registry->fetchSettings();
	$this->request      =& $this->registry->fetchRequest();
	$this->memberData   =& $this->registry->member()->fetchMemberData();
}

/**
 * Returns a skin ID or FALSE
 *
 * @return	mixed			INT or FALSE if no skin found / required
 */
public function fetchSkin()
{
	$skinID = $this->settings['ccs_use_skin'];

	return ( $skinID AND isset( $this->allSkins[ $skinID ] ) ) ? $skinID : FALSE;
}
}

 

Импортировать настройку: Система > Настройки > Загрузка файла XML с настройками

ipcontent-settings.xml

 

Система > Настройки > IP.Content Settings > Использовать шаблон

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

Сейчас на странице 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.