|
Page 1 of 1
|
Leon
Joined: November 2006
Posts: 46
|
 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
|
#1 Thu 07 Dec, 2006 01:56 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Zuker 
Joined: August 2006
Posts: 2134
Location:  BA
|
 Re: Chat Box Error
just add
- 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
____________ ? Zuker - EDDB - LPM - Sharefields
|
#2 Thu 07 Dec, 2006 13:41 |
|
Leon
Joined: November 2006
Posts: 46
|
 Re: Chat Box Error
it works ...thanks alot zuker
|
#3 Thu 07 Dec, 2006 21:17 |
|
Zuker 
Joined: August 2006
Posts: 2134
Location:  BA
|
 Re: Chat Box Error
Any mod move it to general support...
That it's not a bug
____________ ? Zuker - EDDB - LPM - Sharefields
|
#4 Thu 07 Dec, 2006 21:28 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 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.
Please use the XS way to parse BBCodes and Smileys.
You will find examples on top of bbcode.php.
Another yellow card for Leon...
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#5 Fri 08 Dec, 2006 11:54 |
|
Zuker 
Joined: August 2006
Posts: 2134
Location:  BA
|
 Re: Chat Box Error
Difus is the creator of that code
I've only paste it here
But i'll take a look
____________ ? Zuker - EDDB - LPM - Sharefields
|
#6 Fri 08 Dec, 2006 13:02 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: Chat Box Error
Difus is the creator of that code
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...
Anyway thanks for your help here!
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#7 Fri 08 Dec, 2006 13:18 |
|
Leon
Joined: November 2006
Posts: 46
|
 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.
Please use the XS way to parse BBCodes and Smileys.
You will find examples on top of bbcode.php.
Another yellow card for Leon... 
Why yellow card MG , i did not do anything wrong
|
#8 Fri 08 Dec, 2006 17:35 |
|
difus 
Joined: August 2006
Posts: 763
Location:
|
 Re: Chat Box Error
first you have to search the forum
|
#9 Fri 08 Dec, 2006 17:44 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: Chat Box Error
Why yellow card MG , i did not do anything wrong 
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.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#10 Fri 08 Dec, 2006 18:16 |
|
Leon
Joined: November 2006
Posts: 46
|
 Re: Chat Box Error
Why yellow card MG , i did not do anything wrong 
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.

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
|
#11 Fri 08 Dec, 2006 22:54 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 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
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.
I hope that everybody here is going to respect each other... remembering that this is an open source community.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#12 Tue 12 Dec, 2006 01:34 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You 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
|
|
|
|