vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Add user profiles and update all to YES ??? (https://vborg.vbsupport.ru/showthread.php?t=272428)

Scalemotorcars 10-20-2011 03:45 PM

Add user profiles and update all to YES ???
 
I looked around and didn't really see the answer so sorry if its been covered.

What Im trying to do is add a profile field that's either yes or no. Ive added the field using the Single-Selection Radio Buttons and with the first option as default.

No problem but when I check my users profiles it doesn't show either of the options as default.

How can I set all my members to have the first (yes) option set to default?

Thanks.

Lynne 10-20-2011 04:18 PM

When you first created the field, did you set a default of Yes? If you did not, and you changed it to be that way later, then it will not change what you had initial set for the users - it will only change it for future registered users. You would need to manually alter your database. Once the field is created for the users, it will stay as created in the database.

Scalemotorcars 10-20-2011 04:32 PM

Thanks Lynne

I went ahead and just created a new one since its only 2 days old and set the first option as default. Then checked a random profile and still neither option is ticked.

So if its a Yes or No option and Yes is on the first line its still set as Yes in the database regardless of what it says in the profile. Or did I miss something again.

Lynne 10-20-2011 04:43 PM

So when you created it, you had for the first line in Options, "Yes" (and second line is "No" - no quotes) and the you had Set Default (radio button) set to Yes also? Field Editable by User is Yes? Perhaps post a screen cap of your settings.

kh99 10-20-2011 04:47 PM

It is kind of strange...seems if you create a single-selection radio button field with Yes and No options, and select 'Yes" to the default, the field will still have no value in the database (and on the user profile page in the adminCP) until the user edits their settings. The field does show the default selected when the user visits the profile page, but it won't actually have a value until the settings are saved.

Scalemotorcars 10-20-2011 04:55 PM

1 Attachment(s)
Screen shot.

Lynne 10-20-2011 05:04 PM

And you have Display Page set to be Edit Profile? I did this same thing on my site and it is showing Yes for the users on the Profile Page.

Scalemotorcars 10-20-2011 05:22 PM

Yes its on the Edit Profile page.

If I open my profile it simply says N/A with the option it edit it manually. In my profile in the CP neither are ticked.

I just tried to rebuild broken user profiles and no change to anyone's profile.

Lynne 10-20-2011 05:29 PM

I suppose you can just alter the database to have Yes set as default.

Scalemotorcars 10-20-2011 05:34 PM

I can run a query from the CP but I have no ideal what to use.

And did I say thank you yet?

Lynne your the best !!!

https://vborg.vbsupport.ru/external/2011/10/25.jpg


All times are GMT. The time now is 08:30 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.01019 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete