Welcome, Guest
Username: Password: Remember me
Threaded Indented
  • Page:
  • 1
  • 2

TOPIC: Member Finder [Based on User Suggestion]

Member Finder [Based on User Suggestion] 1 month 4 days ago #2853

  • MystByte
  • MystByte's Avatar
  • OFFLINE
  • Platinum Member
  • There is no Dark Side, nor a Light Side, There Is Only The Force
  • Posts: 632
  • Like received: 76
This is made at the suggestion of Copper over at this thread.

http://mystbyte.net16.net/saberforge/location_calculator_v2.php

This is code I wrote in case Phil ever wants to include something like this into Saberforge! How it works is you can sign up to the list with your Username and your postal code. Your postal code is then translated into longitude and lattitude!

The username and long/lat coords are then stored in a MySQL database, for use later. Now that you're signed up, you can then enter your longitude and lattitude(I can change it to postal code, but I was lazy XD). You find out your longitude and lattitude when you sign up to the list! Once you enter your long/latt into the form, you can specify a maximum distance to search for fellow duelists. This is in kilometers, because the metric system is the best. So if you put 100 into the distance field, the program will search for members within a 100km radius.

How does the program do all of this with only longitude and lattitude?
I used a formula called the haversine formula. This formula, in it's simplest description, is spherical cosine/sine laws. You can read more about it here.

So if you guys could test it out, and give input, it would be greatly appreciated! If course in order to put it on the site, it will need some CSS work, and a few functional changes, but other than that, it works flawlessly. However due to technical limitations, distances are not based on roads, but as the crow flies.

The more attention the post gets, the more likely it will become a feature of the website!

2x Warrior Level Acolytes Purple
Champ Resilient
Last Edit: 1 month 4 days ago by MystByte. Reason: fixed link
The administrator has disabled public write access.
The following user(s) said Thank You: Copper

Member Finder [Based on User Suggestion] 1 month 4 days ago #2856

  • Copper
  • Copper's Avatar
  • OFFLINE
  • Senior Member
  • Posts: 54
  • Like received: 10
Nice work Mystbyte.
Is it possible to link the MySQL database to a map application like google maps for a pictorial easy view?
Sorry I know nothing about programming, think my programming stopped at:
10 PRINT "Hello"
20 GOTO 10

:)
The administrator has disabled public write access.

Member Finder [Based on User Suggestion] 1 month 4 days ago #2857

  • MystByte
  • MystByte's Avatar
  • OFFLINE
  • Platinum Member
  • There is no Dark Side, nor a Light Side, There Is Only The Force
  • Posts: 632
  • Like received: 76
Copper wrote:
Nice work Mystbyte.
Is it possible to link the MySQL database to a map application like google maps for a pictorial easy view?
Sorry I know nothing about programming, think my programming stopped at:
10 PRINT "Hello"
20 GOTO 10

:)
Thanks for the feedback! It seems possible, I could store both the postal codes and lat/long and then display an iframe with google maps pins on player locations. Would definitely be possible and it's a cool idea! I'll look into it!

2x Warrior Level Acolytes Purple
Champ Resilient
The administrator has disabled public write access.

Member Finder [Based on User Suggestion] 1 month 3 days ago #2894

  • MystByte
  • MystByte's Avatar
  • OFFLINE
  • Platinum Member
  • There is no Dark Side, nor a Light Side, There Is Only The Force
  • Posts: 632
  • Like received: 76
I emailed saberforge when I posted this thread, and haven't heard back yet. I also tweaked the application a bit, and tomorrow I'll make it accept postal codes when searching for members.

2x Warrior Level Acolytes Purple
Champ Resilient
The administrator has disabled public write access.

Member Finder [Based on User Suggestion] 1 month 2 days ago #2896

  • Darth Revan
  • Darth Revan's Avatar
  • NOW ONLINE
  • Platinum Member
  • "Savior, conqueror, hero, villain. You are all things Revan… and yet you are nothing. In the end you belong to neither the light nor the darkness. You will forever stand alone."
  • Posts: 373
  • Like received: 81
You did it! Awesome!
I own:
- Champion Medium Blue Reliant (First Edition)
- Champion Green Epoc
- Warrior Green Epoch
- Warrior Red Acolyte
- Waiting to buy staff
The administrator has disabled public write access.

Member Finder [Based on User Suggestion] 1 month 2 days ago #2901

  • MystByte
  • MystByte's Avatar
  • OFFLINE
  • Platinum Member
  • There is no Dark Side, nor a Light Side, There Is Only The Force
  • Posts: 632
  • Like received: 76
Darth Revan wrote:
You did it! Awesome!
Of course I did! Now it just depends on whether Phil wants to implement it :P

2x Warrior Level Acolytes Purple
Champ Resilient
The administrator has disabled public write access.

Member Finder [Based on User Suggestion] 1 month 2 days ago #2907

  • MystByte
  • MystByte's Avatar
  • OFFLINE
  • Platinum Member
  • There is no Dark Side, nor a Light Side, There Is Only The Force
  • Posts: 632
  • Like received: 76
Added the postal code feature so you don't have to enter the Lattitude and longitude to search for members

2x Warrior Level Acolytes Purple
Champ Resilient
The administrator has disabled public write access.

Member Finder [Based on User Suggestion] 4 weeks 1 day ago #3171

  • MystByte
  • MystByte's Avatar
  • OFFLINE
  • Platinum Member
  • There is no Dark Side, nor a Light Side, There Is Only The Force
  • Posts: 632
  • Like received: 76
Yea I don't think SF will be implementing this. They haven't responded to my email I sent a week ago, yet they've responded to other emails sent around the same time.

2x Warrior Level Acolytes Purple
Champ Resilient
The administrator has disabled public write access.

Member Finder [Based on User Suggestion] 4 weeks 1 day ago #3173

  • Copper
  • Copper's Avatar
  • OFFLINE
  • Senior Member
  • Posts: 54
  • Like received: 10
Well they are supposed to be very busy, think I've only seen 'em on the forums once since I joined.

*sniffs armpits .... Nope not me :silly:
The administrator has disabled public write access.
The following user(s) said Thank You: MystByte

Member Finder [Based on User Suggestion] 4 weeks 1 day ago #3174

  • MystByte
  • MystByte's Avatar
  • OFFLINE
  • Platinum Member
  • There is no Dark Side, nor a Light Side, There Is Only The Force
  • Posts: 632
  • Like received: 76
Haha I understand that, however I sent an rush email shortly after I sent the Member Finder, and they responded to the rush email quite quickly while they still haven't responded to the Member finder email. If you guys want, you can still use the member finder I host, (at MystByte.net16.net) Everything works fine, it's just not affiliated with SF.

2x Warrior Level Acolytes Purple
Champ Resilient
The administrator has disabled public write access.
Threaded Indented
  • Page:
  • 1
  • 2

Member Login

Latest Posts

    • Hmmm. (13 Posts)
    • Sounds like a solid choice! You'll be happy with it!
    • Hmmm. (13 Posts)
    • That is a gorgeous hilt you got. I hope mine turns out that nice... I have decided, at long last, on...
    • Hmmm. (13 Posts)
    • I was always skeptical of the Gladius craze, simply because I like to distance myself from fads, but...
    • What is the best hilt for... (15 Posts)
    • Of the 6 ive bought, the one true love is the venomous fury. - Dueling: grenade grip is amazing....
    • Saber giveaway? (7 Posts)
    • I had the pleasant surprise of winning the raffle - here are some pictures of the Saber they gave...

More Topics »

Forum Statistics

  • Total Users: 1079
  • Latest Member: Darth Ruin
  • Total Posts: 5307
  • Total Topics: 502
  • Total Sections: 9
  • Total Categories: 48
  • Today Open: 0
  • Yesterday Open: 10
  • Today Answer: 0
  • Yesterday Answer: 130