Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #11  
Old 01-24-2004, 02:29 AM
restless's Avatar
restless restless is offline
 
Join Date: Jan 2002
Location: Canada
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by princeton
use
<if condition="$bbuserinfo[field99]==1">$vbphrase[boy]</if>
<if condition="$bbuserinfo[field99]==2">$vbphrase[girl]</if>
<if condition="$bbuserinfo[field99]==3">$vbphrase[yes_please]</if>
i tried this, and everyone is listed as "boy".
Reply With Quote
  #12  
Old 01-25-2004, 07:29 PM
restless's Avatar
restless restless is offline
 
Join Date: Jan 2002
Location: Canada
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone?
Reply With Quote
  #13  
Old 01-25-2004, 08:15 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by restless
anyone?
not it should be post

$bbuserinfo == user currently browsering
$post == data posted into the postbit tempalte

use post
Reply With Quote
  #14  
Old 01-25-2004, 08:28 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As I said, it's stored in bitwise format So doing that wouldn't work anyways.
Reply With Quote
  #15  
Old 01-25-2004, 08:29 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gary W
As I said, it's stored in bitwise format So doing that wouldn't work anyways.
why wouldnt $post[fieldX] work?
Reply With Quote
  #16  
Old 01-25-2004, 09:26 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe you can use $userinfo; but since it's in the postbit you can probaly use $post; however, I cannot test it.

-----------------------------------
Not all custom profile fields work the same way (very confusing). In this case, it's saving the selected data in numerical values. It's much easier this way.

let's say you have 5 choices (mulitple selections)...
boy = 1
girl = 2
not sure = 4
again, not sure = 8

since, this is mulitple selection you may choose more than one; so, if you select boy/girl your value will now be a 3 and the numbers will change according to the selections you chooose. If you look closely you will see that there is a large combination of possibilities.

Now, to display the correct data for boy/girl (3) onto any page ... you will use a conditional such as
Code:
<if condition="$userinfo[field15]==3">$vbphrase[boy]$vbphrase[girl]</if>
If you select boy/not sure the data saved would be a 5
Code:
<if condition="$userinfo[field15]==5">$vbphrase[boy]$vbphrase[not_sure]</if>
If the member selects all choices the data saved would be a 15
Reply With Quote
  #17  
Old 01-25-2004, 09:29 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by princeton
I believe you can use $bbuserinfo; but since it's in the postbit you can probaly use $post; however, I cannot test it.

-----------------------------------
Not all custom profile fields work the same way (very confusing). In this case, it's saving the selected data in numerical values. It's much easier this way.

let's say you have 5 choices (mulitple selections)...
boy = 1
girl = 2
not sure = 4
again, not sure = 8

since, this is mulitple selection you may choose more than one; so, if you select boy/girl your value will now be a 3 and the numbers will change according to the selections you chooose. If you look closely you will see that there is a large combination of possibilities.

Now, to display the correct data for boy/girl (3) onto any page ... you will use a conditional such as
Code:
<if condition="$bbuserinfo[field15]==3">$vbphrase[boy]$vbphrase[girl]</if>
If you select boy/not sure the data saved would be a 5
Code:
<if condition="$bbuserinfo[field15]==5">$vbphrase[boy]$vbphrase[not_sure]</if>
If the member selects all choices the data saved would be a 15
i cant stress enuf to you guys that this will only show YOUR info

$bbuserinfo is a global that will display the current USERS info, not user for that post
Reply With Quote
  #18  
Old 01-25-2004, 09:33 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry, should be $userinfo ... that's what I get for cutting and pasting
Reply With Quote
  #19  
Old 01-25-2004, 11:18 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Faranth
why wouldnt $post[fieldX] work?
Because you have to decode the field first.
Reply With Quote
  #20  
Old 01-27-2004, 08:47 PM
restless's Avatar
restless restless is offline
 
Join Date: Jan 2002
Location: Canada
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is what i used.... and it works.

Code:
 <b>Sex:</b>
<if condition="$userinfo[field10]==0">maybe</if> 
<if condition="$userinfo[field10]==1">boy</if>
<if condition="$userinfo[field10]==2">girl</if>
<if condition="$userinfo[field10]==3">yes, please.</if>
Reply With Quote
Reply

Thread Tools
Display Modes

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 10:38 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.06808 seconds
  • Memory Usage 2,257KB
  • Queries Executed 11 (?)
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
  • (5)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
  • (2)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