I've found another bug with the new sig in 2.0.4. I'll try to explain it the best I can. To prevent questions and problems from our players I've setup two seperate installs of xlrstats on the same box. One is for testing and the other is live. They both point to the same databases though.
The live install is at
http://stats.ufclansite.net and has sigs turned off for now. The test bed is at
http://ufclansite.net/stats and has sigs turned on. I'll do all of my explanation using the test bed url.
The install is setup with 4 servers. On server1 players are able to register and then you can click their names in the current list of players and it will take you to their detail page where you can build a sig. This detail page looks fine and has all the relevant info on it e.g. hitzones, achievements, weapons...
On server1 when clicking build sig it works fine on some players and on others it builds the sig but all the data is missing. On these with missing data you can click the sig and it will take you back to their detail page and all the data is still correct. On other players the sig builds correctly and has all the data and clicking the sig also takes them back to the detail page correctly.
Here is an example for server1 of a player that works fine. If you go to
http://ufclansite.net/stats and search for player"
Espeem " you will notice all his info works and his sig builds fine. Now if you search for player "
#UF# /2ogue " You will notice all his info is there on the detail page but when you click build sig all the data is missing from the sig. Clicking his sig though will take you to his detail page correctly.
Now here is where it gets complicated.
If you go to server2 at
http://ufclansite.net/stats and search for player "
{WwF}Stinger " You will be taken to his detail page and all the info is there as it should be. But if you click build sig the data is all missing from the sig and clicking the sig takes you to detail page for an unregistered user on server1 named Sonny.
-FistFight
EDIT:
While typing this out I was trying a few things and I noticed that all the sigs that have data in them on server1 are players with > 50 rounds or > 1000 kills. so If this is by design then I guess its working and maybe a message should be put on the sig page stating using the sig requires 50 rounds or 1000 kills. Or change the stats to build for all round/kill limits.
But on server2 even those with 50 rounds or 1000 kills are still showing up with blank data and I think its because the sig is looking at the playerid for server1. Clicking the sig takes you to that player id on server1 so I think this proves it.
Sorry for the long post.
EDIT:I was having this issue with links on server2 taking me back to serverf1 and you had me place this in my index.php under xlrstats.
if (ini_get('register_globals') == 1)
{
if (is_array($_REQUEST)) foreach(array_keys($_REQUEST) as $var_to_kill) unset($$var_to_kill);
if (is_array($_SESSION)) foreach(array_keys($_SESSION) as $var_to_kill) unset($$var_to_kill);
if (is_array($_SERVER)) foreach(array_keys($_SERVER) as $var_to_kill) unset($$var_to_kill);
unset($var_to_kill);
}
Could this issue be related? I do have that in my index.php
-Fist