Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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
 



 
LeonSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Chat Box Error 
 
just add

Code: [Download] [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
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Chat Box Error 
 
it works ...thanks alot zuker
 



 
LeonSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Chat Box Error 
 
Any mod move it to general support...
That it's not a bug
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Chat Box Error 
 
Zuker wrote: [View Post]
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
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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.

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  
 



 
LeonSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Chat Box Error 
 
first you have to search the forum
 




____________
*VOLVO CLUB*
 
difusSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Chat Box Error 
 
Leon wrote: [View Post]
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
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Chat Box Error 
 
Mighty Gorgon wrote: [View Post]
Leon wrote: [View Post]
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
 



 
LeonSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.

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
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron