Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Website Design/Showcase (http://www.chiefdelphi.com/forums/forumdisplay.php?f=64)
-   -   FIRST Team Search on FIRSTTopsite.com (http://www.chiefdelphi.com/forums/showthread.php?t=37238)

Babyhueyhnx 12-04-2005 19:53

FIRST Team Search on FIRSTTopsite.com
 
Hello all,

Calvin and i are working on putting together a search database for the First Topsite which includes the name, team number and website address for every team. in a effort to speed this up i would like it if you all could send an email to database@firsttopsite.com with all your team info as the contents.

Thanks.

Mike AA 13-04-2005 01:31

Re: FIRST Team Search on FIRSTTopsite.com
 
Quote:

Originally Posted by Babyhueyhnx
Hello all,

Calvin and i are working on putting together a search database for the First Topsite which includes the name, team number and website address for every team. in a effort to speed this up i would like it if you all could send an email to database@firsttopsite.com with all your team info as the contents.

Thanks.

Wouldnt this be easier achieved by looking at the site? all teams have their # and name and URL

-Mike

Calvin 13-04-2005 02:24

Re: FIRST Team Search on FIRSTTopsite.com
 
Our search engine, already searches through the list of FIRST Topsite members. Yet, we were thinking about adding another search engine what will search through a separate database that includes everybody.

In order to do this we must construct a list of all teams with a link to their webpage. I’ve already started construction on the list. You can see a preview here: http://firsttopsite.com/teamdatabase/detailsearch.php

BTW, members (of topsite) need-not send any info, we already have it. :)

DarkJedi613 13-04-2005 08:47

Re: FIRST Team Search on FIRSTTopsite.com
 
I've already done this. ;)

http://www.team358.org/files/team_lookup/

It uses the websites and information posted by the TIMS system. If you guys want I could make something that just prints out "<Name> - <#> - <url>", or could just search for them... ;)

Eventually all the information I've compiled will be available (as a serialized PHP array), but I haven't finished writing up a readme, etc. :)

Calvin 13-04-2005 18:26

Re: FIRST Team Search on FIRSTTopsite.com
 
Looks great, but what we're doing is a little different. Pretty much just id - name - url. Maybe I can add a "detail" button that will link to your website if the searcher wants details. :)

DarkJedi613 13-04-2005 20:29

Re: FIRST Team Search on FIRSTTopsite.com
 
I understand that, but what I'm saying is I have everything already made up for doing that - you just have to create a new file and put the following in it.

Code:

<?php
function id_name_url_link($arr_teams, $str_spacer) {
  foreach ($arr_teams as $i => $value) {
    echo $str_spacer . $arr_teams[$i]["id"]  . " - " . $arr_teams[$i]["name"] . " - <a href=\"" . $arr_teams[$i]["website"] . "\" title=\"" . $arr_teams[$i]["name"] . "\" target=\"_blank\">" . $arr_teams[$i]["website"] . "</a>";
  }
}

$teams = unserialize(file_get_contents("team_file.php"));
id_name_url_link($teams, "<br>");
?>

As can be seen here.

I just think its pointless to try getting information I already have. :)

Calvin 13-04-2005 20:44

Re: FIRST Team Search on FIRSTTopsite.com
 
Oh, sorry I misunderstood.

Thanks for that link.
Maybe I should just link to you. :D

DarkJedi613 13-04-2005 20:53

Re: FIRST Team Search on FIRSTTopsite.com
 
Quote:

Originally Posted by Calvin
Oh, sorry I misunderstood.

Thanks for that link.
Maybe I should just link to you. :D

If you want, that's fine. Also I'm gonna put up a public version as soon as I finish writing the download page @ http://www.team358.org/files/team_lookup/public/ (I know, its an original URL...), it'll contain the team information and stuff, but if you want to just link to my file that's cool. :)

Would it better to take out teams w/o a website? :confused:

Calvin 13-04-2005 20:59

Re: FIRST Team Search on FIRSTTopsite.com
 
The code is messing the file_get_contents() function.

DarkJedi613 13-04-2005 21:03

Re: FIRST Team Search on FIRSTTopsite.com
 
Quote:

Originally Posted by Calvin
The code is messing the file_get_contents() function.

Hmm? Not sure what you're talking about.

BTW the public version is up. :)

Calvin 13-04-2005 21:05

Re: FIRST Team Search on FIRSTTopsite.com
 
nevermind... Thanks for the public thing! I'll take a look now.

DarkJedi613 13-04-2005 21:08

Re: FIRST Team Search on FIRSTTopsite.com
 
Quote:

Originally Posted by Calvin
nevermind... Thanks for the public thing! I'll take a look now.

No problem, you can be my test subject...if you have questions or problems, etc. tell me though please. :)

I have some search functions too, but they're not in the public version cause itd just take up more room that was written specifically for my search. But if you want 'em I have 'em.

Calvin 13-04-2005 22:11

Re: FIRST Team Search on FIRSTTopsite.com
 
OK I used your package to compile a new file that will work under the search engine I already have. http://firsttopsite.com/teamdatabase/detailsearch.php

Pretty cool! :)

DarkJedi613 13-04-2005 22:41

Re: FIRST Team Search on FIRSTTopsite.com
 
Awesome. :) It could use some more flavor...perhaps a color or two thrown in though. ;)

Where'd you get the "short names" from, i.e. "Robotic Eagles" for us...I don't think that's in my file...? :confused:

I'm getting weird results if I search for a number like "2"

Also the link for team 2 is wrong when I search for "2"

Thanks for the link back. :)

Calvin 13-04-2005 22:57

Re: FIRST Team Search on FIRSTTopsite.com
 
Yep, you just found a bug! (fixed it)

When you search for "2" it displays all entries that have "2" somewhere.
As for the short names, those were found at firstwiki.org

BTW, this is just a test page. When done will look like the rest of the website.


All times are GMT -5. The time now is 16:28.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi