![]() |
Donator Image in Postbit....
I remember when i used to mod a Forum using Vbulletin once, they had Donator pictures in the post bits. When people Donated, all they had to do was to go to the Admin CP and go to the user editor, and choose "yes" for donator that made the image appear.
I know that this was done by making a User Profile Field, which i have done called "Donator" with the options of yes and no. I know that there was something in the post bit were they wanted the image to appear, and it used the <if> command in it. So basically if yes is selected as a user profile field as a DONATOR, then the image would appear. I dont know ANY code and therefore i dont know the code to put into the postbit, or where to put it... I am sure that someone will have done something similar to this in the past so if you could help me with this it would be much appreciated! Thanks. David. |
It sounds like if you put them in their own usergroup if they have donated (usergroup x), and then they select yes in the profilefield (fieldy with Yes as a possible answer), you can have a condition something like:
HTML Code:
<if condition="$post['fieldy']=='Yes' AND is_member_of($post, x)"> |
So could i have this too, if i wanted.....
Code:
<if condition="$post['fieldy']=='Yes' Thanks. David. |
Yes, you could, except you forgot the ending "> for the if statement. That will allow anyone though to have a donor image if they want one. First you need to create the Profile Field for this and not the field number (fieldy) in order to do so.
|
I think you should include the
Code:
AND is_member_of |
Ok, if i tell you exactly what i want, maybe someone can tell me again, i got a little confused earlier and i think i could have explained it better lol :D
Basically, if someone is in a certain usergroup, say its called Donator.... If i selected this as a Additional Usergroup, i want them to automatically have an image put below their name in the postbit. Can someone tell me what code/template i would need to edit, as well as the code i would need? Thanks. David. :) |
You dont need any code or template edits.
You need to add a rank for the usergroup under AdminCP -> Usergroup Ranks. Add the donator image, and select the "Donator" usergroup as the ones who get it. |
As FRDS said, you can do this with Ranks. In your first post, I thought you wanted something different, but in post #6, your description fits the use of Ranks perfectly.
|
Actually inadvertently helped me anyway this thread! So thanks.
Code:
<if condition="is_member_of($post, 29) AND is_member_of($bbuserinfo, 6)"></br>vip</if> Helps me a lot. We have a thing where we're trying not to make donating a badge of honour but it's still handy for me. Just posting for reference. |
Thanks very much, i must have confuse a few people in what i said lol..
Sorry, and thanks all :) |
All times are GMT. The time now is 01:03 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|