Page 1 of 1

Tournament Results

Posted: Thu Aug 27, 2009 1:11 am
by PsYcHo
This actualy happens to Tournament Results and Hands History. The dropdown list shows but when I click submit I get a message "Error=Results file not found". Some of the older files is swowing but the latest ones is not working.

I have used the tourneyresults.php that is on http://www.briggsoft.com/docs/pmavens/API_Examples.htm and only changed it to display the top 300. The api.php file is also in the webroot folder

I have removed all the files in the folder and then it does not show anny games in the dropdown list. So the directory is correct and the files is in there.

Thanks.

GG

Re: Tournament Results

Posted: Thu Aug 27, 2009 9:17 am
by Kent Briggs
PsYcHo wrote:This actualy happens to Tournament Results and Hands History. The dropdown list shows but when I click submit I get a message "Error=Results file not found". Some of the older files is swowing but the latest ones is not working.
Could be a url encoding issue. What are the exact names of some of the tournaments that give that error?

Re: Tournament Results

Posted: Fri Aug 28, 2009 1:43 am
by PsYcHo
Kent Briggs wrote:
PsYcHo wrote:This actualy happens to Tournament Results and Hands History. The dropdown list shows but when I click submit I get a message "Error=Results file not found". Some of the older files is swowing but the latest ones is not working.
Could be a url encoding issue. What are the exact names of some of the tournaments that give that error?
The Tourneys in the red block shows up ok.

Image

Tournament=10 man tournament
Number=2
BuyIn=1500+0
PrizeBonus=0
Entrants=7
Start=2009-07-15 14:51:03
Place7=Pixie (0)
Place6=Dubz (0)
Place5=Chase (0)
Place4=Breedster (0)
Place3=timmie (0)
Place2=blade (3675)
Place1=Piedpiper (6825)
Stop=2009-07-15 15:51:29

Tournament=10 man tournament
Number=3
BuyIn=1500+0
PrizeBonus=0
Entrants=6
Start=2009-07-15 15:57:23
Place1=Piedpiper (1500)
Place1=RABies (1500)
Place1=PsYcHo (1500)
Place1=Lama (1500)
Place1=timmie (1500)
Place1=NitroX (1500)
Stop=2009-07-15 16:01:33 (Abort)

Tournament=10 man tournament
Number=4
BuyIn=1500+0
PrizeBonus=0
Entrants=7
Start=2009-07-15 16:02:13
Place1=Kleinblaar (1500)
Place1=Lama (1500)
Place1=NitroX (1500)
Place1=Piedpiper (1500)
Place1=PsYcHo (1500)
Place1=RABies (1500)
Place1=timmie (1500)
Stop=2009-07-15 16:04:28 (Abort)

Tournament=10 man tournament
Number=5
BuyIn=1500+0
PrizeBonus=0
Entrants=7
Start=2009-07-15 16:05:21
Place7=Lama (0)
Place6=Pope (0)
Place5=PsYcHo (0)
Place4=NitroX (0)
Place3=timmie (0)
Place2=RABies (3675)
Place1=Kleinblaar (6825)
Stop=2009-07-15 16:43:13

But the others just gives the "Error=Results file not found" error.

Thanks

GG

Re: Tournament Results

Posted: Fri Aug 28, 2009 11:16 am
by Kent Briggs
PsYcHo wrote:The Tourneys in the red block shows up ok.
The apostrophe in Hold'em is causing the problem since that's used a string delimiter in the HTML form. I'll see if I can patch that code to work around it.

Re: Tournament Results

Posted: Fri Aug 28, 2009 12:40 pm
by Kent Briggs
PsYcHo wrote:This actualy happens to Tournament Results and Hands History. The dropdown list shows but when I click submit I get a message "Error=Results file not found". Some of the older files is swowing but the latest ones is not working.

I have used the tourneyresults.php that is on http://www.briggsoft.com/docs/pmavens/API_Examples.htm
I've updated the Tournament Results example on the web site so it now works with apostrophes in the file name. I made two changes using the stripslashes() and htmlspecialchars() functions.

Re: Tournament Results

Posted: Mon Aug 31, 2009 3:24 am
by PsYcHo
Kent Briggs wrote:
PsYcHo wrote:This actualy happens to Tournament Results and Hands History. The dropdown list shows but when I click submit I get a message "Error=Results file not found". Some of the older files is swowing but the latest ones is not working.

I have used the tourneyresults.php that is on http://www.briggsoft.com/docs/pmavens/API_Examples.htm
I've updated the Tournament Results example on the web site so it now works with apostrophes in the file name. I made two changes using the stripslashes() and htmlspecialchars() functions.
WOW It works, thanks Kent. Is there a way I can fix the Hands History file. Or must I just change the Filename without the hyphen.

Thanks GG

Re: Tournament Results

Posted: Mon Aug 31, 2009 9:48 am
by Kent Briggs
PsYcHo wrote:WOW It works, thanks Kent. Is there a way I can fix the Hands History file. Or must I just change the Filename without the hyphen.
It just needs the same two changes. Put a stripslashes() around the history variable and a htmlspecialchars() on the Name.

Re: Tournament Results

Posted: Tue Sep 01, 2009 9:02 am
by PsYcHo
Kent Briggs wrote:
PsYcHo wrote:WOW It works, thanks Kent. Is there a way I can fix the Hands History file. Or must I just change the Filename without the hyphen.
It just needs the same two changes. Put a stripslashes() around the history variable and a htmlspecialchars() on the Name.

Thanks, I compared the old TourneyHistory.php with the new one and appleid the changes to the HandsHistory.php file. And it worked.

I'm a n00b with php and webb stuff but i'm learning.

Thanks

GG

Re: Tournament Results

Posted: Tue Sep 01, 2009 10:54 am
by Kent Briggs
PsYcHo wrote:Thanks, I compared the old TourneyHistory.php with the new one and appleid the changes to the HandsHistory.php file. And it worked.
I've now got it updated on the web site also.
http://www.briggsoft.com/docs/pmavens/API_Examples.htm