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 08-19-2010, 01:40 AM
Ansaar Media Ansaar Media is offline
 
Join Date: May 2010
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Howe to set icon for staff member in the profilefields

Hi All,

I want to ask howe can i set a image for moderator's & staff? I want to set a little image icon for a staff member in the profilefields. Howe can i do that?

Thnx for helping.
Reply With Quote
  #2  
Old 08-19-2010, 12:11 PM
DataHero DataHero is offline
 
Join Date: Jun 2009
Location: NL
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You mean the rank image which appears at the top-right of the member profiles as well as in their posts? If so, go to your AdminCP and search for the "User Ranks" header. Everything you (probably) need is right there.
Reply With Quote
  #3  
Old 08-20-2010, 09:04 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

User Ranks usually just goes by post count, not going to help differentiate mods and admins and such.

There are two ways of doing this, the easy way which I'll explain, and the hard/right way which I will just give a nudge in the right direction for...

The easy way- display a small image next to someone's username if they are a mod (or admin, or supermod, or whatever)

Go to Admin CP -> Usergroups -> Usergroups Manager -> Edit Usergroup (Moderators)
Look for "Username HTML Markup" there are two boxes, one for 'opening' tags and the other for 'closing' tags... this is meant for code like <b> </b> or <i> </i> or font colors or other minor things... but you can use any HTML you want, including <img> tags... so in the closing box add your image tag, something like <img src="path/to/image.gif" border ="0" />

A couple things to remember- those boxes don't hold that many characters so if the file name or path to the image is too long or you add too much HTML vBulletin will simply cut off the extra characters and not give you a warning or error at all- they simply won't save them all and you'll get a broken tag... but if you can fit it in you'll be fine... I had images like this for a year and it worked fine.

Another thing to remember, the smaller the image the better because by default vB shows the username with the 'markup' in more places then just the piostbit... such as in the "who's online" section- they will have images next to their names their too. You could change this but that's another discussion.

So that is the 'easy' way... The 'right' way is to edit the postbit (or postbit_legacy) template and use a conditional statement saying basically IF the user is a member of Usergroup 5(moderators) then Display some image... You'd need to put a condition for each usergroup you want to show an image of... it's not terribly hard but it involved conditionals and template edits so you may want to go the 'easy' way if you can live with the limitations.
Reply With Quote
  #4  
Old 08-20-2010, 09:07 PM
soundbarrierpro soundbarrierpro is offline
 
Join Date: Nov 2007
Posts: 767
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=202523&highlight=cars" target="_blank">https://vborg.vbsupport.ru/showt...highlight=cars</a>
Reply With Quote
  #5  
Old 08-20-2010, 09:10 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by soundbarrierpro View Post
An add in for the garage system seems pretty useless to the original poster's question- did you link to the wrong mod maybe?
Reply With Quote
  #6  
Old 08-20-2010, 09:19 PM
soundbarrierpro soundbarrierpro is offline
 
Join Date: Nov 2007
Posts: 767
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I used it to show sports team logo's in post bit. The car part is just a name for the mod. You can use it to put any image in your post bit.
Reply With Quote
  #7  
Old 08-20-2010, 09:22 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by soundbarrierpro View Post
I used it to show sports team logo's in post bit. The car part is just a name for the mod. You can use it to put any image in your post bit.
But can he set an image for all moderators? Also do you need the garage mod for this to work>
Reply With Quote
  #8  
Old 08-20-2010, 09:24 PM
soundbarrierpro soundbarrierpro is offline
 
Join Date: Nov 2007
Posts: 767
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My bad. Wrong link

This is what I used.

https://vborg.vbsupport.ru/showthrea...hlight=postbit
Reply With Quote
  #9  
Old 08-24-2010, 01:21 AM
Ansaar Media Ansaar Media is offline
 
Join Date: May 2010
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thnx for helping.

What i mean is that i want to set a little image under gender in the profile fields for the Moderators a little icon only for moderators en administrators.

thnx
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 03:16 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.03724 seconds
  • Memory Usage 2,237KB
  • 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
  • (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
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (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
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete