The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Enhanced "Location" and "Mobile" Fields in Profile Details »» | |||||||||||||||||||||||||||
Enhanced "Location" and "Mobile" Fields in Profile
Developer Last Online: Nov 2023
**************veenuisthebest*****************
************Visit Tech6.com***************** Enhanced "Location" and "Mobile" Fields in Profile Difficulty: Very Easy Q. What does it do ?? A. Replaces Location Field in Member Profile with a Single Selection Menu with all the country names listed so as to encourage users to fill up the field. Also, adds up a Mobile Field of type Single Selection Menu with almost every Mobile Phone model listed. Q. Do I need this ?? A. You DEFINATELY should have a menu for Location field as it looks far better than a regular text field. Mobile field is yet up to you, but with this mobile selection menu, you're for sure going to attract your members. File Changes: 0 Template Edit: 1 if you wish to show these fields in postbit. 0 if you do not wish to show these fields in postbit. Begins here:- 1. Go to your AdminCP -> User Profile Fields -> User Profile Field Manager and simply delete the default Location Field. Do not worry, we really do not need this. 2. Now, Add New User Profile Field -> Single Selection Menu with following details:- Title: Location Description: Where you live Options: Download Country List here (copy contents as it is) Set Default: NONE Display Order: Upto You (usually 1 or 2) Field Required: No Field Editable: Yes ..Leave rest as default 3. SAVE. 4. Again, Add New User Profile Field -> Single Selection Menu with following details:- Title: Phone Description: Which cell phone model you have Options: Download Phone List here (copy contents as it is) Set Default: NONE Display Order: Upto You Field Required: No Field Editable: Yes ..Leave rest as default 5. SAVE. 6. Now, if you wish to show these fields in postbit, go to postbit template, and make the following minor edits:- For COUNTRY:- Find:- Code:
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if> Code:
<!-- Location Display --> <if condition="$post['fieldX']"><div>$vbphrase[location_perm]: $post[fieldX]</div></if> <!-- /Location Display --> For PHONE:- Paste the following lines of code below the above mentioned Location Display code:- Code:
<!-- Phone Display --> <if condition="$post['fieldX']"><div>Phone: $post[fieldX]</div></if> <!-- /Phone Display --> WAIT:- You must set fieldX to the actual field names for both Country and Mobile respectively. For this, go to User Profile Field Manager and notice the Name column. 7. DONE !!!!!! Now, just go to Edit Profile link on your Forum and you'll find PHONE and LOCATION fields under Additional Information. Fill them up -> Save Changes. Hope you liked my first mod, simple but useful. I am sure, you are definately going to use this.. Please click INSTALL if you find it useful !! ************************************************** ************************* ************************************************** ************************* Show Your Support
|
Comments |
#2
|
||||
|
||||
hey guys, please click INSTALL if you download !!
I know you liked the Phone and Country list.. |
#3
|
|||
|
|||
installed
i run a mobile phone discussion forum, for me the phone list is very useful |
#4
|
||||
|
||||
nice hack but what about the members who already have their location .
Do they need to set it again or no ? |
#5
|
||||
|
||||
yess.. they have to set it again !! coz you are deleting the default Location field..
|
#6
|
||||
|
||||
Is there a way to show the old location value, when a member has not updated the new location field?
This hack doesn't seem to work for profiles and other parts of vbulletin. |
#7
|
||||
|
||||
Quote:
Quote:
It works for me in my profile, posts and all other areas (vb 3.7) http://tech6.com/member.php?u=1 |
#8
|
||||
|
||||
Hey.
ty for this great hack but i only want that Part for Cell-Phones. is there any way? ty very much |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|