Author Topic: Problem with the additional field "textarea" to go to a new line  (Read 4498 times)

0 Members and 1 Guest are viewing this topic.

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Hi,

I have a problem with the additional field "textarea".

To go to a new line I have to use <br />. I don't have to do that in the image_description texterea.

How can I solve that? Maybe I changed something, but I cannot remember.

Thanks in advance for your help.
Cruxy

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Problem with the additional field "textarea" to go to a new line
« Reply #1 on: January 10, 2012, 01:17:13 PM »
Check if your format_text function in functions.php is unchanged.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Problem with the additional field "textarea" to go to a new line
« Reply #2 on: January 10, 2012, 01:29:21 PM »
Hi V@no,

It is unchanged. This is the function on includes/functions.php:
function format_text($text$html 0$word_wrap 0$bbcode 0$bbcode_img 0) {

  if (
$word_wrap && $text != "") {
    
$text preg_replace("/([^\n\r ?&\.\/<>\"\\-]{".$word_wrap."})/i"" \\1\n"$text);
  }

  if (
$html == || $html == 2) {
    
$text safe_htmlspecialchars($text);
  }


Very strange.

What about something in admin_functions?

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Problem with the additional field "textarea" to go to a new line
« Reply #3 on: November 28, 2012, 08:48:32 AM »
I solved it with format_text().

Thank you

 

Post your comments here