Mar 26, 2005
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.
Follow
What should I do to implement the live preview? And, how do I get my smilies clickable? Hope you can help me!
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!
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.
mass aku mau tau gmana caranya live comment priview yg mass pake bisa nampilin smilies sebelumnya saya ucapkan terima kasih :)
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. :)