1
A simple but useful feature i think can include in the next version of xoops:
The posibility of instaling a module in the root path, not in the /modules directory.
I can test this feature only modify a lot of lines in the file include/common about line 233 Quote:
the module work when correctly set the path in the xoops_version.php "../modulename/" but have problems whit the templates.
The posibility of instaling a module in the root path, not in the /modules directory.
I can test this feature only modify a lot of lines in the file include/common about line 233 Quote:
if (file_exists('./xoops_version.php')) {
$url_arr = explode('/', str_replace(str_replace('https://', 'http://', XOOPS_URL.'/modules/'), '', 'http://'.$HTTP_SERVER_VARS['HTTP_HOST'].$xoopsRequestUri));
////// modificado para modulo externo //////
$path_module = $url_arr[0];
if ($path_module == 'http:'){
$url_arr2 = explode('/', str_replace(str_replace('https://', 'http://', XOOPS_URL.'/'), '', 'http://'.$HTTP_SERVER_VARS['HTTP_HOST'].$xoopsRequestUri));
$path_module = "../".$url_arr2[0];
}
$module_handler =& xoops_gethandler('module');
$xoopsModule =& $module_handler->getByDirname($path_module);
unset($url_arr);
unset($url_arr2);
unset($path_module);
////// modificado para modulo externo //////
the module work when correctly set the path in the xoops_version.php "../modulename/" but have problems whit the templates.