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

Reply
 
Thread Tools Display Modes
  #1  
Old 06-11-2012, 09:07 AM
Syxguns's Avatar
Syxguns Syxguns is offline
 
Join Date: Jul 2011
Posts: 280
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Rank Images?

To be honest I don't know what they would be called, but they are images that I created that I would like to post under the Username in the forum. I've been searching for a modification that allows this, because I've seen it on a lot of forums. I did a drawing as an example of what I'm talking about. Each image, "Admin, Musician, Guitar" I all want under my username in my forum. I have created a total of 19 different images for different users. Please tell me how I can go about doing this.

Thank you!
Attached Images
File Type: jpg Img_Ranks_List.jpg (37.9 KB, 0 views)
Reply With Quote
  #2  
Old 06-11-2012, 02:46 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

Are the Musician and Guitar and Admin tags given based on the usergroup a user is in? Or how do you decide who gets each image? If they are based on usergroup, you may just use ranks - https://www.vbulletin.com/docs/html/user_ranks
Reply With Quote
  #3  
Old 06-11-2012, 05:30 PM
Syxguns's Avatar
Syxguns Syxguns is offline
 
Join Date: Jul 2011
Posts: 280
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well as you can see I'm an Administrator, musician, and I play guitar. So I have 3 tags for that. Let's take another member:

Musician
VIP
Strings
Keys
percussion

I'm guessing from the manual, that I have to create custom group for each type of user and then create separate tags? For example usergroup: Musician may have 5 tags. Is what I'm wanting to do impossible?
Reply With Quote
  #4  
Old 06-11-2012, 11:14 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I was asking because if these were based on usergroups, then it is very easy to just use the ranks. Another option is to use the Custom Profile Fields and then based on their answers there, you would spit out an image.
Reply With Quote
  #5  
Old 06-12-2012, 12:11 AM
Syxguns's Avatar
Syxguns Syxguns is offline
 
Join Date: Jul 2011
Posts: 280
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Well, I was asking because if these were based on usergroups, then it is very easy to just use the ranks. Another option is to use the Custom Profile Fields and then based on their answers there, you would spit out an image.
Is there some instruction on setting this up? This would be perfect, if it will work.

Edit: I found some information in the manual, let me see if it will walk me through the process! Thanks Lynne! I still may need some help on adding the images though. I'll let you know.

--------------- Added [DATE]1339466702[/DATE] at [TIME]1339466702[/TIME] ---------------

Sorry Lynne! It is a great feature for the profiles, but I don't have the option to add multiple images that way. I will do a little more searching, and if I can't get any information then I may have to just use the basic rank images, and not have multiple images.
Reply With Quote
  #6  
Old 06-12-2012, 02:28 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what you would do is have a question like:

Check the instruments that you play:
- keyboard
- guitar
- drums
- bass
- etc

and then based on that answer, you would spit out an image for those they select. If you have PHP experience, then you'll be able to code the image results yourself. If not, it will be more difficult since I think the results are stored in a binary format (1 for the first option, 2 for the second, 4 for the third, etc). So, you need to take that result and break out what the actual answers were first before you spit out an image.
Reply With Quote
  #7  
Old 06-12-2012, 03:04 AM
Syxguns's Avatar
Syxguns Syxguns is offline
 
Join Date: Jul 2011
Posts: 280
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
what you would do is have a question like:

Check the instruments that you play:
- keyboard
- guitar
- drums
- bass
- etc

and then based on that answer, you would spit out an image for those they select. If you have PHP experience, then you'll be able to code the image results yourself. If not, it will be more difficult since I think the results are stored in a binary format (1 for the first option, 2 for the second, 4 for the third, etc). So, you need to take that result and break out what the actual answers were first before you spit out an image.
Okay, so you are saying that I would have to add the image with code (PHP) for that specif user ID correct? I did create the question as you suggested and set it so they could only select 2 of the options. I also created a question asking if they were a musician, but I did not add these to the registration yet. I don't have that much knowledge of PHP, so I would probably have a hard time doing it, but it's a project that I can place on the back burner for right now.

I'll probably create a signature area and change the different badges to be more like signatures which they may use instead of it being in their profile field. This would be a great modification to create! I say that because default badges can be done in the User Ranks area, but additional badges that you may want to assign for a particular member, you could use the modification to assign as many badges as you want. I may mention that in the coder area.
Reply With Quote
  #8  
Old 06-12-2012, 07:24 AM
Syxguns's Avatar
Syxguns Syxguns is offline
 
Join Date: Jul 2011
Posts: 280
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, it works! I may have to make a listing on this but tell me if I should or not!

Okay, so I was a little frustrated an trying to figure out how to make it work correctly when I decided to just go ahead and make a bunch of usergroups. I made one for each of my items that I wanted to list, and the only downfall is that it lists it doesn't seem to list it in order, but I will continue to work with it and see if I can figure that part out.

Anyway, because I have so many different badges, I decided to give it a whirl and it works. I'll post an image of it here. I've got two members in the pic for you to look at. I also can add more images, but I haven't had the time to test it out as far as permissions go yet. I'm sure it will be fine, but that is still up for debate!!
Attached Images
File Type: jpg Image_Ranks_working.jpg (49.8 KB, 0 views)
Reply With Quote
Благодарность от:
ProFifaLeagues
  #9  
Old 06-12-2012, 02:54 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice!
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 11:11 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.05474 seconds
  • Memory Usage 2,275KB
  • Queries Executed 14 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (1)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete