bira
Thu 22nd Feb '01, 12:35pm
Hi,
Because the avatar image "name" is always avatar.php?s=&userid=$userid several users pointed out that they try to replace the avatar and it doesn't work. In effect, it DID work, they just didn't see the change because the older avatar was cached and since the name of the image did not change, the browser 'thought' that it already exists (this is particularly true for Netscape users).
I won't lose sleep over this, but I thought of suggesting a simple fix:
add at the end of the avatar.php?s=&userid=$userid another variable, which actually means nothing - it's just unixtime and therefore the image "name" will never be the same. So it would like like:
$rand = time();
avatar.php?s=&userid=$userid&rand=$rand&
Hope that makes sense.
Cheers,
Bira
Because the avatar image "name" is always avatar.php?s=&userid=$userid several users pointed out that they try to replace the avatar and it doesn't work. In effect, it DID work, they just didn't see the change because the older avatar was cached and since the name of the image did not change, the browser 'thought' that it already exists (this is particularly true for Netscape users).
I won't lose sleep over this, but I thought of suggesting a simple fix:
add at the end of the avatar.php?s=&userid=$userid another variable, which actually means nothing - it's just unixtime and therefore the image "name" will never be the same. So it would like like:
$rand = time();
avatar.php?s=&userid=$userid&rand=$rand&
Hope that makes sense.
Cheers,
Bira