1
fdeconiac
How to install smartobject on 2.3.2a?
  • 2008/11/29 15:05

  • fdeconiac

  • Quite a regular

  • Posts: 278

  • Since: 2008/11/29


Hi everyone,

I have a problem to install "smartproject" on last XOOPS version.
I have to make 3 hacks for make it works, but i can't do the 3rd :
3- class/module.textsanitizer.php
=================================

Edit the file class/module.textsanitizer.php in the root of your XOOPS site and locate these linesaround 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 
         * Adding SmartObject Adsense Feature
         */
        
if (function_exists('smart_sanitizeAdsenses')) {
            
$text smart_sanitizeAdsenses($text);
        }
        
/**
         * End of Hack by marcan 
         * Adding SmartObject Adsense Feature
         */


The class files organisation have been modified and so i don't know how and where make changes...

If you have any idea, thank you very much !!!

PS : i need smartobject to make my other smartmodules work...

2
alfred
Re: How to install smartobject on 2.3.2a?
  • 2008/11/29 17:13

  • alfred

  • Quite a regular

  • Posts: 249

  • Since: 2005/10/29


search on

Quote:

function &displayTarea( $text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1)
{
if ($html != 1) {
// html not allowed
$text = $this->htmlSpecialChars($text);
}
$text = $this->codePreConv($text, $xcode); // Ryuji_edit(2003-11-18)
if ($smiley != 0) {
// process smiley
$text = $this->smiley($text);
}

if ($xcode != 0) {
// decode xcode
if ($image != 0) {
// image allowed
$text = $this->xoopsCodeDecode($text);
} else {
// image not allowed
$text = $this->xoopsCodeDecode($text, 0);
}
}
if ($br != 0) {
$text = $this->nl2Br($text);
}
$text = $this->codeConv($text, $xcode);
$text = $this->makeClickable($text);
if (!empty($this->config['fitlerxss_on_display'])) {
$text = $this->filterXss($text);
}
return $text;
}


after
if ($xcode != 0) {

insert the code

Login

Who's Online

219 user(s) are online (31 user(s) are browsing Support Forums)


Members: 0


Guests: 219


more...

Donat-O-Meter

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

Latest GitHub Commits