Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
Font color administrators and users
Avatar
Aitor Ruiz Lorenzo
Member
Free Members
sp_UserOfflineSmall Offline
Jul 7, 2014 - 10:30 am

Hello again, I wonder if there is any way to force the administrators or moderators write in default color and normal users in another color. I don´t know if there is any function that can achieve this goal. Thanks in advance.

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jul 7, 2014 - 11:11 am

Sure you can actually do this with some simple CSS.

For example the Admin class will be used in the topic post section specific to their post, so when you inspect a post made by an Admin or Mod or whoever, you should see in the code, looking at spTopicPostSection:

     class="spTopicPostSection spEven spType-Admin spRank-admin

You can then create new entry in your theme such as:

     #spMainContainer .spRank-admin .spPostContent p {
         font-weight: bold;
         background: red;
     }

As an example, will make an Admin's text in a post appear with a bold text on a red background.

You can do this for any Group as long as you know what rule to include (in this case .spRank-admin) in the CSS

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626