4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 16, 2014, 09:26:55 PM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Issues / Ausgaben
| |-+  Discussion & Troubleshooting (Moderators: Acidgod, ivan, Rembrandt)
| | |-+  Problem with the additional field "textarea" to go to a new line
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Problem with the additional field "textarea" to go to a new line  (Read 1897 times)
Sun Zaza
Sr. Member
****
Offline Offline

Posts: 396

Thank You
-Given: 28
-Receive: 1


View Profile WWW
« on: January 10, 2012, 12:08:05 PM »

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
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 554

mmm PHP...


View Profile WWW
« Reply #1 on: January 10, 2012, 01:17:13 PM »

Check if your format_text function in functions.php is unchanged.
Logged

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)
Sun Zaza
Sr. Member
****
Offline Offline

Posts: 396

Thank You
-Given: 28
-Receive: 1


View Profile WWW
« Reply #2 on: January 10, 2012, 01:29:21 PM »

Hi V@no,

It is unchanged. This is the function on includes/functions.php:
1
2
3
4
5
6
7
8
9
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?
Logged
Sun Zaza
Sr. Member
****
Offline Offline

Posts: 396

Thank You
-Given: 28
-Receive: 1


View Profile WWW
« Reply #3 on: November 28, 2012, 08:48:32 AM »

I solved it with format_text().

Thank you
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.106 seconds with 19 queries.
Post your comments here