The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Usergroup Badge in memberinfo
I am looking for a simple plug that will add a usergroup badge in the member info template that is separate from the avatar and profile, etc.
For example, giving all VIP users a big badge that shows up in the memberinfo template using postbit_legacy. Thanks, Rich PS - I am sure I can write the conditionals and image code but I need help with the plug in part. i know I can probably use the ranks system but I am looking for something I can customize a bit more. |
#2
|
|||
|
|||
Is the plugin/mod for only 1 usergroup?
|
Благодарность от: | ||
RichieBoy67 |
#3
|
||||
|
||||
Good question, It would be good to be able to add more but I think I have to think on this a little more.
Thanks for reply |
Благодарность от: | ||
Black Snow |
#4
|
||||
|
||||
Richie, why not just add something like this to your template.
Code:
<vb:if condition="is_member_of($post, X)"><img src="PATH/TO/IMAGE.EXT" alt="$post[username] is VIP member" /></vb:if> |
#5
|
|||
|
|||
Quote:
Code:
<vb:if condition="is_member_of($bbuserinfo, X)"><img src="PATH/TO/IMAGE.EXT" alt="$post[username] is VIP member" /></vb:if> But, if you use either of them, will it not only be the person browsing the forum that will see/not see the badge because if someone is in the VIP group, and someone not VIP is browsing their page, they will not see the badge.... |
Благодарность от: | ||
RichieBoy67 |
#6
|
||||
|
||||
No, the way I wrote it, it will show up in the posters postbit if they are a member of X.
And any user looking at a post from anyone in X will see the image. So if I am a member of Y, and you are a member of X, when I look at one of your posts, I will see the image, as will you or anyone else. |
Благодарность от: | ||
Black Snow |
#7
|
||||
|
||||
Sorry, Have been busy.
Yeah, I already use the conditionals but was looking to do a plug in to make it easier for clients. I have a couple things intended that do not really work in the standard system such as placement and perhaps more variable for ranking badges but for now I am looking for mainly the plug in that will place the badges in the memberinfo template but for now just the plug in. I am trying to learn better how to do this with the plug in system. I really need to learn how to write these plug ins. I have a very hard time with getting them to work with custom themes. Thanks guys for the help and everything, Rich |
#8
|
||||
|
||||
By memberinfo you mean in the postbit correct?
|
#9
|
|||
|
|||
I think he means in the members profile in the "About me" section. Hence why I mentioned about using a different conditional the $post.
|
#10
|
||||
|
||||
Well in the op, he also mentions postbit_legacy, so that is why I asked for clarification.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|