vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Adding A Usergroup Based Extra image To Profile (https://vborg.vbsupport.ru/showthread.php?t=235370)

metalguy639 02-09-2010 01:45 AM

Adding A Usergroup Based Extra image To Profile
 
I was able to add the extra image to the posts of each person in those usergroups (there are 3 usergroups that I'm working with), but the code to add it to the members profile page I cannot seem to find. Basically what I need is a code similar to this:

Code:

<if condition="is_member_of($post, 22)"><img src here...etc></if>
This code worked great for using in posts but since it has the $post variable it does not work in the members profile for obvious reasons. I need to know what code to use to get a particular picture to show in a members profile when they belong to a certain usergroup. I have 3 usergroups and each one has an extra picture for their group. Its kinda a second avatar. I do not need a rank nor do I want to do this through the rank system. I jsut need to know what if statement will work with a usergroup & show that image in their profile to everyone.

Thanks!

metalguy639 02-10-2010 02:24 AM

Anyone????

kh99 02-10-2010 10:47 PM

This is a guess, but did you try:

Code:

<if condition="is_member_of($bbuserinfo, 22)"><img src here...etc></if>

metalguy639 02-11-2010 12:29 PM

Quote:

Originally Posted by kh99 (Post 1979565)
This is a guess, but did you try:

Code:

<if condition="is_member_of($bbuserinfo, 22)"><img src here...etc></if>

Erm you did not read the post I said that did not work already.

kh99 02-11-2010 12:35 PM

Quote:

Originally Posted by metalguy639 (Post 1979949)
Erm you did not read the post I said that did not work already.

I did read your post. You said it didn't work because of the $post variable, what I posted doesn't use it. (ETA: in other words, try using $bbuserinfo in place of $post in the code you have).

Sorry if I still don't understand. Anyone else?


All times are GMT. The time now is 09:13 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.01049 seconds
  • Memory Usage 1,719KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete