The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Remove excess line carriage
Can someone whip up a hack to remove excessive line carriages from posts?
|
#2
|
||||
|
||||
Can you give an example of such post? Not sure I understand...
|
#3
|
||||
|
||||
Here's the link http://www.kuro.ph/forums/showthread.php?threadid=392, look at the post of benz it has a big gap between his post and the quoted text. I noticed that if a user enters a line carriage, it gets interpreted as < br /> .
|
#4
|
||||
|
||||
That's because he just entered lots of lines
like that. If you want to remove this from ALL posts, stick this line: Code:
$bbcode=preg_replace("/(<br \/>){2,}/siU", "<br />", $bbcode); Code:
$bbcode=nl2br($bbcode); |
#5
|
||||
|
||||
I believe this hack would take effect on the next reply or post? I tested it on new replies and it does work but how about for < br /> codes appearing within the post? Thanks firefly!
|
#6
|
||||
|
||||
No it will work on all posts but it doesn't work...
|
#7
|
||||
|
||||
Firefly, can you help me out with the extra carriages request? The hack is still not working
|
#8
|
||||
|
||||
Quote:
Where can I find this code in vBulletin 3? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|