Jump to content

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


Recommended Posts

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

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...