2
Hi reynaldom try this code :
Global $xoopsModule;
$moduleName = $xoopsModule->getVar('name');
$dirName = $xoopsModule->getVar('dirname');
The $moduleName variable now holds the name of the module, ie the name defined in System Admin > Modules for the specific module where the user is currently in.
The $dirname variable holds the name of the folder of the module, ie in www.yoursite.com/modules/$moduleName
Hope it helps !
Cheers !