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 11-04-2004, 05:28 PM
Lostnode Lostnode is offline
 
Join Date: Nov 2003
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Images in Members List - Custome User Profile Fields

Ok, I am a webmaster for a clan that has 2 divisions... CStrike CZ and America's Army. Now I have it set up so that I can select which division each memver is apart of, either CZ, AA or both. WHat I would like however is to have it replaced by Images in stead, I tried placing it in there as HTML, it didn't work, came up as Code. How else can I do this?
Reply With Quote
  #2  
Old 11-04-2004, 05:46 PM
Lostnode Lostnode is offline
 
Join Date: Nov 2003
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also, I would like to to show up not just on the Memberslist, but on Show Groups as well, and I cannot seem to do it cozmeticaly (via editing temoplates)
Reply With Quote
  #3  
Old 11-05-2004, 07:43 AM
Lostnode Lostnode is offline
 
Join Date: Nov 2003
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Someone point me in the right direction, please.
Reply With Quote
  #4  
Old 11-05-2004, 07:59 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*Untested*
  • Set this field to not show up on memberlist
  • Edit template MEMBERLIST, add a column for the image
  • Edit template memberlist_resultsbit as well and place the following code there where you want to have the image:
    HTML Code:
    <if condition="$userinfo['fieldx'] == 'AA'">
    <img src="aa.jpg" alt="Image for AA" />
    <else />
    <if condition="$userinfo['fieldx'] == 'CZ'">
    <img src="aa.jpg" alt="Image for CZ" />
    <else />
    <img src="both.jpg" alt="Image for Both" />
    </if>
    </if>
Reply With Quote
  #5  
Old 11-05-2004, 03:20 PM
Lostnode Lostnode is offline
 
Join Date: Nov 2003
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thx I will test this out as soon as I can.
Reply With Quote
  #6  
Old 11-06-2004, 01:38 AM
Lostnode Lostnode is offline
 
Join Date: Nov 2003
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, This is weird.... It actuly puts a number in field6, 1 for AA, 2 for CZ, 3 for Both...
But when I do the code above, nothing shows up, even if I put == "1", == "2", == "3"

Any more help?
Reply With Quote
  #7  
Old 11-06-2004, 03:19 AM
Lostnode Lostnode is offline
 
Join Date: Nov 2003
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What I have now is
HTML Code:
<if condition="$userinfo['field6'] == 2">
  <img src="/forums/afterdark/misc/aadiv.gif" alt="Americas Army" />
</if>
  <if condition="$userinfo['field6'] == 1">
  <img src="/forums/afterdark/misc/czdiv.gif" alt="Condition Zero" />
</if>
   <if condition="$userinfo['field6'] == 3">
   <img src="/forums/afterdark/misc/czdiv.gif" alt="Condition Zero" /><img src="/forums/afterdark/misc/aadiv.gif" alt="Americas Army" />
</if>
<if condition="$userinfo['field6'] == ''">
    &nbsp;
</if>
Note, the last line is two single quotes denoting a Blank

All I get is the Space (the last option)

Am I on the right track?
Reply With Quote
  #8  
Old 11-06-2004, 06:01 AM
Lostnode Lostnode is offline
 
Join Date: Nov 2003
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have even tried using
PHP Code:
$profilefield['value'
instead of
PHP Code:
$userinfo['field6'
which is has to display the info on the Members page, but that doesn't work wither... any ideas?
Reply With Quote
  #9  
Old 11-06-2004, 06:03 AM
Lostnode Lostnode is offline
 
Join Date: Nov 2003
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am trying to do this for the Show Groups list... I have desided to take it off the Members list as only a few will have it.
Reply With Quote
  #10  
Old 11-06-2004, 06:15 AM
Lostnode Lostnode is offline
 
Join Date: Nov 2003
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

CLose but no cigar
Ok, I am missing something... I usedd
PHP Code:
$bbuserinfo['field6'
and it replaced ALL the images with what ever I had in my field6.... So I am getting there, but do I need anything in the PHP file itself for the use of
PHP Code:
$userinfo['field6'
?? If so, what?

I thnka you all in advance for your time and patience...
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 06:46 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06834 seconds
  • Memory Usage 2,264KB
  • 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_html
  • (4)bbcode_php
  • (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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete