Go to forums -> font -> index -> index .
Find:
<li data-categoryID='{$category->_id}' class='cForumRow ipsBox ipsSpacer_bottom ipsResponsive_pull'>
Change to:
{{if $category->_id == 1 && !\IPS\Member::loggedIn()->inGroup( array(4, 2) )}}
<div class="ipsFlex ipsFlex-jc:center ipsFlex-ai:center ipsFlex-fd:column cForumRow_premium">
<h2> Premium department </h2>
<p> Get premium here </p>
</div>
{{endif}}
$ category -> _ id - stands for the category ID.
! \ IPS \ Member :: loggedIn () -> inGroup (array ( 4, 2 )) - means groups that have access to the category
Paste CSS code:
.cForumList li[data-categoryid="1"].cForumRow {
position: relative;
}
.cForumRow_premium {
background-color: rgba(0, 0, 0, 0.5);
z-index: 1;
position: absolute;
width: 100%;
height: 100%;
line-height: 0;
font-size: 30px;
color: #fff;
}
[data-categoryid = "1"] - means the category ID