Chat Box Error »  Show posts from    to     

Icy Phoenix


Old Support Topics - Chat Box Error



Leon [ Thu 07 Dec, 2006 01:56 ]
Post subject: Chat Box Error
i got this message error on chat box:

Fatal error: Call to undefined function smilies_pass() in D:AppServwwwchatmessenger_view.php on line 147

how do i fix it, i know zuker have this fixed before, but i seem cant find his post before

Please help me zuker


Zuker [ Thu 07 Dec, 2006 13:41 ]
Post subject: Re: Chat Box Error
just add

Code: [Hide]
  1. function smilies_pass($message){ static $orig, $repl; if (!isset($orig)) { global $db, $board_config; $orig = $repl = array(); $sql = 'SELECT * FROM ' . SMILIES_TABLE; if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Couldn't obtain smilies data", "", __LINE__, __FILE__, $sql); } $smilies = $db->sql_fetchrowset($result); if (count($smilies)) { usort($smilies, 'smiley_sort'); } for ($i = 0; $i < count($smilies); $i++) { $orig[] = "/(?<=.W|W.|^W)" . preg_quote($smilies[$i]['code'], "/") . "(?=.W|W.|W$)/"; $repl[] = '<img src="'. $board_config['smilies_path'] . '/' . $smilies[$i]['smile_url'] . '" alt="' . $smilies[$i]['emoticon'] . '" border="0" />'; } } if (count($orig)) { $message = preg_replace($orig, $repl, ' ' . $message . ' '); $message = substr($message, 1, -1); } return $message;}function smiley_sort($a, $b){ if ( strlen($a['code']) == strlen($b['code']) ) { return 0; } return ( strlen($a['code']) > strlen($b['code']) ) ? -1 : 1;} 


before

?>

in bbcode.php


Leon [ Thu 07 Dec, 2006 21:17 ]
Post subject: Re: Chat Box Error
it works ...thanks alot zuker


Zuker [ Thu 07 Dec, 2006 21:28 ]
Post subject: Re: Chat Box Error
Any mod move it to general support...
That it's not a bug


Mighty Gorgon [ Fri 08 Dec, 2006 11:54 ]
Post subject: Re: Chat Box Error
Zuker, as I said, this is not the way to use BBCodes in XS... even if it works it is not correct. :roll:

Please use the XS way to parse BBCodes and Smileys.

You will find examples on top of bbcode.php.


Another yellow card for Leon... :wink:


Zuker [ Fri 08 Dec, 2006 13:02 ]
Post subject: Re: Chat Box Error
Difus is the creator of that code :roll:
I've only paste it here

But i'll take a look


Mighty Gorgon [ Fri 08 Dec, 2006 13:18 ]
Post subject: Re: Chat Box Error
Zuker wrote: [View Post]
Difus is the creator of that code :roll:
I've only paste it here

But i'll take a look

No problem... I don't know who is the creator... I would like only things to work properly and avoid unuseful errors... :wink:

Anyway thanks for your help here! :wink:


Leon [ Fri 08 Dec, 2006 17:35 ]
Post subject: Re: Chat Box Error
Mighty Gorgon wrote: [View Post]
Zuker, as I said, this is not the way to use BBCodes in XS... even if it works it is not correct. :roll:

Please use the XS way to parse BBCodes and Smileys.

You will find examples on top of bbcode.php.


Another yellow card for Leon... :wink:



Why yellow card MG , i did not do anything wrong :cry:


difus [ Fri 08 Dec, 2006 17:44 ]
Post subject: Re: Chat Box Error
first you have to search the forum


Mighty Gorgon [ Fri 08 Dec, 2006 18:16 ]
Post subject: Re: Chat Box Error
Leon wrote: [View Post]
Why yellow card MG , i did not do anything wrong :cry:

This yellow card is the sum for many behaviors I don't like:
  • Being pushy
  • Posting in wrong forums
  • Not using search


I've not banned you even if you did remove the copyright and then put it back to get support here.

I'm giving you another possibility... please, be kind, be patient, respect other users trying to help you... and your yellow card will be removed.

If you get another yellow card you'll be banned.

I don't like banning users, but sometimes it is necessary when someone doesn't understand that we do this for free and is being unrespectful.

I can say for sure that many of the best coder left important projects for this kind of things, and I won't accept that someone of the Staff is being treated badly or feel frustrated by this way of doing.

Be mature and patient, and you will get all the support you need here and everywhere.

:wink:


Leon [ Fri 08 Dec, 2006 22:54 ]
Post subject: Re: Chat Box Error
Mighty Gorgon wrote: [View Post]
Leon wrote: [View Post]
Why yellow card MG , i did not do anything wrong :cry:

This yellow card is the sum for many behaviors I don't like:
  • Being pushy
  • Posting in wrong forums
  • Not using search


I've not banned you even if you did remove the copyright and then put it back to get support here.

I'm giving you another possibility... please, be kind, be patient, respect other users trying to help you... and your yellow card will be removed.

If you get another yellow card you'll be banned.

I don't like banning users, but sometimes it is necessary when someone doesn't understand that we do this for free and is being unrespectful.

I can say for sure that many of the best coder left important projects for this kind of things, and I won't accept that someone of the Staff is being treated badly or feel frustrated by this way of doing.

Be mature and patient, and you will get all the support you need here and everywhere.

:wink:


ok MG, sorry for all of this stuff, i am not a bad person though, i feel bad to stand on error of my board, hopefully you will treat me in a better way if you really dont like my act


Mighty Gorgon [ Tue 12 Dec, 2006 01:34 ]
Post subject: Re: Chat Box Error
Leon wrote: [View Post]
ok MG, sorry for all of this stuff, i am not a bad person though, i feel bad to stand on error of my board, hopefully you will treat me in a better way if you really dont like my act

Of course we will treat you well... I don't like giving yellow cards... but last weeks I saw in this forum something I really don't like. :wink:

I hope that everybody here is going to respect each other... remembering that this is an open source community.




Powered by Icy Phoenix