vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Add required user profile fields only viewable by admins (https://vborg.vbsupport.ru/showthread.php?t=38757)

Wow 05-18-2002 01:38 AM

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.

scsa20 05-18-2002 04:36 AM

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 ;)

tubedogg 05-18-2002 04:49 AM

Actually go to User Profile Fields, but the rest is correct.

scsa20 05-18-2002 05:36 AM

oh, your right, probley copyed the wrong one :rolleyes:

Wow 05-18-2002 02:16 PM

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?

Chris M 05-18-2002 07:47 PM

Wherever you want it to appear!

Satan

scsa20 05-18-2002 08:25 PM

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#] ;)

Chris M 05-18-2002 09:16 PM

Lol...

I thought I noticed that mistake...

Satan

Wow 05-19-2002 02:41 AM

$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.

E 05-19-2002 07:23 AM

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

Wow 05-21-2002 12:03 AM

The input fields are not showing up on the registration form. Any ideas?


All times are GMT. The time now is 01:25 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.01100 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)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