Quote:
Originally Posted by 3RMAC
Also, for people who have not put in the in their steam id yet I get an ssl error, which is odd.
|
I explained this
here ;)
Quote:
I have only noticed this error on people with the show id check, but no steam id. Is there a way to check it see if it's empty, if so end?
|
On my forums I have the SteamID field set to 'required' and checked by a regular expression:
PHP Code:
STEAM_[0-9]:[0-9]:[0-9]{4,}
If you don't want to make it a required field you could add some code like bl4nk or The JCS suggested. I would prefer to use
strlen so you can also check wether the SteamID has the minimum required length of 14 characters. Otherwise you would still end up with SSL errors if a user has entered 'lol' in his field. Untested example (add after line 17 and before 20):
PHP Code:
if (strlen($profilefield['value']) < 14) {
$profilefield['value']='invalid SteamID';
return;
}