1
maochoa
Re: Starting off the Roadmap discussion
  • 2003/11/5 1:49

  • maochoa

  • Just popping in

  • Posts: 1

  • Since: 2003/7/17


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:
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.





TopTop



Login

Who's Online

156 user(s) are online (91 user(s) are browsing Support Forums)


Members: 0


Guests: 156


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits