4
chco you where saying you where using my APIs to spit out QRCodes which are Iching believe it or not, you can see them featured in the tao of chaos is rumoured a spin of from AntDB. Anyway, so for 1
$module_handler = xoops_gethandler('module');
$xoModule = $module_handler->getByDirname('qrcode');
if (!is_object($xoModule)) {
$GLOBALS['qrcode_module'] = false; // Module Not Installed Code
} else {
if ($xoModule->getVar('isactive')==true) {
$GLOBALS['qrcode_module'] = true; // Module Installed Code
} else {
$GLOBALS['qrcode_module'] = false; // Module Installed But Not Active Code
}
}
another method for 1 is
$module_handler = xoops_gethandler('module');
$xoModule = $module_handler->getByDirname('qrcode');
if (!is_object($xoModule)) {
$GLOBALS['qrcode_module'] = false; // Module Not Installed Code
} else {
$GLOBALS['qrcode_module'] = $xoModule->getVar('isactive'); // Module Installed Code whether active or not
}
You could try and set this one in a preloader somewhere in the common.php file like the end of it, so all further modules loading have to look for
$GLOBALS['qrcode_module'] set to true for this module being installed.
Now 2..
There is no way of extending the main objects further with QCR Codes, however there was an ERM class for doing that which would also checksum the object for serialisation and object management with API Interactions of xoops and xoops.org for help systems and object identification.
However you could always provide your module with an install.txt that has how to make the hack or what files to replace in the structure of something like this:
/docs
/htdocs
/kernel
/modules
/qrcode
for distribution purposes. Do you need a hand, skype me I am up tonight!!

www.ohloh.net/accounts/226400
Follow, Like & Read:-
twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts