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 |
#12
|
||||
|
||||
Is it possible to make this field as a required field?, I would like that my users select their real countries insted of "At my home", "Asumed to be earth", etc.
See Ya |
#13
|
||||
|
||||
Quote:
|
#14
|
||||
|
||||
Quote:
|
#15
|
||||
|
||||
Quote:
|
#16
|
||||
|
||||
this is an awesome hack, more people should work on listing different states/provinces from around the world
|
#17
|
|||
|
|||
I so stupid 8( but what file i have to edit register.php? yes i cannot find 'register_customfields', at that file.
includes/functions_profile.php that file is apsent 8( and in memberlist.php i cannot find if ($profilefield['type'] == 'input' OR $profilefield['type'] == 'textarea') { $bbuserinfo["$profilefieldname"] = ''; eval('$customfields .= "' . fetch_template('register_customfields') . '";'); } I use 3.0.1 8( can you help me*? Thanks for all. |
#18
|
||||
|
||||
Quote:
http://www.vbulletin.nl/community/sh...7480#post27480 anyway, I have upgraded the first post to version 2.0, for both country and state mod. Check the file out, and tell me if you still have difficulty. Quote:
there're many ways to do this, but the easiest way (i think) is to add a javascript, with a redirect function. check example at http://webreference.com/dev/menus/intro2.html I dont even use state hack, dont have any list of states for any country other than US, so I dont think it's that useful |
#19
|
||||
|
||||
You can do this without a hack by using custom profiles in vB3. Just letting members know.
|
#20
|
|||
|
|||
Quote:
But I'd like to take it a step further... so you've got 3 fields - Country, State & City - take the content of those three fields and string them together to populate vbulletin's Location field. Why do I want to do this? That field gets displayed in vBulletings postbit in the forums and in other applications that user vBulletins user database - like PhotoPost and ReviewPost does. |
#21
|
|||
|
|||
could u please make add an add-on that show flags countries in user profile
NOTE: WHY quick Reply quote can NOT be used? |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|