it work one time, but you can install the module, but it gives some weird errors all the time...
But, thx
_________
And already have 2 clones of news 1.44 but i only have a problem, when you go to your profile at the site...
It gives a white page!
The "edit your profile" & "notifvications" works fine!!
But i have a problem now, when there are 2 or more news 1.44 modules installed, you can't view "My Profile"
""php debugger say's this""
Quote:
Fatal error: Cannot redeclare getmoduleoption() (previously declared in *********/www/modules/news/include/functions.php:41) in *********/www/modules/fun/include/functions.php on line 41
Does someone know what i must do?! plz :o
Here you see the original module that is installed on line 41
Quote:
/**
* Returns a module's option
*
* Return's a module's option (for the news module)
*
* @package News
* @author Hervé Thouzard (www.herve-thouzard.com)
* @copyright (c) The XOOPS Project - www.xoops.org
* @param string $option module option's name
*/
function getmoduleoption($option, $repmodule='news')
{
global $xoopsModuleConfig, $xoopsModule;
static $tbloptions= Array();
if(is_array($tbloptions) && array_key_exists($option,$tbloptions)) {
return $tbloptions[$option];
}
And here of the clone module news 1.44 (ake fun 1.44)
Quote:
* @package Fun
* @author Hervé Thouzard (www.herve-thouzard.com)
* @copyright (c) The XOOPS Project - www.xoops.org
* @param string $option module option's name
*/
function getmoduleoption($option, $repmodule='fun')
{
global $xoopsModuleConfig, $xoopsModule;
static $tbloptions= Array();
if(is_array($tbloptions) && array_key_exists($option,$tbloptions)) {
return $tbloptions[$option];
}
$retval=false;
if (isset($xoopsModuleConfig) && (is_object($xoopsModule) && $xoopsModule->getVar('dirname') == $repmodule && $xoopsModule->getVar('isactive'))) {
if(isset($xoopsModuleConfig[$option])) {
$retval= $xoopsModuleConfig[$option];
}