vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Sort Members By State! (https://vborg.vbsupport.ru/showthread.php?t=54010)

ranger2kxlt 06-07-2003 10:00 PM

Sort Members By State!
 
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.

[high]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![/high]

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.

[high]DOWNLOAD ATTACHMENT HERE![/high]

ranger2kxlt 06-08-2003 06:54 AM

Screenshots time!

This is the memberlist

ranger2kxlt 06-08-2003 06:55 AM

User CP - Edit Profile

ranger2kxlt 06-08-2003 06:55 AM

Register

ranger2kxlt 06-08-2003 06:55 AM

Profile

ranger2kxlt 06-08-2003 06:58 AM

Postbit

Vile 06-08-2003 06:59 AM

Neat idea :)

I'll probably test this out.

Thanks for sharing :)

ranger2kxlt 06-08-2003 07:05 AM

Thank you, please let me know if you like :)

Dean C 06-08-2003 09:03 AM

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 :p

- miSt

ranger2kxlt 06-08-2003 02:52 PM

Please click install if you try this hack! I would greatly appreciate seeing how many people install it!


All times are GMT. The time now is 07:01 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01048 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete