The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#9
|
|||
|
|||
![]()
But I want it to be different colours depending on which user group
![]() --------------- Added [DATE]1330519221[/DATE] at [TIME]1330519221[/TIME] --------------- EDIT: I tried adding a new BG colour array and then adding a new line for group 5 but I got allot of errors :P Code:
if (!function_exists('postbit_bg_injection')) {function postbit_bg_injection($subject) { global $bg_injection; $bgcolorAdmin = "#D4AF37"; $bgcolorMod = "#17200d"; $search = array('<div class="postbody">'); $replace = array( '<div class="postbody"\'.((is_member_of($post,array(6)))?\' style="background-color:'.$bgcolorAdmin.'"\':\'\').\'>' '<div class="postbody"\'.((is_member_of($post,array(5)))?\' style="background-color:'.$bgcolorMod.'"\':\'\').\'>' ); $bg_injection = true; return str_replace($search,$replace,$subject); }} if (!$bg_injection) {$vbulletin->templatecache['postbit_legacy'] = postbit_bg_injection($vbulletin->templatecache['postbit_legacy']);} |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|