Player Profiles

For general discussion of the Poker Mavens software
Post Reply
APN
Posts: 23
Joined: Fri Aug 02, 2013 3:17 pm

Player Profiles

Post by APN »

/?Player=apolo888
at the end of my URL just returns you to the INDEX page of the webserver.
Kent Briggs
Site Admin
Posts: 5880
Joined: Wed Mar 19, 2008 8:47 pm

Re: Player Profiles

Post by Kent Briggs »

APN wrote:/?Player=apolo888
at the end of my URL just returns you to the INDEX page of the webserver.
What do you have set for the "Player profile URL" in the Client Settings group? You need to have a script at that address to handle the profile request.
APN
Posts: 23
Joined: Fri Aug 02, 2013 3:17 pm

Re: Player Profiles

Post by APN »

Code: Select all

http://www.*********.com
is what i have in there
Kent Briggs
Site Admin
Posts: 5880
Joined: Wed Mar 19, 2008 8:47 pm

Re: Player Profiles

Post by Kent Briggs »

APN wrote:

Code: Select all

http://www.*********.com
is what i have in there
It needs to be something like http://www.example.com/profile.php and then your profile.php file would read the player name from the URL parameter and then do whatever you wanted to show. For example:

Code: Select all

<html>
<body>

<h3>Player Profile</h3>

<?php
  include "API.php";
  $player = $_REQUEST["Player"];        
  if ($player == "") die ("No player name specified");
  $params = "Password=" . $pw . "&Command=AccountsGet&Player=" . $player;
  $api = Poker_API($url,$params,true);
  $result = $api["Result"];
  if ($result == "Error") die("Error: " . $api["Error"]);
  echo "Player: " . $player . "<br />";
  echo "Name: " . $api["RealName"] . "<br />";
  echo "Location: " . $api["Location"] . "<br />";
?>

</body>
</html>
APN
Posts: 23
Joined: Fri Aug 02, 2013 3:17 pm

Re: Player Profiles

Post by APN »

Code: Select all

Server Error
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Kent Briggs
Site Admin
Posts: 5880
Joined: Wed Mar 19, 2008 8:47 pm

Re: Player Profiles

Post by Kent Briggs »

APN wrote:

Code: Select all

Server Error
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
That's pretty self-explanatory. Whatever URL that you entered as the "Player profile URL" in the Client Settings group does not exist and thus the browser is telling you that.
APN
Posts: 23
Joined: Fri Aug 02, 2013 3:17 pm

Re: Player Profiles

Post by APN »

Ok i think i got, makes a white page now that says player profile..Thx Kent
Post Reply