Tournament Results

For discussion of the Poker Mavens server module and other administration topics
Post Reply
PsYcHo
Posts: 16
Joined: Wed Aug 12, 2009 8:52 am

Tournament Results

Post 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
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Tournament Results

Post 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?
PsYcHo
Posts: 16
Joined: Wed Aug 12, 2009 8:52 am

Re: Tournament Results

Post 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
Attachments
Tourney Results.JPG
Tourney Results.JPG (38.79 KiB) Viewed 8140 times
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Tournament Results

Post 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.
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Tournament Results

Post 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.
PsYcHo
Posts: 16
Joined: Wed Aug 12, 2009 8:52 am

Re: Tournament Results

Post 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
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Tournament Results

Post 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.
PsYcHo
Posts: 16
Joined: Wed Aug 12, 2009 8:52 am

Re: Tournament Results

Post 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
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Tournament Results

Post 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
Post Reply