PDA

View Full Version : hooligans !!


alqafelah
07-31-2002, 04:48 AM
hi all,

in my forum many hooligans user , they are prees "Enter" button in keyboard and they make big blank area after post .


like this :









































:(

is there way for disable this ?

Chris M
07-31-2002, 08:55 AM
I would like this...

Disable more than 2 Line breaks before text...

Satan

alqafelah
07-31-2002, 06:04 PM
thank you hellsatan but i'm not understand what you mean :(

more detail please .

Issvar
08-01-2002, 12:45 AM
In admin/functions.php search for:
$bbcode=nl2br($bbcode);
And put before that:
$bbcode=preg_replace("/\n{3,}/","\n\n",$bbcode);

It should replace any 3 or more new lines by two new lines.

It's untested, if there is a bug let me know.

alqafelah
08-01-2002, 03:22 AM
thank you Issvar,

now it is canceled all lines ! :)

when i wrote like this :

AAAAAAAAAAA
BBBBBBBBBBB

CCCCCCCCCCC


DDDDDDDDDDD


after post :



AAAAAAAAAAABBBBBBBBBBBCCCCCCCCCCCDDDDDDDDDDD

:)

no problem for 1 or 2 or 3 blank lines .. i want to replace 5 lines or more with 2 lines .
any idea ?

thank you again and sory for my bad english .

alqafelah
08-02-2002, 12:12 AM
up