Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-06-2008, 08:46 PM
davida500 davida500 is offline
 
Join Date: May 2008
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 12-07-2008, 02:52 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #3  
Old 12-07-2008, 07:51 PM
davida500 davida500 is offline
 
Join Date: May 2008
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 12-07-2008, 10:39 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 12-08-2008, 12:13 PM
cono1717 cono1717 is offline
 
Join Date: Sep 2008
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 12-08-2008, 02:14 PM
davida500 davida500 is offline
 
Join Date: May 2008
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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.
Reply With Quote
  #7  
Old 12-08-2008, 02:20 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 12-08-2008, 02:30 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 12-08-2008, 04:19 PM
punchbowl punchbowl is offline
 
Join Date: Nov 2006
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 12-08-2008, 08:09 PM
davida500 davida500 is offline
 
Join Date: May 2008
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks very much, i must have confuse a few people in what i said lol..

Sorry, and thanks all
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:02 PM.


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.04013 seconds
  • Memory Usage 2,248KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete