Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-18-2002, 01:38 AM
Wow Wow is offline
 
Join Date: Apr 2002
Location: Texas
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Add required user profile fields only viewable by admins

I would like to add three required user profile fields and have them only viewable by admins. (vB version 2.2.3.)

I would also like the three additional required fields to be displayed directly below the username field on the registration form.

I would really appreciate any help anyone can give me. I am a neophyte. Thanks.
Reply With Quote
  #2  
Old 05-18-2002, 04:36 AM
scsa20's Avatar
scsa20 scsa20 is offline
 
Join Date: Mar 2002
Location: Mars
Posts: 458
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know what vB 2.2.3 is like but it's probly the same as 2.2.5...anyways, go to User Profile Fields and click Add. Fill it out and when you get to Field required?, check Yes and that field well be required, now to hide it, look for Field hidden on Profile? (should be right below the field required one) and click Yes (that'll hide it on the profile ). to add something from the field, you have to find out the field id is then go into your postbit template and add $post[field#] (remember to replace # with the field ID Number (which can be found when you put your mouse over the edit button for editing the field, look at the status bar and you should see something like fieldid=# ) ) hope this helps
Reply With Quote
  #3  
Old 05-18-2002, 04:49 AM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually go to User Profile Fields, but the rest is correct.
Reply With Quote
  #4  
Old 05-18-2002, 05:36 AM
scsa20's Avatar
scsa20 scsa20 is offline
 
Join Date: Mar 2002
Location: Mars
Posts: 458
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh, your right, probley copyed the wrong one
Reply With Quote
  #5  
Old 05-18-2002, 02:16 PM
Wow Wow is offline
 
Join Date: Apr 2002
Location: Texas
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your help. I?ve got it right up to adding $post[profilefield=#] in the postbit template. Where do I add it on the template?
Reply With Quote
  #6  
Old 05-18-2002, 07:47 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wherever you want it to appear!

Satan
Reply With Quote
  #7  
Old 05-18-2002, 08:25 PM
scsa20's Avatar
scsa20 scsa20 is offline
 
Join Date: Mar 2002
Location: Mars
Posts: 458
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Wow
Thanks for your help. I?ve got it right up to adding $post[profilefield=#] in the postbit template. Where do I add it on the template?
lol, it's not $post[profilefield=#] it's $post[field#]
Reply With Quote
  #8  
Old 05-18-2002, 09:16 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lol...

I thought I noticed that mistake...

Satan
Reply With Quote
  #9  
Old 05-19-2002, 02:41 AM
Wow Wow is offline
 
Join Date: Apr 2002
Location: Texas
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

$post[field#] Thanks.

I added the user profile field. Field required? Yes. Field hidden on profile? Yes. Field Editable by the user? No. But nothing appears on the registration form. How do I get the input field to show up on the registration form? I would like it to be a required input like username, password and email. I looked at the registeradult template but can?t figure it out.

I would like the input field to only be viewable on the registration form when the user registers. After that only admins can see the data with the cp.
Reply With Quote
  #10  
Old 05-19-2002, 07:23 AM
E's Avatar
E E is offline
 
Join Date: Mar 2002
Location: Fieldale Virginia
Posts: 421
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yea.. u dont need to edit any template.. when someone registered they'll be forced too fill it in.. and in ur admin cp.. click users - find type there name and scroll down to the bottom too see what they got.. no need for a template edit
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 07:37 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.04596 seconds
  • Memory Usage 2,251KB
  • 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
  • (1)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