View Full Version : Image in the postbit for admin
Hamednet
08-29-2008, 01:26 PM
Hi Dears ,
show up Small image in postbit for only several special usergroups, besides User Rank
How do I do it?
Thanks in advance. https://vborg.vbsupport.ru/
Lynne
08-29-2008, 01:56 PM
You need to modify your postbit(_legacy) and put a condition in there where you want the image to be.
<if condition="is_member_of($bbuseinfo,5)">
image for admins
<else />
<if condition="is_member_of($bbuseinfo,6)">
image for supermods
<else />
<if condition="is_member_of($bbuseinfo,7)">
image for moderators
</if>
</if>
</if>
MoT3rror
08-30-2008, 03:37 AM
You need to modify your postbit(_legacy) and put a condition in there where you want the image to be.
<if condition="is_member_of($bbuseinfo,5)">
image for admins
<else />
<if condition="is_member_of($bbuseinfo,6)">
image for supermods
<else />
<if condition="is_member_of($bbuseinfo,7)">
image for moderators
</if>
</if>
</if>
I believe it is $post and not $bbuserinfo for the information of the user that made that post.
Opserty
08-30-2008, 08:31 AM
<if condition="is_member_of($post,5)">
image for admins
<else />
<if condition="is_member_of($post,6)">
image for supermods
<else />
<if condition="is_member_of($post,7)">
image for moderators
</if>
</if>
</if>
:p
wwolf27
08-30-2008, 09:00 AM
I have an image...where I do put it after I do the above postbit(_legacy) so the image will show on my board..SORRY!!! Thank you..I NEEDED THIS!!!
Lynne
08-30-2008, 03:55 PM
I believe it is $post and not $bbuserinfo for the information of the user that made that post.
Not only that, but I spelled bbuserinfo wrong! :erm:
I have an image...where I do put it after I do the above postbit(_legacy) so the image will show on my board..SORRY!!! Thank you..I NEEDED THIS!!!
Upload it to your site using ftp and note the path to wherever you put it cuz you will use that path when writing the <img> tag.
Dismounted
08-31-2008, 05:41 AM
Nested conditionals aren't really needed - just adds to the complexity.
<if condition="is_member_of($post,5)">
image for admins
</if>
<if condition="is_member_of($post,6)">
image for supermods
</if>
<if condition="is_member_of($post,7)">
image for moderators
</if>
Hamednet
08-31-2008, 10:13 AM
Thanks dears for your helps :)
wwolf27
09-02-2008, 12:42 PM
Thanks dears for your helps :)
AGREE!!! Thank you.
wwolf27
09-29-2008, 09:50 PM
I am having issues with this I guess you could say...I have the image I want to use...and I have the url to it but I am unsure of how to write "img" tags inorder for it to work can someone please show the newb how this is done
Lynne
09-29-2008, 11:21 PM
HTML IMG TAG (http://www.w3schools.com/tags/tag_IMG.asp)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.