Wordpress Yahoo! Presence Widget

I decide to upgrade some feature from Yahoo! Presence widget for wordpress, created by dhani that taken from Yahoo! Presence Image class that i create. The new feature are, you can change text alert and add your name to the status image. Your name can be different from your Yahoo-ID. Still confuse? Look in my side bar. My name appear as JOKERz but my Yahoo ID is not. Yup just simple feature. Hope you like it. Download here. Just extract it to your wordpress plugin directory, activate it, then look inside sidebar widget. Voila, your done.

Yahoo! Presence Image

Yahoo!

Few days ago. I find a case, where my client asks to place their Yahoo! Messenger online status as an online support in their site. So the visitor can see if the online support currently online and using Yahoo! Messenger or not. If a Yahoo! Messenger user clicks their online presence, an instant message window will open for them so they can type an instant message. Yeah i use Yahoo! presence service, but the default presence image doesn’t look fit with the website design i make. And i’m bored with it, so i decide to create new presence image. Read the rest of this entry »

Regex: IMG TAG

As i said before, i wanna share my Regex code, to catch the file name in HTML IMG TAG. Let me explain why i create this Regex code. I have IMG TAG that i need to catch only the file name. I don’t care about other attribute (ex. border=”0″) all i want just the file name inside the src attribute (ex. src=”file/path/i_want_this.jpg“); Read the rest of this entry »

Regex

I stuck almost 3 hours today finding the right regex code to convert html img tag in my code.

WTF! My previous code doesn’t work!! Whats wrong?? I’m too lazy to correct it, read the F**Kin’ manual!!

Hell Yeah, after couple of hour googling, and combining the code, i get it work correctly. Heres some sort of description about Regex if you don’t know what the hell is it?

regular expression (abbreviated as regexp or regex, with plural forms regexps, regexes, or regexen) is a string that describes or matches a set of strings, according to certain syntax rules. Regular expressions are used by many text editors and utilities to search and manipulate bodies of text based on certain patterns. Many programming languages support regular expressions for string manipulation. For example, Perl and Tcl have a powerful regular expression engine built directly into their syntax. The set of utilities (including the editor ed and the filter grep) provided by Unix distributions were the first to popularize the concept of regular expressions.

Next time i post my code, time to sleep its 4am…………