Kit the Human 757 Share Posted September 12, 2018 Was there a variable that made your life easier? A clever exploit of myBB's features? A feature that you didn't know existed, but you found it and huzzah! It helped. 1 PSI: an Occult Investigations RP Roleplay Architects: Grab a friend (or many friends!) and just write. You can also find me at: Link to comment Share on other sites More sharing options...
Seneca 16 Share Posted September 12, 2018 I love customizing postbit stuff so it's coloured according to each member's usergroup. I used to do it in a really clunky McGuiver-esque way by sticking the {$post['usertitle']} variable into an element class name. It corresponded to a bunch of classes I had in my css like; .text_Member {color: red;} .background_Member {background: red;} etc But now I've learned about the magic of {$usergroup['gid']}. It's less work and much more flexible. Link to comment Share on other sites More sharing options...
Kit the Human 757 Author Share Posted September 13, 2018 ID variables are a godsend, I swear. My favourite trick with them though was (to save myself rewriting the same code) is thus: class="miniprofile group{$usergroup['gid']}" So, you can do all your applicable to all groups with .miniprofile For the stuff you want to be unique to each group? .miniprofile.groupX Beats copy pasta all the time! (I don't know why, but you can't start a class with a number, so you have to add a word or letter in front of the variable.) PSI: an Occult Investigations RP Roleplay Architects: Grab a friend (or many friends!) and just write. You can also find me at: Link to comment Share on other sites More sharing options...
Seneca 16 Share Posted September 13, 2018 ^this is brilliant. You're my new hero. Link to comment Share on other sites More sharing options...
Admin Morrigan 1,825 Admin Share Posted September 13, 2018 @Kit the Human most variables in all things don't like numbers first. Code just doesn't like it. You'll find the same issue in PHP too. Profile set made by myself and original Artwork by Fae Merriman, my daughter. Link to comment Share on other sites More sharing options...
c.widow 123 Share Posted September 20, 2018 I recently pieced together a code to allow members to change their own usergroup (of course to the specific group set for that link), less work for the staff and users don’t have to wait for staff to get the time to update the usergroup. Link to comment Share on other sites More sharing options...
Recommended Posts