Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Sort Members By State! Details »
Sort Members By State!
Mod Version: 1.00, by ranger2kxlt (Member) ranger2kxlt is offline
Developer Last Online: Jan 2011 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (1 vote - 5.00 average) Installs: 7
Released: 08 Jun 2003 Last Update: Never Downloads: 0
Not Supported  

Well since no one offered to make it for me, I have made it myself. I now have the full working version of the sort by state hack.

This is a rather large hack, although easy.
Install Time: 15 mins

Alright basically, I took out the default Location field in the vbulletin registration process and hardcoded a new one in. This does require you to lose data regarding you members locations. Simply PM all of them and ask them to update their profiles afterwards making the change.

Anyways. When you do sort by state, I took into account that some people will not return to your site and/or will not edit their profile, and therefor when you do sort by state, anyone with an invalid or blank state field will not be displayed. On my site this is a required field and it is set up that way in this hack.

You can see a live sample of this hack at my site,
http://www.thunderbirdnest.com/vb/me...?s=&what=state

Alright... one more thing before we get to the file.

There is more to come in the future.
1) Admin Functions - I would like to add the ability for admins to edit the location of members after this hack. They can still do if via the database.
2) State by State Sorting - View members from a single state of your choosing instead of all states.

THIS HACK IS ONLY SET UP TO SUPPORT THE UNITED STATES AND CANADA! BUT IT CAN BE EASILY MODIFIED FOR THOSE THAT NEED IT BY COUNTRY!

Please read through the hack slowly and carefully and as normal back up your files before you edit them.


One final note I promise. Thanks to hellsatan for his assistance on a few sections of this hack. I greatly appreciated his assistance.

DOWNLOAD ATTACHMENT HERE!

Download Now

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

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 08 Jun 2003, 07:54
ranger2kxlt ranger2kxlt is offline
 
Join Date: Jan 2003
Real name: Justin
Screenshots time!

This is the memberlist
Attached Images
File Type: gif memberlist.gif (55.9 KB, 192 views)
Reply With Quote
  #3  
Old 08 Jun 2003, 07:55
ranger2kxlt ranger2kxlt is offline
 
Join Date: Jan 2003
Real name: Justin
User CP - Edit Profile
Attached Images
File Type: gif usercp.gif (10.9 KB, 93 views)
Reply With Quote
  #4  
Old 08 Jun 2003, 07:55
ranger2kxlt ranger2kxlt is offline
 
Join Date: Jan 2003
Real name: Justin
Register
Attached Images
File Type: gif registration.gif (17.8 KB, 71 views)
Reply With Quote
  #5  
Old 08 Jun 2003, 07:55
ranger2kxlt ranger2kxlt is offline
 
Join Date: Jan 2003
Real name: Justin
Profile
Attached Images
File Type: gif profile.gif (8.0 KB, 61 views)
Reply With Quote
  #6  
Old 08 Jun 2003, 07:58
ranger2kxlt ranger2kxlt is offline
 
Join Date: Jan 2003
Real name: Justin
Postbit
Attached Images
File Type: gif postbit.gif (12.2 KB, 72 views)
Reply With Quote
  #7  
Old 08 Jun 2003, 07:59
Vile's Avatar
Vile Vile is offline
 
Join Date: Apr 2002
Real name: A.K.
Neat idea

I'll probably test this out.

Thanks for sharing
Reply With Quote
  #8  
Old 08 Jun 2003, 08:05
ranger2kxlt ranger2kxlt is offline
 
Join Date: Jan 2003
Real name: Justin
Thank you, please let me know if you like
Reply With Quote
  #9  
Old 08 Jun 2003, 10:03
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Real name: Dean Clatworthy
Might want to change any instances of yellow in the post to use the [high] vbcode

Also in your sig Then it shows up as red on this style, yelloe on the blue style and something else on the purple style

- miSt
__________________
Dean Clatworthy - Web Developer/Designer
Reply With Quote
  #10  
Old 08 Jun 2003, 15:52
ranger2kxlt ranger2kxlt is offline
 
Join Date: Jan 2003
Real name: Justin
Please click install if you try this hack! I would greatly appreciate seeing how many people install it!
Reply With Quote
  #11  
Old 08 Jun 2003, 16:28
Xelation's Avatar
Xelation Xelation is offline
 
Join Date: Jan 2002
Real name: Matt
just installed it with a few modifications such as full names for the states and I added provinces.... I was wondering though, when someone modifies their profile and say they pick newyorkstate.... when they click modify at the bottom everything is changed correctly but when they go to modify it again its back at alabama and I was wondering, what would I need to do to keep it at the state they picked.. get what I mean?
Reply With Quote
  #12  
Old 08 Jun 2003, 16:40
ranger2kxlt ranger2kxlt is offline
 
Join Date: Jan 2003
Real name: Justin
Yes...

When you made this modification, you would have needed to edit 3 different places!

First is registeradult template... add your provinces etc.

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

Next would be modifyprofile: Make sure the $location increments with each additional state/province you add.

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

Then and here is probably where you need it. Make sure the $locations match up with the modify profile template.
Member.php

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


Last edited by ranger2kxlt; 08 Jun 2003 at 16:45.
Reply With Quote
  #13  
Old 08 Jun 2003, 16:46
ranger2kxlt ranger2kxlt is offline
 
Join Date: Jan 2003
Real name: Justin
Just a clarification note for the others that are looking to install this hack... It works fully on mine. When a user edits their profile it does show their previous location and state with no problems.
Reply With Quote
  #14  
Old 08 Jun 2003, 16:48
Xelation's Avatar
Xelation Xelation is offline
 
Join Date: Jan 2002
Real name: Matt
Ah, it works now.. I must of done something wrong.. great hack!
Reply With Quote
  #15  
Old 08 Jun 2003, 16:53
ranger2kxlt ranger2kxlt is offline
 
Join Date: Jan 2003
Real name: Justin
Found a VERY minor bug. I had originally set up the state row in the user table to only accept 2 characters because I was only planning to use states. Then after a member notified me that everytime they selected CAN (Canada) their profile would display CA (California). So I made the change.

For those of you that have already installed this, Run this query!

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

Here is the new attachment!
Attached Files
File Type: txt sortbystatehack.txt (17.8 KB, 52 views)
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 10:40.

Layout Options | Width: Wide Color: