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
Chat Box Error
Subject: Re: Chat Box Error
just add
before
?>
in bbcode.php
- 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
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:
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:
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
I've only paste it here
But i'll take a look
Subject: Re: Chat Box Error
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:
Zuker wrote: [View Post]
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:
Subject: Re: Chat Box Error
This yellow card is the sum for many behaviors I don't like:
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 wrote: [View Post]
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:
Subject: Re: Chat Box Error
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 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
Subject: Re: Chat Box Error
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.
Leon wrote: [View Post]
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.
Page 1 of 1
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 1.154s (PHP: 3% SQL: 97%)
SQL queries: 10 - Debug Off - GZIP Enabled