empty lines between the bbcodes are not deleted?

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
mike2003
Registered User
Posts: 91
Joined: Sun Mar 20, 2016 12:10 am

empty lines between the bbcodes are not deleted?

Post by mike2003 »

Is it possible to fix the code so that when sending a message, the empty lines between the bbcodes are not deleted?
For example

Code: Select all

[align=center]
[b]11111[/b]
[b]2222[/b]
[/align]
not be converted to

Code: Select all

[align=center][b]11111[/b]
[b]2222[/b][/align]

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21910
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket.

Re: empty lines between the bbcodes are not deleted?

Post by Mick »

Please post the HTML replacement you’re using.
"The more connected we get the more alone we become" - Kyle Broflovski

mike2003
Registered User
Posts: 91
Joined: Sun Mar 20, 2016 12:10 am

Re: empty lines between the bbcodes are not deleted?

Post by mike2003 »

what?

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21910
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket.

Re: empty lines between the bbcodes are not deleted?

Post by Mick »

You must have added the custom BBCode? There’s an HTML element to that, for example: https://www.phpbb.com/customise/db/bbcode/centre_text/
"The more connected we get the more alone we become" - Kyle Broflovski

mike2003
Registered User
Posts: 91
Joined: Sun Mar 20, 2016 12:10 am

Re: empty lines between the bbcodes are not deleted?

Post by mike2003 »

my question is about another

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21910
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket.

Re: empty lines between the bbcodes are not deleted?

Post by Mick »

Another what, are you talking about an extension?
"The more connected we get the more alone we become" - Kyle Broflovski

mike2003
Registered User
Posts: 91
Joined: Sun Mar 20, 2016 12:10 am

Re: empty lines between the bbcodes are not deleted?

Post by mike2003 »

I want to delete a line of code in the engine, which removes empty spaces between the bbcodes.

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21910
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket.

Re: empty lines between the bbcodes are not deleted?

Post by Mick »

OK, I’ll move this to custom coding then.
"The more connected we get the more alone we become" - Kyle Broflovski

User avatar
Lumpy Burgertushie
Registered User
Posts: 67077
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: empty lines between the bbcodes are not deleted?

Post by Lumpy Burgertushie »

ok, now it has been moved to custom coding. could you please explain what you are talking about a little better?
exactly what are you trying to accomplish as the end result. not how you think it should be done etc.


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

mike2003
Registered User
Posts: 91
Joined: Sun Mar 20, 2016 12:10 am

Re: empty lines between the bbcodes are not deleted?

Post by mike2003 »

after posting phpbb parse message and delete new line and space between bbcodes
i want save it

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51913
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: empty lines between the bbcodes are not deleted?

Post by Brf »

Blank lines are preserved just fine:


0000000

aaaaa

bbbbb

ccccccc

1111111

User avatar
warmweer
Jr. Extension Validator
Posts: 3622
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: empty lines between the bbcodes are not deleted?

Post by warmweer »

@ mike2003
You probably noticed that nobody understands what you are requesting (consider me also member of nobody).
I suggest you post your precise request in your native language and hopefully someone will be able to translate.
Last edited by Brf on Thu Mar 15, 2018 8:03 pm, edited 1 time in total.
Reason: Nope
We should embrace problems, without which there wouldn't be any solutions.

User avatar
warmweer
Jr. Extension Validator
Posts: 3622
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: empty lines between the bbcodes are not deleted?

Post by warmweer »

Just trying to help because we don't understand what he wants (not for lack of trying), and I doubt he understands our questions.
OK, so no native language posting
Then I suggest mike2003 looks for a phpBB support forum in his native language: https://www.phpbb.com/support/intl/ (or he can PM me).
We should embrace problems, without which there wouldn't be any solutions.

mike2003
Registered User
Posts: 91
Joined: Sun Mar 20, 2016 12:10 am

Re: empty lines between the bbcodes are not deleted?

Post by mike2003 »

just try send code form my 1st message and than edit it

User avatar
warmweer
Jr. Extension Validator
Posts: 3622
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: empty lines between the bbcodes are not deleted?

Post by warmweer »

mike2003 wrote:
Thu Mar 15, 2018 8:21 pm
just try send code form my 1st message and than edit it
As far as I know there is no default [align=center] BBcode so your question is futile.
We should embrace problems, without which there wouldn't be any solutions.

Post Reply

Return to “phpBB Custom Coding”