1
rpilney
Problem with smilies not working
  • 2006/1/25 3:00

  • rpilney

  • Just popping in

  • Posts: 76

  • Since: 2006/1/25


my smilies only work in the shout box. Not in the forums or any other place. Here is the code that I found that I think is the problem. Mind you I am VERY new at this but very interested in learning. I am all self taught and appreciate all the work you all do.

Code from xoopscodes.php

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
?>





Any ideas? Thanks everyone.

2
rpilney
Re: Problem with smilies not working
  • 2006/1/25 16:58

  • rpilney

  • Just popping in

  • Posts: 76

  • Since: 2006/1/25


bump

3
rpilney
Re: Problem with smilies not working
  • 2006/1/26 21:56

  • rpilney

  • Just popping in

  • Posts: 76

  • Since: 2006/1/25


no one has experience with this?? I find that amazing being so many talented people come here. I sure would appreciate some ideas. Thanks so much.

Roger

Login

Who's Online

414 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 414


more...

Donat-O-Meter

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

Latest GitHub Commits