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
  #122  
Old 07-02-2003, 03:12 AM
Keyser S?ze's Avatar
Keyser S?ze Keyser S?ze is offline
 
Join Date: Apr 2002
Location: USA
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]06-04-03 at 04:42 PM Nomb said this in Post #113
CODE
[/php]

Basically, all the instances of $bbuserinfo have been changed to $userfield which is from the query above this block of code in user.php.

Remember to replace this twice. [/B]
Reply With Quote
  #123  
Old 08-24-2003, 08:26 PM
themonarch's Avatar
themonarch themonarch is offline
 
Join Date: Jun 2002
Location: Orlando, FL
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't get this to work on 2.3.2. It just shows static text boxes.

I tried everything I could figure out on this thread to no avail. I got confused on which instructions to use but I tried both and with all the fixes and no go. Boo hoo for me. :disappointed:
Reply With Quote
  #124  
Old 08-26-2003, 04:20 AM
themonarch's Avatar
themonarch themonarch is offline
 
Join Date: Jun 2002
Location: Orlando, FL
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow! I can't believe it! I used phpMyAdmin and changed the field TYPE (all caps) to type in the profilefield table and voila - it works! Damn case sensitive server/database!

Also, I set the default value (again with phpMyAdmin) of this field to 1, as in textbox.

And another tweek, I used the vBulletin Admin Control Panel to change the field size to 1 and now it's a dropdown box.

Oh, and I edited this post with the most recent copy and edits of the install instructions text file, hopefully to help the next person out.

This is working on my vBulletin 2.3.2

Have fun and vBulletin forever! :banana:
Reply With Quote
  #125  
Old 09-02-2003, 03:39 AM
Tae-Hwan Tae-Hwan is offline
 
Join Date: May 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
07-02-03 at 05:12 AM IceMalee said this in Post #121
i was/am having this problem, i did like u said and it halfway fixed it, now it doesnt put mine in, but just makes the users custom info blank completely

any help?

I first installed this hack without looking at all the replies afterwards, so I ended up having to plug all the holes with my own fixes.. =( seems like this is the only one that hasn't been plugged by you guys yet.

Here's my fix to this problem, I don't know if it's the most efficient, but it works:

Find in user.php, under the "edit" subroutine:
PHP Code:
    // new options
    
    
maketableheader("Custom Profile Fields");
    
$profilefields=$DB_site->query("SELECT *
                                    FROM profilefield
                                    WHERE editable = 1
                                    ORDER BY displayorder"
);
    while (
$profilefield=$DB_site->fetch_array($profilefields)) {
      
$profilefieldname="field$profilefield[profilefieldid]"
and just stick this lil bit under the // new options so it looks like:

PHP Code:
    // new options

  
$userfields=$DB_site->query("SELECT * from userfield where userid=$userid");
  
$userfield=$DB_site->fetch_array($userfields);
    
    
maketableheader("Custom Profile Fields");
    
$profilefields=$DB_site->query("SELECT *
                                    FROM profilefield
                                    WHERE editable = 1
                                    ORDER BY displayorder"
);
    while (
$profilefield=$DB_site->fetch_array($profilefields)) {
      
$profilefieldname="field$profilefield[profilefieldid]"
Reply With Quote
  #126  
Old 09-02-2003, 03:40 AM
Tae-Hwan Tae-Hwan is offline
 
Join Date: May 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ oh yea, and this is in conjunction with nomb's "replace $bbuserinfo w/ $userfield" fix.
Reply With Quote
  #127  
Old 09-19-2003, 03:05 PM
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Location: TX
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Monarch...do you think you could possibly fix that txt without all those Blocks and stuff, it is very hard to read.
Reply With Quote
  #128  
Old 09-27-2003, 11:53 PM
Liz's Avatar
Liz Liz is offline
 
Join Date: Nov 2001
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I second that. Themonarch - could you please fix?
Reply With Quote
  #129  
Old 10-03-2003, 04:30 PM
Falkware Falkware is offline
 
Join Date: Dec 2001
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Following all these instructions I've yet been able to pull up a user's choice as default choice when editing a profile. It still show's whatever field is default, in my case "None" rather than whatever the user has selected.

This means every time I have to edit a profile to flag them for whatever feature we have I have to double check their profile for what that field is suppose to be.

Has anybody been able to make the system show the user's selection rather than default when editing user profile through admin?
Reply With Quote
  #130  
Old 09-15-2004, 12:12 AM
DiscussAnything DiscussAnything is offline
 
Join Date: Jan 2002
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know it's late in the game, but I have a request. Hopefully someone still cares and can tell me how to do this.

I installed this with all the fixes and it works fine on 2.34. What I'd like though is to have check boxes instead of a single selection. I would like people to be able to make multiple selections. I added checkboxes and that works, only it doesnt save all selected fields, just the last one. I can't figure it out, can anyone help me out here?

Thanks!
Reply With Quote
  #131  
Old 12-07-2004, 04:25 PM
The Markus The Markus is offline
 
Join Date: Nov 2004
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this work on the latest version?
Reply With Quote
  #132  
Old 02-13-2005, 12:41 AM
imageconstrux imageconstrux is offline
 
Join Date: Jan 2003
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great hack, I've had it installed on my board since the beginning. I'm hoping to tweak it, though. I have drop-down boxes for required fields, and the default is the first field in the list. If a user doesn't actively select a different option from each drop-down, the default is what ends up as part of their profile. I'd like to avoid this issue, forcing new registrants to actually select an option. I would imagine this would involve adding an extra field for each drop down that says "Make a selection" - that part is easy.

What I'm wondering how to do is, how do I get the system to return an error if they do not make a selection?
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 07:13 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.05487 seconds
  • Memory Usage 2,328KB
  • Queries Executed 26 (?)
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
  • (2)pagenav_pagelink
  • (12)post_thanks_box
  • (12)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (12)post_thanks_postbit_info
  • (11)postbit
  • (12)postbit_onlinestatus
  • (12)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