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: 90
Joined: Sun Mar 20, 2016 12:10 am

empty lines between the bbcodes are not deleted?

Post by mike2003 » Thu Mar 15, 2018 10:26 am

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: 19976
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: empty lines between the bbcodes are not deleted?

Post by Mick » Thu Mar 15, 2018 10:38 am

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

There are no ‘threads’ in phpBB, they are topics.

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

Re: empty lines between the bbcodes are not deleted?

Post by mike2003 » Thu Mar 15, 2018 10:43 am

what?

User avatar
Mick
Support Team Member
Support Team Member
Posts: 19976
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: empty lines between the bbcodes are not deleted?

Post by Mick » Thu Mar 15, 2018 10:51 am

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

There are no ‘threads’ in phpBB, they are topics.

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

Re: empty lines between the bbcodes are not deleted?

Post by mike2003 » Thu Mar 15, 2018 11:11 am

my question is about another

User avatar
Mick
Support Team Member
Support Team Member
Posts: 19976
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: empty lines between the bbcodes are not deleted?

Post by Mick » Thu Mar 15, 2018 12:22 pm

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

There are no ‘threads’ in phpBB, they are topics.

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

Re: empty lines between the bbcodes are not deleted?

Post by mike2003 » Thu Mar 15, 2018 1:35 pm

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: 19976
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: empty lines between the bbcodes are not deleted?

Post by Mick » Thu Mar 15, 2018 1:38 pm

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

There are no ‘threads’ in phpBB, they are topics.

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

Re: empty lines between the bbcodes are not deleted?

Post by Lumpy Burgertushie » Thu Mar 15, 2018 2:22 pm

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 am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

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

Re: empty lines between the bbcodes are not deleted?

Post by mike2003 » Thu Mar 15, 2018 6:55 pm

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: 51317
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 » Thu Mar 15, 2018 7:50 pm

Blank lines are preserved just fine:


0000000

aaaaa

bbbbb

ccccccc

1111111

User avatar
warmweer
Registered User
Posts: 992
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Belt ... well actually Belgium

Re: empty lines between the bbcodes are not deleted?

Post by warmweer » Thu Mar 15, 2018 8:02 pm

@ 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
A bug is a feature that hasn't made it to the manual (yet)

User avatar
warmweer
Registered User
Posts: 992
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Belt ... well actually Belgium

Re: empty lines between the bbcodes are not deleted?

Post by warmweer » Thu Mar 15, 2018 8:13 pm

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).
A bug is a feature that hasn't made it to the manual (yet)

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

Re: empty lines between the bbcodes are not deleted?

Post by mike2003 » Thu Mar 15, 2018 8:21 pm

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

User avatar
warmweer
Registered User
Posts: 992
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Belt ... well actually Belgium

Re: empty lines between the bbcodes are not deleted?

Post by warmweer » Thu Mar 15, 2018 8:38 pm

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.
A bug is a feature that hasn't made it to the manual (yet)

Post Reply

Return to “phpBB Custom Coding”

Who is online

Users browsing this forum: No registered users and 2 guests