vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Add a select field to the profile (https://vborg.vbsupport.ru/showthread.php?t=21833)

Mutt 07-02-2001 10:00 PM

Hey there

I'm still trying to learn all of this and damn this is cool ****. Anyway, I installed the gender hack and was going to use it to install another profile select box. Then I saw the very cool CP tool for adding a field to the profile. It currently only allows you to add a input box. I decieded to modify it so I could add my select box from there. It wasn't very hard and the hack is pretty short.


Here it is in a nutshell
I added a textarea field to the add/edit profile field
if you want the new field to be a dropdown, you enter the dropdown values. each line represents a new option tag.

Ex. you want a new field called "sex" that is a drop down with
the choices male,female, and other.

Make the new field as usual.
Set Field Length. (1 would be a standard dropdown)
Set Maximum Input (I'd leave it at 250)
In the Select Box Items text area type

Male
Female
Other

each on it's own line.


UPDATED for v224 with vbHacker
Click thru for the updated version

Mutt 07-04-2001 03:05 PM

would anyone want the ability to add radio yes/no fields as well? I don't need em right now, but I gotta beileve I will sooner or later

Big Up to the VB guys for making it possible to add profile fields from the Admin CP. I dig it!

Jonathan@Refresh 07-04-2001 03:13 PM

This looks an excellent hack!

Radio buttons would also be very useful.

Has anyone installed it?

Ruth 07-06-2001 02:23 AM

great hack, radio buttons anyone?

RobAC 07-06-2001 12:40 PM

Radio buttons would be great!

BradC 07-06-2001 01:24 PM

If no one gets around to making radio buttons I will for ya :)

Not much of a change of code really...

but I can't do it off the top of my head at work lol..

I usually on use drop downs.. cause they work for some of the stuff I have been doing lately :)

RobAC... pm if you want me to change the custom hack to radio buttons instead of drop downs :)

Ruth 07-06-2001 05:52 PM

BreadC, we need both drop down and radio buttons :D

thanks

Mutt 07-10-2001 02:43 AM

I updated the directions to add radio buttons over the weekend, but couldn't get on the site to post em. I'll post it after work tomorrow. I orgiginally just made then standard Yes No radio buttons, but started to change it so they could have any value and you could have more than 2. will post it asap.

Ruth 07-13-2001 04:55 PM

Mutt please post them as soon as you can....can't wait longer :D

thanks

Mutt 07-15-2001 04:02 PM

I'll try and finish it up today. I though of a nicer way to do it and would like to make it clean before posting. busy working on the vb code buttons today but I'm sure I'll get to it


All times are GMT. The time now is 09:59 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.01072 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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