Yahoo Messenger Status BBCode

  • Halo I try this BBCode, work fine... but I want more validation in input;


    Code
    1. [ymstatus]yahooID[/ymstatus]



    Hope someone can help; :thumbsup:

  • I want to show Yahoo Status Messenger (Online/offline) in post/signature...
    And make clickable in image to add in contact;


    Coz the URL and IMG tag not work properly;


    Code
    1. [url='ymsgr:sendIM?yahooID'][img]http://opi.yahoo.com/online?u=yahooID&m=g&t=14[/img][/url]


    Take a look here

    Code
    1. http://freeyahootoolsdownload.blogspot.com/2008/03/make-yahoo-messenger-status-in-blog.html


    The code I wrote above is works fine but I want some validation with RegEx Patterns;
    Sorry Im blind about regex;


    Thx for Help

  • I might have some time to look at it as soon as I am at home again. Is the yahooID alpha-numerical? (All signs from a-z,A-Z and 1-9 allowed) TBH i don't know much about yahoo ;) I just need to know what kind of characters are valid and I can build a regEx Command for you.


    BTW: I moved this thread to the developers corner.

  • This is hint from Yahoo when first time SIgnUp;


    Quote

    Use 4 to 32 characters and start with a letter. You may use letters, numbers, underscores, and one dot (.)


    All this hint is valid, of course :thumbup:

  • Just a quick guess for the expression: /([a-z][a-z0-9_.])*{4,32}/si


    Use preg_match for extracting the match. This should work on all 3 examples in your source code.