Керування файлами cookie, які використовуються для реклами, таких як персоналізація реклами, ремаркетинг і аналіз ефективності реклами.
|
artenergy
07.12.2009 22:53
0
|
Еще одна проблема.
Не могу сменить пути к картинкам. Да, я читал - зайти в components->com_NAME->NAME.php и сменить путь. менял - не помагает. Вот файл с FTP # defined('_JEXEC') or die('Restricted access'); # $params =& JComponentHelper::getParams('com_media'); # // Make sure the user is authorized to view this page # $user = & JFactory::getUser(); # if (!$user->authorize( 'com_media', 'popup' )) { # $mainframe->redirect('index.php', JText::_('ALERTNOTAUTH')); # } # # // Set the path definitions # //define('COM_MEDIA_BASE', JPATH_ROOT.DS.$params->get('image_path', '/bikemaster.kiev.ua/www/img'.DS.'stories')); # define('COM_MEDIA_BASEURL', JURI::root(true).'/'.$params->get('image_path', '/bikemaster.kiev.ua/www/img')); # # // Load the admin HTML view # require_once( JPATH_COMPONENT_ADMINISTRATOR.DS.'helpers'.DS.'media.php' ); # # // Require the base controller # require_once (JPATH_COMPONENT.DS.'controller.php'); # # $cmd = JRequest::getCmd('task', null); # if (strpos($cmd, '.') != false) # { # // We have a defined controller/task pair -- lets split them out # list($controllerName, $task) = explode('.', $cmd); # # // Define the controller name and path # $controllerName = strtolower($controllerName); # $controllerPath = JPATH_COMPONENT_ADMINISTRATOR.DS.'controllers'.DS.$controllerName.'.php'; # # // If the controller file path exists, include it ... else lets die with a 500 error # if (file_exists($controllerPath)) { # require_once($controllerPath); # } else { # JError::raiseError(500, 'Invalid Controller'); # } # } # else # { # // Base controller, just set the task :) # $controllerName = null; # $task = $cmd; # } # // Set the name for the controller and instantiate it # $controllerClass = 'MediaController'.ucfirst($controllerName); # if (class_exists($controllerClass)) { # $controller = new $controllerClass(); # } else { # JError::raiseError(500, 'Invalid Controller Class'); # } # # // Set the model and view paths to the administrator folders # $controller->addViewPath(JPATH_COMPONENT_ADMINISTRATOR.DS.'views'); # $controller->addModelPath(JPATH_COMPONENT_ADMINISTRATOR.DS.'models'); # # // Perform the Request task # $controller->execute($task); # # // Redirect if set by the controller # $controller->redirect(); Спасибо! Жду подсказок |
|
skpy
09.12.2009 01:02
0
|
А зачем вы закомментировали строчку define('COM_MEDIA_BASE', JPATH_ROOT.DS.$params->get('image_path', '/bikemaster.kiev.ua/www/img'.DS.'stories')); ?
Попробуйте раскомментировать и убрать .DS.'stories', чтоб путь совпадал со следующим объявлением |
|
artenergy
19.03.2010 13:33
0
|
Все исправил!
Все ГУД. Если у кого то возникнет подобная проблема на joomla: В панели администратора есть меню Global Configuration -> System -> System Settings -> Path to Log folder Вот и все дела. И не нужно было лазить по файлам конфигураций и настроек, дописывать куски кода. Все делается через интерфейс пользователя. Удачи Вам с Вашими сайтами!!! |
Тема закрита.