Loading —

WP PossibleTriangle™

We are taking over, we are the future.
Yet another update.

Just to let you all know, I’m not writing vapourware. I think vapourware is terrible. And I would never want to be known as someone who couldn’t get his shit together.

So, where is it. Well, I just finished fixing a large bug I was running into. I’ve never had to write code that can recursively list a directory and subdirectories. So that was a fun learning curve. If you’re wondering how that works, it goes a little like this:

function myFunction( $path = '.', $level = 0 ) {

$ignore = array( 'cgi-bin', '.', '..', 'app', 'lib' );
// Directories to ignore when listing output.

$dh = @opendir( $path );
while( false !== ( $file = readdir( $dh ) ) ) {
if( !in_array( $file, $ignore ) ) {
// Check that this file is not to be ignored

if( is_dir( "$path/$file" ) ) {
// Its a directory, so we need to keep reading down

echo "$file<br />";
myFunction( "$path/$file", ($level+1) );
// Re call this same function but on a new directory.
// this is what makes function recursive.

} else {

echo "$file<br />";

}

}

}

closedir( $dh );
// Close the directory handle

}

And to call the function you would simply use:

getDirectory( "./files/includes" );

This worked wonderfully. Basically, it reads a directory, lists all the files, if it comes across a new directory it increments up so it knows it’s a new directory, reads it, than lists it under the directory file from the previous directory. Brilliant.

I’ve also made three simple themes for it. And they’re super simple. One is a vertical scroll. One is a horizontal scroll (with some javascript that translates the scroll wheel’s up/down motion into left/right motion. So scrolling down moves the site to the right.) And a grid site (it’s still being optimized). This is for people that don’t really want to do any customizing. Which I recommend doing, but hey, sometimes you can’t, and I’d like to help those people out a bit.

So dude, why the fuck are you late on getting it out? Well, I’ve been busy. Work. Life. You know, the usual excuses. I was in Vancouver for two weeks having a mental decompression. Some folks would call that a vacation. I didn’t bring a computer with me. I was about ready to burn out and that isn’t a good thing (from first hand experience). I’ve got a few more tweaks to hammer out. I just want to make sure everything works smoothly. I’m also using this system for a client. So, you know how it goes, client first.

I know I’m not much more than a faceless website to mostly anyone who is going to read this. But, I keeps my promises. And ▲™ will get released. Soon. I promise.

Cheers, Derek.

—20 December 2009, Yet another update
News

This entry was posted in News. Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL.

3 Comments

  1. Posted December 25, 2009 at 3:03 pm | Permalink

    i’m glad to see that you’re making progress, derek. i would certainly like to test the cms and provide feedback.

    oh, btw, why is there no date for the posts?

    cheers

  2. Posted December 25, 2009 at 3:32 pm | Permalink

    Yes progress is going good. I’ll be sure to keep you in the loop. I’m at my folks place for Christmas and don’t have any FTP or logins for my sites.

    I should have an early release up for folks super shortly. I”m shooting for before 2010 (in my timezone ;) ).

    Ah, nice catch on the post dates. I’ll have to add those in. Thanks for that.

    Happy holidays.

  3. Posted December 27, 2009 at 2:57 pm | Permalink

    sweet, maybe you/it can fulfill my expectations ;-)
    happy after-christmas days to you too.

    greetings from southern germany to port elgin.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>