Skip to content

Отдельный стиль для IP.Content IPB 3.4.6

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

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

Featured Replies

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 > Использовать шаблон

Create an account or sign in to comment

Account

Navigation

Search

Search

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.