Mistik Posted August 30, 2014 Share Posted August 30, 2014 (edited) Доброго вечера, может кто нибудь сталкивался с такой проблемой, я установил себе Portal 1.4.0 RUS и все бы хорошо но есть одно НО. Темы на главной странице считывает со всем разделов, а мне нужно что бы только с одного, вот код:<?php if ( ! $this->registry->isClassLoaded( 'portalBlocks' ) ) { $classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'portal' ) . "/sources/blocks.php", 'portalBlockGateway' ); $this->registry->setClass( 'portalBlocks', new $classToLoad( ipsRegistry::instance() ) ); } print $this->registry->getClass('portalBlocks')->latest_topics_main(); ?> Edited August 30, 2014 by Mistik Link to comment Share on other sites More sharing options...
siv1987 Posted August 30, 2014 Share Posted August 30, 2014 За генерацию блока отвечает файл IPSLib::getAppDir( 'portal' ) ."/sources/blocks.php"а конкретно метод latest_topics_main() IPSLib::getAppDir( 'portal' ) - /admin/applications_addon/other/папка_портала/ Link to comment Share on other sites More sharing options...
Mistik Posted August 30, 2014 Author Share Posted August 30, 2014 За генерацию блок отвечает этот файл IPSLib::getAppDir( 'portal' ) ."/sources/blocks.php"а конкретно метод latest_topics_main() IPSLib::getAppDir( 'portal' ) - /admin/applications_addon/other/папка_портала/ Помогло только теперь вылезла еще одна проблема расширение. Смотри (жмяк) не реклама Link to comment Share on other sites More sharing options...
siv1987 Posted August 30, 2014 Share Posted August 30, 2014 Какое "расширение"? Опишите нормально суть проблемы. Link to comment Share on other sites More sharing options...
Mistik Posted August 30, 2014 Author Share Posted August 30, 2014 теперь блоки те что справа очень малые а средина большая, то есть все что в правых блоках оно за пределы выезжает. Link to comment Share on other sites More sharing options...
Mistik Posted August 30, 2014 Author Share Posted August 30, 2014 Какое "расширение"? Опишите нормально суть проблемы.теперь блоки те что справа очень малые а средина большая, то есть все что в правых блоках оно за пределы выезжает. Link to comment Share on other sites More sharing options...
Mistik Posted August 30, 2014 Author Share Posted August 30, 2014 Какое "расширение"? Опишите нормально суть проблемы.Есть конечно такая настройка но как бы я не менял толку 0 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