Skype Plugin

Attached is a simple plugin for use with Skype.  It enables your users to enter their Skype name in their profile.  Installation and useage are in the comments at the top of the file.  You'll have to unzip it first.

Pease note that it does validate user input using a regular expression pattern that may not allow all Skype names.  I was not able to find any documentation on what defines a valid Skype name, so I guessed.  The user can enter any combo of alphanumeric, dot, underscore, or dash from 3 to 25 characters in length.

If someone knows the official Skype naming convention please let me know and I can adjust as required.  But I think my pattern will allow most.

This can also serve as a simple plugin example for any would-be developers out there.

File Attachments

Download Info Size (bytes) Downloaded Created
skype_user.php.zip More Info 1,197 99 June 6, 2007 12:06
Max Length
by cglusky / at 12:16 on June 6, 2007

After browsing the Skype directory I am pretty confident that my regex pattern will work. However, I set the maxlength parameter to 25 and it looks like there may be a few pushing 30 . Just change the maxlength setting to 30 or more.
C

Will Be Required
by cglusky / at 15:32 on June 6, 2007

Just to let you know, it looks like use of either minlength and/or pattern parameters will force the field to be required whne posting the form. Tried setting the "required" parameter to false and it did not make a diff. Will need to weed through some code to get to the bottom of this one. In the meantime, you could delete the minlength and pattern parameters, but the form will be less secure.
C