Reputation:
Reputation:
thats hard coding you can do that own ya own
Reputation:
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.
View attachment 29226
Reputation:
thread_view
, look for this code<xf:macro name="thread_status" arg-thread="{$thread}" arg-wrapperClass="block-outer block-outer--after" />
<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>
.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;
}
Reputation:
Was gonna dm you, but i'll just post it here if anyone also wanna add it.
Inthread_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; }
Reputation:
Reputation:
Reputation:
Hey, so its working, but the font awesome icon isn't loading, strange![]()
PAGE_CONTAINER
<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" />
Reputation:
Add this intoPAGE_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" />
Reputation:
It could be "Font Awesome 5 Pro" try to change it to "Font Awesome 5 Free"
Reputation:
Nope, that didn't work either, lol this is weird ...
@one_finger_man how about you man, you changed anything for your font awesome icon to work?
Reputation:
mine is a little different than his if you want it
Reputation:
<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" />
<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>
.jimmy-staffbbcode:before {
font-family: "Font Awesome 5 Pro";
}
jimmy-staffbbcode.jimmy-staffbbcode-warn:before {
color: #ffc107;
content: "\f071";
}
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
.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;
}
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![]()