View Full Version : Donator Image in Postbit....
davida500
12-06-2008, 08:46 PM
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.
Lynne
12-07-2008, 02:52 AM
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:
<if condition="$post['fieldy']=='Yes' AND is_member_of($post, x)">
image for donators
</if>
davida500
12-07-2008, 07:51 PM
So could i have this too, if i wanted.....
<if condition="$post['fieldy']=='Yes'
image for donators
</if>
I really dont know anything lol :P But i hope i can do this.
Thanks.
David.
Lynne
12-07-2008, 10:39 PM
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.
cono1717
12-08-2008, 12:13 PM
I think you should include the AND is_member_of this way only people that are members of the donator group can have the image.
davida500
12-08-2008, 02:14 PM
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. :)
SEOvB
12-08-2008, 02:20 PM
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.
Lynne
12-08-2008, 02:30 PM
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.
punchbowl
12-08-2008, 04:19 PM
Actually inadvertently helped me anyway this thread! So thanks.
<if condition="is_member_of($post, 29) AND is_member_of($bbuserinfo, 6)"></br>vip</if>
I have this in the postbit to show me(admin group 6) if someone is vip(donator group 29) or not.
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.
davida500
12-08-2008, 08:09 PM
Thanks very much, i must have confuse a few people in what i said lol..
Sorry, and thanks all :)
fattony69
12-11-2008, 03:25 PM
I have been looking for this. When I get back from work, I am going to try the code out and post the results!
fattony69
12-20-2008, 07:19 PM
I found this on another thread after doing some snooping!
<if condition="is_member_of($post, insert usergroup id here)"><a href="insert donate link here"><img src="insert donator image here" alt="Your site's Premium Member" border="0" /></a>
</if>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.