The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Countries/States fields as options(over 30 fields) Details »» | |||||||||||||||||||||||||||
Countries/States fields as options(over 30 fields)
Developer Last Online: May 2016
NOTE: You can do this by adding custom user field/drop down option, as of vB3 allows you to add as many options as you want
Old version of vB custom field only allow you to add 30 fields to their options (for some reason), I re-write this hack, to use with vB3-beta7, then update for vB3.0.1. (dont want to remove it and use vB default dropdown option) advantage over the default field: you dont have to store the whole country name in database (save some space), use US instead of United States, it is also easier if you want to use this for flag ... Author: HacNho (mtha) Version: 2.0 Description: - Use FIELD2 as Country field - Add selections for countries in registration (call register_customfields_country template) - Add selections for countries in edit profile (call register_customfields_country template) - Add selections for countries in memberlist search (call register_customfields_country template) File to edit: 3 (register.php, includes/functions_user.php, memberlist.php) Template to edit: 0 Template to add: 2 (userfield_country and memberlist_search_country) Version support: vB 3.0.1 UPGRADE: there's too many changes from vB3.0 beta to the final release, so you'd better uninstall the old mod before reinstall this one. - remove template register_customfields_country - remove the changes added in register.php, includes/functions_profile.php OLD Version: 1.0 Description: - Use FIELD2 in userfield as Country field (this one used to be "Location") - Add seletions for countries in registration (call register_customfields_country template) - Add seletions for countries in edit profile (call register_customfields_country template) - Add seletions for countries in memberlist - Search (call register_customfields_country template) File to edit: 2 Template to edit: 0 Template to add: 1 (register_customfields_country) Version support: vB 3.0 b4 - b7 Screen shot: customfields_country.gif (8.9 KB) Important: BACKUP modified files and template before making changes. USE at your own risk! You may want to check the country lists, as of I got several different lists from internet, and use one of them Suggestion: you should download and use YaME, to read this file. It will be much easier to understand what you should do. Credit: - those who wrote this tools BoardMod and YaME - those who make the countries list, so I just need to re-edit them Additional mod: customfield_state NOTE: - you can only use one of the two mod. If you want to use both of them, you have to change field# in one of them (as of I am using the same field# (field2) in both two mods. Show Your Support
|
Comments |
#2
|
||||
|
||||
Nice Job, will install once gold is out.
|
#3
|
||||
|
||||
They must have changed something then because I have the whole countries list in a profile field and it accepts them all. It doesn't limit it to 30 anywhere that I can see. I am running 3.0 RC 3, by the way.
|
#4
|
||||
|
||||
Quote:
but I dont really like the way they store arrays in database very much, and my hack give me flexibility to store different data into database, says if I want to store United States, I just need to keep US in the profile. It might be easier for me to use in adding flags, or mapping members in a worldmap |
#5
|
||||
|
||||
I think your hack is great!
I just changed Location to City and State/Province and made a new field for Country and put all the countries from the list in the drop-down in the field editor. It is in the profile options. I don't have it in the new registration area but I have other fields that don't show up there either, so the user will have to go into their profile and edit them when they get regsitered. |
#6
|
||||
|
||||
Quote:
|
#7
|
||||
|
||||
Thank you for verifying that. I thought they must have changed something.
|
#8
|
||||
|
||||
Fixed the typo in your thread title
|
#9
|
||||
|
||||
looks great i need to investigate properly as i was looking for one that would drop down on location, you'd select your country then it would open another drop down to select state/region/province then it would do another for city and then a final input box for you to type a more specific location, if this does this yay, if not i'll have to hope i inspired you
|
#10
|
||||
|
||||
A good add-on would be language selection on FORUMHOME per language flags ...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|