/**
$Id: readme.txt,v 1.2 2007/08/08 11:53:24 marcan Exp $ - Module: SmartObject
- Author: The SmartFactory <www.smartfactory.ca>
- Licence: GNU */
SmartObject Framework to be used with new SmartModules such as SmartContent, SmartDynamic, SmartShop, etc...
This framework allow easy management of any kind of objects. It easily manages all the common operations like adding, editing, deleting, listing, sorting, filtering objects.
SmartObject is installed as a regular XOOPS/ImpressCMS module, which means you should copy the complete /smartobject folder into the /modules directory of your website. Then log in to your site as administrator, go to System Admin > Modules, look for the SmartObject icon in the list of uninstalled modules and click in the install icon. Follow the directions on the screen. Once the module is installed, you need to update the module to complete the installation. Go in System Admin > Modules > SmartObject and update the module. That's it !
In order for the SmartObject Adsense management feature to work, 3 modifications need to be done in the code.
Edit the file include/common.php and locate these lines, around line 159
// #################### Include text sanitizer ##################
include_once XOOPS_ROOT_PATH."/class/module.textsanitizer.php";
After these lines insert the following code :
/**
* Hack by marcan <INBOX>
* Adding SmartObject Adsense Feature
*/
include_once(XOOPS_ROOT_PATH . "/modules/smartobject/include/adsense.php");
/**
* End of Hack by marcan <INBOX>
* Adding SmartObject Adsense Feature
*/
Edit the file header.php in the root of your XOOPS site and locate these lines, around line 75
/**
* @var xos_opal_Theme
*/
$xoTheme =& $xoopsThemeFactory->createInstance( array(
'contentTemplate' => @$xoopsOption['template_main'],
) );
$xoopsTpl =& $xoTheme->template;
After these lines insert the following code :
/**
* Hack by marcan <INBOX>
* Adding SmartObject Adsense Feature
*/
smart_adsense_initiate_smartytags();
/**
* End of Hack by marcan <INBOX>
* Adding SmartObject Adsense Feature
*/
Edit the file class/module.textsanitizer.php in the root of your XOOPS site and locate these lines, around line 292
$text = $this->makeClickable($text);
if ($smiley != 0) {
// process smiley
$text = $this->smiley($text);
}
if ($xcode != 0) {
After these lines insert the following code :
/**
* Hack by marcan <INBOX>
* Adding SmartObject Adsense Feature
*/
if (function_exists('smart_sanitizeAdsenses')) {
$text = smart_sanitizeAdsenses($text);
}
/**
* End of Hack by marcan <INBOX>
* Adding SmartObject Adsense Feature
*/
In order for the SmartObject CustomTags feature to work, 3 modifications need to be done in the code.
Edit the file include/common.php and locate these lines, around line 277
} elseif (!empty($_SESSION['xoopsUserTheme']) && in_array($_SESSION['xoopsUserTheme'], $xoopsConfig['theme_set_allowed'])) {
$xoopsConfig['theme_set'] = $_SESSION['xoopsUserTheme'];
}
After these lines insert the following code :
/**
* Hack by marcan <INBOX>
* Adding SmartObject Custom tag Feature
*/
include_once(XOOPS_ROOT_PATH . "/modules/smartobject/include/customtag.php");
/**
* End of Hack by marcan <INBOX>
* Adding SmartObject Custom tag Feature
*/
Edit the file header.php in the root of your XOOPS site and locate these lines, around line 75
/**
* @var xos_opal_Theme
*/
$xoTheme =& $xoopsThemeFactory->createInstance( array(
'contentTemplate' => @$xoopsOption['template_main'],
) );
$xoopsTpl =& $xoTheme->template;
After these lines insert the following code :
/**
* Hack by marcan <INBOX>
* Adding SmartObject Custom tag Feature
*/
smart_customtag_initiate();
/**
* End of Hack by marcan <INBOX>
* Adding SmartObject Custom tag Feature
*/
Edit the file class/module.textsanitizer.php in the root of your XOOPS site and locate these lines, around line 292
$text = $this->makeClickable($text);
if ($smiley != 0) {
// process smiley
$text = $this->smiley($text);
}
if ($xcode != 0) {
After these lines insert the following code :
/**
* Hack by marcan <INBOX>
* Adding SmartObject Custom tag Feature
*/
if (function_exists('smart_sanitizeCustomtags')) {
$text = smart_sanitizeCustomtags($text);
}
/**
* End of Hack by marcan <INBOX>
* Adding SmartObject Custom tag Feature
*/
We encourage you to visit The ImpressCMS Community forums to get and offer support for this module. Feedback as also always appreciated. A dedicated forum for The SmartFactory modules is available here: http://community.impresscms.org/modules/newbb/viewforum.php?forum=71
SmartObject is fully functionnal on both XOOPS and ImpressCMS.
.:: The SmartFactory ::. .:: Open Source : smartfactory.ca ::. .:: Professionnal : inboxinternational.com ::.