by Ange Tuteur January 22nd 2014, 11:56 pm
Administration Panel > Modules > Javascript codes management > Create a new script
Title : what you wish
Placement : in all the pages
- Code:
jQuery(document).ready(function() {
jQuery('.post:has(.adminrang) .postmain').addClass('sp_rang');
});
Then CSS :
Display > Pictures and colors > Colors > CSS stylesheet
- Code:
.sp_rang {
background-image:url('http://2img.net/i/fa/optimisation_fdf/fr/bg_posttitle.png');
background-position:center;
background-repeat:no-repeat;
}
Then wrap this around your administration rank :
- Code:
<span class="adminrang"></span>
It should look :
- Code:
<span class="adminrang">ADMINISTRATOR</span>
For each new rank change that class and then update the script with it. For example :
- Code:
jQuery(document).ready(function() {
jQuery('.post:has(.adminrang) .postmain').addClass('sp_rang');
jQuery('.post:has(.memberrang) .postmain').addClass('mem_rang');
});
NOTE : You must give the rank to the members you want to have this background.