With this trick, you can add a color to a specific group that appears at the top of posts
and You can also add photos to a specific group,
I know it's a common trick, but it was using JavaScript
Now you don't need to use JavaScript-jQuery
A trick I discovered that I wanted to share with you
- phpBB2:
Find the next part in viewtopic_body template
- Code:
<!-- BEGIN displayed -->
- Code:
<!-- BEGIN displayed -->
  <table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0" >
<div class="conan2000-flower">{postrow.displayed.POSTER_NAME}</div>
All versions
-------------
Find the next part in viewtopic_body template
- Code:
<!-- BEGIN displayed -->
replace it with
- Code:
Â
<!-- BEGIN displayed -->
<div class="conan2000-flower">{postrow.displayed.POSTER_NAME}</div>
Save and publish
Installing the CSS
Go to Administration Panel > Display > Colors > CSS stylesheet and paste the following rules in your stylesheet.
- Code:
.conan2000-flower [style="color:؟؟؟؟؟"] {
pointer-events: none;
cursor: default;
color: #0000 !important;
display: block;
background: ؟؟؟؟؟;
}
.conan2000-flower,.conan2000-flower strong {
pointer-events: none;
cursor: default;
color: #0000 !important;
}
.conan2000-flower {
pointer-events: none;
background: #bcc2c7;
color: #0000 !important;
}
CSS: An image of a specific group
- Code:
.conan2000-flower [style="color:?????"] strong {
  background: url(https://i.servimg.com/u/f73/11/60/75/36/admini10.png) no-repeat;
}
Last edited by كونان2000 on Tue 17 Sep - 5:34; edited 2 times in total