maz.net.au

Maz

Warning! Camera related content ahead!

Site


More progress
In category Site on 04 Feb 2006 @ 03:59 pm
I spent most of the day working on my site but I can't work out what I actually changed. There's lots of new features and stuff and if you find any please let me know what they are.

I have plans for a forums module that I may or may not run on my site. I have some more work to do on the core administration sections but once that's done I can continue my work on creating more modules. So far the ones I have planned are:
- Forums
- Static pages
- Form builder

At the moment the current menu system is able to be styled but not restructured. Seeing I've already gone for the whole object orientated php option I was considering building some sort of menu object that can be more easily manipulated. I need to work out what I need to store and how to store it so that different templates can completely rebuild it, make bits pop out or whatever.

Any more great ideas I have I'll try and make a note of them.

Comments RSS now available
In category Site on 01 Feb 2006 @ 06:33 pm
You can now subscribe to an aggregation of the last 10 comments posted to a user's journal. I haven't generated one for each user, but as comments are left for them the comment RSS will be generated and a link can be found above the ads near the bottom of the page.
This is a massive achievement and this is where I realise that I should have just used XML.

Damn php output buffering.
In category Site on 27 Jan 2006 @ 05:22 am
I want to send a file. The code to send it is run by the template. To begin with I start the output buffer at the very beginning of my code,

ob_start("ob_gzhandler"); // start the ob
// load the template here.
// get the request to send the file
ob_clean(); // should totally wipe the buffer
// send the file
exit();

No matter what, as soon as ob_clean() or ob_end_clean() is called, all I get after that is a totally blank page. Suggestions anyone?
Maz

Bugfixes already
In category Site on 23 Jan 2006 @ 01:43 pm
What can I say? I was having really obscure problems once I uploaded my code to my active webserver which is running linux not windows. This shouldn't have made any difference but it did. So I have been making a few changes as I go but nothing really major, only about 10 lines difference since the first release.

The weirdest problem I had was actually causing a core dump of the linux thread. It all came down to a single line of code that checked the validity of the argument in the same line that it checked the permissions for the user to access it.
if($__pth->isValid() && $__pth->isAllowed())
{
// run stuff
}
else
{
// run a theoretically valid and allowed path.
}

Would cause an infinite loop and a kernel panic. Break that check into 2 seperate if statements and everything is fine. Sometimes you just can't be too careful.
geekily Maz

MOSS v2.06 released
In category Site on 21 Jan 2006 @ 12:04 pm
There were celebrations worldwide as the initial core of MOSS v2 was released earlier today. My site is now running the new version and I'm just finishing the last touches on the photo gallery module. The new core contains only login and general functions with no displaying pages. With the initial release of MOSS v2.06 are 3 modules; Journal v1.1, File Manager v2.0 and Gallery v1.0, all available for download and will be running on my personal site.

There is a new templating system included in the core of MOSS 2.0 which I hope will be taken advantage of and when I get time I'll set up sections for submitting user made templates for dowloading. Templates can easily be changed on-the-fly.

Finally!

Coding modules is simple and I will have some tutorials written to explain anything you would need to know.
Maz


Entries RSS 2.0 - Comment RSS 2.0


Valid XHTML 1.0 Strict Valid CSS! Powered by PHP No Database

Menu




Powered by:
Powered by MOSS