this not working fancybox

Get help developing custom BBCodes or request one.
Post Reply
User avatar
oakhearted
Registered User
Posts: 112
Joined: Tue Apr 16, 2019 10:10 am
Location: Queensland, Australia
Name: Cheyne Mayfield
Contact:

this not working fancybox

Post 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]
User avatar
AmigoJack
Registered User
Posts: 6113
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: this not working fancybox

Post by AmigoJack »

1px is not a number.
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
User avatar
oakhearted
Registered User
Posts: 112
Joined: Tue Apr 16, 2019 10:10 am
Location: Queensland, Australia
Name: Cheyne Mayfield
Contact:

Re: this not working fancybox

Post by oakhearted »

AmigoJack wrote: Sun Jun 09, 2019 10:28 am 1px is not a number.
still doesnt work...
User avatar
AmigoJack
Registered User
Posts: 6113
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: this not working fancybox

Post 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]
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
Post Reply

Return to “Custom BBCode Development and Requests”