|
#1
|
|||
|
|||
|
Double line breaks
Whenever a commenter pushes enter in their comment it shows up as two <br> which is this really huge space. I would like the space to be smaller and only show up as one <br> in the comment section. Does anyone have this problem. is this a problem with the code or my css?
This is my url http://www.informedrevolution.com/th...p?showimage=10 An example of the huge break is alex's comment. Help me! |
|
#2
|
||||
|
||||
|
Hi!
I'm having the same problem. using version 1.5 it adds two line breaks everytime a commenter hits ENTER. I checked the index page but cannot find what I should change. thanks for any help! Indira |
|
#3
|
|||
|
|||
|
Finally i was able to fix it!
What i did is to change 2 lines of the index.php: Code:
// $message $message = clean(nl2br($_POST['message'])); $message = isset($_POST['message']) ? $_POST['message'] : ""; $message = clean_comment($message); $message = nl2br($message); Code:
// $message $message = isset($_POST['message']) ? $_POST['message'] : ""; $message = clean_comment($message); $message = nl2br($message); I don't know why. I found it trying (i'm not an expert)... but i think it's working. I'm using it at the moment and i haven't had any problem. Luck!! |
|
#5
|
|||
|
|||
|
Double Line breaks
Just to let you know that this solution has now worked for me.
PP 1.5 |
|
#6
|
|||
|
|||
|
Just solved mine too. Thanks for sharing!
|
|
#7
|
|||
|
|||
|
Thanks! You can all just do this, it really works! Even if you type six enters in a row, there's just one white line!
|
|
#8
|
||||
|
||||
|
This didn't work for me. I'm running PP 1.5. Any other suggestions?
EDIT: Never mind. I think it's working now. It just wasn't correcting old comments, but it seems to work on new ones.
__________________
Beauty's Where You Find It |
|
#9
|
|||
|
|||
|
Clear the cache?? I think all comments should format the same after this change.
Just a guess.
__________________
My Gallery |
|
#10
|
|||
|
|||
|
Anyone knows how to fix it for 1.6 version?
I tryed to do the same as i did with the other versions but seems it doesn't work... I have done that: /includes/functions_comments.php (line 74) Code:
// $message
$message = isset($_POST['message']) ? $_POST['message'] : "";
$message = clean_comment($message);
$message = preg_replace("/((\x0D\x0A){3,}|[\x0A]{3,}|[\x0D]{3,})/","\n\n",$message);
$message = nl2br($message);
|
| Post Reply |
| Thread Tools | |
|
|