Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 23rd, 2005, 10:39 PM   #1
Lance
Programmer
 
Lance's Avatar
 
Join Date: Oct 2004
Location: Chicago, IL USA
Posts: 74
Rep Power: 4 Lance is on a distinguished road
Send a message via AIM to Lance
Explorer Directory Listing

Yea, so I realized I don't have auto-indexing on some of my web space accounts, because it's turned off in Apache. So I have to have an index file per directory.

So I got drunk...

While drunk, I decided Explorer looks cool. I also decided the "Details" view is sleak and could easily replace an Apache listing. So I started coding it...

I am near completion with the main frame. I'm going to possibly add the WinXP blue sidebar, depending on how useful it would be. I know I need to fix the XHTML, but that's why it's a "Current Project". I also have a lot of tweaks to add.

Anyways, here it is: http://grog.mine.nu/~lance

And if you want to see the code, I can post it... but it's over 200 lines, so I'm not sure I should post it here. I'll link it, even though posting with the vB "php" tag would make it nicer to look at...

Here's the code: http://grog.mine.nu/~lance/index.txt

Soo... what do you think? It has working sort, and working highlighting/coloring just like Explorer.

But I guess you'd have to be drunk to appreciate Explorer's style...

INPORTANT NOTE: Internet Explorer doesn't display the highlighting properly due to pathetic CSS rendering. Firefox does it perfect. I'll try and make it IE complaint later. Ironic how an Explorer styled site doesn't render right in Explorer...
__________________
/* LANCE */
C++;  /* this makes C bigger but returns the old value */
char *site = "slackwise.net",
     *home = "lance.slackwise.net",
     *pics = "flickr.com/photos/slackwise";
Lance is offline   Reply With Quote
Old Jan 24th, 2005, 10:29 AM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Looks pretty good.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jan 24th, 2005, 10:45 AM   #3
EdSalamander
Programmer
 
EdSalamander's Avatar
 
Join Date: Dec 2004
Location: Tucson, AZ, USA
Posts: 80
Rep Power: 4 EdSalamander is on a distinguished road
Send a message via AIM to EdSalamander
Heh, cool. What else do you plan to do to it? Are you gonna work in any JavaScripting or somesuch that let's you change the column widths? Ooo, And you could even tweak the Explorer style just a touch with something like having the whole row highlight (or shade) when mousing over a filename. That might make it easier to read the file info going across. Just some ideas.
__________________
I can pick my friends. And I can pick my nose. So, why can't I pick my friend's nose?
EdSalamander is offline   Reply With Quote
Old Jan 24th, 2005, 12:53 PM   #4
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Nice work Lance
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Jan 24th, 2005, 7:24 PM   #5
Lance
Programmer
 
Lance's Avatar
 
Join Date: Oct 2004
Location: Chicago, IL USA
Posts: 74
Rep Power: 4 Lance is on a distinguished road
Send a message via AIM to Lance
Thanks, Infinite Recursion.

Oh, and I plan to fix it so it works right in IE. As well as make the XHTML W3C compliant (I just threw together the HTML because I was more concerned/amsued with the PHP code.)

Then I plan to add that blue sidebar that WinXP has, with the "Details" and the locations and the sort. So you can do all sorts of stuff with files. Maybe add some context menu stuff... just anything that comes to mind.

Eventually, it might just turn into a proper all-purpose directory listing. Something that can replace the Apache auto-index.

Anyways, this was all just for fun. I'm not drunk anymore... nor caffeinated... and my amusement seems gone. :/ Oh well. I hope I eventually get back to work on it...
__________________
/* LANCE */
C++;  /* this makes C bigger but returns the old value */
char *site = "slackwise.net",
     *home = "lance.slackwise.net",
     *pics = "flickr.com/photos/slackwise";
Lance is offline   Reply With Quote
Old Jan 28th, 2005, 1:03 PM   #6
drache
Newbie
 
drache's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast, The
Posts: 1
Rep Power: 0 drache is on a distinguished road
Hey Lance,
The sort is looking good. Maby you should try for an osX theme too? 'Cus I know you always are looking for some kind of new project
~Drache
drache is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:31 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC