xF2 Add-on Whats. The name

ilona

Collaborate
Collaborate
Registered
Joined
Mar 15, 2023
Messages
93
Points
28

Reputation:

@UNKNOWN PH
something is wrong....
when i add widget, ask me about widget definition"
hyyyy.png
hyyyyy2.png
 

ilona

Collaborate
Collaborate
Registered
Joined
Mar 15, 2023
Messages
93
Points
28

Reputation:

there is no "post_micro"
hi.png
 

ilona

Collaborate
Collaborate
Registered
Joined
Mar 15, 2023
Messages
93
Points
28

Reputation:

i have something like this.... how to add just one above post message
qqqq.png
 

one_finger_man

Well-known member
Registered
Joined
Jan 20, 2022
Messages
385
Points
53

Reputation:

did you add this to your extra.less
CSS:
.warning_below_post {
    color: #fff;
    background-color: #761f1f;
    border-radius: 3px;
    padding: 5px;
    display: flex;
    margin: 10px 0;
    line-height: 2;

}

.warning_below_post:before {
    font-family: 'Font Awesome 5 Pro';
    font-size: inherit;
    font-style: normal;
    font-weight: 300;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\f071";
    font-size: 2.4rem;
    line-height: 1;
    align-items: center;
    display: flex;
    margin: -10px 10px -10px -10px;
    margin: -5px 10px -5px -5px;
    background: rgba(0,0,0,0.15);
    padding: 10px;
    border-radius: 3px 0 0 3px
}

change this to auto

HTML:
.warning_below_post {

    color: #fff;

    background-color: #761f1f;

    border-radius: 3px;

    padding: 5px;

    display: flex;

    margin: auto;

    line-height: 2;


}

keep in mind that each theme is different so its going to look like that
 

ilona

Collaborate
Collaborate
Registered
Joined
Mar 15, 2023
Messages
93
Points
28

Reputation:

yes i add css code, i have default xf theme
wwewe.png
 

one_finger_man

Well-known member
Registered
Joined
Jan 20, 2022
Messages
385
Points
53

Reputation:

i have other stuff in my extra.less to make my topic look like that you can try change the theme and see how it will end up
 

ilona

Collaborate
Collaborate
Registered
Joined
Mar 15, 2023
Messages
93
Points
28

Reputation:

i dont have any theme, i use default.... ;////
 

one_finger_man

Well-known member
Registered
Joined
Jan 20, 2022
Messages
385
Points
53

Reputation:

you can try and place it some where else like this it would look better

-1-this-topi.png

just add to your quick_reply_macros
add above
Code:
<div class="formButtonGroup {{ $simpleSubmit ? 'formButtonGroup--simple' : '' }}">

just play around with it
 

ilona

Collaborate
Collaborate
Registered
Joined
Mar 15, 2023
Messages
93
Points
28

Reputation:

like this?? and code from extra.less leave?
ghjhj.png
 

one_finger_man

Well-known member
Registered
Joined
Jan 20, 2022
Messages
385
Points
53

Reputation:

you can use this one two
301-034a2cafc3b6bdbba821a05a999db979.jpg


same place just replace the codes

Code:
<xf:if is="{$xf.visitor.message_count} < 100">
<p class="leechWarning"><i class="fa fa-warning"></i> Warning :</span><br>It is forbidden to leech :
<br>● Repeating characters or words, example: "Thankssssss" or "Thank you thank you thank you thank you thank you".
<br>● SPAM message, example: "uybby ytrcvbni bbjnh uvutft cghvcaas".
<br><b>NB :</b> If you do not respect this warning your account will be banned from the forum.</p>
    <xf:else />
</xf:if>


extra less

CSS:
.leechWarning {
background: # bc2931;
text-align: center;
color: #fff;
padding: 5px;
border-radius: 2px;
}

can be done according to user groups
 
Top