Post background color depending on usergroup [TUTORIAL] - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Resources (https://community.mybb.com/forum-8.html) +--- Forum: Tutorials (https://community.mybb.com/forum-38.html) +--- Thread: Post background color depending on usergroup [TUTORIAL] (/thread-133914.html) |
Post background color depending on usergroup [TUTORIAL] - Eskii - 2013-02-02 My last tutorial was a little long. So this one will be short! Steps in simple: ACP > Templates & Style > Themes > Add code > Templates > Add code Easy in theory? Yes. Good.. OK now here is the long steps.... ACP > Templates & Style > Themes Now choose the theme you are currently using. Click "options" Then "edit theme" Now click on "showthread.css" Add this to the VERY bottom of that: Let's review this code before we move on, so that way it makes sense.".usergroup4" That little 4 number is the GID, that be found very easily, but I will not explain that. Change that number, to the GID of the group you want to color. Don't mind the "color: white;" The "background-color: red;" is the color of the post background. This can be used like "red" or HEX codes such as "#FF0000" The "background-image: none;" is the URL of a background image you want to use. Now lets move to the next step: Go to templates > Choose the theme you choose before Click "Options" Click "Expand Templates" Now here is where it gets confusing. There should be a big list of words. Find the one that says "Post bit templates" easily by hitting "CTRL+F" and typing "Post bit templates" Now click on "Post bit" Click on the first link called "Postbit" Replace the current code with this: I hope this helps you, and I will help you with any problems you have (hopefully)NOTE!!!!!! I DID NOT CREATE THIS CODE!!! ALL CREDIT GOES TO LEEFISH, THE ONLY THING I DID WAS ADVERTISE IT!!!! By the way: forget the short. RE: Post background color depending on usergroup [TUTORIAL] - alv4 - 2013-02-03 Looks curious RE: Post background color depending on usergroup [TUTORIAL] - Leefish - 2013-02-03 It is quite short Thank you for the credit. RE: Post background color depending on usergroup [TUTORIAL] - Gangsteris - 2013-02-07 any screen what is it and how does it look? RE: Post background color depending on usergroup [TUTORIAL] - AnaaR_Ka_JuiCe - 2013-04-26 Dear i have done what ever is written in your post but even then i am having same image in my posts as old one. I mean this thing did not work for me. here is the link to my forum http://www.youthsden.com 1 more query. Will this thing edit all posts made by that user group or will it just edit new posts which you make after editing ?? |