PDA

View Full Version : Hiding a design element from a single user


static-skillz
09-17-2009, 07:14 AM
One of my staff members on my site is asking me if its possible for me to hide his post count and a few other things from all members of the forum, and I was wondering if I can use conditional templates?

I know you can use: <if condition="$vbulletin->userinfo['userid'] != 557"></if>; to hide the information from that user id, but would it be possible to hide an element for a single user, for all users?

Lynne
09-17-2009, 06:01 PM
This - <if condition="$vbulletin->userinfo['userid'] != 557"></if> - hides things only from userid 557 who is browing the board. It doesn't hide all of userid 557's stuff. If it's in the postbit, you'd use $post['userid'] instead of $vbulletin->userinfo['userid'] to hide all of userid 557's stuff from everyone. You'd also have to do something similar to the profile page since the post count is shown there also. Seems like a lot of effort for one user. (There is also a mod to allow users to decide what of there own stats to show to other users in the postbit. You can search for it.)