Back to vBulletin 3.6 Template Modifications

Enhanced "Location" and "Mobile" Fields in Profile
Mod Version: 1.00, by veenuisthebest

This modification is in the archives.
vB Version: 3.6.8 Rating: (3 votes - 4.67 average) Installs: 16
Released: 21 Mar 2008 Last Update: 21 Mar 2008 Downloads: 145
Not Supported DB Changes Template Edits Re-usable Code  

**************veenuisthebest*****************
************Visit http://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: &stc=1&d=1206077187 (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: &stc=1&d=1206077243 (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>
Add Under:-

Code:
<!-- Location Display -->
<if condition="$post['fieldX']"><div>$vbphrase[location_perm]: $post[fieldX]</div></if>
<!-- /Location Display -->
Note:- You may find the same line of code right beneath it, simply delete it.

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 if you find it useful !!

***************************************************************************
***************************************************************************

Download

This modification is archived, downloads are still allowed.

File Type: %1$s Phone List.txt (17.2 KB, 67 downloads)
File Type: %1$s Country List.txt (2.1 KB, 82 downloads)
File Type: %1$s Complete Instructions- veenu.txt (3.2 KB, 37 downloads)

Screenshots

Click image for larger version
Name:	editprofile.jpg
Views:	340
Size:	34.4 KB
ID:	77525   Click image for larger version
Name:	postbit.jpg
Views:	338
Size:	26.5 KB
ID:	77526  


vblts.ru supports vBulletin®, 2022-2024