XF 2.1 A way to create a QUOTE bb code

DCMS

Active member
Hello,
in Xenforo there is by default a bb code for Quote, with a pretty left side colored border and very light background color.

I want to make a different modes of the Quote for many puropose, one with red colors, one with green colors, yellow etc...
For do this i know that i have to create a newq custom BB code.
But i don't know the code for cloning the Quote of xenforo.

Can you help me please?
 
build it (y):

Code:
<div style="border: 1px solid; border-color: #e0e0e0; margin: 0; border-left-width: 2px; border-left-color: red; background: #feeded; border-radius:0px;">
    <div style="padding:10px;">{text}</div>
</div>
 
ok i have a problem now, this is my definitive code:
Code:
<div style="border: 1px solid; border-color: #e0e0e0; border-left-width: 2px; border-left-color: red; background: #fef6f6;">
    <div style="padding:10px 15px 10px; font-size:10pt">{text}</div></div>

the result, is a strange margin tob and bottom my div. i tried to inserti a custom margin-top and bottom but...no way...it remain in this mode.
Blue is the Xenforo default Quote.
Red is mine custo BB code.
Annotazione 2020-08-25 223558.webp
 
Yes, i see before.
But it not function for my code, i need to use top margin and all is great with and without mixing the original and custom quotes.
this is my definitive code for a Custom Quote in BB code:

Code:
<div style="margin-top:10px; border: 1px solid; border-color: #e0e0e0; border-left-width: 2px; border-left-color: red; background: #fef6f6;">
<div style="padding:10px 15px 10px; font-size:10pt">{text}</div></div>

Annotazione 2020-08-28 141549.webp
 
Back
Top Bottom