Version: 1.00, by private_ale
Developer Last Online: Nov 2023
Category: Miscellaneous Hacks -
Version: 3.7.x
Rating:
Released: 01-24-2009
Last Update: Never
Installs: 21
Template Edits
Re-useable Code Code Changes Additional Files
No support by the author.
Simple Staff Shield
<:-----------------------:>
Make your staff stand out!
Simple Staff Shield adds a small 16x16 golden shield to your staff's postbit.
Simple Staff Shield helps bring authority to you and your staff like a shield does to a real life police officer!
<if condition="is_member_of($post, 5) OR is_member_of($post, 6)"><img class="inlineimg" src="images/icons/shield.png" alt="User is a ##YOUR FORUM## Moderator" border="0" /> </if>
Additional Instructions:
Upload the "shield.png" icon to your images/icons folder
Change ##YOUR FORUM## to your forum's name. (only one instance per postbit)
FAQ's:
How can I add/remove groups that this gets assigned to?
In:
Code:
<if condition="is_member_of($post, 5) OR is_member_of($post, 6)">
add or remove the
Code:
OR is_member_of($post, X)
where X is the usergroup number.
Things to Note:
The current usergroups this is assigned to are 5 and 6 which are Super Moderators and Administrators. You can add or remove usergroups with the instructions above.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I played around with this idea and decided to use several icons for various functions/features and to place them all in a box below the avatar. Here's the code, where the icons are all from the famfamfam silk collection and the usergroup numbers may differ from yours. I also have a "postinfo" class to box the icons and I've moved a lot of the default or additional postbit information into the icons area, such as my photoplog images, blogs, staff page and subscriptions. Hopefully it makes sense.
Does this show up next to their user name on the index page as well? That is what I am looking to do so that I can distinguish the difference between these folks who are in a different user group.
Does this show up next to their user name on the index page as well? That is what I am looking to do so that I can distinguish the difference between these folks who are in a different user group.
Thanks
K-bar
No, just in the postbit.
I suppose what you could do for what you want is to simple paste
Code:
<img class="inlineimg" src="images/icons/shield.png" alt="User is a ##YOUR FORUM## Moderator" border="0" />
into the second box of the "HTML Usergroup markup" in the ACP > Usergroup manager
O have done this, but where do I get the image at? It is not attached, and I see a few posts that shows attached images, but I cant do anything with them....
O have done this, but where do I get the image at? It is not attached, and I see a few posts that shows attached images, but I cant do anything with them....
right click and save the image to your pc, then upload to the directory you want them in...
created new usergroup (id:19), added some users to that group, as their secondary group but the shield (shield_c.png is not showing, except for the users in group 6 & 7 it does show both shields..)
created new usergroup (id:19), added some users to that group, as their secondary group but the shield (shield_c.png is not showing, except for the users in group 6 & 7 it does show both shields..)
what's wrong with my code ?
take this part of the code OR is_member_of($post, 7) and copy it and paste it right next to it, and then change the 7 to 19 and it will work.