BB code for background image in topic

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

BB code for background image in topic

Post by Chappie » Sat Oct 20, 2018 7:14 pm

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 » Sun Oct 21, 2018 4:13 am

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: 14
Joined: Wed May 10, 2017 5:59 pm

Re: BB code for background image in topic

Post by Adelin13 » Sun Oct 21, 2018 7:07 am

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”

Who is online

Users browsing this forum: No registered users and 9 guests