vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   add image right beside usernames for specific usergroup that only staff can see (https://vborg.vbsupport.ru/showthread.php?t=140334)

salata 02-24-2007 01:23 PM

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?

Smoothie 02-24-2007 01:53 PM

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.

salata 02-24-2007 02:09 PM

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?

Smoothie 02-24-2007 02:37 PM

Quote:

Originally Posted by salata (Post 1189719)
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.

salata 02-24-2007 04:41 PM

Quote:

Originally Posted by Smoothie (Post 1189731)
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

Smoothie 02-24-2007 05:16 PM

Quote:

Originally Posted by salata (Post 1189815)
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.

salata 02-24-2007 09:58 PM

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.

salata 02-26-2007 01:25 AM

Quote:

Originally Posted by salata (Post 1189997)
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

Smoothie 02-26-2007 01:37 AM

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

Quote:

Originally Posted by salata (Post 1189997)
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:rolleyes:

darnoldy 02-26-2007 03:12 AM

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


All times are GMT. The time now is 05: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.01126 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (5)bbcode_quote_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