15
There are some function names change in 1.5.
Quote:
I encountered the same problems with XM-Spotlight 1.02 Beta2 and News 1.50 0n XOOPS 2.0.16
Start with changing in file "xmspotlight\blocks\xmspotlight_block_news.php"
this:
$xmspotdateformat = getmoduleoption('dateformat'); //Gets The Date Format Used By The News Module
into THIS:
// -~--- CHANGE START ---~-
//$xmspotdateformat = getmoduleoption('dateformat'); //Gets The Date Format Used By The News Module
$news_module =& $module_handler->getByDirname('news');
$news_version = $news_module->getVar( 'version' );
if (($news_version ) >= 150)
{
$xmspotdateformat = news_getmoduleoption('dateformat'); //Gets The Date Format Used By The News Module
}
else
{
$xmspotdateformat = getmoduleoption('dateformat'); //Gets The Date Format Used By The News Module
}
// -~--- CHANGE END ---~-
and in file "xmspotlight\class\class.xmspotlight.php"
This:
$topics = MygetItemIds('news_view');
Into THIS:
// -~--- CHANGE START ---~-
//$topics = MygetItemIds('news_view');
$news_module =& $module_handler->getByDirname('news');
$news_version = $news_module->getVar( 'version' );
if (($news_version ) >= 150)
{
$topics = news_MygetItemIds('news_view');
}
else
{
$topics = MygetItemIds('news_view');
}
// -~--- CHANGE END ---~-