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 02-24-2007, 01:23 PM
salata salata is offline
 
Join Date: Nov 2003
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default add image right beside usernames for specific usergroup that only staff can see

how can i add image right beside usernames for specific usergroup that only staff can see?
Reply With Quote
  #2  
Old 02-24-2007, 01:53 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<if condition="is_member_of($bbuserinfo, 6)">
your code here
</if>
Where 6 is the usergroup you want to show the image to. Edit either postbit or postbit_legacy or both.
Reply With Quote
  #3  
Old 02-24-2007, 02:09 PM
salata salata is offline
 
Join Date: Nov 2003
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i understand that is the code to let certain usergroups ( in this case staff) to view things, but how do i designate a image for only one usergroup?
Reply With Quote
  #4  
Old 02-24-2007, 02:37 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by salata View Post
i understand that is the code to let certain usergroups ( in this case staff) to view things, but how do i designate a image for only one usergroup?
Did you read what I posted? You put your image code inside that conditional and only that usergroup will see that image.
Reply With Quote
  #5  
Old 02-24-2007, 04:41 PM
salata salata is offline
 
Join Date: Nov 2003
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Smoothie View Post
Did you read what I posted? You put your image code inside that conditional and only that usergroup will see that image.
yes i did, but i wanted the image only on a specific group not all usergrouips
Reply With Quote
  #6  
Old 02-24-2007, 05:16 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by salata View Post
yes i did, but i wanted the image only on a specific group not all usergrouips
That is for a specific usergroup. Just change the number to the group you want. It's just an example.
Reply With Quote
  #7  
Old 02-24-2007, 09:58 PM
salata salata is offline
 
Join Date: Nov 2003
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for you help thus far, but what i wanted was if i had userid's 1-10, i wanted userid 3 to have the image only. Have the image, NOT view the image.

the code you wrote gives permission for one usergroup to view the image.

how do i place the image ON a specific ID, thats my question in addition to your answer.

how do i place it so that the image is set only one specific userid and not all ten.
Reply With Quote
  #8  
Old 02-26-2007, 01:25 AM
salata salata is offline
 
Join Date: Nov 2003
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by salata View Post
thanks for you help thus far, but what i wanted was if i had userid's 1-10, i wanted userid 3 to have the image only. Have the image, NOT view the image.

the code you wrote gives permission for one usergroup to view the image.

how do i place the image ON a specific ID, thats my question in addition to your answer.


how do i place it so that the image is set only one specific userid and not all ten.
bumnp
Reply With Quote
  #9  
Old 02-26-2007, 01:37 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Move your selected users to a new usergroup.......and then use the code I posted.

Quote:
Originally Posted by salata View Post
thanks for you help thus far, but what i wanted was if i had userid's 1-10, i wanted userid 3 to have the image only. Have the image, NOT view the image.

the code you wrote gives permission for one usergroup to view the image.

how do i place the image ON a specific ID, thats my question in addition to your answer.


how do i place it so that the image is set only one specific userid and not all ten.
The title of your thread and your request was for a usergroup, not a specific userid or group of id's
Reply With Quote
  #10  
Old 02-26-2007, 03:12 AM
darnoldy darnoldy is offline
 
Join Date: Dec 2004
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think this does what you want:
Code:
<if condition="is_member_of($bbuserinfo, 4,5,6) AND is_member_of($post, X)">
<!-- image goes here -->
</if>
replace X with the group number if the group you want to have images
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:46 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.05296 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
  • (2)bbcode_code
  • (5)bbcode_quote
  • (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