- Joined
- Jun 24, 2019
- Messages
- 141
- Points
- 53
Reputation:
@Zer01ne @Kenpachi @thomsa @Cwadel
Step1:
Create a new template , for example post_highlight
put this code inside the template:
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
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:
<div class="message-inner">
with
<div class="message-inner <xf:include template="post_highlight"/> ">
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 */
}
Last edited:
- Joined
- Sep 10, 2021
- Messages
- 66
- Points
- 28
Reputation:
- By Sagex
@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 */ }
<div class="message-inner <xf:include template="post_highlight"/> ">
Might be a little bit broken
↑View previous replies…
SagexIn 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
XenFrodojust modify inside on innder
take note just add a border do not remove the existing style code on message-inner class
Snister2i try it later thank you for the fast answer. i let you guys know how it goes
- Joined
- Dec 28, 2023
- Messages
- 119
- Points
- 28
Reputation:
- By XenFrodo
The code -
<div class="message-inner <xf:include template="post_highlight"/> ">
Might be a little bit broken
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
Last edited:
- Joined
- Jan 6, 2023
- Messages
- 50
- Points
- 18
Reputation:
- By Snister2
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
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
- Joined
- Dec 28, 2023
- Messages
- 119
- Points
- 28
Reputation:
- By XenFrodo
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