Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Mutt Mutt is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-02-2001 Last Update: Never Installs: 29
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 06-11-2002, 04:13 PM
geniuscrew's Avatar
geniuscrew geniuscrew is offline
 
Join Date: Nov 2001
Location: UK
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To get the non-vbhacker version you still need to do it using vbHacker - but when you come to actually modifying it, select "Generate text file" instead.

Also just a word of warning -
I got my error above because I chmodded member.php to 777 so that it could be writable, but forgot to chmod it back to 755.

Hope that helped!
Reply With Quote
  #73  
Old 06-11-2002, 04:14 PM
JoshFink JoshFink is offline
 
Join Date: Nov 2001
Posts: 207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks.. I appreciate the help.

Josh
Reply With Quote
  #74  
Old 06-11-2002, 10:34 PM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi,

i installed with vbhacker and the installation went well.
But if i change the value in my profile it is not saved?
If i edit a user in admin cp there is no dropdown field, only textarea?

Nothing works for me and i am using vb 2.2.5?

Any solutions?
Reply With Quote
  #75  
Old 06-13-2002, 01:03 AM
mayja mayja is offline
 
Join Date: Oct 2001
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works fine for me with 2.26. Thanks!

Can anyone help with the code to add checkboxes as well?
Reply With Quote
  #76  
Old 06-24-2002, 05:39 AM
mashby's Avatar
mashby mashby is offline
 
Join Date: Jan 2002
Location: Nashville, TN - USA
Posts: 736
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I must be doing something wrong. I've tried adding this to my board both by hand and then (after removing it) with VBHacker and I can't seem to get it to work.

Everything runs with no errors apparent. The only problem is that NONE of my custom fields are visible now. So, you can't see the field for "Biography," etc.

You can see for yourself at this URL: http://www.npug.org/forum/register.php?styleid=2

Any thoughts on what I'm doing wrong?
Reply With Quote
  #77  
Old 07-01-2002, 12:41 PM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok,
i installed it again. Now it works but still have some problems.
If i want to modify a custom field, the configuration for that field is not saved. If i click modify the fields Field Type and
Multiple Choice Options are empty, so i have to enter the value again every time i want to change something.

Is there also the possibility to have a dropdown field?
btw i am running 2.2.5.

any help is very appreciated. Thanks!
Reply With Quote
  #78  
Old 07-02-2002, 02:32 AM
Mutt's Avatar
Mutt Mutt is offline
 
Join Date: Nov 2001
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i guess i should drop by more often.

I didn't modify the admin/user.php file but I guess I forgot to add those directions to the file. I'll dig it up and add it when I get home
Reply With Quote
  #79  
Old 07-02-2002, 09:12 AM
roxics's Avatar
roxics roxics is offline
 
Join Date: Jan 2002
Location: Detroit Area
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah how do you install customcustomfields.hack.php?

Is it an addition to the selectprofilefield.txt you offered on page 2 of this thread? If so do you just throw this php file in with the others?

This looks like a great hack. Also are these fields searchable? As in does it work with FireFly's "Search Members by custom profile fields hack" found here:

http://www.vbulletin.org/hacks/index...ack&hackid=177

Thanks
Reply With Quote
  #80  
Old 07-04-2002, 06:41 AM
roxics's Avatar
roxics roxics is offline
 
Join Date: Jan 2002
Location: Detroit Area
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay nevermind I figured it out. I had to discover what VBhacker was first.

This hack doesn't work with FireFly's hack I mentioned above. The fields show up in the search as standard text fields. The search will work finding what people listed from say a drop down box or choose with a radio button, but someone has to type in one of the options listed in the drop down box or the radio button. It would be great if the radio buttons and the drop down boxes appeared in the search area.

It would also be great if the box allowed people to choose more then one option by holding down the 'Ctrl" button on the keyboard.
Reply With Quote
  #81  
Old 07-04-2002, 11:28 PM
mayja mayja is offline
 
Join Date: Oct 2001
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Birdie501
If i want to modify a custom field, the configuration for that field is not saved. If i click modify the fields Field Type and
Multiple Choice Options are empty, so i have to enter the value again every time i want to change something.
The "type" and "option" fields hadn't been added to the "edit" query in profilefield.php. So to fix this glitch...

Find in profilefield.php :

PHP Code:
// ###################### Start edit #######################
if ($action=="edit") {

  
$profilefield=$DB_site->query_first("SELECT title,description,required,hidden,maxlength,size,displayorder,editable
                                       FROM profilefield
                                       WHERE profilefieldid=
$profilefieldid"); 
and change to:

PHP Code:
// ###################### Start edit #######################
if ($action=="edit") {

  
$profilefield=$DB_site->query_first("SELECT title,description,required,hidden,maxlength,size,displayorder,editable,type,options
                                       FROM profilefield
                                       WHERE profilefieldid=
$profilefieldid"); 
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 10:18 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.12444 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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