11
rpilney
Re: Pls help: my smiley is disappear on NewBB forum
  • 2006/1/25 3:20

  • rpilney

  • Just popping in

  • Posts: 76

  • Since: 2006/1/25


this is happening on my site as well. Shoutbox works but every other location on my site just shows the smilies code for that smilie. I have smilies enabled, xoopscode enabled, html enabled. I am running XOOPS version 2.

I am not finding anything while running in debug mode that looks strange and no error codes. I am still VERRRY new to this but learning as fast as I can.

the code i found that looked related was found in xoopscodes.php in my root directory. here it is:


echo "
\n";
//Hack smilies move for bold, italic ...
$areacontent = isset( $GLOBALS[$textarea_id] ) ? $GLOBALS[$textarea_id] : '';
echo "bold italic underline linethrough  


\n";
//Fin du hack
}

/*
* Displays smilie image buttons used to insert smilie codes to a target textarea in a form
* $textarea_id is a unique of the target textarea
*/
function xoopsSmilies($textarea_id)
{
$myts =& MyTextSanitizer::getInstance();
$smiles =& $myts->getSmileys();
if (empty($smileys)) {
$db =& Database::getInstance();
if ($result = $db->query('SELECT * FROM '.$db->prefix('smiles').' WHERE display=1')) {
while ($smiles = $db->fetchArray($result)) {
//hack smilies move for the smilies !!
echo "";
//fin du hack
}
}
} else {
$count = count($smiles);
for ($i = 0; $i < $count; $i++) {
if ($smiles[$i]['display'] == 1) {
//hack bis
echo "";
//fin du hack
}
}
}
//hack for more
echo " ["._MORE."]";
} //fin du hack
?>

Login

Who's Online

184 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 184


more...

Donat-O-Meter

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

Latest GitHub Commits