BB code for background image in topic

Get help developing custom BBCodes or request one.
Post Reply
Chappie
Registered User
Posts: 48
Joined: Fri Jan 26, 2018 3:52 am

BB code for background image in topic

Post by Chappie »

I'd like to have a BB code to apply a background image in a topic/post, it this possible?

already tried this:

BB code:

Code: Select all

[background]{URL}[/background]
HTML:

Code: Select all

<body background="{URL}">
But it aint working, what am I doing wrong?
I'm running phpBB 3.2.2 with "flat-style" theme.

much appreciated for some help!
AllenSam
Registered User
Posts: 1
Joined: Sun Oct 21, 2018 4:09 am

Re: BB code for background image in topic

Post by AllenSam »

I use this:

Code: Select all

<div style="background: url('{URL}') no-repeat; background-size: 100%; background-position: top;">{TEXT}</div>
You can't use a body tag, because there is already a body in the page.
User avatar
Adelin13
Registered User
Posts: 15
Joined: Wed May 10, 2017 5:59 pm

Re: BB code for background image in topic

Post by Adelin13 »

BB Code:

Code: Select all

[background={URL}]{TEXT}[/background]
HTML:

Code: Select all

<div style="background: url('{URL}') no-repeat; background-size: 100%; background-position: top; color: white;">{TEXT}</div>
Example:

Code: Select all

[background="http://i.epvpimg.com/J3Phbab.jpg"]Test
Test
Test[/background]
Image
Post Reply

Return to “Custom BBCode Development and Requests”