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 09-02-2002, 05:43 AM
pank pank is offline
 
Join Date: Nov 2001
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default default value in register.php

I added a custom user profile field. What I need is for it to have a default value like the "http://" in the homepage area. Since this is a custom user profile field I can't find anywhere that I can set a default value for the input box when a user registers...

I have the "field5" added to the userfield table in the database with a set default value. Problem is when I do that it changes everyone's value in their edit profile. But when a new user signs up it just shows up blank when you go to edit profile...

The area on the register page is the

"Optional Information All information will be viewable by other team forum members."

area. So basically it would be like setting a default value for "biography". Not the one I want to have a default value but it's in the same area of custom user profile fields.

Thanks in advance...
Reply With Quote
  #2  
Old 09-02-2002, 07:23 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you can edit the field5 value in phpmyadmin and set a default value or you can just drop field5 and readd it using a default value... regards...

g-force2k2
Reply With Quote
  #3  
Old 09-02-2002, 01:57 PM
pank pank is offline
 
Join Date: Nov 2001
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually I'm using (I think) your avatar as link hack I have the default value set to { images folder}/no_img.gif But, I think what is happening is there is a field when a user signs up. The avatar field. For some reason it is blank and when the user signs up it shoots the blank field over and then it's blank in their edit profile.


I followed the instructions you wrote and it works like a charm, except when I get a new user. I'm using 2.26 by the way. Thanks in advance.
Reply With Quote
  #4  
Old 09-02-2002, 03:39 PM
pank pank is offline
 
Join Date: Nov 2001
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually I found a way around it. I just went into registeradult, removed the $customfields line.

Then just manually added in an area for the avatar with a default value of my default image path and a name of field5. The bio, occupation does not show up during registration but that's no biggie. It still shows up in Edit Profile. And now when a user signs up it will shoot over the field5 entry and no more broken images as avatars.

Thanks again. If you have a better solution let me know but this one seems to work for now. Thanks again...

** edited **
Hmmm, just found the profilefield in the database with field 5. I think the problem is that there is no default value set in that area. I'm a MySql newb pretty much. Is there a way to just give field 5 a "default" value. That way it should fix the problem without having to hack the templates like I did
Reply With Quote
  #5  
Old 08-17-2005, 07:34 PM
Khashyar Khashyar is offline
 
Join Date: Jan 2003
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi guys...

I am wondering the same thing... how do you set a default value for a custom user profile field?

Thanks,

Khashyar
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 02:24 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.03579 seconds
  • Memory Usage 2,192KB
  • 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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete