Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Memberlist -- Custom Profile Field Sorting Details »
Memberlist -- Custom Profile Field Sorting
Mod Version: 1.0.0, by Oblivion Knight (Contributor) Oblivion Knight is offline
Developer Last Online: Nov 2016 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.0 Rating: (3 votes - 4.67 average) Installs: 32
Released: 21 Aug 2006 Last Update: Never Downloads: 187
Not Supported Uses Plugins Template Edits Is in Beta Stage  

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Change urlname to the variable you want to be used in the URL of the memberlist sorting. My example is location.

Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View 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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Above it, add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View 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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Above it, add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View 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..

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	screenshot.jpg
Views:	1239
Size:	91.9 KB
ID:	52446  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 22 Aug 2006, 00:54
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
This is an extremely useful addition. Thanks for sharing, I will certainly use it!
__________________
AndroidETC.com :: Android, and other stuff.
Reply With Quote
  #3  
Old 22 Aug 2006, 04:06
marlita marlita is offline
 
Join Date: Aug 2006
This is a great mod! thanks so much. =)
Reply With Quote
  #4  
Old 22 Aug 2006, 14:53
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
Thanks a lot.
Reply With Quote
  #5  
Old 23 Aug 2006, 15:37
Pvtiste Pvtiste is offline
 
Join Date: Nov 2005
Real name: Mathieu
Good job dude !! Installed
Reply With Quote
  #6  
Old 23 Aug 2006, 16:07
JenniferK JenniferK is offline
 
Join Date: Dec 2005
Am I missing something? In 3.6, if you go into User profile Field Manager and edit the custom profile field, there is an option to show that field (or not) on the Members List as well as make it searchable......
Reply With Quote
  #7  
Old 23 Aug 2006, 16:24
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Real name: Andy
Originally Posted by JenniferK
Am I missing something? In 3.6, if you go into User profile Field Manager and edit the custom profile field, there is an option to show that field (or not) on the Members List as well as make it searchable......
Doesn't make it sortable though..

I wasn't aware that you could have a single custom field on the memberlist as opposed to all of them by default though. Then again, I didn't really play around with it too much..
Reply With Quote
  #8  
Old 19 Sep 2006, 20:23
dknelson dknelson is offline
 
Join Date: Oct 2004
This is a great hack and I have it installed. I would like to also add the ability though to sort by this custom field in "advanced search" though. In other words...you search on a field with an option to sort the results by the custom field that you added.
Reply With Quote
  #9  
Old 30 Oct 2006, 06:22
jacobi's Avatar
jacobi jacobi is offline
 
Join Date: Jan 2003
Real name: Adam Jacobi
Is this mod compatible with 3.6.2? Also, I like dknelson's idea!
Reply With Quote
  #10  
Old 22 Mar 2007, 01:58
interfx interfx is offline
 
Join Date: Dec 2001
Does this work if I was to search multiple custom fields?
Reply With Quote
  #11  
Old 08 Apr 2007, 06:16
D Holzwarth D Holzwarth is offline
 
Join Date: Apr 2007
Does this work with vb 3.6.5
Reply With Quote
  #12  
Old 08 Apr 2007, 09:55
jacobi's Avatar
jacobi jacobi is offline
 
Join Date: Jan 2003
Real name: Adam Jacobi
It works on my site.
Reply With Quote
  #13  
Old 08 Apr 2007, 23:33
D Holzwarth D Holzwarth is offline
 
Join Date: Apr 2007
Works on mine now too. Very sweet. Was able to delete additional databases due to this feature. Thank you.
Reply With Quote
  #14  
Old 17 Mar 2008, 01:35
baderandsonsco baderandsonsco is offline
 
Join Date: Feb 2008
Thank you very much!
Reply With Quote
  #15  
Old 20 Aug 2008, 19:52
VikesRule VikesRule is offline
 
Join Date: Aug 2008
On this part:

Change both instances of urlname to the variable that you specified in the plugin earlier (location).
If I'm doing this for a custom field, do I put say "field4" in for the urlname or whatever field number corresponds with it?

And what do I do to add more than one custom field that is sortable?
Reply With Quote
Reply


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

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


New To Site? Need Help?

All times are GMT. The time now is 01:14.

Layout Options | Width: Wide Color: