Tag Archives: Javascript

Adding GeSHi/WP-Syntax compatible pre HTML tag button to WordPress Quicktags Javascript editor

Wordpress Logo BlueIf you're anything like me your blog is probably full of code snippets and you're using WordPress Quicktags editor to enter your posts content. You're also using GeSHi compatible syntax highliter like WP-Syntax to make your code snippets more readable.

In this article I'll give you Javascript and PHP code I've created to add GeSHi compatible pre button to my blog's Quicktags editor toolbar on both frontend and backend.

Continue reading

Add TinyMCE and Quicktags visual editors to WordPress comments form

TinyMCE to comments respond

At WordPress powered site backend you have these great Javascript visual text editors TinyMCE (Visual) and Quicktags (HTML/Text). Wouldn't it be great to bring those two to your WordPress blog or site frontend to be used inside our comments form? Sounds great so lets proceed. In this article I'll present two ways how to integrate TinyMCE and Quicktags visual editors into your WordPress comment system.

Continue reading

Install and configure Prosody XMPP (Jabber) server on Debian/Ubuntu Linux based operating system

Prosody XMPP/Jabber logoI've been working on my Ajax chat system Quick Chat for WordPress for a while now. With Quick Chat I'm using technique called long polling to turn Apache Web server into chat server. This approach works fine most of the time when there aren't many concurrent chat users and server load is moderate. The reason for this is that Apache Web server is tuned for serving HTML. Better way of handling chat on your page is to install dedicated chat server software using XMPP (Jabber) protocol. This is protocol is used by big players like Gogole as well as Facebook for their chat services. XMPP is open protocol with many open source server and client implementations. In this article I will show you how to install and configure Prosody XMPP (Jabber) server on Debian/Ubuntu Linux based operating systems.

Continue reading

Proper way of implementing AJAX with jQuery in your WordPress plugins

AJAX LogoAJAX (Asynchronous JavaScript and XML) is web programming technique used on client side to fetch data from server side without reloading page. In this article I will write about proper way of implementing AJAX with jQuery in your WordPress plugins. Ajax has been around in WordPress code for a while now so WordPress developers have prepared a few functions and techniques to make our life a bit easier so lets get started.

Continue reading