Reputation:
.block--messages .message, .block--messages .block-row {
color: #fdfdfd;
background: #181818;
border-width: 1px;
border-style: solid;
border-top-color: #be2525;
border-right-color: #d92121;
border-bottom-color: #c91f1f;
border-left-color: #ce2d2d;
border-radius: 4px;
}
border-top-color: ;
border-right-color: ;
border-bottom-color: ;
border-left-color: ;
Reputation:
hi
try this : add in your style extra.less
Code:.block--messages .message, .block--messages .block-row { color: #fdfdfd; background: #181818; border-width: 1px; border-style: solid; border-top-color: #be2525; border-right-color: #d92121; border-bottom-color: #c91f1f; border-left-color: #ce2d2d; border-radius: 4px; }
edit this to change color :
CSS:border-top-color: ; border-right-color: ; border-bottom-color: ; border-left-color: ;
change the color like you want![]()
Reputation:
Reputation:
to my knowledge, we can't target groups in css, You mut use conditional statements in the concerned template.
Reputation:
.message.message--post {
box-shadow: 0px 0px 3px 1px rgba(255, 11, 0, 0.7);
}
Reputation:
add this code in extra.less
Less:.message.message--post { box-shadow: 0px 0px 3px 1px rgba(255, 11, 0, 0.7); }
Reputation:
Here is the live example - https://www.ac-web.org/threads/a-few-suggestions-for-xenforo.177302/
Reputation:
Reputation:
<xf:if is="(in_array(6, {$post.User.user_group_id}) OR in_array(6, {$post.User.secondary_group_ids}))">vip_highlight</xf:if>
<div class="message-inner">
<div class="message-inner <xf:include template="post_highlight"/> ">
.vip_highlight {
border: 3px solid; /* Establece el tamaño del borde y elimina el color */
animation: border-animation 5s linear infinite; /* Agrega la animación */
}
Reputation:
@Zer01ne @Kenpachi @thomsa @Cwadel
Step1:
Create a new template , for example post_highlight
put this code inside the template:
Code:<xf:if is="(in_array(6, {$post.User.user_group_id}) OR in_array(6, {$post.User.secondary_group_ids}))">vip_highlight</xf:if>
remember to change the group 6 for the one you want, if you want several usergroups just add more to IF
now go to your post_macros template and find line 19 (vanilla xenforo)
replace this:
with
and now add to your extra. Less template
CSS:.vip_highlight { border: 3px solid; /* Establece el tamaño del borde y elimina el color */ animation: border-animation 5s linear infinite; /* Agrega la animación */ }
Reputation:
@Zer01ne @Kenpachi @thomsa @Cwadel
Step1:
Create a new template , for example post_highlight
put this code inside the template:
Code:<xf:if is="(in_array(6, {$post.User.user_group_id}) OR in_array(6, {$post.User.secondary_group_ids}))">vip_highlight</xf:if>
remember to change the group 6 for the one you want, if you want several usergroups just add more to IF
now go to your post_macros template and find line 19 (vanilla xenforo)
replace this:
with
and now add to your extra. Less template
CSS:.vip_highlight { border: 3px solid; /* Establece el tamaño del borde y elimina el color */ animation: border-animation 5s linear infinite; /* Agrega la animación */ }
Reputation:
In my case not only the border is colored but also the complete text of the post. How can I separate the Border / Text?
Only the Border color would be Nice
@lazarote do have a fix for my problem and maybe a clean code now?
Xf 2.2.15
View attachment 39354
.message-inner {
border-right: 1px solid #fff;
border-left: 1px solid #fff;
border-bottom: 1px solid #fff;
border-top: 1px solid #fff;
}
Reputation:
just modify inside on innder
CSS:.message-inner { border-right: 1px solid #fff; border-left: 1px solid #fff; border-bottom: 1px solid #fff; border-top: 1px solid #fff; }
take note just add a border do not remove the existing style code on message-inner class
Reputation:
Reputation:
How can I get that exact postbit? What would be the css coding and the post macros.
Reputation:
you can try this one.
https://enxf.net/resources/highlight-content-per-usergroup.3654/
Reputation:
Thats not what I meant. I was asking about how his messages, trophies etc has a box around the postbits. I want something like that!
Reputation:
I understand now let me check.
Reputation:
Thank you would be amazing if you can help me with this!
Reputation: