By Christian on 27 december 2007 under PHP
I’ve been working on this off and on since this summer and I never got around to wrapping it all up. Now I finally made it so far as to making it usable. It’s ”Yet-another-wordpress-gallery-plugin” I know, but I’ve been looking for a gallery plugin that suits me and that doesn’t require any third-party gallery software to work. So I jotted down some lines of code and out of that emerged the GDC Gallery plugin.
It’s quite feature less at the moment but I’m working on adding some additional features that are ”nice to have”. If you are used to using Gallery2 and it’s WP plugin, GDC Gallery will probably piss you off. It’s not even in the ball park feature wise. You can upload pictures, one by one, and tag them. Thats it for now.
I chose to distribute it now because I want feed back, thoughts and what not before I get too far in the coding. And by releasing it before hand people wanting to learn more about WP coding can follow along more easily. So, head over to the code section and grab a copy. And then let me know of all the quirks and errors it produces.
By Christian on 27 december 2007 under PHP
If you’re a somewhat active web developer you probably have heard about the ”Ruby on Rails” web development framework that helps developers speed up development of web apps using a predefined set of functions and code scaffolding etc. ”Ruby on Rails” uses the Ruby scripting language as a base, which is quite nice, but if you don’t know, want to know or have time to learn Ruby you are’nt out of luck.
CakePHP is a similar framwork for the PHP scripting language and works in much the same way, from what I have tried at least. It’s an easy way to get up and running with a working application that you can improve on bit by bit as you progress. It won’t solve all your problems and it won’t produce a complete working solution for you but it will get you underway quickly.
I often find myself writing alot of code before hand just to get some ”behind the scenes” functionality working so I can start coding the ”real” project. By defining the database tables according to the CakePHP naming conventions etc. CakePHP scaffolds code automatically so that more or less without writing any PHP you get working insert, delete and update forms. Oh, and it also handles relationships between tables for you as well.
If you work with PHP and you are looking for an easy way to get results quickly check out CakePHP, link below.
CakePHP : The PHP Rapid Development Framework :: Home
Powered by ScribeFire.
By Christian on 14 maj 2005 under PHP
This last month I’ve been up to the neck writing various CMS related things. First and foremost I’ve been focusing on my companys intranet basically rewriting it from the ground up. The last time I wrote it I had to put it together in a relatively short time frame, so it didn’t turn out that well. It didn’t scale properly and if you wanted to add a feature it meant quite extensive re-writing of the entire system. So that has been dealt with and a module system has been implemented.
In working on the intranet the question arose if we perhaps could use the eminent Drupal system. Since we need to use SQLite at work and there is no such support for that in Drupal I had to look into the possibility of writing a database schema for Drupal to use SQLite. Now SQLite is not ANSI SQL compatible, and so some things had to be done in the terms of parsing every sql query before sending it and, if needed, edit it so SQLite could understand. That was not the biggest problem, it turned out someone had already done that for me :). What made me turn back to my own solution was the simple fact that I didn’t have the energy to convert the file that contains the defenitions for creating the tables in MySQL.
I have also fiddled around some with Mambo, Wordpress and Karlstadunix’s homepage. So to sum it all up, the PHP and SQL code that is currently pertruding my inner cortex is enough to put a sweet purple haze on the environment :).