$theme(raw366,$nick($2,0,o),$nick($2,0,v),$nick($2,0,r),$nick($2,0,a))
is passed to the 'theme' alias, if you changed this to
$theme(raw366,$nick($2,0,o),$nick($2,0,h),$nick($2,0,v),$nick($2,0,u),$nick($2,0,r),$nick($2,0,a))
(i've made the assumption that a uop is set by the +u mode, and is the least significant prefix)
you would then have to change the 'raw366' section in the theme alias that you pasted so it would echo the extra paramaters (ops is $2, halfops is $3, voiced is $4, uop is $5, regular is $6, total is $7)
Hope that helps