Keyword

3 issues with module on Joomla 3.0 /resolved by myself/

More
11 years 10 months ago - 11 years 10 months ago #51861 by grayz
1. I managed to get date published only when changed %e to %d in format date setting. Reason is stated here (not compatible with Windows). It's recommended to use %#d.

2. I had to comment in 2 lines in helper.php which are responsible for code cleaning. Otherwise all feed content was cleaned (tried with this feed minagro.gov.ua/rss.xml)
// cleanup the content received
$fgcOutput = preg_replace("#(\n|\r|\s\s+|<!--(.*?)-->)#s", "", $fgcOutput);
$fgcOutput = preg_replace("#(\t)#s", " ", $fgcOutput);

3. in compact/default.php
replace
$filePath = JURI::root(true).str_replace(JPATH_SITE,'',dirname(__FILE__));
$document->addStyleSheet($filePath.'/css/template.css');
with
$document->addStyleSheet(JURI::base() . 'modules/mod_jw_srfr/tmpl/compact/css/template.css');
simply because it didn't work on localhost (maybe it works on remote server)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum