Модуль для авторизации JomSocial на сайте коверкает весь сайт, подскажите варианты решения плз! Сайт
, оставлю модуль включенным.
CSS модуля не при чем, без CSS все тоже самое..
<?php
/*
* Имя: LoginPanelCommunity (Всплывающая панель для входа на сайт)
* Версмя: 2.4 (Декабрь 2010)
* Модуль для CMS Joomla 1.5 (Для компонента Jom Social)
*
* Автор: Design Genetics Studio (D-G-S) Евгений Гальчук
* Поддержка: admin@d-g-s.ru, http://d-g-s.ru
*
* Copyright (c) 2007-2010 'D-G-S'
* Commercial License
*/
// no direct access
defined('_JEXEC') or die;
// если JomSocial не установлен
if ( defined( 'JPATH_ADMINISTRATOR' ) )
{
if ( ! file_exists( JPATH_ADMINISTRATOR . '/components/com_community/admin.community.php' ) ) {
echo '<h1 style="color:#F00"> Компонент JomSocial не установлен!</h1>
<p style="color:#F00"> <strong>Пожалуйста, установите компонент JomSocial, или отключите модуль Панель авторизации JomSocial.</strong></p>';
return;
}
}
$document = &JFactory::getDocument();
// CSS и JavaScript для IE 6
$nav = ( isset( $_SERVER['HTTP_USER_AGENT'] ) )? strtolower( $_SERVER['HTTP_USER_AGENT'] ) : '';
if (stristr($nav, "IE 6"))
{
echo $document->addStyleSheet('modules/mod_login_panel_community/css/style_ie6.css');
if ($params->get('png-ie6') == 0) :
echo $document->addScript( 'modules/mod_login_panel_community/js/pngfix/supersleight-min.js' );
endif;
}
// добавление javascript и CSS к заголовку документа (jQuery)
$document->addScript( 'modules/mod_login_panel_community/js/jquery.min.js' );
$document->addStyleSheet('modules/mod_login_panel_community/css/slide.css');
// добавление события javascript
$js_code = '
jQuery(document).ready(function() {
// Развернуть панель
jQuery("#open").click(function(){
jQuery("div#panel").slideDown(' . $params->get('animation_speed'). ');
});
// Свернуть панель
jQuery("#close").click(function(){
jQuery("div#panel").slideUp(' . $params->get('animation_speed'). ');
});
// Переключение между "Вход | Регистрация" и "Закрыть панель"
jQuery("#toggle a").click(function () {
jQuery("#toggle a").toggle();
});
});
';
$document->addScriptDeclaration($js_code);
// Метод открытия
if ($params->get('method_panel') == 0) :
// Панель будет перекрывать содержимое
$method_panel = 'absolute';
else :
// Панель будет толкать содержимое вниз
$method_panel = 'relative';
endif;
// Стиль иконки
if ($params->get('style_icons') == 0) :
// ↓↑
$icons_open = '1open.png';
$icons_close = '1close.png';
else :
// + x
$icons_open = '2open.png';
$icons_close = '2close.png';
endif;
$css_code = '
.tab a.open {
background: url(modules/mod_login_panel_community/images/' . $icons_open . ') no-repeat left 0;
}
.tab a.close {
background: url(modules/mod_login_panel_community/images/' . $icons_close . ') no-repeat left 0;
}
.tab a:hover.open {
background: url(modules/mod_login_panel_community/images/' . $icons_open . ') no-repeat left -19px;
}
.tab a:hover.close {
background: url(modules/mod_login_panel_community/images/' . $icons_close . ') no-repeat left -19px;
}
#toppanel {
position: ' . $method_panel . ';
}
';
$document->addStyleDeclaration($css_code);
// стиль панели
if ($params->get('style_panel') == 0) :
$document->addStyleSheet('modules/mod_login_panel_community/css/style-classics.css');
endif;
if ($params->get('style_panel') == 1) :
$document->addStyleSheet('modules/mod_login_panel_community/css/style-black.css');
endif;
if ($params->get('style_panel') == 2) :
$document->addStyleSheet('modules/mod_login_panel_community/css/style-blue.css');
endif;
if ($params->get('style_panel') == 3) :
$document->addStyleSheet('modules/mod_login_panel_community/css/style-gray.css');
endif;
if ($params->get('style_panel') == 4) :
$document->addStyleSheet('modules/mod_login_panel_community/css/style-green.css');
endif;
if ($params->get('style_panel') == 5) :
$document->addStyleSheet('modules/mod_login_panel_community/css/style-marble.css');
endif;
if ($params->get('style_panel') == 6) :
$document->addStyleSheet('modules/mod_login_panel_community/css/style-red.css');
endif;
if ($params->get('style_panel') == 7) :
$document->addStyleSheet('modules/mod_login_panel_community/css/style-russia.css');
endif;
if ($params->get('style_panel') == 8) :
$document->addStyleSheet('modules/mod_login_panel_community/css/style-school.css');
endif;
if ($params->get('style_panel') == 9) :
$document->addStyleSheet('modules/mod_login_panel_community/css/style-techno.css');
endif;
if ($params->get('style_panel') == 10) :
$document->addStyleSheet('modules/mod_login_panel_community/css/style-tree.css');
endif;
if ($params->get('style_panel') == 11) :
$document->addStyleSheet('modules/mod_login_panel_community/css/style-tree1.css');
endif;
if ($params->get('style_panel') == 12) :
$document->addStyleSheet('modules/mod_login_panel_community/css/style-tree2.css');
endif;
if ($params->get('style_panel') == 13) :
$document->addStyleSheet('modules/mod_login_panel_community/css/style-ukraine.css');
endif;
if ($params->get('style_panel') == 14) :
$document->addStyleSheet('modules/mod_login_panel_community/css/style-white.css');
endif;
if ($params->get('style_panel') == 15) :
$document->addStyleSheet('modules/mod_login_panel_community/css/style-yellow.css');
endif;
// Include the syndicate functions only once
require_once (dirname(__FILE__).DS.'helper.php');
require_once( JPATH_BASE . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'core.php');
include_once( JPATH_BASE . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'userpoints.php');
require_once( JPATH_ROOT . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'window.php' );
require_once( JPATH_BASE . DS . 'components' . DS . 'com_community' . DS . 'helpers' . DS . 'owner.php');
CWindow::load();
$document =& JFactory::getDocument();
// Script needs to be here if they are
CFactory::load( 'libraries' , 'facebook' );
$config =& CFactory::getConfig();
$js = '/assets/script-1.2';
$js .= ( $config->get('usepackedjavascript') == 1 )? '.pack.js' : '.js';
CAssets::attach($js, 'js');
$js = '/assets/jquery.qtip-1.0.0-rc3.min.js';
CAssets::attach($js, 'js');
$my = CFactory::getUser();
$online = $my->isOnline();
if($online)
{
$inboxModel = CFactory::getModel('inbox');
$filter = array();
$filter ['user_id'] = $my->id;
$friendModel = & CFactory::getModel ( 'friends' );
$profileid = JRequest::getVar('userid' , 0 , 'GET');
$params->def('unreadCount', $inboxModel->countUnRead ( $filter ));
$params->def('pending', $friendModel->countPending( $my->id ));
$params->def('myLink', CRoute::_('index.php?option=com_community&view=profile&userid='.$my->id));
$params->def('myName', $my->getDisplayName());
$params->def('myAvatar', $my->getAvatar());
$params->def('myId', $my->id);
$params->def('myKarma', CUserPoints::getPointsImage($my));
$params->def('enablephotos', $config->get('enablephotos'));
$params->def('enablevideos', $config->get('enablevideos'));
$params->def('enablegroups', $config->get('enablegroups'));
$enablekarma = 0;
if($config->get('enablekarma'))
{
$enablekarma = $params->get('show_karma', 1);
}
$params->def('enablekarma', $enablekarma);
//add LoginPanelCommunity script
$profileStatus = $my->getStatus();
$isMine = isMine($my->id, $profileid);
$js = modLoginPanelCommunityHelper::getLoginPanelCommunityScript($profileStatus, $isMine);
$document->addScriptDeclaration($js);
if($params->get('enable_facebookconnect', '1'))
{
//add facebook script
$document->addScript('http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php');
$js = modLoginPanelCommunityHelper::getFacebookScript($config->get('fbconnectkey'));
$document->addScriptDeclaration($js);
$params->def('facebookuser', modLoginPanelCommunityHelper::isFacebookUser());
}
else
{
$params->def('facebookuser', false);
}
//check caching
$cache =& JFactory::getCache('mod_login_panel_community');
$cache->setCaching($params->get('customCache', 1));
$callback = array('modLoginPanelCommunityHelper', 'getLoginPanelCommunityHTML');
$content = $cache->call($callback, $params);
}
else
{
$content = '';
if($params->get('enable_login', '1'))
{
$type = modLoginPanelCommunityHelper::getType();
$user =& JFactory::getUser();
$content .= modLoginPanelCommunityHelper::getLoginPanelCommunityLoginHTML($params, $type, $user);
}
}
Модуль каждый элемент толкает вниз, он наезжает на следующий...