/?Player=apolo888
at the end of my URL just returns you to the INDEX page of the webserver.
Player Profiles
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Player Profiles
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.
Re: Player Profiles
Code: Select all
http://www.*********.com
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Player Profiles
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: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>
Re: Player Profiles
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.
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Player Profiles
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.
Re: Player Profiles
Ok i think i got, makes a white page now that says player profile..Thx Kent