Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 06-21-2006, 09:21 PM
Shanthony Offline
forum loafer
 
Join Date: Mar 2006
Posts: 9
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!
Reply With Quote
  #2  
Old 06-26-2006, 04:19 PM
indira's Avatar
indira Offline
forum loafer
 
Join Date: Jun 2006
Posts: 8
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
Reply With Quote
  #3  
Old 07-03-2006, 02:47 PM
inocuo Offline
forum loafer
 
Join Date: May 2006
Posts: 7
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!!
Reply With Quote
  #4  
Old 07-05-2006, 11:10 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
About which versions of PP did you all talk??
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #5  
Old 07-06-2006, 09:14 AM
washy21 Offline
pp veteran
 
Join Date: Jan 2005
Location: England UK
Posts: 50
Double Line breaks

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

PP 1.5
Reply With Quote
  #6  
Old 08-07-2006, 03:26 AM
vxt Offline
forum loafer
 
Join Date: Aug 2006
Posts: 15
Send a message via MSN to vxt
Thumbs up Works

Just solved mine too. Thanks for sharing!
Reply With Quote
  #7  
Old 09-02-2006, 07:08 PM
mauritz Offline
pp regular
 
Join Date: Jun 2006
Posts: 48
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!
Reply With Quote
  #8  
Old 09-03-2006, 12:49 AM
heatheranne's Avatar
heatheranne Offline
forum loafer
 
Join Date: Jan 2006
Location: Ohio
Posts: 8
Send a message via Yahoo to heatheranne
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
Reply With Quote
  #9  
Old 09-03-2006, 03:36 AM
RAitch Offline
pixelpost guru
 
Join Date: Aug 2006
Location: Ontario
Posts: 115
Clear the cache?? I think all comments should format the same after this change.
Just a guess.
__________________
My Gallery
Reply With Quote
  #10  
Old 04-12-2007, 02:24 PM
inocuo Offline
forum loafer
 
Join Date: May 2006
Posts: 7
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);
__________________
fotòxic | flickr | capturers
Reply With Quote
Post Reply


Thread Tools




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

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs