serega721 Posted January 29, 2015 Share Posted January 29, 2015 Добрый вечер!Я заметил что для IP.Content и форума используется одинаковый стиль (шаблоны и сss). Но если для IP.Content мне необходим индивидуальный стиль со своими шаблонами и css файлами, как мне этого добиться ? Link to comment Share on other sites More sharing options...
siv1987 Posted January 29, 2015 Share Posted January 29, 2015 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now