After 1.2.0.27 To 1.3.0.53 Problems In Posting (bbcodes) »  Show posts from    to     

Icy Phoenix


Old Support Topics - After 1.2.0.27 To 1.3.0.53 Problems In Posting (bbcodes)



tiolalu [ Mon 07 Sep, 2009 01:09 ]
Post subject: After 1.2.0.27 To 1.3.0.53 Problems In Posting (bbcodes)
You can see the error here: http://i30.tinypic.com/2q8ak47.png
When quick response in some forums. But if you reload the page it works.

Any idea what's happening?

Thanks in advance .


tiolalu [ Tue 08 Sep, 2009 17:10 ]
Post subject: Re: After 1.2.0.27 To 1.3.0.53 Problems In Posting (bbcodes)
It happens all time you try to post an answer, using quick response or just response... And with all styles.

I have "fixed" the problem (badly, but the forum doesn't show the error)

in includes/bbcode.php

remplace
Code: [Hide]
  1. function plain_message($text, $id)  
  2. {  
  3. // This function will strip from a message some BBCodes,  
  4. // all BBCodes $uid, and some other formattings.  
  5. // The result will be suitable for email sendings.  
  6. $text = $this->bbcode_killer($text, $id);  
  7. //$text = preg_replace("/\r\n/", "<br />", $text);  
  8. $text = preg_replace("/\r\n/", "\n", $text);  
  9. $text = str_replace('<br />', "\n", $text);  
  10.  
  11. return $text;  
  12. }  
  13.  


by
Code: [Hide]
  1. function plain_message($text)  
  2. {  
  3. // This function will strip from a message some BBCodes,  
  4. // all BBCodes $uid, and some other formattings.  
  5. // The result will be suitable for email sendings.  
  6. //$text = $this->bbcode_killer($text, $id);  
  7. //$text = preg_replace("/\r\n/", "<br />", $text);  
  8. $text = preg_replace("/\r\n/", "\n", $text);  
  9. $text = str_replace('<br />', "\n", $text);  
  10.  
  11. return $text;  
  12. }  
  13.  


I know that's quit a function, but I cannot arrive into any other solution




Powered by Icy Phoenix