Fencing Tournaments from AskFRED - Fencing Discussion
topleft topright

Go Back   Fencing Discussion > General Fencing > Fencing Discussion

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 05-20-2005, 05:08 PM   #1
Admin
 
Craig's Avatar
 
Join Date: Dec 1999
Location: Atlanta, GA
Posts: 5,358
Craig has a reputation beyond reputeCraig has a reputation beyond reputeCraig has a reputation beyond reputeCraig has a reputation beyond reputeCraig has a reputation beyond reputeCraig has a reputation beyond reputeCraig has a reputation beyond reputeCraig has a reputation beyond reputeCraig has a reputation beyond reputeCraig has a reputation beyond reputeCraig has a reputation beyond repute
Send a message via AIM to Craig Send a message via Skype™ to Craig
Fencing Tournaments from AskFRED

Check out the Fencing.Net integration at:
http://www.fencing101.com/component/...red/Itemid,90/

Thanks Peet!

Craig
__________________
Webmaster - Fencing.Net

Follow Fencing.Net on Facebook
FdN Fencing Equipment Store
Craig is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Tweet This!Share on FacebookReddit!
And now for this message...
Go Green members don't see these ads.


Old 05-20-2005, 05:12 PM   #2
Senior Member
 
fencinman89's Avatar
 
Join Date: Oct 2003
Location: pennsylvania, Philly division
Posts: 421
fencinman89 will become famous soon enough
Send a message via AIM to fencinman89 Send a message via Yahoo to fencinman89
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"
fencinman89 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Tweet This!Share on FacebookReddit!
Old 05-20-2005, 05:36 PM   #3
Senior Member
 
Peach's Avatar
 
Join Date: Feb 2001
Location: Pennsylvania
Posts: 4,952
Peach has a reputation beyond reputePeach has a reputation beyond reputePeach has a reputation beyond reputePeach has a reputation beyond reputePeach has a reputation beyond reputePeach has a reputation beyond reputePeach has a reputation beyond reputePeach has a reputation beyond reputePeach has a reputation beyond reputePeach has a reputation beyond reputePeach has a reputation beyond repute
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.
Peach is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Tweet This!Share on FacebookReddit!
Old 05-20-2005, 05:44 PM   #4
Senior Member
 
Chafunkta's Avatar
 
Join Date: May 2005
Location: The Driftwood Bar, Louisiana
Posts: 502
Chafunkta has much to be proud ofChafunkta has much to be proud ofChafunkta has much to be proud ofChafunkta has much to be proud ofChafunkta has much to be proud ofChafunkta has much to be proud ofChafunkta has much to be proud ofChafunkta has much to be proud ofChafunkta has much to be proud ofChafunkta has much to be proud of
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!
Chafunkta is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Tweet This!Share on FacebookReddit!
Old 05-20-2005, 05:50 PM   #5
Fencing Expert
 
veeco's Avatar
 
Join Date: May 2000
Location: The valley of the -hot- sun, NorCal
Posts: 3,185
veeco has a reputation beyond reputeveeco has a reputation beyond reputeveeco has a reputation beyond reputeveeco has a reputation beyond reputeveeco has a reputation beyond reputeveeco has a reputation beyond reputeveeco has a reputation beyond reputeveeco has a reputation beyond reputeveeco has a reputation beyond reputeveeco has a reputation beyond reputeveeco has a reputation beyond repute
Send a message via AIM to veeco Send a message via Yahoo to veeco
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
veeco is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Tweet This!Share on FacebookReddit!
Old 05-20-2005, 07:34 PM   #6
Just Joined
 
socoach's Avatar
 
Join Date: May 2005
Location: Elsewhere
Posts: 5
socoach is a jewel in the roughsocoach is a jewel in the roughsocoach is a jewel in the roughsocoach is a jewel in the rough
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!
socoach is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Tweet This!Share on FacebookReddit!
Old 05-20-2005, 10:32 PM   #7
Senior Member
 
peet's Avatar
 
Join Date: Jan 2003
Location: San Francisco
Posts: 1,926
peet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond repute
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
__________________
http://askfred.net
peet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Tweet This!Share on FacebookReddit!
Old 05-20-2005, 11:03 PM   #8
Senior Member
 
peet's Avatar
 
Join Date: Jan 2003
Location: San Francisco
Posts: 1,926
peet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond repute
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
__________________
http://askfred.net
peet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Tweet This!Share on FacebookReddit!
Old 05-20-2005, 11:04 PM   #9
Senior Member
 
oso97's Avatar
 
Join Date: Jul 2004
Location: DFW, Texas
Posts: 3,585
oso97 has a reputation beyond reputeoso97 has a reputation beyond reputeoso97 has a reputation beyond reputeoso97 has a reputation beyond reputeoso97 has a reputation beyond reputeoso97 has a reputation beyond reputeoso97 has a reputation beyond reputeoso97 has a reputation beyond reputeoso97 has a reputation beyond reputeoso97 has a reputation beyond reputeoso97 has a reputation beyond repute
Send a message via Yahoo to oso97
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...
oso97 is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Tweet This!Share on FacebookReddit!
Old 05-20-2005, 11:08 PM   #10
Senior Member
 
peet's Avatar
 
Join Date: Jan 2003
Location: San Francisco
Posts: 1,926
peet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond repute
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
__________________
http://askfred.net
peet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Tweet This!Share on FacebookReddit!
Old 05-20-2005, 11:17 PM   #11
Senior Member
 
oso97's Avatar
 
Join Date: Jul 2004
Location: DFW, Texas
Posts: 3,585
oso97 has a reputation beyond reputeoso97 has a reputation beyond reputeoso97 has a reputation beyond reputeoso97 has a reputation beyond reputeoso97 has a reputation beyond reputeoso97 has a reputation beyond reputeoso97 has a reputation beyond reputeoso97 has a reputation beyond reputeoso97 has a reputation beyond reputeoso97 has a reputation beyond reputeoso97 has a reputation beyond repute
Send a message via Yahoo to oso97
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...
oso97 is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Tweet This!Share on FacebookReddit!
Old 05-20-2005, 11:26 PM   #12
Just Joined
 
socoach's Avatar
 
Join Date: May 2005
Location: Elsewhere
Posts: 5
socoach is a jewel in the roughsocoach is a jewel in the roughsocoach is a jewel in the roughsocoach is a jewel in the rough
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!!!
socoach is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Tweet This!Share on FacebookReddit!
Old 05-21-2005, 02:17 AM   #13
Senior Member
 
peet's Avatar
 
Join Date: Jan 2003
Location: San Francisco
Posts: 1,926
peet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond reputepeet has a reputation beyond repute
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
__________________
http://askfred.net
peet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Tweet This!Share on FacebookReddit!
Old 05-21-2005, 10:26 AM   #14
Admin
 
Craig's Avatar
 
Join Date: Dec 1999
Location: Atlanta, GA
Posts: 5,358
Craig has a reputation beyond reputeCraig has a reputation beyond reputeCraig has a reputation beyond reputeCraig has a reputation beyond reputeCraig has a reputation beyond reputeCraig has a reputation beyond reputeCraig has a reputation beyond reputeCraig has a reputation beyond reputeCraig has a reputation beyond reputeCraig has a reputation beyond reputeCraig has a reputation beyond repute
Send a message via AIM to Craig Send a message via Skype™ to Craig
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
__________________
Webmaster - Fencing.Net

Follow Fencing.Net on Facebook
FdN Fencing Equipment Store
Craig is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Tweet This!Share on FacebookReddit!
Closed Thread

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fencing FAQ (part 3) Morgan Burke Rec Sport Fencing 1 09-14-2009 03:36 AM
Fencing FAQ (part 1) Morgan Burke Rec Sport Fencing 2 08-26-2005 02:00 AM
Fencing FAQ (part 1) Morgan Burke Fencing Discussion 0 03-10-2003 09:33 AM
Fencing FAQ (part 1) Morgan Burke Fencing Discussion 0 03-10-2003 09:31 AM
Fencing FAQ (part 3) Morgan Burke Fencing Discussion 0 03-10-2003 09:31 AM


All times are GMT -4. The time now is 11:39 AM.


(c) 1995 - 2010 Fencing Net; Fencing.Net, fdn, Fencing101, Epee101, Foil101, Sabre101 are all trademarks of Fencing.Net, LLC.
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. - Search Engine Optimization by vBSEO 3.3.2 -    
Follow fencing.net on Facebook