ronny.haryan.to

Icon

Print: $9.50 — Online: free

WP Yahoo! Smileys Plugin Hacking

I’ve spent most of my Good Friday holiday installing Priyadi’s im_smiley plugin. The install process itself was very quick and painless, but I found some bugs, and I wanted to have clickable smileys, and I had to figure out how to have live preview of the comment, so it took a while. The bugs were quickly ironed out by Priyadi. The live preview bit didn’t take very long to implement either.

The clickable smileys was not part of the original plugin, so I modified the plugin to provide that functionality. I notified Priyadi about my modifications, he quickly incorporated my changes and adjusted them to his code. He released version 4.0 of the plugin right away. :D

You can get the plugin from Priyadi’s im_smiley plugin, or from my local copy.

Category: Blogging, Code

Tagged:

5 Responses

  1. R@lf says:

    What should I do to implement the live preview? And, how do I get my smilies clickable? Hope you can help me!

  2. ronny says:

    R@lf: you’d want to grab the latest source code from Priyadi’s site and install it as per his instructions there.

    In previous versions of the plugin, the live preview might not work if wordpress is installed in the web root’s subdirectory (e.g. http://example.com/wordpress instead of http://example.com). The bug preventing live preview from working was fixed since version 4.0 of the plugin.

    To get clickable smileys you just need to insert <?php smilies_clickable() ?> in comments.php. This is documented in the plugin’s page.

    Good luck!

  3. R@lf says:

    Yes, I did all that but somehow it didn’t work. I get javascript errors and I can’t figure out why. I will give another go later.

  4. inzie says:

    mass aku mau tau gmana caranya live comment priview yg mass pake bisa nampilin smilies sebelumnya saya ucapkan terima kasih :)

  5. ronny says:

    Semua source javascriptnya yg saya pake bisa diambil langsung dr page ini, lihat source aja. Saya gak pake tambahan selain pluginnya dr Priyadi dan javascript itu. Good luck. :)

About

Ronny Haryanto is a technology addict/chef wannabe living in beautiful Melbourne, Australia.

Read more…

Follow Me on Twitter

Follow @ronny on Twitter where I post much more often than my blog.