Player Profiles
Posted: Sun Sep 15, 2013 1:16 pm
/?Player=apolo888
at the end of my URL just returns you to the INDEX page of the webserver.
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 wrote:/?Player=apolo888
at the end of my URL just returns you to the INDEX page of the webserver.
Code: Select all
http://www.*********.comIt 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:APN wrote:is what i have in thereCode: Select all
http://www.*********.com
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>
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 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.