Home developers blog

Moa

An easy to use open source web
image gallery for PHP/MySQL
Developers blog
1.2.2 final stages Tuesday, 01 June 2010 23:17 E-mail

Finally we have the bulk upload code pretty much done and tested the way I mentioned in the previous post.

For the rest of the code there are still a couple of bits to iron out and a few simple extras to add such as path/database validity checks when the page is generated or new config settings applied. I revisited the MoaDefault template and converted it to use rounded corners and drop shadows via CSS3 instead of images as before. This should help it run better in IE6 and keep the amount of data transferred down a bit. It also made it easier to change the colors so I added a blue variant of MoaDefault too.

 

In other Moa news we have both started working on a new template each to give a bit more variation. We will probably make these available as separate downloads when done to avoid cluttering up the main archive and so you can choose which to get.

If anybody wants to volunteer to make a new template, even a new default one, let us know and we will give help and assistance any way we can. We are programmers not web designers and know full well that we suck when it comes to the arty side Frown. I can be contacted via email This e-mail address is being protected from spambots. You need JavaScript enabled to view it .

 
Bulk upload Wednesday, 07 April 2010 22:04

Still working on the bulk upload code. Had it running twice now but haven't liked the method we used each time.

 

The first version could handle multiple folders and add each to a different gallery but seemed that it could be a bit too confusing.

 

The second version did it all from a common incoming folder to allow FTP or zip files. It was all done from a new admin page for bulk uploading.

 

The third version we are doing now is just rearranging the last one for usability reasons. There will be admin page to handle FTP-added images..zip files will be added from the same image upload page that you would normally use. This should hopefully be a more natural way to add them. This should be pretty quick to do but needs more testing still.

 

We have also been adding unit tests a  the new code and some of the old stuff. Also I have done a minor rearrangement of some internal code.

 

 
Testing Thursday, 07 January 2010 13:15

After the last couple of release where we have been bogged down by testing we have decided we need some way to automate as much of this as possible.

 

We already use automation to build the release archives and the although the time saved is small (maybe 20 minutes) we have sometimes caught a minor bug after the files are built and had to re-run this part several times. That is a simple perl script that exports the latest version from our private SVN server into a directory that matches the proposed release number, removes all non-release files such as our minimal development template, then packages up both a .zip and a .tar.gz file ready for uploading to SourceForge. It's only about 30 lines of code but turns a boring and error-prone task into a single-command utility that takes all of 10 seconds to run and is consistent each time.

 

By itself Moa shouldn't be hard to test, but checking 2 templates on each of the five major browsers alone takes a long time and that is just the visual/interactive side. When we do some project-spanning architecture change such as in 1.2.1, where we moved all config variables into a common structure, it means we need to retest a huge portion of the internal code as well.

 

Enter unit testing which we are starting to put into place now and will cover the PHP side of things. One set of tests will check the internal functions with controlled inputs to flag when something has done something outside it's defined spec (which also means we have to define specs... Surprised). Another set of tests will directly call the API that the front-end AJAX uses. Hopefully this way the tests will allow us to be confidant that the back-end code is stable with a quick 5-minute test suite.

 

A third part of this testing is the front-end which raises some problems due to it's interactive nature. The probable method we are going to use is based on JavaScript to do short tasks such as "click edit gallery, then fill in the name/description, then submit it, then check both the page and database (via AJAX) to make sure the new text has been applied". The same basic test can be run multiple times with different settings to test what that feature should and shouldn't be able to handle. A variant would be to use bookmarklets rather than a conditionally included .js file and keeps the tests away from the main codebase.

 

Some features would still need testing by hand but this should help cut a lot of time off and let us get releases out faster once the code is done. It isn't going to be done fast though and will probably be slowly built up over the next few releases.

 




Progress on Moa 1.2.2

 

Bulk upload is working, just adding support to allow multiple folders to be imported with unique tags and descriptions. This is so you don't have to do them all to a single gallery then move them around afterwards or have to do multiple bulk uploads to fill more than one gallery. Also we will add a 'bulk upload to here' link to each gallery to fill in the tags automatically.

 

 
Break Wednesday, 18 November 2009 03:00
Written by Dan Brown   
So close to releasing 1.2.1 still but things keep getting in the way. Myself and Rich have both been on holiday for the last two weeks in Japan so not been around to test. Still at the same point though where we just need to test on all browsers but fed up with IE being sh*t so we had a break before the holiday as well. Hopefully will be able to bust through and get it working now we are back.
 
New look site! Sunday, 04 October 2009 10:44
Written by Dan Brown   

Finally put the new moagallery.net template online. There are still a couple of styling bits to finish such as the 'more articles' and pagination bits but they are minor and I got fed up of looking at the old site.

 

1.2.1 is still being tested but soooo close to being put out. We ran into a snag where IE was doing very weird things and eventually tracked it down to a few extra characters breaking the doctype so it didn't know how to render it properly. Back on track now and should be just a quick test on the usual browsers to finish.

 

I noticed the other day that  we now appear as #13 on google for the word 'moa' Cool. Not too bad for a single short word and no advertising. A few bloggers have found out about us (Webdev3000.com and webdevelopmentstuff.com that I have found so far) so thanks to the guys that wrote those posts and for the kind words.

 

Of course if you search for 'moa gallery' you find a ton of links to last months security problem. And they all list the same 3 issues (including the one confirmed as false). I think the hacking community have gone slightly over the top on syndication...

Last Updated on Sunday, 04 October 2009 11:03
 
«StartPrev1234NextEnd»

Page 2 of 4
Powered by Joomla!. Valid XHTML and CSS.