Pixelpost Forum

Pixelpost Forum (http://www.pixelpost.org/forum/index.php)
-   Pixelpost Help (http://www.pixelpost.org/forum/forumdisplay.php?f=10)
-   -   Double line breaks (http://www.pixelpost.org/forum/showthread.php?t=4455)

Shanthony 06-21-2006 09:21 PM

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!

indira 06-26-2006 04:19 PM

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

inocuo 07-03-2006 02:47 PM

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);

change last line for: $message = clean($message);


Code:

// $message               
        $message = isset($_POST['message']) ? $_POST['message'] : "";
        $message = clean_comment($message);
        $message = nl2br($message);

change last line for: $message = clean($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!!

GeoS 07-05-2006 11:10 PM

About which versions of PP did you all talk??

washy21 07-06-2006 09:14 AM

Double Line breaks
 
Just to let you know that this solution has now worked for me.

PP 1.5

vxt 08-07-2006 03:26 AM

Works
 
Just solved mine too. Thanks for sharing!

mauritz 09-02-2006 07:08 PM

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!

heatheranne 09-03-2006 12:49 AM

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.

RAitch 09-03-2006 03:36 AM

Clear the cache?? I think all comments should format the same after this change.
Just a guess.

inocuo 04-12-2007 02:24 PM

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);

I have changed the last line to: $message = clean($message);


All times are GMT. The time now is 09:09 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.