Hi Mark!
Ive modified helper.php to load only override instead of both.
The code is like this:
public static function addTemplateCss( $fileName )
{
$document = JFactory::getDocument();
$mainframe = JFactory::getApplication();
$templatePath = JPATH_ROOT . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR . $mainframe->getTemplate() . DIRECTORY_SEPARATOR . 'html' . DIRECTORY_SEPARATOR . 'com_easyblog' . DIRECTORY_SEPARATOR . 'assets' . DIRECTORY_SEPARATOR . 'css' . DIRECTORY_SEPARATOR . $fileName;
if( JFile::exists($templatePath) )
{
//load override file
$document->addStyleSheet( rtrim(JURI::root(), '/') . '/templates/' . $mainframe->getTemplate() . '/html/com_easyblog/assets/css/' . $fileName );
return true;
}
else
{
//load original file
$document->addStyleSheet( rtrim(JURI::root(), '/') . '/components/com_easyblog/assets/css/' . $fileName );
return false;
}
}
Ill keep this for me, as i prefer this behaviour.
But this dont fix the problem.
I commented out this lines for testing:
2569: $document->addStyleSheet( rtrim(JURI::root(), '/') . '/templates/' . $mainframe->getTemplate() . '/html/com_easyblog/assets/css/' . $fileName );
2612: EasyBlogHelper::addTemplateCss( 'module.css' );
2716: $document->addStylesheet( $path );
2729: $document->addStylesheet( rtrim( JURI::root() , '/' ) . '/components/com_easyblog/themes/default/css/styles.css' );
2731: $document->addStylesheet( $path );
When all that lines are commented no css files for easyblog are loaded, EXCEPT FOR MODULE.CSS!!!
So i thought the modules should be loading the CSS by themselves. Ive disabled every EasyBlog module, and YES! module.css is not being loaded!
Im checking the modules....
...
...
Found the problem...
Categories module is loading modules.css this way:
$document->addStyleSheet( rtrim(JURI::root(), '/') . '/components/com_easyblog/assets/css/module.css' );
But should be done this way:
EasyBlogHelper::loadModuleCss();
Aplause, aplause....
Yes, everything is working now...