Log in

View Full Version : Hide postcount/joindate in postbit for certain usergroups


tobias_t
05-06-2008, 02:16 PM
Hi all,

How do I need to change the postbit so that it does not display postcount and joindate for selected usergroup IDs?

Thanks, Tobias

Dismounted
05-07-2008, 07:06 AM
<if condition="!is_member_of($vbulletin->userinfo, X, Y, Z)">CODE</if>
Find (in postbit/postbit_legacy) the code that displays the postcount/join date and wrap the above code around it.

tobias_t
05-07-2008, 07:59 AM
Thanks! However, I just realized that my original post was not clear enough, because I am actually looking for something the other way around.

I want to not display the postcount and joindate of selected usergroups, so that for example the postcount of moderators is never visible.

Would that only be a minor change of the code above?

Dismounted
05-07-2008, 09:22 AM
That is the code ;). I did understand you the first time around.

tobias_t
05-07-2008, 09:28 AM
Well, I tried it out before I replied, and the condition definitely relates to the usergroup of the person viewing the forum, not to the user whose postbit you are looking at... so I am definitely not there yet :confused:

Dismounted
05-07-2008, 10:04 AM
Whoops, something I overlooked. Sorry.
<if condition="!is_member_of($post, X, Y, Z)">CODE</if>

tobias_t
05-07-2008, 10:30 AM
Excellent... thanks so much! :)