Archive for April, 2009

Codeigniter LiveDocx

Tuesday, April 14th, 2009

Using Nusoap, I’ve put together a simple example of how to convert a word docx to txt in codeigniter php. I’ve left error checking out etc just to keep it simple. Its once again one of those “You build on it for you own usage” snippets.

This function converts to txt then just adds a simple <p> wrapper around paragraphs. I put this into a custom file manager for TinyMCE, and it allows clean embedding of a word document to the editor.

And you can grab the Codeigniter Nusoap library from here: nusoap-codeigniter
And a zipped clean version of the PHP snippet above from here: mswordfunction

Hopefully this helps people.
Check out http://www.livedocx.com/ for information on grabbing a free user account, and to read the API.

Excel Reader

Sunday, April 12th, 2009

This looks like it could come in handy for something!

http://mattkruse.com/2008/12/24/php-excel-reader/

Probably reading excel sheets, thats just a hunch tho. I could be wrong. Will try to hook it into a TinyMCE addon to make table embedding easier for clients.

Found a better library for integration, also reads into the zipped goodies of xlsx.
Take a look at http://www.codeplex.com/PHPExcel

jQuery/PHP Form Builder Sourcecode

Saturday, April 11th, 2009

Got a few queries from people wanting to grab the code for the form builder, so thought I’d share it around. Its crudely stripped out of the admin system I’m working on, but its a good stepping stone to make it better.

Screenshot

This needs an update, will work on it over the weekend. Fixed some issues with dragging and the wysiwyg editor, also cleaned up the styles.

UPDATED 9 June 2009.

  • Fixed Stylesheet
  • Fixed TinyMCE issues.
  • Cleaned up DOM Objects.

DEMO

DOWNLOAD

As all the things I share, this comes with limited support, as is, and might require you to fix things yourself with your own mental abilities. This is a stripped Controller from a custom admin system I’m working on. To put it back into a controller, just edit formbuilder.php and wrap in a CodeIgniter controller extend.