05-20-2005, 05:12 PM
|
#2 | | Senior Member
Join Date: Oct 2003 Location: pennsylvania, Philly division
Posts: 421
| I tried it, it didnt work for me, possibly i did it wrong.
-Tre'
__________________
Ref-"Pool 1: Molly"
Me-"It's Molloy, with an OY"
|
| |
05-20-2005, 05:36 PM
|
#3 | | Senior Member
Join Date: Feb 2001 Location: Pennsylvania
Posts: 4,952
| I get:
Warning: Invalid argument supplied for foreach() in /home/charkins/public_html/components/com_fred/fred.html.php on line 98
I'm using Mozilla Firefox
__________________ I'm not anonymous. We just haven't been properly introduced. |
| |
05-20-2005, 05:44 PM
|
#4 | | Senior Member
Join Date: May 2005 Location: The Driftwood Bar, Louisiana
Posts: 502
| It worked for me. It's pretty cool. What about tournament results being applied to specific users? Like looking up someone's handle and finding some tournament results?
__________________
Just push the button!
|
| |
05-20-2005, 05:50 PM
|
#5 | | Fencing Expert
Join Date: May 2000 Location: The valley of the -hot- sun, NorCal
Posts: 3,185
| It works also for me (with Firefox on Linux). Pretty cool.
__________________ - Epee is the Louis Vuitton bag of fencing: only the best can get it, and the rest of the masses must content themselves with cheap knockoffs (sabre, foil)
- To not recognize the power of the French grip is to be in denial
|
| |
05-20-2005, 07:34 PM
|
#6 | | Just Joined
Join Date: May 2005 Location: Elsewhere
Posts: 5
| Quote: |
Originally Posted by Peach Warning: Invalid argument supplied for foreach() in /home/charkins/public_html/components/com_fred/fred.html.php on line 98 | Same thing here... it depends on the selection the user makes. If there are NULL results, the php will give a warning. Here a non-array (e.g., empty var) was used in a foreach().
I found my error with these settings: Upcoming Tournaments, SouthEast Section, Ark-La-Miss.
It's not always necessary to test if an array has members before using foreach(). You can cast the var as an array, so that even if it is empty it will run without warnings. Code: foreach ((array)$some_array as $k=>$v) { ... }
The functionality looks very cool! |
| |
05-20-2005, 10:32 PM
|
#7 | | Senior Member
Join Date: Jan 2003 Location: San Francisco
Posts: 1,926
| Uh-oh.... Umm, hey Craig-
Maybe i didn't make it clear enough in my email, but i sent you that code meaning for you to test it, not neccessarily publicize it just yet. It is missing some error handling, and a "none found" case for when no tournaments are found, as some people have found out the hard way.
Some of the output could use some prettying up too.
Again, sorry if my email was not clear.
I'll keep working on it....
-p |
| |
05-20-2005, 11:03 PM
|
#8 | | Senior Member
Join Date: Jan 2003 Location: San Francisco
Posts: 1,926
| Quote: |
Originally Posted by Chafunkta It worked for me. It's pretty cool. What about tournament results being applied to specific users? Like looking up someone's handle and finding some tournament results? | We might get to that kind of thing in time.
Craig & I are working on integrating FRED & F101 bit by bit. First the obvious stuff like these tournament listings, and then we'll see what comes next.
Thanks for the suggestion!
-p |
| |
05-20-2005, 11:04 PM
|
#9 | | Senior Member
Join Date: Jul 2004 Location: DFW, Texas
Posts: 3,585
| Quote: |
Originally Posted by socoach Same thing here... it depends on the selection the user makes. If there are NULL results, the php will give a warning. Here a non-array (e.g., empty var) was used in a foreach().
I found my error with these settings: Upcoming Tournaments, SouthEast Section, Ark-La-Miss.
It's not always necessary to test if an array has members before using foreach(). You can cast the var as an array, so that even if it is empty it will run without warnings. Code: foreach ((array)$some_array as $k=>$v) { ... }
The functionality looks very cool! | Well, first of all, Ark-La-Miss Division is in the SouthWEST Section... |
| |
05-20-2005, 11:08 PM
|
#10 | | Senior Member
Join Date: Jan 2003 Location: San Francisco
Posts: 1,926
| Quote: |
Originally Posted by oso97 Well, first of all, Ark-La-Miss Division is in the SouthWEST Section... | Hence that little note about "you probably want to search by section OR division, but not both", as the criteria are being combined with AND logic.....
cheers!
-p |
| |
05-20-2005, 11:17 PM
|
#11 | | Senior Member
Join Date: Jul 2004 Location: DFW, Texas
Posts: 3,585
| Makes sense to me, I was just pointing it out to the original poster that his geography was a little off  Hey, I've never had any problems with searches on FRED... |
| |
05-20-2005, 11:26 PM
|
#12 | | Just Joined
Join Date: May 2005 Location: Elsewhere
Posts: 5
| Whups! Quote: |
Originally Posted by oso97 Makes sense to me, I was just pointing it out to the original poster that his geography was a little off  | Clearly this feature hasn't been idiot-proofed. Someone could've died!!! |
| |
05-21-2005, 02:17 AM
|
#13 | | Senior Member
Join Date: Jan 2003 Location: San Francisco
Posts: 1,926
| Quote: |
Originally Posted by socoach Clearly this feature hasn't been idiot-proofed. Someone could've died!!! | LOL!
Yeah, good thing i don't actually work on anything life sustaining. I'd be killing people left & right!!
-p |
| |
05-21-2005, 10:26 AM
|
#14 | | Admin
Join Date: Dec 1999 Location: Atlanta, GA
Posts: 5,358
| Sorry Peet.
Pulling the code based on the error messages found. Once we're both comfortable with the code and an error-free base, we'll try again.
Craig Quote: |
Originally Posted by peet Umm, hey Craig-
Maybe i didn't make it clear enough in my email, but i sent you that code meaning for you to test it, not neccessarily publicize it just yet. It is missing some error handling, and a "none found" case for when no tournaments are found, as some people have found out the hard way.
Some of the output could use some prettying up too.
Again, sorry if my email was not clear.
I'll keep working on it....
-p | |
| | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -4. The time now is 11:39 AM. |