Page 1 of 1

this not working fancybox

Posted: Sun Jun 09, 2019 5:03 am
by oakhearted
i want a make a fancybox where you can kinda code html with a bbcode
BBCODE USAGE:

Code: Select all

[fancypost={COLOR}; color={COLOR3} padding={NUMBER}; border={SIMPLETEXT}; bordercolor={COLOR2}; ]{TEXT}[/fancypost]
HTML REPLACEMENT:

Code: Select all

<div style="background-color: {COLOR}; color: {COLOR3}; padding: {NUMBER}; border: {SIMPLETEXT}; bordercolor={COLOR2}">{TEXT}</div>
HELP LINE:

Code: Select all

fancypost element test
but this wont work?
just shows up with this

Code: Select all

[fancypost=#eee; color=#555; padding=1px; border=1px solid; bordercolor=#999;]hi[/fancypost]

Re: this not working fancybox

Posted: Sun Jun 09, 2019 10:28 am
by AmigoJack
1px is not a number.

Re: this not working fancybox

Posted: Fri Jun 14, 2019 10:01 am
by oakhearted
AmigoJack wrote:
Sun Jun 09, 2019 10:28 am
1px is not a number.
still doesnt work...

Re: this not working fancybox

Posted: Fri Jun 14, 2019 10:17 am
by AmigoJack
=#999;]hi does not correspond to ={COLOR2}; ]{TEXT} since at least a space is missing. Looking at how the QUOTE-BBCode works I don't get why you separate parameters with semicolon at all, let alone having one plus space at the end. And redefining a border color that one is already able to provide thru the previous parameter.

Without having it tested I'd define the BBCode this way:

Code: Select all

[fancypost={COLOR} color={COLOR3} padding={NUMBER} border={SIMPLETEXT}]{TEXT}[/fancypost]
and use it this way:

Code: Select all

[fancypost=#eee color=#555 padding=1 border=1px solid #999]hi[/fancypost]