2016-01-22, 07:52 AM
Hey guys,
Been absolutely loving working with MyBB, ran into a bit of a roadblock that I'd love some input on from the community!
So, I'm attempting to make threads started by a particular usergroup highlighted in the thread list for forums, for example let's say I have a usergroup "Pro", all threads started by Pro users should have a background color that I define via CSS in the main threads listing.
I've already worked out how to do this with posts (using a {$usergroup['gid]} variable on the div's class) however that variable doesn't appear to be allowed in the forumdisplay_threads template, and I can't seem to find a variable that is allowed for that template.
I'm not entirely sure if I should go the "allow php execution in templates" route, or hard-code a variable that retrieves a thread author's usergroup and is allowed in the threads template. (Or?) perhaps change the $usergroup conditional to allow use in the thread template (I'm not entirely sure where the definitions are located).
Any input would be appreciated!
Been absolutely loving working with MyBB, ran into a bit of a roadblock that I'd love some input on from the community!
So, I'm attempting to make threads started by a particular usergroup highlighted in the thread list for forums, for example let's say I have a usergroup "Pro", all threads started by Pro users should have a background color that I define via CSS in the main threads listing.
I've already worked out how to do this with posts (using a {$usergroup['gid]} variable on the div's class) however that variable doesn't appear to be allowed in the forumdisplay_threads template, and I can't seem to find a variable that is allowed for that template.
I'm not entirely sure if I should go the "allow php execution in templates" route, or hard-code a variable that retrieves a thread author's usergroup and is allowed in the threads template. (Or?) perhaps change the $usergroup conditional to allow use in the thread template (I'm not entirely sure where the definitions are located).
Any input would be appreciated!