XenForo 2.0 Anyone know what this addon is please?

Soul02

Active member
Registered
Joined
Aug 24, 2021
Messages
35
Points
8

Reputation:

Hey, what is this warning before the post, please? I have looked all over for it and can't find it, maybe custom? TIA :)

Screenshot_1.png
 
  • Like
Reactions: jim

jim

Well-known member
Registered
Joined
Aug 20, 2021
Messages
114
Points
38

Reputation:

@Soul02 It could be custom implemented, i tried recreating this with some template modifications in thread_view, if you want this let me know.


Screenshot_6.png
 

jim

Well-known member
Registered
Joined
Aug 20, 2021
Messages
114
Points
38

Reputation:

Was gonna dm you, but i'll just post it here if anyone also wanna add it.

In thread_view, look for this code

<xf:macro name="thread_status" arg-thread="{$thread}" arg-wrapperClass="block-outer block-outer--after" />

And add the following code above it



Code:
<xf:if is="$xf.visitor.user_id">
<div class="jimmy-staffbbcode jimmy-staffbbcode-warn" style="padding-top: 18px;padding-bottom: 18px;margin-top: -8px;">
    Spam comments are prohibited.
    Any spam post(s) will result in a ban. You have been warned. Thank you.
</div>
</xf:if>

Screenshot_7.png


Css to render the bbcode (add it to extra.less)
Code:
.jimmy-staffbbcode:before {
    font-family: "Font Awesome 5 Pro";
}
.jimmy-staffbbcode.jimmy-staffbbcode-warn:before {
    color: #ffc107;
    content: "\f071";
}
.jimmy-staffbbcode.jimmy-staffbbcode-warn {
    border-left: 3px solid #ffc107;
}
.jimmy-staffbbcode {
    border-radius: 3px;
    position: relative;
    padding: 8px 10px 8px 45px;
    margin: 5px 5px 15px 5px;
    background: #37383a;
    color: #f1f1f1;
    text-shadow: 0px 0px 2px #181a1d;
    font-size: 14px;
}
 
Last edited:

Soul02

Active member
Registered
Joined
Aug 24, 2021
Messages
35
Points
8

Reputation:

Was gonna dm you, but i'll just post it here if anyone also wanna add it.

In thread_view, look for this code

<xf:macro name="thread_status" arg-thread="{$thread}" arg-wrapperClass="block-outer block-outer--after" />

And add the following code above it



Code:
<xf:if is="$xf.visitor.user_id">
<div class="jimmy-staffbbcode jimmy-staffbbcode-warn" style="padding-top: 18px;padding-bottom: 18px;margin-top: -8px;">
    Spam comments are prohibited.
    Any spam post(s) will result in a ban. You have been warned. Thank you.
</div>
</xf:if>

View attachment 29230

Css to render the bbcode (add it to extra.less)
Code:
.jimmy-staffbbcode:before {
    font-family: "Font Awesome 5 Pro";
}
jimmy-staffbbcode.jimmy-staffbbcode-warn:before {
    color: #ffc107;
    content: "\f071";
}
.jimmy-staffbbcode.jimmy-staffbbcode-warn {
    border-left: 3px solid #ffc107;
}
.jimmy-staffbbcode {
    border-radius: 3px;
    position: relative;
    padding: 8px 10px 8px 45px;
    margin: 5px 5px 15px 5px;
    background: #37383a;
    color: #f1f1f1;
    text-shadow: 0px 0px 2px #181a1d;
    font-size: 14px;
}
jimThanks a lot mate :)
 

Soul02

Active member
Registered
Joined
Aug 24, 2021
Messages
35
Points
8

Reputation:

Hey, so its working, but the font awesome icon isn't loading, strange :unsure:
 

jim

Well-known member
Registered
Joined
Aug 20, 2021
Messages
114
Points
38

Reputation:

Hey, so its working, but the font awesome icon isn't loading, strange :unsure:
Soul02Add this into PAGE_CONTAINER
HTML:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css" integrity="sha512-HK5fgLBL+xu6dm/Ii3z4xhlSUyZgTT9tuc/hSrtw6uzJOvgRr2a9jyxxT1ely+B+xFAmJKVSTbpM/CuL7qxO8w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
 
View previous replies…

Soul02

Active member
Registered
Joined
Aug 24, 2021
Messages
35
Points
8

Reputation:

Add this into PAGE_CONTAINER
HTML:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css" integrity="sha512-HK5fgLBL+xu6dm/Ii3z4xhlSUyZgTT9tuc/hSrtw6uzJOvgRr2a9jyxxT1ely+B+xFAmJKVSTbpM/CuL7qxO8w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
jimNope, still nothing 😕
 

one_finger_man

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

Reputation:

no i dont this might be your issue


Code:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css" integrity="sha512-HK5fgLBL+xu6dm/Ii3z4xhlSUyZgTT9tuc/hSrtw6uzJOvgRr2a9jyxxT1ely+B+xFAmJKVSTbpM/CuL7qxO8w==" crossorigin="anonymous" referrerpolicy="no-referrer" />


try adding this

Code:
<xf:if is="$xf.visitor.user_id">
<div class="jimmy-staffbbcode jimmy-staffbbcode-warn" style="padding-top: 18px;padding-bottom: 18px;margin-top: -8px;">
   <i class="fa fa-exclamation-triangle" aria-hidden="true"></i> Spam comments are prohibited.
    Any spam post(s) will result in a ban. You have been warned. Thank you.
</div>
</xf:if>

remove this

Code:
.jimmy-staffbbcode:before {
    font-family: "Font Awesome 5 Pro";
}
jimmy-staffbbcode.jimmy-staffbbcode-warn:before {
    color: #ffc107;
    content: "\f071";
}

thats the only way it will show
 
Last edited:

Soul02

Active member
Registered
Joined
Aug 24, 2021
Messages
35
Points
8

Reputation:

no i dont this might be your issue


Code:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css" integrity="sha512-HK5fgLBL+xu6dm/Ii3z4xhlSUyZgTT9tuc/hSrtw6uzJOvgRr2a9jyxxT1ely+B+xFAmJKVSTbpM/CuL7qxO8w==" crossorigin="anonymous" referrerpolicy="no-referrer" />


try adding this

Code:
<xf:if is="$xf.visitor.user_id">
<div class="jimmy-staffbbcode jimmy-staffbbcode-warn" style="padding-top: 18px;padding-bottom: 18px;margin-top: -8px;">
   <i class="fa fa-exclamation-triangle" aria-hidden="true"></i> Spam comments are prohibited.
    Any spam post(s) will result in a ban. You have been warned. Thank you.
</div>
</xf:if>

remove this

Code:
.jimmy-staffbbcode:before {
    font-family: "Font Awesome 5 Pro";
}
jimmy-staffbbcode.jimmy-staffbbcode-warn:before {
    color: #ffc107;
    content: "\f071";
}

thats the only way it will show
one_finger_manYay! that worked! thank you so much :)

@jim you too mate! both of you (y)
 

swift

Well-known member
Registered
Joined
Apr 7, 2019
Messages
76
Points
28

Reputation:

Might be because jimmy-staffbbcode doesn't have a . at the beginning.

Screenshot 2022-06-16 201550.png


Code:
.jimmy-staffbbcode:before {
    font-family: "Font Awesome 5 Pro";
}
.jimmy-staffbbcode.jimmy-staffbbcode-warn:before {
    color: #ffc107;
    content: "\f071";
}
.jimmy-staffbbcode.jimmy-staffbbcode-warn {
    border-left: 3px solid #ffc107;
}
.jimmy-staffbbcode {
    border-radius: 3px;
    position: relative;
    padding: 8px 10px 8px 45px;
    margin: 5px 5px 15px 5px;
    background: #37383a;
    color: #f1f1f1;
    text-shadow: 0px 0px 2px #181a1d;
    font-size: 14px;
}

Adding this should fix all issues @jim might want to fix it ;)
 

jim

Well-known member
Registered
Joined
Aug 20, 2021
Messages
114
Points
38

Reputation:

Might be because jimmy-staffbbcode doesn't have a . at the beginning.

View attachment 29469

Code:
.jimmy-staffbbcode:before {
    font-family: "Font Awesome 5 Pro";
}
.jimmy-staffbbcode.jimmy-staffbbcode-warn:before {
    color: #ffc107;
    content: "\f071";
}
.jimmy-staffbbcode.jimmy-staffbbcode-warn {
    border-left: 3px solid #ffc107;
}
.jimmy-staffbbcode {
    border-radius: 3px;
    position: relative;
    padding: 8px 10px 8px 45px;
    margin: 5px 5px 15px 5px;
    background: #37383a;
    color: #f1f1f1;
    text-shadow: 0px 0px 2px #181a1d;
    font-size: 14px;
}

Adding this should fix all issues @jim might want to fix it ;)
swiftAhh. How did I not see that. :LOL:
Thanks, @swift.
 
Top