vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Donator Image in Postbit.... (https://vborg.vbsupport.ru/showthread.php?t=198182)

davida500 12-06-2008 08:46 PM

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.

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:
HTML Code:

<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.....

Code:

<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
Code:

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.

Code:

<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 :)


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
  • Page Generation 0.01007 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete