vBulletin

Thank you for visiting. This is our website archive. Please visit our main website by clicking the banner above.
vBulletin FAQ is dedicated to helping the forum owner build, manage and profit from his vBulletin Forum
vBulletin Web Hosting - Free skins and styles for your vBulletin - Search Engine Optimization




Question about displaying things for certain users

sharkus
08-08-2007, 10:12 AM
Hello all,

I've got the following custom code in my postbit_legacy template


<if condition="is_member_of($post, 6)">
<div align="center">
<br />
<img src="images/badges/AMAdmin-Large.png" alt="$post[username] is an Administrator" />
<img src="images/badges/AMAS-Large.png" alt="$post[username] is an Active Sponsor" />
<img src="images/badges/AMMO-Large.png" alt="$post[username] is a Men Only Forum user" />
</div>
<else />
<br />
<if condition="is_member_of($post, 10)"><center><img src="images/badges/AMAS-Large.png" alt="$post[username] is an Active Sponsor" /></center></if>

<if condition="is_member_of($post, 14)"><center><img src="images/badges/AMOA-Large.png" alt="$post[username] is an Official Advertiser" /></center></if>

<if condition="is_member_of($post, 11)"><center><img src="images/badges/AMMO-Large.png" alt="$post[username] is a Men Only Forum user" /></center></if>

<if condition="is_member_of($post, 12)"><center><img src="images/badges/AMWO-Large.png" alt="$post[username] is a Women Only Forum user" /></center></if>
</if>


It will display a specific image depending on your group membership, in the postbit, which is rather nice.

At present admin users have two accounts. One of them is an Admin account (so, as the code shows, they get all the badges displayed) in other words, primary group is Adminitrator. The second account is a normal account, eg, primary group is Registered Users (so they will only see badges if their additional group matches one mentioned in the code).
The idea behind this two account thing is so that you can talk to users with your normal account and they don't feel they have to restrain themselves as you're an admin user, but when you need to do admin things you can use your admin account. So it's giving a little anonymity.

I'm one of these admin users, so if I need to do admin like tasks, I need to logout, login as another account, and do whatever it is, then switch back to my normal account. This is a tad tedious to say the least.
I could simply make my normal account an admin account, the problem with that, and this is the reason for the post, is that my user would then display all of the badges, so everyone would see I'm an admin user, which is not what I want.

Is there a way to change the code so that will not display all of the badges (as Admin users will be members of all groups) for specific users if they are in the Administrators group?

Thanks for any info :)


vBulletin

seo book

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum