>> Pretty Comments  (1,575 views)

Some time ago I came across, a nice jQuery plug-in (jWYSIWYG) that turns regular html textareas into very simple WYSIWYG text editors.

At the time I thought that the plug-in would work really well replacing the normal WordPress comment boxes, and finally I found (made) a little free time to encapsulate jWYSIWYG jQuery plug-in into a simple WordPress plug-in, and you can see it in action on this site.

The plug-in is called Pretty Comments and is free for anyone to use.

  • Please don’t use the comments for testing.
  • All “Test” comments will be deleted.
  • If you are asking for help please leave a link to your blog or most probably I won’t be able to help you.

 

>> TIC – Text Image Converter  (118 views)

This is a php5 library (two classes) I wrote to convert TrueType Font text into an image, using the GD library.
Download here: Text Image Converter (213.33 KB) (includes an example, documentation and some free fonts).
or from svn (read only): svn co svn://byteset.com/tic
Documentation is also available online here: http://www.andreabelvedere.com/docs/tic/

See the library in action here: http://whatshouldidonow.eu/ (The site is still a work in progress)

To extend the library to add support for other Font types just extend the TIC abstract class and implement the create and dimension methods.

See example below on how to use it:

<?php
/**
 * @file image.php
 */
require_once 'lib/tic.php';
 
TIC::factory('fonts/AAJAX.TTF')
    ->setText('Hello World !')
    ->setBackground(0x00, 0xff, 0xff)
    ->setColor(0x00, 0x00, 0x00)
    ->setSize(24)->create(true);

Than in your html:

<img src="image.php" alt="TIC" />

That will output the following image:

TIC

The library is under the LGPL license, which means you can freely use it for commercial and non commercial applications, please post a comment for feedbacks, bugs, or links of projects where you have use it.