vBulletin Modifications

Miscellaneous Hacks - Memberlist -- Custom Profile Field Sorting

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > vBulletin Database System > vBulletin 3.5 / 3.6 Hack Releases

Reply
 
Thread Tools Search this Thread
Download Options
You Must Register First
To Download This Modification

Bugs
No bugs found in the system. If you have found a bug, please report a bug here
Submit A Bug | View All Bugs

Advertisement
  
Not Supported (Beta Mode)
[vB 3.6.0] Miscellaneous Hacks - Memberlist -- Custom Profile Field Sorting (26)
Released: 08-21-2006, 08:50 PM
Modification Information:
Oblivion Knight's Avatar Author: Oblivion Knight
Last Online: 08-23-2006
Hack Version: 1.0.0 Installer Included: 0 Additional queries added to database: 0
New Templates: 0 Template Edits: 2 File Edits: 0
New Files: 0 New Phrases: 0 Installation Time (In Minutes): 5

vB 3.6.0 Compatible!
Plugin
Memberlist -- Custom Profile Field Sorting
For vBulletin 3.6.0



Description
By default, vBulletin cannot show just a single custom field on the memberlist, nevermind make it sortable. It's all or nothing.. I wanted to display just the location field and make it sortable, because I use the CountryFlag modification. I searched vbulletin.org to see if this was possible, but all that I could find was unanswered questions similarly asking how to do it. So I took it on myself to get something usable and working.


Instructions
Upload the PLUGIN, and edit it via the Plugin Manager.

Find:
You must first be a registered member to view any code.
Change urlname to the variable you want to be used in the URL of the memberlist sorting. My example is location.

Find:
You must first be a registered member to view any code.
Change X to the field number of your custom profile field. My example is 2.

Now you have 2 templates to edit. First, memberlist.

Find:
You must first be a registered member to view any code.
Above it, add:
You must first be a registered member to view any code.
Use DESC or ASC depending on which default sort order that you wish to use. Change both instances of urlname to the variable that you specified in the plugin earlier (location). Change Title to the title of the field that you wish to be displayed. My example is Location.

Now edit the memberlist_resultsbit template.

Find:
You must first be a registered member to view any code.
Above it, add:
You must first be a registered member to view any code.
Change both instances of X to the field number that you specified in the plugin earlier (2).


Final Comment
It's not pretty, it's not clever but it works.. :p



Screenshots
Screenshots
File Type: jpg screenshot.jpg (91.9 KB, 245 views)


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Add a Comment!
Old 03-25-2007, 03:12 PM   #2
vBulletin Guru
Atakan KOC's Avatar
Join Date: Jan 2006
Real Name: Atakan KOC
Location: Turkey / Istanbul
Atakan KOC is on a distinguished road

Default

Thanks....




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Posting Back User Profile Field chugger93 General vBulletin Support 2 08-18-2006 12:52 AM
New custom profile field. BigJohnny General vBulletin Support 8 08-14-2006 02:15 PM
custom profile field world32 vBulletin Modification Requests 10 06-12-2006 01:09 PM
Custom Profile Field for a Specific Group dying4004 vBulletin Modification Requests 1 06-03-2006 12:06 AM
Help/Postbit Profile Field John Mullins General vBulletin Support 1 06-08-2005 03:43 PM


All times are GMT -3. The time now is 12:28 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)