Page 1 of 1

Player Profiles

Posted: Sun Sep 15, 2013 1:16 pm
by APN
/?Player=apolo888
at the end of my URL just returns you to the INDEX page of the webserver.

Re: Player Profiles

Posted: Sun Sep 15, 2013 1:44 pm
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.

Re: Player Profiles

Posted: Sun Sep 15, 2013 1:49 pm
by APN

Code: Select all

http://www.*********.com
is what i have in there

Re: Player Profiles

Posted: Sun Sep 15, 2013 3:54 pm
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>

Re: Player Profiles

Posted: Sat Dec 28, 2013 9:06 am
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.

Re: Player Profiles

Posted: Sat Dec 28, 2013 10:13 am
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.

Re: Player Profiles

Posted: Sat Dec 28, 2013 12:50 pm
by APN
Ok i think i got, makes a white page now that says player profile..Thx Kent