how to deal with custom backgrounds?

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
Registered User
Posts: 5
Joined: Wed Jan 13, 2021 11:10 pm

how to deal with custom backgrounds?

Post by noisbobe »


first of all, sorry if this is the wrong forum.... i have an idea for an extension and i'm not sure how to go about it..
i'm currently hacking a forum style together,.. it is here:
design of the template and theme is easy enough,.i'm slowing starting to get it. hurray
the idea is to simplify it extremely and then make it work with lots of far-out BBcodes.

and one if them is:

Code: Select all

with the HTML replacement:

Code: Select all

<div style="background-color:{COLOR};position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: -100;">&nbsp;</div>

works pretty good.. when the user puts in the [bg] BBcode to their post, the whole screen changes color.. until the next user replies with the BBcode in a different color. see it in action here:

now my question is: how would i go about putting the color changing function into my editor, so the user simply picks the desired background color in the editor, and no [bg] BBcode is needed in the editor?!
Post Reply

Return to “Extension Writers Discussion”